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

Crash on searching #3679

Closed
LoHub opened this issue Jan 21, 2024 · 2 comments
Closed

Crash on searching #3679

LoHub opened this issue Jan 21, 2024 · 2 comments

Comments

@LoHub
Copy link

LoHub commented Jan 21, 2024

Describe the bug

When I select a library and I do a text search, the app crash.

Expected behavior

Application do not crash.

Steps to reproduce the behavior:

  1. Open the app
  2. Open Library tab
  3. Select Best of wikipedia 2023-10-15
  4. Search test in search filed

Environment

  • Version of Kiwix Android : 3.8.0
  • Device : Google Pixel 8
  • OS version : google/shiba/shiba:14/UQ1A.240105.004/2024011600

Logs

type: crash
osVersion: google/shiba/shiba:14/UQ1A.240105.004/2024011600:user/release-keys
package: org.kiwix.kiwixmobile:6230800
process: org.kiwix.kiwixmobile
processUptime: 0 + 0 ms

signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0000000000000004

backtrace:
      #00 pc 00000000004201a0  /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/base.apk!libkiwix.so (offset 0x283000)
      #01 pc 0000000000424bcc  /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/base.apk!libkiwix.so (offset 0x283000)
      #02 pc 0000000000424b88  /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/base.apk!libkiwix.so (offset 0x283000)
      #03 pc 00000000004875f0  /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/base.apk!libkiwix.so (offset 0x283000)
      #04 pc 0000000000428120  /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/base.apk!libkiwix.so (offset 0x283000)
      #05 pc 0000000000457158  /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/base.apk!libkiwix.so (offset 0x283000)
      #06 pc 000000000044c16c  /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/base.apk!libkiwix.so (offset 0x283000)
      #07 pc 00000000003e38c4  /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/base.apk!libkiwix.so (offset 0x283000) (Xapian::Enquire::Internal::get_mset(unsigned int, unsigned int, unsigned int, Xapian::RSet const*, Xapian::MatchDecider const*) const+504)
      #08 pc 000000000019215c  /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/base.apk!libzim.so (offset 0xb42000) (zim::SuggestionSearch::getEstimatedMatches() const+92)
      #09 pc 0000000000027060  /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/base.apk!libzim_wrapper.so (offset 0x119d000) (Java_org_kiwix_libzim_SuggestionSearch_getEstimatedMatches+124) (BuildId: 6c0d6ee977af86c7d817e067ec4176543043faa4)
      #10 pc 00000000004483e4  /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/oat/arm64/base.odex (art_jni_trampoline+116)
      #11 pc 0000000000501c4c  /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/oat/arm64/base.odex (org.kiwix.kiwixmobile.core.search.viewmodel.SearchState.getVisibleResults+124)
      #12 pc 0000000000a85278  /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/oat/arm64/base.odex (org.kiwix.kiwixmobile.core.search.SearchFragment$render$1$searchResult$1.invokeSuspend+152)
      #13 pc 00000000007522ac  /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/oat/arm64/base.odex (kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith+156)
      #14 pc 000000000075a474  /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/oat/arm64/base.odex (kotlinx.coroutines.DispatchedTask.run+1300)
      #15 pc 0000000000a531a0  /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/oat/arm64/base.odex (kotlinx.coroutines.internal.LimitedDispatcher.run+176)
      #16 pc 0000000000764c58  /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/oat/arm64/base.odex (kotlinx.coroutines.scheduling.TaskImpl.run+72)
      #17 pc 0000000000478a5c  /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/oat/arm64/base.odex (kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run+2460)
      #18 pc 00000000002109a4  /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+612) (BuildId: c22b326e6096e83d4bf6a46306969e5e)
      #19 pc 0000000000253b3c  /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+172) (BuildId: c22b326e6096e83d4bf6a46306969e5e)
      #20 pc 000000000069abc8  /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1416) (BuildId: c22b326e6096e83d4bf6a46306969e5e)
      #21 pc 00000000000d006c  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204) (BuildId: 3bcd4bc92892dc0d588978c3b951b7f8)
      #22 pc 0000000000064db0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: 3bcd4bc92892dc0d588978c3b951b7f8)
osVersion: google/shiba/shiba:14/UQ1A.240105.004/2024011600:user/release-keys
uid: 10147 (u:r:untrusted_app_32:s0:c147,c256,c512,c768)
cmdline: org.kiwix.kiwixmobile
processUptime: 7s

signal: 11 (SIGSEGV), code 9 (SEGV_MTESERR), faultAddr 200c49dc6c6b475
threadName: DefaultDispatch
MTE: enabled

backtrace:
    /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/base.apk!libkiwix.so (pc 424de8)
    /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/base.apk!libkiwix.so (pc 4209d8)
    /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/base.apk!libkiwix.so (pc 422880)
    /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/base.apk!libkiwix.so (pc 412b80)
    /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/base.apk!libkiwix.so (Xapian::Weight::Internal::accumulate_stats(Xapian::Database::Internal const&, Xapian::RSet const&)+244, pc 47686c)
    /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-J5fsPR9SwjXAWERCJvlSdQ==/base.apk!libkiwix.so (pc 448560)
    /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-J5fsPR9SwjXAWERCJvlSdQ==/base.apk!libkiwix.so (pc 44b770)
    /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-J5fsPR9SwjXAWERCJvlSdQ==/base.apk!libkiwix.so (Xapian::Enquire::Internal::get_mset(unsigned int, unsigned int, unsigned int, Xapian::RSet const*, Xapian::MatchDecider const*) const+380, pc 3e3848)
    /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/base.apk!libzim.so (zim::SuggestionSearch::getEstimatedMatches() const+92, pc 19215c)
    /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/base.apk!libzim_wrapper.so (Java_org_kiwix_libzim_SuggestionSearch_getEstimatedMatches+124, pc 27060)
    /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/oat/arm64/base.odex (art_jni_trampoline+116, pc 4483e4)
    /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/oat/arm64/base.odex (org.kiwix.kiwixmobile.core.search.viewmodel.SearchState.getVisibleResults+124, pc 501c4c)
    /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/oat/arm64/base.odex (org.kiwix.kiwixmobile.core.search.SearchFragment$render$1$searchResult$1.invokeSuspend+152, pc a85278)
    /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/oat/arm64/base.odex (kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith+156, pc 7522ac)
    /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/oat/arm64/base.odex (kotlinx.coroutines.DispatchedTask.run+1300, pc 75a474)
    /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/oat/arm64/base.odex (kotlinx.coroutines.internal.LimitedDispatcher.run+176, pc a531a0)
    /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/oat/arm64/base.odex (kotlinx.coroutines.scheduling.TaskImpl.run+72, pc 764c58)
    /data/app/~~anKVrgXJWjZlvGJweBoYvw==/org.kiwix.kiwixmobile-CzXJPDVaJBPThG4XXZfyQg==/oat/arm64/base.odex (kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run+2460, pc 478a5c)
    /apex/com.android.art/lib64/libart.so (art_quick_invoke_stub+612, pc 2109a4)
    /apex/com.android.art/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+172, pc 253b3c)
    /apex/com.android.art/lib64/libart.so (art::Thread::CreateCallback(void*)+1416, pc 69abc8)
    /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+204, pc d006c)
    /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64, pc 64db0)
@LoHub
Copy link
Author

LoHub commented Jan 21, 2024

I was too fast, it is probably the same issue that #3556 which has been fixed in 3.8.1.
In my defense, there is no APK release since 8.0.0 on F-Droid or Github.

@kelson42
Copy link
Collaborator

AFAIK, this bug is fixed in latest version of Kiwix indeed. Please give a try to our APK. http://download.kiwix.org/release/kiwix-android/kiwix-3.9.1.apk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants