Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Frequent ANR: __cxa_throw ANR triggered by slow operations in main thread #10527

Open
@gabrielbiga

Description

@gabrielbiga

Issue Description

Hey guys. Since the latest NS update (8.7.0), Crashlytics is reporting frequent ANRs probably from the system startup.

Screenshot 2024-04-23 at 2 54 55 PM

Should we take care of this?

Reproduction

Its only happening on Crashlytics reports. Not able to check locally.

Relevant log output (if applicable)

main (native):tid=1 systid=2927 
#00 pc 0xeb510 split_config.arm64_v8a.apk + 22360064 (BuildId: d7ce478d849eba1d3e692ae740f6c04a08fb8fab)
#01 pc 0x37efc linker64 (__dl__Z18do_dl_iterate_phdrPFiP12dl_phdr_infomPvES1_ + 260) (BuildId: e2ff995b7678e70c7a5e8df7075c06eb)
#02 pc 0x374d0 linker64 (__loader_dl_iterate_phdr + 48) (BuildId: e2ff995b7678e70c7a5e8df7075c06eb)
#03 pc 0x10c8 libdl.so (dl_iterate_phdr + 8) (BuildId: 04c7aa817fe0002ceba64b0e20566d93)
#04 pc 0xe8aac split_config.arm64_v8a.apk + 22360064 (BuildId: d7ce478d849eba1d3e692ae740f6c04a08fb8fab)
#05 pc 0xe89b8 split_config.arm64_v8a.apk + 22360064 (BuildId: d7ce478d849eba1d3e692ae740f6c04a08fb8fab)
#06 pc 0xe7ad4 split_config.arm64_v8a.apk + 22360064 (BuildId: d7ce478d849eba1d3e692ae740f6c04a08fb8fab)
#07 pc 0xe3240 split_config.arm64_v8a.apk (__cxa_throw + 116) (BuildId: d7ce478d849eba1d3e692ae740f6c04a08fb8fab)
#08 pc 0x8b0a00 split_config.arm64_v8a.apk + 4096 (BuildId: fbe0ee6a26b3191ae5e845ca19934106e2d1cc5b)
#09 pc 0x5c0 [vdso] (__kernel_rt_sigreturn)
#10 pc 0x895e8 libc.so (abort + 176) (BuildId: 0a8cf37fcb451b2f12e036d9781bccaa)
#11 pc 0xcece8 split_config.arm64_v8a.apk + 22360064 (BuildId: d7ce478d849eba1d3e692ae740f6c04a08fb8fab)
#12 pc 0xceeb4 split_config.arm64_v8a.apk + 22360064 (BuildId: d7ce478d849eba1d3e692ae740f6c04a08fb8fab)
#13 pc 0xe3c5c split_config.arm64_v8a.apk + 22360064 (BuildId: d7ce478d849eba1d3e692ae740f6c04a08fb8fab)
#14 pc 0xe32f4 split_config.arm64_v8a.apk + 22360064 (BuildId: d7ce478d849eba1d3e692ae740f6c04a08fb8fab)
#15 pc 0xe3248 split_config.arm64_v8a.apk (__cxa_throw + 124) (BuildId: d7ce478d849eba1d3e692ae740f6c04a08fb8fab)
#16 pc 0x8b0a00 split_config.arm64_v8a.apk + 4096 (BuildId: fbe0ee6a26b3191ae5e845ca19934106e2d1cc5b)
#17 pc 0x5c0 [vdso] (__kernel_rt_sigreturn)
#18 pc 0x895e8 libc.so (abort + 176) (BuildId: 0a8cf37fcb451b2f12e036d9781bccaa)
#19 pc 0xcece8 split_config.arm64_v8a.apk + 22360064 (BuildId: d7ce478d849eba1d3e692ae740f6c04a08fb8fab)
#20 pc 0xceeb4 split_config.arm64_v8a.apk + 22360064 (BuildId: d7ce478d849eba1d3e692ae740f6c04a08fb8fab)
#21 pc 0xe3c5c split_config.arm64_v8a.apk + 22360064 (BuildId: d7ce478d849eba1d3e692ae740f6c04a08fb8fab)
#22 pc 0xe32f4 split_config.arm64_v8a.apk + 22360064 (BuildId: d7ce478d849eba1d3e692ae740f6c04a08fb8fab)
#23 pc 0xe3248 split_config.arm64_v8a.apk (__cxa_throw + 124) (BuildId: d7ce478d849eba1d3e692ae740f6c04a08fb8fab)
#24 pc 0x8b0a00 split_config.arm64_v8a.apk + 4096 (BuildId: fbe0ee6a26b3191ae5e845ca19934106e2d1cc5b)
#25 pc 0x24f0 libsigchain.so (art::SignalChain::Handler + 1124) (BuildId: f2b3263de725c113909612342846664c)
#26 pc 0x5c0 [vdso] (__kernel_rt_sigreturn)
#27 pc 0xe90c4 split_config.arm64_v8a.apk + 22360064 (BuildId: d7ce478d849eba1d3e692ae740f6c04a08fb8fab)
#28 pc 0xeb348 split_config.arm64_v8a.apk + 22360064 (BuildId: d7ce478d849eba1d3e692ae740f6c04a08fb8fab)
#29 pc 0xe8acc split_config.arm64_v8a.apk + 22360064 (BuildId: d7ce478d849eba1d3e692ae740f6c04a08fb8fab)
#30 pc 0xebad808a ???
       at com.tns.Runtime.initNativeScript(Native method)
       at com.tns.Runtime.init(Runtime.java:643)
       at com.tns.Runtime.init(Runtime.java:617)
       at com.tns.Runtime.initRuntime(Runtime.java:607)
       at com.tns.Runtime.initializeRuntimeWithConfiguration(Runtime.java:582)
       at com.tns.RuntimeHelper.initRuntime(RuntimeHelper.java:151)
       at com.tns.NativeScriptApplication.onCreate(NativeScriptApplication.java:19)
       at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1213)
       at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6915)
       at android.app.ActivityThread.access$1600(ActivityThread.java:261)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2154)
       at android.os.Handler.dispatchMessage(Handler.java:111)
       at android.os.Looper.loopOnce(Looper.java:238)
       at android.os.Looper.loop(Looper.java:357)
       at android.app.ActivityThread.main(ActivityThread.java:8098)
       at java.lang.reflect.Method.invoke(Native method)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1026)

Environment

OS: macOS 14.4.1
CPU: (10) arm64 Apple M1 Max
Shell: /bin/zsh
node: 20.9.0
npm: 10.1.0
nativescript: 8.7.0

# android
java: 11.0.11
ndk: 23.2.8568313
apis: Not Found
build_tools: Not Found
system_images: Not Found

# ios
xcode: 15.3/15E204a
cocoapods: 1.15.2
python: 2.7.18
python3: 3.11.7
ruby: 3.3.0
platforms:
  - DriverKit 23.4
  - iOS 17.4
  - macOS 14.4
  - tvOS 17.4
  - visionOS 1.1
  - watchOS 10.4

Dependencies

"dependencies": {
  "@angular/animations": "17.3.4",
  "@angular/common": "17.3.4",
  "@angular/compiler": "17.3.4",
  "@angular/core": "17.3.4",
  "@angular/forms": "17.3.4",
  "@angular/platform-browser": "17.3.4",
  "@angular/platform-browser-dynamic": "17.3.4",
  "@angular/router": "17.3.4",
  "@nativescript-community/ui-image": "4.3.40",
  "@nativescript-community/ui-material-core": "7.0.1",
  "@nativescript-community/ui-material-ripple": "7.0.1",
  "@nativescript/angular": "17.0.0",
  "@nativescript/appavailability": "2.0.0",
  "@nativescript/appversion": "2.0.0",
  "@nativescript/biometrics": "1.3.1",
  "@nativescript/camera": "5.0.15",
  "@nativescript/core": "8.7.1",
  "@nativescript/datetimepicker": "^2.1.13",
  "@nativescript/firebase-core": "3.2.4",
  "@nativescript/firebase-crashlytics": "3.2.4",
  "@nativescript/firebase-messaging": "3.2.4",
  "@nativescript/geolocation": "8.0.2",
  "@nativescript/imagepicker": "3.1.1",
  "@nativescript/iqkeyboardmanager": "2.1.1",
  "@nativescript/local-notifications": "6.0.0",
  "@nativescript/localize": "5.2.0",
  "@nativescript/social-share": "2.3.0",
  "@nativescript/theme": "3.0.2",
  "@nativescript/zone-js": "3.0.4",
  "@ngrx/effects": "17.1.1",
  "@ngrx/store": "17.1.1",
  "@nstudio/nativescript-barcodescanner": "5.0.1",
  "@nstudio/nativescript-carousel": "8.0.3",
  "@nstudio/nativescript-checkbox": "2.0.5",
  "@nstudio/nativescript-pulltorefresh": "3.0.1",
  "bignumber.js": "9.0.1",
  "buffer": "6.0.3",
  "js-sha3": "0.9.3",
  "nativescript-advanced-permissions": "1.2.0",
  "nativescript-clipboard": "2.1.1",
  "nativescript-drop-down": "6.0.2",
  "nativescript-image-filters": "^4.0.0",
  "nativescript-intl": "4.0.2",
  "nativescript-nfc": "5.0.0",
  "nativescript-plugin-appsflyer": "6.13.1",
  "nativescript-qr-generator": "3.0.0",
  "nativescript-ui-listview": "15.2.3",
  "piexifjs": "1.0.6",
  "reflect-metadata": "~0.1.13",
  "rxjs": "^7.8.1",
  "set-cookie-parser": "2.6.0",
  "webpack": "^5.88.2",
  "zone.js": "0.14.4"
},
"devDependencies": {
  "@angular-devkit/build-angular": "17.3.5",
  "@angular/compiler-cli": "17.3.4",
  "@nativescript/android": "8.7.0",
  "@nativescript/ios": "8.7.0",
  "@nativescript/types": "8.7.0",
  "@nativescript/types-android": "8.7.0",
  "@nativescript/types-ios": "8.7.0",
  "@nativescript/webpack": "5.0.21",
  "@ngtools/webpack": "17.3.5",
  "@types/node": "20.12.7",
  "@typescript-eslint/eslint-plugin": "7.7.0",
  "@typescript-eslint/parser": "7.7.0",
  "eslint": "8.57.0",
  "eslint-plugin-unicorn": "52.0.0",
  "fast-xml-parser": "4.3.6",
  "nlf": "2.1.1",
  "patch-package": "8.0.0",
  "plist": "3.1.0",
  "sass": "~1.64.1",
  "ts-loader": "9.5.1",
  "typescript": "5.4.5",
  "webpack-cli": "^5.1.4"
}

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