You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
PlayStore reported this native crash for kiwix-app, and some custom apps as well e.g. wikivoyage, wikimed, etc. There are some occurrence in all these applications.
Expected behavior
It should not crash the application.
Steps to reproduce the behavior:
No reproducing steps are available. But, we have a PR #3937 where @CalebKL facing this issue when we are creating the new zimFileReader with a different zimFile(see #3937 (comment)). This issue is occurring here
************************************************
pid:0, tid:9522>>> org.kiwix.kiwixcustomwikivoyage <<<
backtrace:
#00 pc 0x0000000000010630/data/app/~~ZWq4a5wFIOiLihQUR4TxQg==/org.kiwix.kiwixcustomwikivoyage-1eeF-UmrHGT7jjv0YYjmXw==/split_config.arm64_v8a.apk!libzim_wrapper.so (Java_org_kiwix_libzim_Archive_getEntryByPath__Ljava_lang_String_2+120) (BuildId: bb96395f5068f1755a93f5daa08b7a934333f07e)
#01 pc 0x000000000002c530/data/app/~~ZWq4a5wFIOiLihQUR4TxQg==/org.kiwix.kiwixcustomwikivoyage-1eeF-UmrHGT7jjv0YYjmXw==/oat/arm64/base.odex (art_jni_trampoline+128)
#02 pc 0x0000000002007034/memfd:jit-cache (org.kiwix.kiwixmobile.core.reader.ZimFileReader.getItem+420)
#03 pc 0x000000000200232c/memfd:jit-cache (org.kiwix.kiwixmobile.core.reader.ZimFileReader$$ExternalSyntheticLambda0.run+524)
#04 pc 0x00000000005b9cd4/apex/com.android.art/lib64/libart.so (nterp_helper+7636)
#05 pc 0x00000000001d0e78/data/app/~~ZWq4a5wFIOiLihQUR4TxQg==/org.kiwix.kiwixcustomwikivoyage-1eeF-UmrHGT7jjv0YYjmXw==/base.apk (io.reactivex.internal.operators.completable.CompletableFromAction.subscribeActual+24)
#06 pc 0x00000000005b8e54/apex/com.android.art/lib64/libart.so (nterp_helper+3924)
#07 pc 0x00000000001cea50/data/app/~~ZWq4a5wFIOiLihQUR4TxQg==/org.kiwix.kiwixcustomwikivoyage-1eeF-UmrHGT7jjv0YYjmXw==/base.apk (io.reactivex.Completable.subscribe+4)
#08 pc 0x00000000005b8e54/apex/com.android.art/lib64/libart.so (nterp_helper+3924)
#09 pc 0x00000000001d0f80/data/app/~~ZWq4a5wFIOiLihQUR4TxQg==/org.kiwix.kiwixcustomwikivoyage-1eeF-UmrHGT7jjv0YYjmXw==/base.apk (io.reactivex.internal.operators.completable.CompletableSubscribeOn$SubscribeOnObserver.run+4)
#10 pc 0x00000000005b9c74/apex/com.android.art/lib64/libart.so (nterp_helper+7540)
#11 pc 0x00000000001cee6a/data/app/~~ZWq4a5wFIOiLihQUR4TxQg==/org.kiwix.kiwixcustomwikivoyage-1eeF-UmrHGT7jjv0YYjmXw==/base.apk (io.reactivex.Scheduler$DisposeTask.run+18)
#12 pc 0x00000000005b9c74/apex/com.android.art/lib64/libart.so (nterp_helper+7540)
#13 pc 0x00000000001d963e/data/app/~~ZWq4a5wFIOiLihQUR4TxQg==/org.kiwix.kiwixcustomwikivoyage-1eeF-UmrHGT7jjv0YYjmXw==/base.apk (io.reactivex.internal.schedulers.ScheduledRunnable.run+42)
#14 pc 0x00000000005b8e54/apex/com.android.art/lib64/libart.so (nterp_helper+3924)
#15 pc 0x00000000001d94e0/data/app/~~ZWq4a5wFIOiLihQUR4TxQg==/org.kiwix.kiwixcustomwikivoyage-1eeF-UmrHGT7jjv0YYjmXw==/base.apk (io.reactivex.internal.schedulers.ScheduledRunnable.call)
#16 pc 0x000000000057b574/data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (java.util.concurrent.FutureTask.run+180)
#17 pc 0x000000000061b5e8/data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run+136)
#18 pc 0x00000000005db70c/data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (java.util.concurrent.ThreadPoolExecutor.runWorker+796)
#19 pc 0x00000000005d8810/data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (java.util.concurrent.ThreadPoolExecutor$Worker.run+64)
#20 pc 0x0000000000484088/data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (java.lang.Thread.run+72)
#21 pc 0x000000000033a7a4/apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+612)
#22 pc 0x000000000023a01c/apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+144)
#23 pc 0x0000000000539054/apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1600)
#24 pc 0x0000000000104fc4/apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208)
#25 pc 0x000000000009e764/apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68)
************************************************
pid:0, tid:6158>>> org.kiwix.kiwixmobile <<<
backtrace:
#00 pc 0x0000000000010630/data/app/~~XfkD8GunLX5B2CTJlo4Vog==/org.kiwix.kiwixmobile-8Um864IImUF4SI8brnfITw==/split_config.arm64_v8a.apk!libzim_wrapper.so (Java_org_kiwix_libzim_Archive_getEntryByPath__Ljava_lang_String_2+120) (BuildId: 6633925cfdce17aa0079498777317a589d32289b)
#01 pc 0x0000000000123530/data/app/~~XfkD8GunLX5B2CTJlo4Vog==/org.kiwix.kiwixmobile-8Um864IImUF4SI8brnfITw==/oat/arm64/base.odex (art_jni_trampoline+128)
#02 pc 0x00000000002b3cfc/data/app/~~XfkD8GunLX5B2CTJlo4Vog==/org.kiwix.kiwixmobile-8Um864IImUF4SI8brnfITw==/oat/arm64/base.odex (org.kiwix.kiwixmobile.core.reader.ZimFileReader.getItem+700)
#03 pc 0x0000000000406c34/data/app/~~XfkD8GunLX5B2CTJlo4Vog==/org.kiwix.kiwixmobile-8Um864IImUF4SI8brnfITw==/oat/arm64/base.odex (org.kiwix.kiwixmobile.core.reader.ZimFileReader$$ExternalSyntheticLambda0.run+308)
#04 pc 0x00000000003b6fe0/data/app/~~XfkD8GunLX5B2CTJlo4Vog==/org.kiwix.kiwixmobile-8Um864IImUF4SI8brnfITw==/oat/arm64/base.odex (io.reactivex.internal.operators.completable.CompletableFromAction.subscribeActual+224)
#05 pc 0x0000000000243048/data/app/~~XfkD8GunLX5B2CTJlo4Vog==/org.kiwix.kiwixmobile-8Um864IImUF4SI8brnfITw==/oat/arm64/base.odex (io.reactivex.Completable.subscribe+56)
#06 pc 0x00000000003b75d0/data/app/~~XfkD8GunLX5B2CTJlo4Vog==/org.kiwix.kiwixmobile-8Um864IImUF4SI8brnfITw==/oat/arm64/base.odex (io.reactivex.internal.operators.completable.CompletableSubscribeOn$SubscribeOnObserver.run+64)
#07 pc 0x00000000003b1d80/data/app/~~XfkD8GunLX5B2CTJlo4Vog==/org.kiwix.kiwixmobile-8Um864IImUF4SI8brnfITw==/oat/arm64/base.odex (io.reactivex.Scheduler$DisposeTask.run+96)
#08 pc 0x00000000003b9c8c/data/app/~~XfkD8GunLX5B2CTJlo4Vog==/org.kiwix.kiwixmobile-8Um864IImUF4SI8brnfITw==/oat/arm64/base.odex (io.reactivex.internal.schedulers.ScheduledRunnable.run+508)
#09 pc 0x00000000003b9414/data/app/~~XfkD8GunLX5B2CTJlo4Vog==/org.kiwix.kiwixmobile-8Um864IImUF4SI8brnfITw==/oat/arm64/base.odex (io.reactivex.internal.schedulers.ScheduledRunnable.call+36)
#10 pc 0x00000000005b49b4/data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (java.util.concurrent.FutureTask.run+180)
#11 pc 0x000000000065d6e8/data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run+136)
#12 pc 0x0000000000618ddc/data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (java.util.concurrent.ThreadPoolExecutor.runWorker+796)
#13 pc 0x0000000000615860/data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (java.util.concurrent.ThreadPoolExecutor$Worker.run+64)
#14 pc 0x00000000004a3208/data/misc/apexdata/com.android.art/dalvik-cache/arm64/boot.oat (java.lang.Thread.run+72)
#15 pc 0x000000000033a7a4/apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+612)
#16 pc 0x000000000023a01c/apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+144)
#17 pc 0x0000000000539054/apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1600)
#18 pc 0x0000000000104fc4/apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208)
#19 pc 0x000000000009e764/apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+68)
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
pid: 0, tid: 19622 >>> org.kiwix.kiwixmobile <<<
backtrace:
#00 pc 0x0000000000010630 /data/app/~~LMCz14mH1-Ckp0KmqDPclA==/org.kiwix.kiwixmobile-z0FDyYTCOYItpbhReKfOjg==/split_config.arm64_v8a.apk!libzim_wrapper.so (Java_org_kiwix_libzim_Archive_getEntryByPath__Ljava_lang_String_2+120) (BuildId: 6633925cfdce17aa0079498777317a589d32289b)
#01 pc 0x00000000000a4420 /data/app/~~LMCz14mH1-Ckp0KmqDPclA==/org.kiwix.kiwixmobile-z0FDyYTCOYItpbhReKfOjg==/oat/arm64/base.odex (art_jni_trampoline+128)
#02 pc 0x00000000005b8eb0 /apex/com.android.art/lib64/libart.so (nterp_helper+4016)
#03 pc 0x000000000025e460 /data/app/~~LMCz14mH1-Ckp0KmqDPclA==/org.kiwix.kiwixmobile-z0FDyYTCOYItpbhReKfOjg==/base.apk (org.kiwix.kiwixmobile.core.reader.ZimFileReader.getItem+84)
#04 pc 0x0000000002001410 /memfd:jit-cache (org.kiwix.kiwixmobile.core.reader.ZimReaderContainer.load+1280)
#05 pc 0x00000000005b8eb0 /apex/com.android.art/lib64/libart.so (nterp_helper+4016)
#06 pc 0x00000000002537fa /data/app/~~LMCz14mH1-Ckp0KmqDPclA==/org.kiwix.kiwixmobile-z0FDyYTCOYItpbhReKfOjg==/base.apk (org.kiwix.kiwixmobile.core.main.CoreWebViewClient.shouldInterceptRequest+94)
#07 pc 0x00000000005b8e54 /apex/com.android.art/lib64/libart.so (nterp_helper+3924)
#08 pc 0x0000000000098548 /data/app/~~FRN2LmSd2MM0bUfZ6WxOiQ==/com.google.android.webview-abqVvjuBUpnPfboRKXR72A==/base.apk (WV.z6.a+164)
#09 pc 0x00000000005b8e54 /apex/com.android.art/lib64/libart.so (nterp_helper+3924)
#10 pc 0x0000000000188264 /data/app/~~FRN2LmSd2MM0bUfZ6WxOiQ==/com.google.android.webview-abqVvjuBUpnPfboRKXR72A==/base.apk (org.chromium.android_webview.AwContentsBackgroundThreadClient.shouldInterceptRequestFromNative+28)
#11 pc 0x000000000033a7a4 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+612)
#12 pc 0x00000000003388ec /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithVarArgs<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, std::__va_list)+772)
#13 pc 0x0000000000559448 /apex/com.android.art/lib64/libart.so (art::JNI<false>::CallObjectMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list)+196)
#14 pc 0x000000000627bbb0 /data/app/~~ceUTIqZXrubUSXI-9Z8bsA==/com.google.android.trichromelibrary_647813433-FGc108jUnT3NKBLM-by9ZQ==/base.apk!libmonochrome_64.so (BuildId: 3b01474b0b136f5cad3e663eb096868a1db81f42)
#15 pc 0x00000000026aeac0 /data/app/~~ceUTIqZXrubUSXI-9Z8bsA==/com.google.android.trichromelibrary_647813433-FGc108jUnT3NKBLM-by9ZQ==/base.apk!libmonochrome_64.so (BuildId: 3b01474b0b136f5cad3e663eb096868a1db81f42)
#16 pc 0x00000000026afdd0 /data/app/~~ceUTIqZXrubUSXI-9Z8bsA==/com.google.android.trichromelibrary_647813433-FGc108jUnT3NKBLM-by9ZQ==/base.apk!libmonochrome_64.so (BuildId: 3b01474b0b136f5cad3e663eb096868a1db81f42)
#17 pc 0x00000000026afe78 /data/app/~~ceUTIqZXrubUSXI-9Z8bsA==/com.google.android.trichromelibrary_647813433-FGc108jUnT3NKBLM-by9ZQ==/base.apk!libmonochrome_64.so (BuildId: 3b01474b0b136f5cad3e663eb096868a1db81f42)
#18 pc 0x00000000057e494c /data/app/~~ceUTIqZXrubUSXI-9Z8bsA==/com.google.android.trichromelibrary_647813433-FGc108jUnT3NKBLM-by9ZQ==/base.apk!libmonochrome_64.so (BuildId: 3b01474b0b136f5cad3e663eb096868a1db81f42)
#19 pc 0x00000000057e4904 /data/app/~~ceUTIqZXrubUSXI-9Z8bsA==/com.google.android.trichromelibrary_647813433-FGc108jUnT3NKBLM-by9ZQ==/base.apk!libmonochrome_64.so (BuildId: 3b01474b0b136f5cad3e663eb096868a1db81f42)
#20 pc 0x0000000006343158 /data/app/~~ceUTIqZXrubUSXI-9Z8bsA==/com.google.android.trichromelibrary_647813433-FGc108jUnT3NKBLM-by9ZQ==/base.apk!libmonochrome_64.so (BuildId: 3b01474b0b136f5cad3e663eb096868a1db81f42)
#21 pc 0x0000000006342194 /data/app/~~ceUTIqZXrubUSXI-9Z8bsA==/com.google.android.trichromelibrary_647813433-FGc108jUnT3NKBLM-by9ZQ==/base.apk!libmonochrome_64.so (BuildId: 3b01474b0b136f5cad3e663eb096868a1db81f42)
#22 pc 0x00000000063454a0 /data/app/~~ceUTIqZXrubUSXI-9Z8bsA==/com.google.android.trichromelibrary_647813433-FGc108jUnT3NKBLM-by9ZQ==/base.apk!libmonochrome_64.so (BuildId: 3b01474b0b136f5cad3e663eb096868a1db81f42)
#23 pc 0x000000000633d944 /data/app/~~ceUTIqZXrubUSXI-9Z8bsA==/com.google.android.trichromelibrary_647813433-FGc108jUnT3NKBLM-by9ZQ==/base.apk!libmonochrome_64.so (BuildId: 3b01474b0b136f5cad3e663eb096868a1db81f42)
#24 pc 0x000000000633d85c /data/app/~~ceUTIqZXrubUSXI-9Z8bsA==/com.google.android.trichromelibrary_647813433-FGc108jUnT3NKBLM-by9ZQ==/base.apk!libmonochrome_64.so (BuildId: 3b01474b0b136f5cad3e663eb096868a1db81f42)
#25 pc 0x00000000062c068c /data/app/~~ceUTIqZXrubUSXI-9Z8bsA==/com.google.android.trichromelibrary_647813433-FGc108jUnT3NKBLM-by9ZQ==/base.apk!libmonochrome_64.so (BuildId: 3b01474b0b136f5cad3e663eb096868a1db81f42)
#26 pc 0x00000000000be888 /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+208)
#27 pc 0x000000000005b370 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)
Edited
In the latest java-libkiwix we have more logs, it showing null pointer dereference error.
--------- beginning of crash
10-2107:14:15.7291154611698F libc :Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0in tid 11698 (DefaultDispatch), pid 11546 (wix.kiwixmobile)
10-2107:14:15.7871176211762FDEBUG:************************************************10-2107:14:15.7871176211762FDEBUG:Build fingerprint:'Android/sdk_phone_x86_64/generic_x86_64:11/RSR1.210722.013.A2/10067904:userdebug/test-keys'10-2107:14:15.7871176211762FDEBUG:Revision:'0'10-2107:14:15.7871176211762FDEBUG:ABI:'x86_64'10-2107:14:15.7871176211762FDEBUG:Timestamp:2024-10-2107:14:15+000010-2107:14:15.7871176211762FDEBUG: pid:11546, tid:11698, name:DefaultDispatch>>> org.kiwix.kiwixmobile <<<10-2107:14:15.7871176211762FDEBUG: uid:1013010-2107:14:15.7871176211762FDEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x010-2107:14:15.7871176211762FDEBUG:Cause:null pointer dereference
10-2107:14:15.7871176211762FDEBUG: rax 0000000000000000 rbx 000072f77354f9d0 rcx 000072f7935cfa50 rdx 000000000000000010-2107:14:15.7871176211762FDEBUG: r8 000072f6c433b348 r9 0000000000000006 r10 000072f7199ed003 r11 000072fa07979048
10-2107:14:15.7871176211762FDEBUG: r12 000072f6c433b488 r13 000072f8335dcd50 r14 000072f6c433b484 r15 000072f6d0b8d5a0
10-2107:14:15.7871176211762FDEBUG: rdi 000072f6c433b350 rsi 000072f6c433b360
10-2107:14:15.7871176211762FDEBUG: rbp 000072f6c433b490 rsp 000072f6c433b3f0 rip 000072f6d488fffe
10-2107:14:15.8971154611546ESEARCH_RESULT:Cancelled the previous job StandaloneCoroutine was cancelled
10-2107:14:15.8971176211762FDEBUG: backtrace:10-2107:14:15.8971176211762FDEBUG: #00 pc 000000000000fffe /data/app/~~pKKiDHI0Z-dobzA2RUiTXg==/org.kiwix.kiwixmobile-yr3UR3PFZZmURpgco4Ns3A==/base.apk!libzim_wrapper.so (offset 0x65ad000) (Java_org_kiwix_libzim_Archive_getEntryByPath__Ljava_lang_String_2+94) (BuildId: c1ca9c45d87c97e8151f68367e0b8dc5be5e5ae6)
10-2107:14:15.8971176211762FDEBUG: #01 pc 00000000001840c7 /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+215) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8971176211762FDEBUG: #02 pc 0000000000178cb4 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+756) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8971176211762FDEBUG: #03 pc 000000000020ba92 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+242) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8971176211762FDEBUG: #04 pc 00000000003a7ad5 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+357) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8971176211762FDEBUG: #05 pc 000000000039c414 /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*)+1252) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8971176211762FDEBUG: #06 pc 000000000078a882 /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+1026) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8971176211762FDEBUG: #07 pc 0000000000162f99 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+25) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8971176211762FDEBUG: #08 pc 0000000000007408 [anon:dalvik-classes13.dex extracted in memory from /data/app/~~pKKiDHI0Z-dobzA2RUiTXg==/org.kiwix.kiwixmobile-yr3UR3PFZZmURpgco4Ns3A==/base.apk!classes13.dex] (org.kiwix.kiwixmobile.core.reader.ZimFileReader.getItem+88)
10-2107:14:15.8971176211762FDEBUG: #09 pc 0000000000392b7f /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.13122177071831748680)+335) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8971176211762FDEBUG: #10 pc 000000000039b8c8 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+200) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8971176211762FDEBUG: #11 pc 000000000039c3f9 /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*)+1225) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8971176211762FDEBUG: #12 pc 000000000078a882 /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+1026) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8971176211762FDEBUG: #13 pc 0000000000162f99 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+25) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8971176211762FDEBUG: #14 pc 00000000000063a4 [anon:dalvik-classes13.dex extracted in memory from /data/app/~~pKKiDHI0Z-dobzA2RUiTXg==/org.kiwix.kiwixmobile-yr3UR3PFZZmURpgco4Ns3A==/base.apk!classes13.dex] (org.kiwix.kiwixmobile.core.reader.ZimFileReader.loadContent+8)
10-2107:14:15.8971176211762FDEBUG: #15 pc 0000000000392b7f /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.13122177071831748680)+335) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8971176211762FDEBUG: #16 pc 000000000039b8c8 /apex/com.android.art/lib64/libart.so (art::interpreter::ArtInterpreterToInterpreterBridge(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame*, art::JValue*)+200) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8981176211762FDEBUG: #17 pc 000000000039c3f9 /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*)+1225) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8981176211762FDEBUG: #18 pc 000000000078d5b0 /apex/com.android.art/lib64/libart.so (MterpInvokeDirect+688) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8981176211762FDEBUG: #19 pc 0000000000163099/apex/com.android.art/lib64/libart.so (mterp_op_invoke_direct+25) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8981176211762FDEBUG: #20 pc 00000000000062f6 [anon:dalvik-classes13.dex extracted in memory from /data/app/~~pKKiDHI0Z-dobzA2RUiTXg==/org.kiwix.kiwixmobile-yr3UR3PFZZmURpgco4Ns3A==/base.apk!classes13.dex] (org.kiwix.kiwixmobile.core.reader.ZimFileReader.access$loadContent+18)
10-2107:14:15.8981176211762FDEBUG: #21 pc 0000000000392b7f /apex/com.android.art/lib64/libart.so (art::interpreter::Execute(art::Thread*, art::CodeItemDataAccessor const&, art::ShadowFrame&, art::JValue, bool, bool) (.llvm.13122177071831748680)+335) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8981176211762FDEBUG: #22 pc 00000000007765af /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+1103) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8981176211762FDEBUG: #23 pc 000000000018424c /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+140) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8981176211762FDEBUG: #24 pc 000000000017080a /apex/com.android.art/lib64/libart.so (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8981176211762FDEBUG: #25 pc 00000000000055ea [anon:dalvik-classes13.dex extracted in memory from /data/app/~~pKKiDHI0Z-dobzA2RUiTXg==/org.kiwix.kiwixmobile-yr3UR3PFZZmURpgco4Ns3A==/base.apk!classes13.dex] (org.kiwix.kiwixmobile.core.reader.ZimFileReader$load$2.invokeSuspend+502)
10-2107:14:15.8981176211762FDEBUG: #26 pc 00000000021ba27e /memfd:jit-cache (deleted) (offset 0x2000000) (kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith+430)
10-2107:14:15.8981176211762FDEBUG: #27 pc 000000000213d570 /memfd:jit-cache (deleted) (offset 0x2000000) (kotlinx.coroutines.DispatchedTask.run+1904)
10-2107:14:15.8981176211762FDEBUG: #28 pc 0000000000171f7a /apex/com.android.art/lib64/libart.so (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8981176211762FDEBUG: #29 pc 00000000004b850c [anon:dalvik-classes30.dex extracted in memory from /data/app/~~pKKiDHI0Z-dobzA2RUiTXg==/org.kiwix.kiwixmobile-yr3UR3PFZZmURpgco4Ns3A==/base.apk!classes30.dex] (kotlinx.coroutines.internal.LimitedDispatcher$Worker.run+32)
10-2107:14:15.8981176211762FDEBUG: #30 pc 00000000001718ea /apex/com.android.art/lib64/libart.so (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8981176211762FDEBUG: #31 pc 00000000004d295e [anon:dalvik-classes30.dex extracted in memory from /data/app/~~pKKiDHI0Z-dobzA2RUiTXg==/org.kiwix.kiwixmobile-yr3UR3PFZZmURpgco4Ns3A==/base.apk!classes30.dex] (kotlinx.coroutines.scheduling.TaskImpl.run+18)
10-2107:14:15.8981176211762FDEBUG: #32 pc 0000000000170d5d /apex/com.android.art/lib64/libart.so (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8981176211762FDEBUG: #33 pc 00000000004d0e46 [anon:dalvik-classes30.dex extracted in memory from /data/app/~~pKKiDHI0Z-dobzA2RUiTXg==/org.kiwix.kiwixmobile-yr3UR3PFZZmURpgco4Ns3A==/base.apk!classes30.dex] (kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely+18)
10-2107:14:15.8981176211762FDEBUG: #34 pc 0000000000170d5d /apex/com.android.art/lib64/libart.so (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8981176211762FDEBUG: #35 pc 00000000004cec72 [anon:dalvik-classes30.dex extracted in memory from /data/app/~~pKKiDHI0Z-dobzA2RUiTXg==/org.kiwix.kiwixmobile-yr3UR3PFZZmURpgco4Ns3A==/base.apk!classes30.dex] (kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask+74)
10-2107:14:15.8981176211762FDEBUG: #36 pc 0000000000170d5d /apex/com.android.art/lib64/libart.so (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8981176211762FDEBUG: #37 pc 00000000004ceea4 [anon:dalvik-classes30.dex extracted in memory from /data/app/~~pKKiDHI0Z-dobzA2RUiTXg==/org.kiwix.kiwixmobile-yr3UR3PFZZmURpgco4Ns3A==/base.apk!classes30.dex] (kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker+128)
10-2107:14:15.8981176211762FDEBUG: #38 pc 0000000000170d5d /apex/com.android.art/lib64/libart.so (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8981176211762FDEBUG: #39 pc 00000000004cee00 [anon:dalvik-classes30.dex extracted in memory from /data/app/~~pKKiDHI0Z-dobzA2RUiTXg==/org.kiwix.kiwixmobile-yr3UR3PFZZmURpgco4Ns3A==/base.apk!classes30.dex] (kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run+8)
10-2107:14:15.8981176211762FDEBUG: #40 pc 0000000000178cb4 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+756) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8981176211762FDEBUG: #41 pc 000000000020ba92 /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+242) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8981176211762FDEBUG: #42 pc 000000000062a1be /apex/com.android.art/lib64/libart.so (art::JValue art::InvokeVirtualOrInterfaceWithJValues<art::ArtMethod*>(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, art::ArtMethod*, jvalue const*)+478) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8981176211762FDEBUG: #43 pc 000000000068d843 /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1411) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-2107:14:15.8981176211762FDEBUG: #44 pc 00000000000c7d2a /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+58) (BuildId: 3707c39fc397eeaa328142d90b50a973)
10-2107:14:15.8981176211762FDEBUG: #45 pc 000000000005f0c7 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+55) (BuildId:
The text was updated successfully, but these errors were encountered:
@mgautierfr Can you please have a look at this issue?
kelson42
changed the title
A native crash happining on getEntryByPath(actualPath), and getData() methods.
Native crash in getEntryByPath(actualPath), and getData() methods.
Jul 25, 2024
Describe the bug
PlayStore reported this native crash for kiwix-app, and some custom apps as well e.g. wikivoyage, wikimed, etc. There are some occurrence in all these applications.
Expected behavior
It should not crash the application.
Steps to reproduce the behavior:
No reproducing steps are available. But, we have a PR #3937 where @CalebKL facing this issue when we are creating the new zimFileReader with a different zimFile(see #3937 (comment)). This issue is occurring here
kiwix-android/core/src/main/java/org/kiwix/kiwixmobile/core/reader/ZimFileReader.kt
Line 365 in 7dcf042
Environment
Logs
Edited
In the latest
java-libkiwix
we have more logs, it showingnull pointer dereference
error.The text was updated successfully, but these errors were encountered: