Skip to content

[App Crash] App crashes after some Http.request on ns/core above 8.6.1 #10712

@Yauheni-Matveyenka

Description

@Yauheni-Matveyenka

Issue Description

Sometime app crashes after Http.request() with error. This crash not related with a specific url or data. One time request may be executed fine, another time app crashes with an error. Data does not contain any circular references.
This happens only with nativescript/core above 8.6.1
Error stack trace:

Reproduction

No response

Relevant log output (if applicable)

System.err: An uncaught Exception occurred on "main" thread.
  System.err: Attempt to use cleared object reference id=7697
  System.err:
  System.err: StackTrace:
  System.err: com.tns.NativeScriptException: Attempt to use cleared object reference id=7697
  System.err:   at com.tns.Runtime.getJavaObjectByID(Runtime.java:1077)
  System.err:   at com.tns.Runtime.callJSMethodNative(Native Method)
  System.err:   at com.tns.Runtime.dispatchCallJSMethodNative(Runtime.java:1302)
  System.err:   at com.tns.Runtime.callJSMethodImpl(Runtime.java:1188)
  System.err:   at com.tns.Runtime.callJSMethod(Runtime.java:1175)
  System.err:   at com.tns.Runtime.callJSMethod(Runtime.java:1153)
  System.err:   at com.tns.Runtime.callJSMethod(Runtime.java:1149)
  System.err:   at com.tns.FragmentClass.onCreateView(FragmentClass.java:55)
  System.err:   at androidx.fragment.app.Fragment.performCreateView(Fragment.java:3113)
  System.err:   at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:524)
  System.err:   at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:261)
  System.err:   at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:1901)
  System.err:   at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1819)
  System.err:   at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1762)
  System.err:   at androidx.fragment.app.FragmentManager$5.run(FragmentManager.java:547)
  System.err:   at android.os.Handler.handleCallback(Handler.java:959)
  System.err:   at android.os.Handler.dispatchMessage(Handler.java:100)
  System.err:   at android.os.Looper.loopOnce(Looper.java:232)
  System.err:   at android.os.Looper.loop(Looper.java:317)
  System.err:   at android.app.ActivityThread.main(ActivityThread.java:8705)
  System.err:   at java.lang.reflect.Method.invoke(Native Method)
  System.err:   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:580)
  System.err:   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:886)
  TypeError: Converting circular structure to JSON
      --> starting at object with constructor 'TypeSelector'
      |     property 'ruleset' -> object with constructor 'RuleSet'
      |     property 'selectors' -> object with constructor 'Array'
      --- index 0 closes the circle

Environment

  "@nativescript/core": "8.6.1",
  "@nativescript/geolocation": "^9.0.0",
  "@nativescript/imagepicker": "^4.0.0",
  "@nativescript/iqkeyboardmanager": "2.0.0",
  "@nativescript/local-notifications": "^6.2.1",
  "@nativescript/theme": "^3.1.0",
  "@nstudio/nativescript-checkbox": "^2.0.5",
  "@triniwiz/nativescript-toasty": "^4.1.3",
  "base-64": "^1.0.0",
  "i18next": "^24.2.2",
  "jszip": "^3.10.1",
  "moment-timezone": "^0.5.47",
  "nativescript-clipboard": "^2.1.1",
  "nativescript-datetimepicker": "^1.2.3",
  "nativescript-phone": "^3.0.3",
  "nativescript-sqlite": "^2.8.6",
  "nativescript-toasty-ns-7": "^14.0.0",
  "nativescript-ui-sidedrawer": "^15.2.3",
  "nativescript-vue": "^2.9.3",
  "nativescript-vue-devtools": "^1.5.1",
  "nativescript-vue-shadow-ns-7": "^10.1.0",
  "url-parse": "^1.5.10",
  "vue-class-component": "^7.2.6",
  "vue-property-decorator": "^9.1.2"
},
"devDependencies": {
  "@babel/core": "^7.26.9",
  "@babel/preset-env": "^7.26.9",
  "@nativescript/android": "^8.8.6",
  "@nativescript/ios": "^8.9.0",
  "@nativescript/types": "^8.9.0",
  "@nativescript/webpack": "^5.0.22",
  "@types/node": "^22.13.5",
  "assert": "^2.1.0",
  "babel-loader": "^9.2.1",
  "buffer": "^6.0.3",
  "bufferutil": "^4.0.9",
  "console-browserify": "^1.2.0",
  "constants-browserify": "^1.0.0",
  "crypto-browserify": "^3.12.1",
  "domain-browser": "^5.7.0",
  "electron": "^34.2.0",
  "events": "^3.3.0",
  "https-browserify": "^1.0.0",
  "nativescript-vue-template-compiler": "^2.9.3",
  "nativescript-worker-loader": "^0.12.1",
  "net": "^1.0.2",
  "os-browserify": "^0.3.0",
  "path-browserify": "^1.0.1",
  "process": "^0.11.10",
  "punycode": "^2.3.1",
  "querystring-es3": "^0.2.1",
  "sass": "^1.85.1",
  "stream-browserify": "^3.0.0",
  "stream-http": "^3.2.0",
  "string_decoder": "^1.3.0",
  "sys": "^0.0.1",
  "timers-browserify": "^2.0.12",
  "tls": "^0.0.1",
  "tty-browserify": "^0.0.1",
  "typescript": "^5.7.3",
  "url": "^0.11.4",
  "utf-8-validate": "^6.0.5",
  "util": "^0.12.5",
  "vm-browserify": "^1.1.2",
  "vue": "^2.7.16",
  "vue-loader": "^17.4.2",
  "webpack-cli": "^5.1.4",
  "zlib-browserify": "^0.0.3"
}

Please accept these terms

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug-pending-triageReported bug, pending triage to confirm.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy