App crash on page change (Android P/9)
See original GitHub issueI am using MapBox and when I transition to another page, it will freeze in the middle of the transition and then kill the app. This only happens on my Pixel which has Android 9. It works fine on an older Android phone I have.
Here are the logs I was able to get off my phone the moment it crashes:
A/libc(2141): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x58 in tid 2552 (GLThread 10997), pid 2141 (g.nativescript.app)
I/crash_dump32(2561): obtaining output fd from tombstoned, type: kDebuggerdTombstone
I//system/bin/tombstoned(816): received crash request for pid 2552
I/crash_dump32(2561): performing dump of process 2141 (target tid = 2552)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/marlin/marlin:9/PPR2.181005.003/4984323:user/release-keys'
Revision: '0'
ABI: 'arm'
pid: 2141, tid: 2552, name: GLThread 10997 >>> org.nativescript.app <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x58
Cause: null pointer dereference
r0 d1c1af00 r1 00003b2a r2 00000000 r3 00000010
r4 c5f3a670 r5 d1c18f70 r6 00000000 r7 c4efe800
r8 00000000 r9 d1c49900 r10 c4efe900 r11 ea02fa00
ip f02a55fc sp c4efe7f8 lr c59ec221 pc c59ec1f0
backtrace:
#00 pc 000261f0 /data/app/org.nativescript.app-_OU0W4pSh8TZs42rfY8Tnw==/lib/arm/libmapbox-gl.so
#01 pc 0002621d /data/app/org.nativescript.app-_OU0W4pSh8TZs42rfY8Tnw==/lib/arm/libmapbox-gl.so
#02 pc 000dd3d3 /data/app/org.nativescript.app-_OU0W4pSh8TZs42rfY8Tnw==/lib/arm/libmapbox-gl.so
#03 pc 00076c01 /data/app/org.nativescript.app-_OU0W4pSh8TZs42rfY8Tnw==/lib/arm/libmapbox-gl.so
#04 pc 00076c2d /data/app/org.nativescript.app-_OU0W4pSh8TZs42rfY8Tnw==/lib/arm/libmapbox-gl.so
#05 pc 00074571 /data/app/org.nativescript.app-_OU0W4pSh8TZs42rfY8Tnw==/lib/arm/libmapbox-gl.so
#06 pc 0005e7d7 /data/app/org.nativescript.app-_OU0W4pSh8TZs42rfY8Tnw==/lib/arm/libmapbox-gl.so
#07 pc 00411a79 /system/lib/libart.so (art_quick_generic_jni_trampoline+40)
#08 pc 0040d575 /system/lib/libart.so (art_quick_invoke_stub_internal+68)
#09 pc 003e6b79 /system/lib/libart.so (art_quick_invoke_stub+224)
#10 pc 000a1015 /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+136)
#11 pc 001e5ae9 /system/lib/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+236)
#12 pc 001e05d7 /system/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+814)
#13 pc 003e2661 /system/lib/libart.so (MterpInvokeDirect+196)
#14 pc 00400414 /system/lib/libart.so (ExecuteMterpImpl+14484)
#15 pc 001c5718 /dev/ashmem/dalvik-classes3.dex extracted in memory from /data/app/org.nativescript.app-_OU0W4pSh8TZs42rfY8Tnw==/base.apk!classes3.dex (deleted) (com.mapbox.mapboxsdk.maps.renderer.MapRenderer.onSurfaceCreated)
#16 pc 001c4d53 /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2471763592+378)
#17 pc 001c9439 /system/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+152)
#18 pc 001e05bf /system/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+790)
#19 pc 003e1cef /system/lib/libart.so (MterpInvokeSuper+1098)
#20 pc 00400394 /system/lib/libart.so (ExecuteMterpImpl+14356)
#21 pc 001c6284 /dev/ashmem/dalvik-classes3.dex extracted in memory from /data/app/org.nativescript.app-_OU0W4pSh8TZs42rfY8Tnw==/base.apk!classes3.dex (deleted) (com.mapbox.mapboxsdk.maps.renderer.glsurfaceview.GLSurfaceViewMapRenderer.onSurfaceCreated)
#22 pc 001c4d53 /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2471763592+378)
#23 pc 001c9439 /system/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+152)
#24 pc 001e05bf /system/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+790)
#25 pc 003e1cef /system/lib/libart.so (MterpInvokeSuper+1098)
#26 pc 00400394 /system/lib/libart.so (ExecuteMterpImpl+14356)
#27 pc 001bc37e /dev/ashmem/dalvik-classes3.dex extracted in memory from /data/app/org.nativescript.app-_OU0W4pSh8TZs42rfY8Tnw==/base.apk!classes3.dex (deleted) (com.mapbox.mapboxsdk.maps.MapView$5.onSurfaceCreated+10)
#28 pc 001c4d53 /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2471763592+378)
#29 pc 001c9439 /system/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+152)
#30 pc 001e05bf /system/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+790)
#31 pc 003e23a3 /system/lib/libart.so (MterpInvokeInterface+1010)
#32 pc 00400514 /system/lib/libart.so (ExecuteMterpImpl+14740)
#33 pc 00ad3e9e /system/framework/boot-framework.vdex (android.opengl.GLSurfaceView$GLThread.guardedRun+900)
#34 pc 001c4d53 /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2471763592+378)
#35 pc 001c9439 /system/lib/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+152)
#36 pc 001e05bf /system/lib/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+790)
#37 pc 003e2661 /system/lib/libart.so (MterpInvokeDirect+196)
#38 pc 00400414 /system/lib/libart.so (ExecuteMterpImpl+14484)
#39 pc 00ad4438 /system/framework/boot-framework.vdex (android.opengl.GLSurfaceView$GLThread.run+48)
#40 pc 001c4d53 /system/lib/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEb.llvm.2471763592+378)
#41 pc 001c937f /system/lib/libart.so (art::interpreter::EnterInterpreterFromEntryPoint(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*)+82)
#42 pc 003d52b9 /system/lib/libart.so (artQuickToInterpreterBridge+880)
#43 pc 00411aff /system/lib/libart.so (art_quick_to_interpreter_bridge+30)
#44 pc 0040d575 /system/lib/libart.so (art_quick_invoke_stub_internal+68)
#45 pc 003e6b79 /system/lib/libart.so (art_quick_invoke_stub+224)
#46 pc 000a1015 /system/lib/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+136)
#47 pc 00347ac5 /system/lib/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+52)
#48 pc 0034881d /system/lib/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue*)+320)
#49 pc 00369797 /system/lib/libart.so (art::Thread::CreateCallback(void*)+866)
#50 pc 00063505 /system/lib/libc.so (__pthread_start(void*)+22)
#51 pc 0001df29 /system/lib/libc.so (__start_thread+24)
Issue Analytics
- State:
- Created 5 years ago
- Comments:6
Top Results From Across the Web
Settings app crashes preventing lock changes
Whenever i go into settings->Screen lock. And i click on "None" and "Swipe" Settings crashes and no change is applied.
Read more >Problem With Apps Crashing - Android Help
Hello all, I recently bought a Huawei P9 Lite that is currently running Android 6.0. Suddenly yesterday, downloaded Apps started crashing a ...
Read more >Why Do My Apps Keep Crashing on Android? - Avast
Another simple app crash fixer is to turn off Wi-Fi and force the app to switch to data. But, be careful to monitor...
Read more >App Crash on Android OS 6 Samsung Galaxy S7 SM-G930FD ...
App crashes as soon as I start going into react-navigation and crashing in Samsung S7 64 bit CPU device, working fine in other...
Read more >Huawei P9 System Crash (Solution) - Tech Junkie
If any app continues to crash often after the software update, please follow the instructions below on how to fix the Huawei P9...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @EddyVerbruggen, I am also experiencing this same problem.
The reason I updated to 4.4.0 was because it seems that this version of the plug in fixes the bug where the app would crash while moving on iOS as discussed in this issue https://github.com/EddyVerbruggen/nativescript-mapbox/issues/265 .
If I downgrade to 4.3.1 to accommodate for the Android crashes, won’t that mean my iOS platform will start to experience the same problems again?
Hi! Same issue happening to me. On an emulator with Android 8 and a physical device with Android 6.
I was using version 4.4.1 and solved it changing to version 4.3.1 as said @EddyVerbruggen
With command adb logcat I could see “Cause: null pointer dereference” on mapbox library.