-
-
Notifications
You must be signed in to change notification settings - Fork 473
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
Version 3.8.1 crashes when opening zim files #3600
Comments
[I'm the guy with the Moto G6-play with Android 9] Is there a dependency of Kiwix to WebView (or Carrier Services)? Is it possible to say which version of WebView (and Carrier Services) would be ok for Kiwix 3.7.1? |
@stefan-inf Thank you for your bug report. Does it work better with the nightly or with the version |
Nightly and 3.9.0 crash as well, directly when started, as does the 3.8.1, all with the actual WeView and Carrier Services. |
@stefan-inf Thank you for your quick feedback, we will investigate in priority your bug. |
@stefan-inf Thanks for providing the information. Can you please provide some additional information?
Is it only crashing when you are trying to open the ZIM file?
Yes, kiwix uses the webview to load the content.
Which version exactly you are using right now? Can you please upgrade it to the latest one? The current stable version of Android System WebView is |
Now, every version is crashing immediately after starting. Before, the 3.8.2 crashed only when opening a ZIM file, now when started. I have the 3.9.0 with WebView 120.0.6099.43. |
Sorry, pls read 3.8.1 instead of 3.8.2. |
@stefan-inf Thanks for testing. We need the crash logs to debug the problem since I am not able to reproduce it on my device. Can you please install this APK https://drive.google.com/file/d/11JYfBfYf3H4dIUibZ0tuMlT_vtOEm0xn/view?usp=sharing, it will prompt for reporting the issue with logs after the crash, let all checkboxes enable for crash details, click on the |
I installed the APK and started it, but it crashed before prompting to report. However, it took longer (3sec) before it crashed... |
@stefan-inf If this is the case it is the WebView issue, not the code-related issue, it seems your device's webView using the same data directory for more than one process at once which is not supported. Can you please try with this APK https://drive.google.com/file/d/1YqzNlVamldSZQmVEsDvCoHmiusq0tu9G/view?usp=sharing. |
I installed and started this APK, but no changes... Is there another way to solve the WebView problem? Maybe by including WeView in the Kiwix executable? |
@stefan-inf I set the data directory with Kiwix's current process in my last APK, However, your problem seems different with webview without the logs it's hard to tell what is going on with your device. We can use the Firebase Crash but it also requires the app to run without crash at least for 5-10 seconds, for sending the crash report https://firebase.google.com/docs/crashlytics/test-implementation?platform=android&hl=en&authuser=0&_gl=1*1jez4ry*_ga*MTEyMDIzNTM3MS4xNzAzMTQxMTY1*_ga_CW55HF8NVT*MTcwMzE0MTE2NS4xLjEuMTcwMzE0NDg2MC41Ni4wLjA , in our case your app does not run so firebase will not work here. If you have time, I can run the application on your machine and see what's going on in your device, this is the only way I see now. |
How does this work that you run the app on my machne? |
You just need to install Android Studio on your machine, and I will connect to your system and run the application on the device via Android Studio. this way I can see what is going on your device. |
How to install Android Studio? It's neither in PlayStore nor in Aptoide... |
BTW, the app "Wikipedia Medizin (offline)" (Playstore, V2023-07) does not crash and works fine... |
@stefan-inf Thanks for your feedback. If none of these methods resolve the issue. Then we need to wait for #3141 to be implemented since the issue is related to the |
Moving back to milestone 3.10.0 because I strongly suspect we are impacted here by openzim/libzim#866. @MohitMaliFtechiz We should release and then test with a new release of libkiwix-java integrating libzim 9.2.0 |
@stefan-inf I would recommend to test latest nightly which integrates latest libzim 9.2.0. Fetch problems will be fixed in version |
Thank you for the new version 3.10. Result: Kiwix crashes immediately after starting (before the GUI appears). |
@stefan-inf Thank you for taking - again - the time to test with cutting edge version. |
Crash behaviour: I have to add that after starting Kiwix, the black logo appears on white ground and stays for 4 seconds before it crashes... |
@MohitMaliFtechiz Fixed by #3867? |
Hi, is there a new Kiwix version (with the new lib) which I could test? |
@stefan-inf Please test this version https://drive.google.com/file/d/11JYfBfYf3H4dIUibZ0tuMlT_vtOEm0xn/view?usp=drive_link. |
The new version (3.11.0) crashes immediately after starting, ie before selecting the ZIM file. Seems to be the other issue. |
@MohitMaliFtechiz Understanding what still goes wrong is the priority, we should really try to fix this in |
@MohitMaliFtechiz This bug report is living for to old. Can we have a clear crashlog so we at least know where it dies? |
Here is another report that was sent this morning, if it helps (lmk if we need to ask for more details): |
@Popolechien Thanks for the report. I am assuming this crash report is of @stefan-inf (please correct if i am wrong). I checked this crash report and found that it is a 06-12 22:49:30.853 22073 22073 E AndroidRuntime: Process: org.kiwix.kiwixmobile, PID: 22073
06-12 22:49:30.853 22073 22073 E AndroidRuntime: java.lang.ExceptionInInitializerError
06-12 22:49:30.853 22073 22073 E AndroidRuntime: at org.kiwix.kiwixmobile.core.di.components.DaggerCoreComponent$CoreComponentImpl.inject(DaggerCoreComponent.java:23)
06-12 22:49:30.853 22073 22073 E AndroidRuntime: at org.kiwix.kiwixmobile.core.CoreApp.onCreate(CoreApp.kt:104)
06-12 22:49:30.853 22073 22073 E AndroidRuntime: at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:1266)
06-12 22:49:30.853 22073 22073 E AndroidRuntime: at android.app.ActivityThread.handleBindApplication(ActivityThread.java:7619)
06-12 22:49:30.853 22073 22073 E AndroidRuntime: at android.app.ActivityThread.-$$Nest$mhandleBindApplication(Unknown Source:0)
06-12 22:49:30.853 22073 22073 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2400)
06-12 22:49:30.853 22073 22073 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:106)
06-12 22:49:30.853 22073 22073 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:226)
06-12 22:49:30.853 22073 22073 E AndroidRuntime: at android.os.Looper.loop(Looper.java:313)
06-12 22:49:30.853 22073 22073 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:8762)
06-12 22:49:30.853 22073 22073 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
06-12 22:49:30.853 22073 22073 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:604)
06-12 22:49:30.853 22073 22073 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1067)
06-12 22:49:30.853 22073 22073 E AndroidRuntime: Caused by: java.lang.RuntimeException: Using WebView from more than one process at once with the same data directory is not supported. https://crbug.com/558377 : Current process org.kiwix.kiwixmobile (pid 22073), lock owner org.kiwix.kiwixmobile:error_activity (pid 21360)
06-12 22:49:30.853 22073 22073 E AndroidRuntime: at org.chromium.android_webview.AwDataDirLock.b(chromium-TrichromeWebViewGoogle6432.aab-stable-642216533:201)
06-12 22:49:30.853 22073 22073 E AndroidRuntime: at org.chromium.android_webview.AwBrowserProcess.j(chromium-TrichromeWebViewGoogle6432.aab-stable-642216533:16)
06-12 22:49:30.853 22073 22073 E AndroidRuntime: at com.android.webview.chromium.L.d(chromium-TrichromeWebViewGoogle6432.aab-stable-642216533:203)
06-12 22:49:30.853 22073 22073 E AndroidRuntime: at com.android.webview.chromium.L.b(chromium-TrichromeWebViewGoogle6432.aab-stable-642216533:42)
06-12 22:49:30.853 22073 22073 E AndroidRuntime: at com.android.webview.chromium.WebViewChromiumFactoryProvider.getServiceWorkerController(chromium-TrichromeWebViewGoogle6432.aab-stable-642216533:22)
06-12 22:49:30.853 22073 22073 E AndroidRuntime: at android.webkit.ServiceWorkerController.getInstance(ServiceWorkerController.java:57)
06-12 22:49:30.853 22073 22073 E AndroidRuntime: at androidx.webkit.internal.ApiHelperForN.getServiceWorkerControllerInstance(ApiHelperForN.java:1)
06-12 22:49:30.853 22073 22073 E AndroidRuntime: at androidx.webkit.internal.ServiceWorkerControllerImpl.<init>(ServiceWorkerControllerImpl.java:9)
06-12 22:49:30.853 22073 22073 E AndroidRuntime: at androidx.webkit.ServiceWorkerControllerCompat$LAZY_HOLDER.<clinit>(ServiceWorkerControllerCompat.java:3)
06-12 22:49:30.853 22073 22073 E AndroidRuntime: ... 13 more @stefan-inf We have fixed the |
@MohitMaliFtechiz No it's another user. |
@Popolechien Okay. @stefan-inf The bug report is very old now can you please provide the latest report so that we can know where the problem exists now? |
No feedback unfortunately. Closing |
Kiwix now works again. Thank you. |
@stefan-inf Thanks for your feedback, happy to know that the problem is fixed for you 😇. |
We got multiple reports from users that trying to open a zim file would crash their app. Here is one that could provide a bit more info:
Motorola G6-play smartphone with Android 9 (ok in that case that could be an android thing, but I recall seeing reports with more recent versions; I'll try and confirm).
Here is the debugging output of Kiwix:
The text was updated successfully, but these errors were encountered: