Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encrypted realm crashes on obfuscated build #966

Closed
tarasmorskyi-mediamonks opened this issue Aug 11, 2022 · 3 comments
Closed

Encrypted realm crashes on obfuscated build #966

tarasmorskyi-mediamonks opened this issue Aug 11, 2022 · 3 comments

Comments

@tarasmorskyi-mediamonks
Copy link

tarasmorskyi-mediamonks commented Aug 11, 2022

After implementing encryption the realm initialisation is crashing after second launch, which means first time when realm gets created everything is fine, but not on the next app launch. Encryption key is the same every time and everything works fine on test build. Would you be able to help with these logs?

{code}
2022-08-11 11:45:13.066 5679-5679/? A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 5679 (om.starbucks.ie), pid 5679 (om.starbucks.ie)
2022-08-11 11:45:13.099 5787-5787/? E/DEBUG: failed to read /proc/uptime: Permission denied
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: Build fingerprint: 'google/sdk_gphone64_arm64/emulator64_arm64:12/S2B2.211203.006/8015633:user/release-keys'
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: Revision: '0'
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: ABI: 'arm64'
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: Timestamp: 2022-08-11 11:45:13.099411069+0200
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: Process uptime: 0s
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: Cmdline: com.starbucks.ie
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: pid: 5679, tid: 5679, name: om.starbucks.ie >>> com.starbucks.ie <<<
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: uid: 10173
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: tagged_addr_ctrl: 0000000000000001
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: signal 6 (SIGABRT), code 1 (SI_QUEUE), fault addr -------
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: Abort message: 'JNI DETECTED ERROR IN APPLICATION: mid == null
in call to CallStaticObjectMethodV
from long io.realm.kotlin.internal.interop.realmcJNI.open_realm_with_scheduler(long, java.lang.Object)'
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: x0 0000000000000000 x1 000000000000162f x2 0000000000000006 x3 0000007fdf430aa0
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: x4 5151441f43445342 x5 5151441f43445342 x6 5151441f43445342 x7 7f7f7f7f7f7f7f7f
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: x8 00000000000000f0 x9 303a2df549afaf72 x10 0000000000000000 x11 ffffff80fffffbdf
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: x12 0000000000000001 x13 00000000000000f1 x14 0000007fdf42f8b0 x15 00000bdda929c835
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: x16 0000007d6996e050 x17 0000007d6994adb0 x18 0000007d6cf28000 x19 000000000000162f
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: x20 000000000000162f x21 00000000ffffffff x22 0000000000000011 x23 0000007a249f29c8
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: x24 0000007fdf430cb0 x25 0000007d6bf3f000 x26 0000007ac0e17000 x27 0000007fdf4313a8
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: x28 0000007fdf4312a0 x29 0000007fdf430b20
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: lr 0000007d698fdaa0 sp 0000007fdf430a80 pc 0000007d698fdacc pst 0000000000001000
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: backtrace:
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #00 pc 000000000004facc /apex/com.android.runtime/lib64/bionic/libc.so (abort+164) (BuildId: b2e84269f59e7b1658e3a470fd302458)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #1 pc 00000000006d7bb0 /apex/com.android.art/lib64/libart.so (art::Runtime::Abort(char const*)+668) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #2 pc 000000000001595c /apex/com.android.art/lib64/libbase.so (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_3::__invoke(char const*)+76) (BuildId: 2614b5e8c844b2fa09ddee50c74561f8)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #3 pc 0000000000014f8c /apex/com.android.art/lib64/libbase.so (android::base::LogMessage::~LogMessage()+364) (BuildId: 2614b5e8c844b2fa09ddee50c74561f8)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #4 pc 00000000003d6f4c /apex/com.android.art/lib64/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+2440) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #5 pc 00000000003d7830 /apex/com.android.art/lib64/libart.so (art::JNI::CallStaticObjectMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::___va_list)+2264) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #6 pc 0000000000274b1c /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/lib/arm64/libaa43bc.so
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #7 pc 0000000000274940 /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/lib/arm64/libaa43bc.so
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #8 pc 0000000000282834 /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/lib/arm64/libaa43bc.so
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #9 pc 00000000002d7644 /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #10 pc 000000000020988c /apex/com.android.art/lib64/libart.so (nterp_helper+1948) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #11 pc 0000000000d167b0 /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.ObjectWrapper.IPackageStatsObserver+0)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #12 pc 0000000000209124 /apex/com.android.art/lib64/libart.so (nterp_helper+52) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #13 pc 0000000000d1874a /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.PackageManagerWrapper.onGetStatsCompleted+66)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #14 pc 000000000020a044 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #15 pc 0000000000d186ee /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.PackageManagerWrapper.onGetStatsCompleted$default+10)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #16 pc 0000000000209124 /apex/com.android.art/lib64/libart.so (nterp_helper+52) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #17 pc 0000000000cfc53a /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.JsonUtils$IPackageStatsObserver$Stub.IPackageStatsObserver+26)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #18 pc 000000000020a044 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #19 pc 0000000000d85362 /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.encodeUrlSafeNoPadding$asInterface.IPackageStatsObserver+18)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #20 pc 00000000002cdd64 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #21 pc 00000000002f23d0 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+312) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #22 pc 00000000003ff868 /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+820) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #23 pc 00000000002c43ec /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+5380) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #24 pc 00000000002c8414 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #25 pc 0000000000d10402 /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.MessageManager$5.IPackageStatsObserver$Stub+70)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #26 pc 000000000027d748 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.1730130678407748380)+644) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #27 pc 000000000027c8f0 /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+1176) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #28 pc 00000000002d7778 /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #29 pc 0000000000209188 /apex/com.android.art/lib64/libart.so (nterp_helper+152) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #30 pc 0000000000d54e4a /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.allowsWebViewAuth$3$10.IPackageStatsObserver$Stub+382)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #31 pc 000000000020a044 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #32 pc 0000000000d54cb0 /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.allowsWebViewAuth$3$10.invoke+8)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #33 pc 000000000020ae64 /apex/com.android.art/lib64/libart.so (nterp_helper+7540) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #34 pc 0000000000447d36 /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.getLastLocation.IPackageStatsObserver$Stub+134)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #35 pc 000000000020a044 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #36 pc 0000000000e4064e /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.removeActivityUpdates.IPackageStatsObserver+10)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #37 pc 000000000020a044 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #38 pc 000000000043264a /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.getCachedAppInstanceId.b006300630063c0063c+34)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #39 pc 000000000020a044 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #40 pc 000000000041f004 /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.endAdUnitExposure.IPackageStatsObserver$Stub+16)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #41 pc 000000000020a044 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #42 pc 000000000041f19c /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.endAdUnitExposure.IPackageStatsObserver+88)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #43 pc 000000000020a044 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #44 pc 000000000041f348 /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.endAdUnitExposure.asInterface+300)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #45 pc 000000000020a044 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #46 pc 0000000000d563ca /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.allowsWebViewAuth$3$5.onGetStatsCompleted+110)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #47 pc 000000000020a044 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #48 pc 0000000000d56340 /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.allowsWebViewAuth$3$5.invoke+8)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #49 pc 000000000020ae64 /apex/com.android.art/lib64/libart.so (nterp_helper+7540) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #50 pc 0000000000447d36 /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.getLastLocation.IPackageStatsObserver$Stub+134)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #51 pc 000000000020a044 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #52 pc 000000000049621e /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.removeLocationUpdates.IPackageStatsObserver$Stub+18)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #53 pc 000000000020a044 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #54 pc 0000000000e41af0 /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.removeLocationUpdates$4.onGetStatsCompleted+28)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #55 pc 000000000020a044 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #56 pc 0000000000e41a94 /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.removeLocationUpdates$4.invoke+0)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #57 pc 000000000020ae64 /apex/com.android.art/lib64/libart.so (nterp_helper+7540) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #58 pc 000000000045cbe2 /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.getTestFlag.asInterface+22)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #59 pc 000000000020a044 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #60 pc 000000000049625c /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.removeLocationUpdates.IPackageStatsObserver+24)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #61 pc 000000000020a044 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #62 pc 0000000000432770 /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.getCachedAppInstanceId.IPackageStatsObserver$Stub+136)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #63 pc 000000000020a044 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #64 pc 0000000000432894 /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.getCachedAppInstanceId.b006300630063c0063c+4)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #65 pc 000000000020a044 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #66 pc 000000000053c14c /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.zzbn.IPackageStatsObserver$Stub+112)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #67 pc 000000000020a044 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #68 pc 000000000053be54 /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.zzbk.onGetStatsCompleted+4)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #69 pc 000000000020a044 /apex/com.android.art/lib64/libart.so (nterp_helper+3924) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #70 pc 000000000053c5f4 /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.zzbs.IPackageStatsObserver$Stub+40)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #71 pc 00000000002cdd64 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #72 pc 00000000002f23d0 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+312) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #73 pc 00000000003ff868 /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+820) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #74 pc 00000000003dfa48 /apex/com.android.art/lib64/libart.so (MterpInvokeInterface+4912) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #75 pc 00000000002c8614 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #76 pc 000000000053c26e /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.zzbp.IPackageStatsObserver$Stub+22)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #77 pc 000000000027d748 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.1730130678407748380)+644) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #78 pc 0000000000383478 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+148) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #79 pc 00000000003ffae0 /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+1452) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #80 pc 00000000007748cc /apex/com.android.art/lib64/libart.so (MterpInvokeStatic+3812) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #81 pc 00000000002c8594 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #82 pc 000000000044e5fc /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.getPayload.IPackageStatsObserver+20)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #83 pc 000000000027d748 /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.1730130678407748380)+644) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #84 pc 000000000027c8f0 /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+1176) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #85 pc 00000000002d7778 /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #86 pc 0000000000209188 /apex/com.android.art/lib64/libart.so (nterp_helper+152) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #87 pc 00000000001da956 /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (com.starbucks.emea.StarbucksApplication.onCreate+6)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #88 pc 00000000001e4f94 /system/framework/arm64/boot-framework.oat (android.app.Instrumentation.callApplicationOnCreate+52) (BuildId: 224582fb8eac71da3320761c53dc5b404f2836ac)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #89 pc 00000000002c7f28 /system/framework/arm64/boot-framework.oat (android.app.ActivityThread.handleBindApplication+5848) (BuildId: 224582fb8eac71da3320761c53dc5b404f2836ac)
2022-08-11 11:45:13.241 5787-5787/? A/DEBUG: #90 pc 00000000002bd228 /system/framework/arm64/boot-framework.oat (android.app.ActivityThread$H.handleMessage+7848) (BuildId: 224582fb8eac71da3320761c53dc5b404f2836ac)
2022-08-11 11:45:13.242 5787-5787/? A/DEBUG: #91 pc 00000000004f101c /system/framework/arm64/boot-framework.oat (android.os.Handler.dispatchMessage+188) (BuildId: 224582fb8eac71da3320761c53dc5b404f2836ac)
2022-08-11 11:45:13.242 5787-5787/? A/DEBUG: #92 pc 00000000004f3e4c /system/framework/arm64/boot-framework.oat (android.os.Looper.loopOnce+1036) (BuildId: 224582fb8eac71da3320761c53dc5b404f2836ac)
2022-08-11 11:45:13.242 5787-5787/? A/DEBUG: #93 pc 00000000004f39a4 /system/framework/arm64/boot-framework.oat (android.os.Looper.loop+516) (BuildId: 224582fb8eac71da3320761c53dc5b404f2836ac)
2022-08-11 11:45:13.242 5787-5787/? A/DEBUG: #94 pc 00000000002cfc4c /system/framework/arm64/boot-framework.oat (android.app.ActivityThread.main+732) (BuildId: 224582fb8eac71da3320761c53dc5b404f2836ac)
2022-08-11 11:45:13.242 5787-5787/? A/DEBUG: #95 pc 00000000002cdfe8 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.242 5787-5787/? A/DEBUG: #96 pc 0000000000362f0c /apex/com.android.art/lib64/libart.so (_jobject* art::InvokeMethod<(art::PointerSize)8>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject**, jobject**, jobject*, unsigned long)+608) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.242 5787-5787/? A/DEBUG: #97 pc 0000000000362c84 /apex/com.android.art/lib64/libart.so (art::Method_invoke(_JNIEnv*, _jobject**, jobject**, jobjectArray*)+52) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.242 5787-5787/? A/DEBUG: #98 pc 00000000000b2f74 /apex/com.android.art/javalib/arm64/boot.oat (art_jni_trampoline+132) (BuildId: 64e82acb1c8b0ce1e7555c9bf3f660e0aafd908c)
2022-08-11 11:45:13.242 5787-5787/? A/DEBUG: #99 pc 000000000081a73c /system/framework/arm64/boot-framework.oat (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run+140) (BuildId: 224582fb8eac71da3320761c53dc5b404f2836ac)
2022-08-11 11:45:13.242 5787-5787/? A/DEBUG: #100 pc 0000000000822a08 /system/framework/arm64/boot-framework.oat (com.android.internal.os.ZygoteInit.main+2232) (BuildId: 224582fb8eac71da3320761c53dc5b404f2836ac)
2022-08-11 11:45:13.242 5787-5787/? A/DEBUG: #101 pc 00000000002cdfe8 /apex/com.android.art/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.242 5787-5787/? A/DEBUG: #102 pc 000000000045509c /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeWithVarArgs<_jmethodID*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, std::___va_list)+464) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.242 5787-5787/? A/DEBUG: #103 pc 0000000000633778 /apex/com.android.art/lib64/libart.so (art::JNI::CallStaticVoidMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::___va_list)+268) (BuildId: adb75d6f792faa24b1bc8cf512fb112c)
2022-08-11 11:45:13.242 5787-5787/? A/DEBUG: #104 pc 00000000000b5ac4 /system/lib64/libandroid_runtime.so (_JNIEnv::CallStaticVoidMethod(_jclass*, _jmethodID*, ...)+120) (BuildId: 17b3f67c05c874e7b26f86b2108f4ac9)
2022-08-11 11:45:13.242 5787-5787/? A/DEBUG: #105 pc 00000000000c0fb4 /system/lib64/libandroid_runtime.so (android::AndroidRuntime::start(char const*, android::Vectorandroid::String8 const&, bool)+836) (BuildId: 17b3f67c05c874e7b26f86b2108f4ac9)
2022-08-11 11:45:13.242 5787-5787/? A/DEBUG: #106 pc 000000000000258c /system/bin/app_process64 (main+1336) (BuildId: c1694cb88d614eeb462c75478acba9bd)
2022-08-11 11:45:13.242 5787-5787/? A/DEBUG: #107 pc 00000000000487dc /apex/com.android.runtime/lib64/bionic/libc.so (__libc_init+96) (BuildId: b2e84269f59e7b1658e3a470fd302458)
2022-08-11 11:45:13.246 379-947/? E/SurfaceFlinger: Only WindowManager is allowed to use eEarlyWakeup[Start|End] flags
2022-08-11 11:45:13.250 242-242/? E/tombstoned: Tombstone written to: tombstone_01
2022-08-11 11:45:14.302 5800-5800/? E/om.starbucks.i: Not starting debugger since process cannot load the jdwp agent.
2022-08-11 11:45:14.394 5800-5875/? E/WM-WorkerWrapper: Didn't find WorkSpec for id c3c05346-72fc-4d5f-bf58-a5f26f5b04e1
2022-08-11 11:45:14.474 5800-5800/? A/om.starbucks.i: java_vm_ext.cc:579] JNI DETECTED ERROR IN APPLICATION: mid == null
java_vm_ext.cc:579] in call to CallStaticObjectMethodV
java_vm_ext.cc:579] from long io.realm.kotlin.internal.interop.realmcJNI.open_realm_with_scheduler(long, java.lang.Object)
2022-08-11 11:45:14.549 5800-5800/? A/om.starbucks.i: runtime.cc:669] Runtime aborting...
runtime.cc:669] Dumping all threads without mutator lock held
runtime.cc:669] All threads:
runtime.cc:669] DALVIK THREADS (70):
runtime.cc:669] "main" prio=5 tid=1 Runnable
runtime.cc:669] | group="" sCount=0 ucsCount=0 flags=0 obj=0x731cbea8 self=0xb400007c3401f010
runtime.cc:669] | sysTid=5800 nice=0 cgrp=background sched=0/0 handle=0x7d6d3454f8
runtime.cc:669] | state=R schedstat=( 164695659 8756794 183 ) utm=11 stm=5 core=2 HZ=100
runtime.cc:669] | stack=0x7fdec38000-0x7fdec3a000 stackSize=8188KB
runtime.cc:669] | held mutexes= "abort lock" "mutator lock"(shared held)
runtime.cc:669] native: #00 pc 0000000000460608 /apex/com.android.art/lib64/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits >&, int, BacktraceMap*, char const*, art::ArtMethod*, void*, bool)+120)
runtime.cc:669] native: #1 pc 00000000006ffec4 /apex/com.android.art/lib64/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits >&, bool, BacktraceMap*, bool) const+252)
runtime.cc:669] native: #2 pc 000000000070799c /apex/com.android.art/lib64/libart.so (art::DumpCheckpoint::Run(art::Thread*)+304)
runtime.cc:669] native: #3 pc 000000000031b7dc /apex/com.android.art/lib64/libart.so (art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*)+628)
runtime.cc:669] native: #4 pc 00000000006e6ea8 /apex/com.android.art/lib64/libart.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits >&, bool)+476)
runtime.cc:669] native: #5 pc 00000000006d81f4 /apex/com.android.art/lib64/libart.so (art::AbortState::Dump(std::__1::basic_ostream<char, std::__1::char_traits >&) const+204)
runtime.cc:669] native: #6 pc 00000000006d7f9c /apex/com.android.art/lib64/libart.so (art::Runtime::Abort(char const*)+1672)
runtime.cc:669] native: #7 pc 000000000001595c /apex/com.android.art/lib64/libbase.so (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_3::__invoke(char const*)+76)
runtime.cc:669] native: #8 pc 0000000000014f8c /apex/com.android.art/lib64/libbase.so (android::base::LogMessage::~LogMessage()+364)
runtime.cc:669] native: #9 pc 00000000003d6f4c /apex/com.android.art/lib64/libart.so (art::JavaVMExt::JniAbort(char const*, char const*)+2440)
runtime.cc:669] native: #10 pc 00000000003d7830 /apex/com.android.art/lib64/libart.so (art::JNI::CallStaticObjectMethodV(_JNIEnv*, _jclass*, _jmethodID*, std::___va_list)+2264)
runtime.cc:669] native: #11 pc 0000000000274b1c /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/lib/arm64/libaa43bc.so (???)
runtime.cc:669] native: #12 pc 0000000000274940 /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/lib/arm64/libaa43bc.so (???)
runtime.cc:669] native: #13 pc 0000000000282834 /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/lib/arm64/libaa43bc.so (???)
runtime.cc:669] native: #14 pc 00000000002d7644 /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+148)
runtime.cc:669] native: #15 pc 000000000020988c /apex/com.android.art/lib64/libart.so (nterp_helper+1948)
runtime.cc:669] native: #16 pc 0000000000d167b0 /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.ObjectWrapper.IPackageStatsObserver)
runtime.cc:669] native: #17 pc 0000000000209124 /apex/com.android.art/lib64/libart.so (nterp_helper+52)
runtime.cc:669] native: #18 pc 0000000000d1874a /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.PackageManagerWrapper.onGetStatsCompleted+66)
runtime.cc:669] native: #19 pc 000000000020a044 /apex/com.android.art/lib64/libart.so (nterp_helper+3924)
2022-08-11 11:45:14.549 5800-5800/? A/om.starbucks.i: runtime.cc:669] native: #20 pc 0000000000d186ee /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.PackageManagerWrapper.onGetStatsCompleted$default+10)
runtime.cc:669] native: #21 pc 0000000000209124 /apex/com.android.art/lib64/libart.so (nterp_helper+52)
runtime.cc:669] native: #22 pc 0000000000cfc53a /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.JsonUtils$IPackageStatsObserver$Stub.IPackageStatsObserver+26)
runtime.cc:669] native: #23 pc 000000000020a044 /apex/com.android.art/lib64/libart.so (nterp_helper+3924)
runtime.cc:669] native: #24 pc 0000000000d85362 /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.encodeUrlSafeNoPadding$asInterface.IPackageStatsObserver+18)
runtime.cc:669] native: #25 pc 00000000002cdd64 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+548)
runtime.cc:669] native: #26 pc 00000000002f23d0 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+312)
runtime.cc:669] native: #27 pc 00000000003ff868 /apex/com.android.art/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+820)
runtime.cc:669] native: #28 pc 00000000002c43ec /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+5380)
runtime.cc:669] native: #29 pc 00000000002c8414 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+20)
runtime.cc:669] native: #30 pc 0000000000d10402 /data/app/~~a6k1WYTzvLeqnd54scgXhg==/com.starbucks.ie-BNaJehmd2Kf2Pj9D-6C4XA==/oat/arm64/base.vdex (o.MessageManager$5.IPackageStatsObserver$Stub+70)
runtime.

@cmelchior
Copy link
Contributor

Hi @tarasmorskyi-mediamonks Thank you for this.

JNI DETECTED ERROR IN APPLICATION: mid == null
        in call to CallStaticObjectMethodV

Does indicate that it cannot find a specific method, which could point to a wrong Proguard config.
I'm just surprised it only fails on the 2nd run 🤔

@rorbech
Copy link
Contributor

rorbech commented Aug 11, 2022

The reason why it only shows in second run is probably that the code path is different when the error occurs and that the symbols are only tried resolved on the error path. I fixed something similar in #942. @tarasmorskyi-mediamonks are you running the latest 1.0.2 release?

@tarasmorskyi-mediamonks
Copy link
Author

@rorbech indeed fixed in 1.0.2. I was on 1.0.0. Thanks

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants