-
-
Notifications
You must be signed in to change notification settings - Fork 464
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
Native crash in getEntryByPath(actualPath)
, and getData()
methods.
#3956
Comments
@mgautierfr Can you please have a look at this issue? |
getEntryByPath(actualPath)
, and getData()
methods.getEntryByPath(actualPath)
, and getData()
methods.
@veloman-yunkan Could younhelp please on this issue? |
We have to mainly focus on this issue before releasing the The logs are, that there is a null pointer dereference issue. --------- beginning of crash
10-21 07:14:15.729 11546 11698 F libc : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 11698 (DefaultDispatch), pid 11546 (wix.kiwixmobile)
10-21 07:14:15.787 11762 11762 F DEBUG : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
10-21 07:14:15.787 11762 11762 F DEBUG : Build fingerprint: 'Android/sdk_phone_x86_64/generic_x86_64:11/RSR1.210722.013.A2/10067904:userdebug/test-keys'
10-21 07:14:15.787 11762 11762 F DEBUG : Revision: '0'
10-21 07:14:15.787 11762 11762 F DEBUG : ABI: 'x86_64'
10-21 07:14:15.787 11762 11762 F DEBUG : Timestamp: 2024-10-21 07:14:15+0000
10-21 07:14:15.787 11762 11762 F DEBUG : pid: 11546, tid: 11698, name: DefaultDispatch >>> org.kiwix.kiwixmobile <<<
10-21 07:14:15.787 11762 11762 F DEBUG : uid: 10130
10-21 07:14:15.787 11762 11762 F DEBUG : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
10-21 07:14:15.787 11762 11762 F DEBUG : Cause: null pointer dereference
10-21 07:14:15.787 11762 11762 F DEBUG : rax 0000000000000000 rbx 000072f77354f9d0 rcx 000072f7935cfa50 rdx 0000000000000000
10-21 07:14:15.787 11762 11762 F DEBUG : r8 000072f6c433b348 r9 0000000000000006 r10 000072f7199ed003 r11 000072fa07979048
10-21 07:14:15.787 11762 11762 F DEBUG : r12 000072f6c433b488 r13 000072f8335dcd50 r14 000072f6c433b484 r15 000072f6d0b8d5a0
10-21 07:14:15.787 11762 11762 F DEBUG : rdi 000072f6c433b350 rsi 000072f6c433b360
10-21 07:14:15.787 11762 11762 F DEBUG : rbp 000072f6c433b490 rsp 000072f6c433b3f0 rip 000072f6d488fffe
10-21 07:14:15.897 11546 11546 E SEARCH_RESULT: Cancelled the previous job StandaloneCoroutine was cancelled
10-21 07:14:15.897 11762 11762 F DEBUG : backtrace:
10-21 07:14:15.897 11762 11762 F DEBUG : #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-21 07:14:15.897 11762 11762 F DEBUG : #01 pc 00000000001840c7 /apex/com.android.art/lib64/libart.so (art_quick_generic_jni_trampoline+215) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-21 07:14:15.897 11762 11762 F DEBUG : #02 pc 0000000000178cb4 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+756) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-21 07:14:15.897 11762 11762 F DEBUG : #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-21 07:14:15.897 11762 11762 F DEBUG : #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-21 07:14:15.897 11762 11762 F DEBUG : #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-21 07:14:15.897 11762 11762 F DEBUG : #06 pc 000000000078a882 /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+1026) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-21 07:14:15.897 11762 11762 F DEBUG : #07 pc 0000000000162f99 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+25) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-21 07:14:15.897 11762 11762 F DEBUG : #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-21 07:14:15.897 11762 11762 F DEBUG : #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-21 07:14:15.897 11762 11762 F DEBUG : #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-21 07:14:15.897 11762 11762 F DEBUG : #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-21 07:14:15.897 11762 11762 F DEBUG : #12 pc 000000000078a882 /apex/com.android.art/lib64/libart.so (MterpInvokeVirtual+1026) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-21 07:14:15.897 11762 11762 F DEBUG : #13 pc 0000000000162f99 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_virtual+25) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-21 07:14:15.897 11762 11762 F DEBUG : #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-21 07:14:15.897 11762 11762 F DEBUG : #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-21 07:14:15.897 11762 11762 F DEBUG : #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-21 07:14:15.898 11762 11762 F DEBUG : #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-21 07:14:15.898 11762 11762 F DEBUG : #18 pc 000000000078d5b0 /apex/com.android.art/lib64/libart.so (MterpInvokeDirect+688) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-21 07:14:15.898 11762 11762 F DEBUG : #19 pc 0000000000163099 /apex/com.android.art/lib64/libart.so (mterp_op_invoke_direct+25) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-21 07:14:15.898 11762 11762 F DEBUG : #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-21 07:14:15.898 11762 11762 F DEBUG : #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-21 07:14:15.898 11762 11762 F DEBUG : #22 pc 00000000007765af /apex/com.android.art/lib64/libart.so (artQuickToInterpreterBridge+1103) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-21 07:14:15.898 11762 11762 F DEBUG : #23 pc 000000000018424c /apex/com.android.art/lib64/libart.so (art_quick_to_interpreter_bridge+140) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-21 07:14:15.898 11762 11762 F DEBUG : #24 pc 000000000017080a /apex/com.android.art/lib64/libart.so (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-21 07:14:15.898 11762 11762 F DEBUG : #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-21 07:14:15.898 11762 11762 F DEBUG : #26 pc 00000000021ba27e /memfd:jit-cache (deleted) (offset 0x2000000) (kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith+430)
10-21 07:14:15.898 11762 11762 F DEBUG : #27 pc 000000000213d570 /memfd:jit-cache (deleted) (offset 0x2000000) (kotlinx.coroutines.DispatchedTask.run+1904)
10-21 07:14:15.898 11762 11762 F DEBUG : #28 pc 0000000000171f7a /apex/com.android.art/lib64/libart.so (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-21 07:14:15.898 11762 11762 F DEBUG : #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-21 07:14:15.898 11762 11762 F DEBUG : #30 pc 00000000001718ea /apex/com.android.art/lib64/libart.so (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-21 07:14:15.898 11762 11762 F DEBUG : #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-21 07:14:15.898 11762 11762 F DEBUG : #32 pc 0000000000170d5d /apex/com.android.art/lib64/libart.so (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-21 07:14:15.898 11762 11762 F DEBUG : #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-21 07:14:15.898 11762 11762 F DEBUG : #34 pc 0000000000170d5d /apex/com.android.art/lib64/libart.so (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-21 07:14:15.898 11762 11762 F DEBUG : #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-21 07:14:15.898 11762 11762 F DEBUG : #36 pc 0000000000170d5d /apex/com.android.art/lib64/libart.so (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-21 07:14:15.898 11762 11762 F DEBUG : #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-21 07:14:15.898 11762 11762 F DEBUG : #38 pc 0000000000170d5d /apex/com.android.art/lib64/libart.so (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-21 07:14:15.898 11762 11762 F DEBUG : #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-21 07:14:15.898 11762 11762 F DEBUG : #40 pc 0000000000178cb4 /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+756) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-21 07:14:15.898 11762 11762 F DEBUG : #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-21 07:14:15.898 11762 11762 F DEBUG : #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-21 07:14:15.898 11762 11762 F DEBUG : #43 pc 000000000068d843 /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1411) (BuildId: 1dfb27162fe62a7ac7a10ea361233369)
10-21 07:14:15.898 11762 11762 F DEBUG : #44 pc 00000000000c7d2a /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+58) (BuildId: 3707c39fc397eeaa328142d90b50a973)
10-21 07:14:15.898 11762 11762 F DEBUG : #45 pc 000000000005f0c7 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+55) (BuildId: @mgautierfr , @veloman-yunkan can we catch this error and throw a normal error which can be caught by the |
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: