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

Sometimes application crashes due to a native crash when we frequently load the ZIM files in the reader. #4104

Closed
MohitMaliFtechiz opened this issue Nov 21, 2024 · 3 comments · Fixed by #4105
Assignees
Milestone

Comments

@MohitMaliFtechiz
Copy link
Collaborator

MohitMaliFtechiz commented Nov 21, 2024

Describe the bug
Sometimes application crashes due to a native crash when we frequently load the ZIM files in the reader.

screen-20241121-163720.mp4

Expected behavior
it should not crash.

Steps to reproduce the behavior:
No proper reproducing steps are available. But I have tried to load the ZIM files very quickly in the reader and sometimes it crashes after 5 attempts and sometimes crashes after 8 attempts.

Environment

  • Version of Kiwix Android: 3.12.0
  • Device: Google Pixel 7a
  • OS version: Android 14

Logs

Cmdline: org.kiwix.kiwixmobile
2024-11-21 16:30:05.955 18462-18462 DEBUG                   crash_dump64                         A  pid: 18089, tid: 18195, name: DefaultDispatch  >>> org.kiwix.kiwixmobile <<<
2024-11-21 16:30:05.955 18462-18462 DEBUG                   crash_dump64                         A        #00 pc 0000000000010630  /data/app/~~EZW-mzDlpBgQvI5gp0cYow==/org.kiwix.kiwixmobile-QcN3iO150VTI9k1xLbhjvg==/base.apk!libzim_wrapper.so (offset 0x631000) (Java_org_kiwix_libzim_Archive_getEntryByPath__Ljava_lang_String_2+120) (BuildId: bb96395f5068f1755a93f5daa08b7a934333f07e)
2024-11-21 16:30:05.955 18462-18462 DEBUG                   crash_dump64                         A        #02 pc 0000000002a4e710  /memfd:jit-cache (deleted) (offset 0x2000000) (org.kiwix.kiwixmobile.core.reader.ZimFileReader.getItem+288)
2024-11-21 16:30:05.955 18462-18462 DEBUG                   crash_dump64                         A        #03 pc 0000000002b6932c  /memfd:jit-cache (deleted) (offset 0x2000000) (org.kiwix.kiwixmobile.core.reader.ZimFileReader.loadContent+172)
2024-11-21 16:30:05.955 18462-18462 DEBUG                   crash_dump64                         A        #08 pc 00000000000062e4  [anon:dalvik-classes13.dex extracted in memory from /data/app/~~EZW-mzDlpBgQvI5gp0cYow==/org.kiwix.kiwixmobile-QcN3iO150VTI9k1xLbhjvg==/base.apk] (org.kiwix.kiwixmobile.core.reader.ZimFileReader.access$loadContent+0)
2024-11-21 16:30:05.956 18462-18462 DEBUG                   crash_dump64                         A        #11 pc 0000000002a55fec  /memfd:jit-cache (deleted) (offset 0x2000000) (org.kiwix.kiwixmobile.core.reader.ZimFileReader$load$2.invokeSuspend+1372)
2024-11-21 16:30:05.956 18462-18462 DEBUG                   crash_dump64                         A        #18 pc 00000000004b84ec  [anon:dalvik-classes30.dex extracted in memory from /data/app/~~EZW-mzDlpBgQvI5gp0cYow==/org.kiwix.kiwixmobile-QcN3iO150VTI9k1xLbhjvg==/base.apk]
2024-11-21 16:30:05.956 18462-18462 DEBUG                   crash_dump64                         A        #29 pc 00000000004cee24  [anon:dalvik-classes30.dex extracted in memory from /data/app/~~EZW-mzDlpBgQvI5gp0cYow==/org.kiwix.kiwixmobile-QcN3iO150VTI9k1xLbhjvg==/base.apk]
2024-11-21 16:30:05.956 18462-18462 DEBUG                   crash_dump64                         A        #34 pc 00000000004cedf8  [anon:dalvik-classes30.dex extracted in memory from /data/app/~~EZW-mzDlpBgQvI5gp0cYow==/org.kiwix.kiwixmobile-QcN3iO150VTI9k1xLbhjvg==/base.apk]
@MohitMaliFtechiz MohitMaliFtechiz added this to the 3.12.0 milestone Nov 21, 2024
@MohitMaliFtechiz MohitMaliFtechiz self-assigned this Nov 21, 2024
@kelson42
Copy link
Collaborator

@MohitMaliFtechiz This is a regression?

@MohitMaliFtechiz
Copy link
Collaborator Author

@kelson42 Yes, it is a regression.

@MohitMaliFtechiz
Copy link
Collaborator Author

@kelson42 This issue is reported by the playStore as well for version 3.11.1. But there are fewer occurrences showing on the Play Store, so it is not totally regression introduced in our current milestone, but now it is clearly visible to us when we moved our functionality on the IO thread.

Image

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