Android Question Crash of App on Android 12 with SDK31

Derek Johnson

Active Member
Licensed User
Longtime User
Google's testing of the latest version of my app has revealed this crash that they found on this single device:

google Pixel 6 using Android 12 (SDK 31 ) 8,192 MBarm64-v8aen_GB

Can anyone offer any insight into this?

I've also seen it myself occasionally on start up on my Pixel 3A XL with Android 12. In this case it happens before any other start up messages are logged. I'm wondering if it could be as a result of some race condition caused by a fast processor or something else with the release SDK 31.

If anyone could suggest how I could further analyse this I'd be grateful.

You can download this version of the App here:

https://play.google.com/store/apps/details?id=org.uk100.MyLibSuffolk&gl=GB

Derek

*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/oriole/oriole:12/SQ1D.220205.004/8151327:user/release-keys'
Revision: 'MP1.0'
ABI: 'arm64'
Timestamp: 2022-08-15 07:45:17.464311079-0700
Process uptime: 0s
Cmdline: org.uk100.MyLibSuffolk
pid: 20620, tid: 20620, name: 00.MyLibSuffolk >>> org.uk100.MyLibSuffolk <<<
uid: 10233
tagged_addr_ctrl: 0000000000000001
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x6c0061006e0072
x0 0000000000000001 x1 0000007fd7b0e1b8 x2 0000000000000008 x3 00000003eddbe011
x4 00ffffffffffffff x5 0000000000048902 x6 0000000000000000 x7 0000007a05ffbf4a
x8 0000000000000040 x9 7fffffffffffffff x10 0000000028446be5 x11 0000007d217d7038
x12 0000007d217d7030 x13 000000007fffffff x14 0000000000048902 x15 00000003eddd798d
x16 0000007a0a32d058 x17 0000007d0dd6a170 x18 0000007d20eae000 x19 b400007b2358e530
x20 b400007b2358e5d8 x21 0000000000000000 x22 006c0061006e0072 x23 b400007b1371b060
x24 b400007b1371b048 x25 0000007d204f8000 x26 0000000000000002 x27 0000000000000001
x28 000000000000007f x29 0000007fd7b0e350
lr 0000007d070f4804 sp 0000007fd7b0e200 pc 0000007d070f482c pst 0000000000001000
backtrace:
#00 pc 000000000001682c /system/lib64/libutils.so (android::Looper::pollInner(int)+952) (BuildId: b5e49a981cf1bf17084880a7500c378a)
#01 pc 000000000001640c /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+112) (BuildId: b5e49a981cf1bf17084880a7500c378a)
#02 pc 000000000014a684 /system/lib64/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)+44) (BuildId: 0b9aac55032b29ef635df1e2e5920e36)
#03 pc 000000000019c22c /system/framework/arm64/boot-framework.oat (art_jni_trampoline+108) (BuildId: b475cc2538d0c50ace3ee34f4ccdf79c9b7101d2)
#04 pc 00000000004f52c8 /system/framework/arm64/boot-framework.oat (android.os.MessageQueue.next+232) (BuildId: b475cc2538d0c50ace3ee34f4ccdf79c9b7101d2)
#05 pc 00000000004f2924 /system/framework/arm64/boot-framework.oat (android.os.Looper.loopOnce+100) (BuildId: b475cc2538d0c50ace3ee34f4ccdf79c9b7101d2)
#06 pc 00000000004f2824 /system/framework/arm64/boot-framework.oat (android.os.Looper.loop+516) (BuildId: b475cc2538d0c50ace3ee34f4ccdf79c9b7101d2)
#07 pc 00000000002cefdc /system/framework/arm64/boot-framework.oat (android.app.ActivityThread.main+732) (BuildId: b475cc2538d0c50ace3ee34f4ccdf79c9b7101d2)
#08 pc 0000000000218be8 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: e6c658201ef1ec3760112fa1b838ab2c)
#09 pc 0000000000284224 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+216) (BuildId: e6c658201ef1ec3760112fa1b838ab2c)
#10 pc 000000000061e8f8 /apex/com.android.art/lib64/libart.so (_jobject* art::InvokeMethod<(art::pointerSize)8>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+1384) (BuildId: e6c658201ef1ec3760112fa1b838ab2c)
#11 pc 000000000058fa68 /apex/com.android.art/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+52) (BuildId: e6c658201ef1ec3760112fa1b838ab2c)
#12 pc 00000000000b2f74 /apex/com.android.art/javalib/arm64/boot.oat (art_jni_trampoline+132) (BuildId: 715d0a044ea13bcf499cd6094001f85c3246944e)
#13 pc 000000000081a46c /system/framework/arm64/boot-framework.oat (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+140) (BuildId: b475cc2538d0c50ace3ee34f4ccdf79c9b7101d2)
#14 pc 00000000008226d8 /system/framework/arm64/boot-framework.oat (com.android.internal.os.ZygoteInit.main+2232) (BuildId: b475cc2538d0c50ace3ee34f4ccdf79c9b7101d2)
#15 pc 0000000000218be8 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: e6c658201ef1ec3760112fa1b838ab2c)
#16 pc 0000000000284224 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+216) (BuildId: e6c658201ef1ec3760112fa1b838ab2c)
#17 pc 000000000061f050 /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, std::__va_list)+448) (BuildId: e6c658201ef1ec3760112fa1b838ab2c)
#18 pc 000000000061f514 /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+92) (BuildId: e6c658201ef1ec3760112fa1b838ab2c)
#19 pc 00000000004fa784 /apex/com.android.art/lib64/libart.so (art::JNI<true>::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+616) (BuildId: e6c658201ef1ec3760112fa1b838ab2c)
#20 pc 00000000000aead0 /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+120) (BuildId: 0b9aac55032b29ef635df1e2e5920e36)
#21 pc 00000000000ba010 /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+828) (BuildId: 0b9aac55032b29ef635df1e2e5920e36)
#22 pc 0000000000002580 /system/bin/app_process64 (main+1324) (BuildId: a8c58aa3b1cec6cca8a76d837107bbb0)
#23 pc 00000000000485dc /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+96) (BuildId: 28943f8bb3b7b23557619af9a38223c5)
 
Last edited:

Derek Johnson

Active Member
Licensed User
Longtime User
Here it is again in my log file on my Pixel 3A XL with slightly more information:

It is stating that the cause is:

Cause: null pointer dereference

Logger connected to: Google Pixel 3a XL
--------- beginning of crash
Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x2 in tid 16125 (00.MyLibSuffolk), pid 16125 (00.MyLibSuffolk)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/bonito/bonito:12/SP2A.220505.006/8561491:user/release-keys'
Revision: 'MP1.0'
ABI: 'arm64'
Timestamp: 2022-08-11 17:12:37.776727114+0100
Process uptime: 0s
Cmdline: org.uk100.MyLibSuffolk
pid: 16125, tid: 16125, name: 00.MyLibSuffolk >>> org.uk100.MyLibSuffolk <<<
uid: 10357
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x2
Cause: null pointer dereference
x0 0000000000000001 x1 0000007fe2bce018 x2 0000000000000008 x3 0000006d6927f44c
x4 0000006d69b48f08 x5 0000007fe2bcdd18 x6 0000000000000000 x7 0000006d6600eed1
x8 da2c525800106d44 x9 da2c525800106d44 x10 0000000000000000 x11 0000000000000001
x12 ffffffffc4653600 x13 0000188159142dca x14 002863eb2511fc75 x15 0000000026adb05b
x16 0000006d6baa2b58 x17 00000070792a2250 x18 0000007089412000 x19 0000006e84e9fb30
x20 0000006e84e9fbd8 x21 0000000000000000 x22 0000006e74ee2980 x23 0000000000000002
x24 0000000000000070 x25 0000007088bde000 x26 0000000000000002 x27 0000000000000001
x28 0000000000000070 x29 0000007fe2bce200
lr 0000007081558908 sp 0000007fe2bce0b0 pc 0000007081558930 pst 0000000060000000
backtrace:
#00 pc 0000000000016930 /system/lib64/libutils.so (android::Looper::pollInner(int)+956) (BuildId: c1f7ebcd9c7d12c6107c4834ed56b006)
#01 pc 000000000001650c /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+112) (BuildId: c1f7ebcd9c7d12c6107c4834ed56b006)
#02 pc 0000000000157ba4 /system/lib64/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)+44) (BuildId: 4412672799aae7dbc3e6195f95eaed8d)
#03 pc 00000000001d044c /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot-framework.oat (art_jni_trampoline+108)
#04 pc 000000000052b2e8 /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot-framework.oat (android.os.MessageQueue.next+232)
#05 pc 00000000005288e4 /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot-framework.oat (android.os.Looper.loopOnce+100)
#06 pc 00000000005287e4 /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot-framework.oat (android.os.Looper.loop+516)
#07 pc 00000000003044dc /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot-framework.oat (android.app.ActivityThread.main+732)
#08 pc 00000000002ca9e8 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 46df93bc978921840e5b428398c66a57)
#09 pc 000000000035b5d0 /apex/com.android.art/lib64/libart.so (_jobject* art::InvokeMethod<(art::pointerSize)8>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+608) (BuildId: 46df93bc978921840e5b428398c66a57)
#10 pc 000000000035b348 /apex/com.android.art/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+52) (BuildId: 46df93bc978921840e5b428398c66a57)
#11 pc 00000000000b2f74 /apex/com.android.art/javalib/arm64/boot.oat (art_jni_trampoline+132) (BuildId: ad9ee401645a5135206a62ff86fc2ef5cdc29120)
#12 pc 0000000000850a2c /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot-framework.oat (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+140)
#13 pc 0000000000858d28 /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot-framework.oat (com.android.internal.os.ZygoteInit.main+2232)
#14 pc 00000000002ca9e8 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 46df93bc978921840e5b428398c66a57)
#15 pc 000000000044ca04 /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+464) (BuildId: 46df93bc978921840e5b428398c66a57)
#16 pc 000000000062cf30 /apex/com.android.art/lib64/libart.so (art::JNI<true>::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+268) (BuildId: 46df93bc978921840e5b428398c66a57)
#17 pc 00000000000b5ac4 /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+120) (BuildId: 4412672799aae7dbc3e6195f95eaed8d)
#18 pc 00000000000c0fb4 /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+836) (BuildId: 4412672799aae7dbc3e6195f95eaed8d)
#19 pc 000000000000258c /system/bin/app_process64 (main+1336) (BuildId: b19398086311144b1336801485a886c8)
#20 pc 00000000000487dc /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+96) (BuildId: cd7952cb40d1a2deca6420c2da7910be)
Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x43006500630061 in tid 16333 (00.MyLibSuffolk), pid 16333 (00.MyLibSuffolk)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'google/bonito/bonito:12/SP2A.220505.006/8561491:user/release-keys'
Revision: 'MP1.0'
ABI: 'arm64'
Timestamp: 2022-08-11 17:13:30.619473420+0100
Process uptime: 0s
Cmdline: org.uk100.MyLibSuffolk
pid: 16333, tid: 16333, name: 00.MyLibSuffolk >>> org.uk100.MyLibSuffolk <<<
uid: 10357
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x43006500630061
x0 0000000000000001 x1 0000007fe2bce018 x2 0000000000000008 x3 0000006d6927f44c
x4 0000006d69b48f08 x5 0000007fe2bcdd18 x6 0000000000000000 x7 0000006d6600eed1
x8 da2c525800106d44 x9 da2c525800106d44 x10 0000000000000000 x11 00000000341555ad
x12 0000000000000018 x13 00001881965f95ca x14 000e2a21fca3b368 x15 0000000026adb05b
x16 0000006d6baa2b58 x17 00000070792a2250 x18 0000007089412000 x19 0000006e84e9fb30
x20 0000006e84e9fbd8 x21 0000000000000000 x22 0000006e74eebba0 x23 0043006500630061
x24 0000000000000070 x25 0000007088bde000 x26 0000000000000002 x27 0000000000000001
x28 0000000000000070 x29 0000007fe2bce200
lr 0000007081558908 sp 0000007fe2bce0b0 pc 0000007081558930 pst 0000000060000000
backtrace:
#00 pc 0000000000016930 /system/lib64/libutils.so (android::Looper::pollInner(int)+956) (BuildId: c1f7ebcd9c7d12c6107c4834ed56b006)
#01 pc 000000000001650c /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+112) (BuildId: c1f7ebcd9c7d12c6107c4834ed56b006)
#02 pc 0000000000157ba4 /system/lib64/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)+44) (BuildId: 4412672799aae7dbc3e6195f95eaed8d)
#03 pc 00000000001d044c /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot-framework.oat (art_jni_trampoline+108)
#04 pc 000000000052b2e8 /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot-framework.oat (android.os.MessageQueue.next+232)
#05 pc 00000000005288e4 /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot-framework.oat (android.os.Looper.loopOnce+100)
#06 pc 00000000005287e4 /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot-framework.oat (android.os.Looper.loop+516)
#07 pc 00000000003044dc /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot-framework.oat (android.app.ActivityThread.main+732)
#08 pc 00000000002ca9e8 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 46df93bc978921840e5b428398c66a57)
#09 pc 000000000035b5d0 /apex/com.android.art/lib64/libart.so (_jobject* art::InvokeMethod<(art::pointerSize)8>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jobject*, _jobject*, unsigned long)+608) (BuildId: 46df93bc978921840e5b428398c66a57)
#10 pc 000000000035b348 /apex/com.android.art/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject*, _jobject*, _jobjectArray*)+52) (BuildId: 46df93bc978921840e5b428398c66a57)
#11 pc 00000000000b2f74 /apex/com.android.art/javalib/arm64/boot.oat (art_jni_trampoline+132) (BuildId: ad9ee401645a5135206a62ff86fc2ef5cdc29120)
#12 pc 0000000000850a2c /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot-framework.oat (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+140)
#13 pc 0000000000858d28 /data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot-framework.oat (com.android.internal.os.ZygoteInit.main+2232)
#14 pc 00000000002ca9e8 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: 46df93bc978921840e5b428398c66a57)
#15 pc 000000000044ca04 /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::__va_list)+464) (BuildId: 46df93bc978921840e5b428398c66a57)
#16 pc 000000000062cf30 /apex/com.android.art/lib64/libart.so (art::JNI<true>::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::__va_list)+268) (BuildId: 46df93bc978921840e5b428398c66a57)
#17 pc 00000000000b5ac4 /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+120) (BuildId: 4412672799aae7dbc3e6195f95eaed8d)
#18 pc 00000000000c0fb4 /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vector<android::String8> const&, bool)+836) (BuildId: 4412672799aae7dbc3e6195f95eaed8d)
#19 pc 000000000000258c /system/bin/app_process64 (main+1336) (BuildId: b19398086311144b1336801485a886c8)
#20 pc 00000000000487dc /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+96) (BuildId: cd7952cb40d1a2deca6420c2da7910be)
--------- beginning of main
** Activity (main) Create, isFirst = false **
==== Started at 11:57:08 First-Time-Started: false ====
Cleared cache
4 Existing Accounts
** Activity (main) Resume **
4 Existing Accounts
Action: Accounts
Loading Page type HTML
HTML: Calling Sub ShowAccounts
===== Show Accounts (Normal) =======
======= 4 Accounts ===========
====== Webview1 Page Finished =========
URL: was file:///
File URL file:/// was not added to stack
** Activity (main) Pause, UserClosed = false **
Main Pause : 4 accounts
================= END OF ACTIVITY ================
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Looks like you are using FILE:// Uris from within a webview.

file://Uris are no longer allowed. Guess you need to use Fileprovider to access such files.
 
Upvote 0

Derek Johnson

Active Member
Licensed User
Longtime User
Are there any calls to DoEvents, Msgbox or any other modal dialog?
Yes there were. I'm going to compile a version of the app without any of these to see if the problem persists.

Since the crash happens before there are any log messages generated, including the built in ones, I'm not sure how the Doevents calls etc would have a chance to cause the crash, but I'll rule them out anyway. I have suspicions that the problem is being caused by the use of older libraries in particular the Sliding Menu Wrapper v1,10.
 
Upvote 0
Top