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)
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
The text was updated successfully, but these errors were encountered: