-
-
Notifications
You must be signed in to change notification settings - Fork 448
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
Fulltext crash with custom app wikimed #201
Comments
|
Same crash with Kiwix for Android. The ZIM file is OK, I have tested with kiwix-serve. |
@mhutti1 Do you know which JNI call is made and can you check the arguments look OK? |
Java_org_kiwix_kiwixlib_JNIKiwix_indexedQuery+132 |
The
Which version of kiwix-lib is used in android application ? Is it the nightly ? (The older the version is, the better it is) |
|
I suppose that it is related to the change we've made about icu data file at commit 6fa885f and 57744b3 Those commits removed the version information of the data filename because we wanted kiwix-android not dependent of the icu version. But from icu documentation (http://userguide.icu-project.org/icudata) it seems that the name of the data file must include the icu version and a format flag. I will change a bit the loadICUData function https://github.com/kiwix/kiwix-android/blob/master/app/src/main/java/org/kiwix/kiwixmobile/ZimContentProvider.java#L267 and kiwix-build and test further if it fixes the bug. |
@mgautierfr Thx! |
Instead of directly copying "icudt.dat" file, copy all file in "icu" assets directory. The icu data filename must include the version of icu lib. But we don't want android code to be dependent of the icu lib version. So let's copy all files in the icu directory. Fixes #201.
I confirm my assumption, it is a problem with icu data filename. I'm rebuilding a new alpha version. It will be uploaded in the hour. |
New alpha version of wikimed uploaded. Next update from play store should fix this issue. |
Works fine now :) |
Instead of directly copying "icudt.dat" file, copy all file in "icu" assets directory. The icu data filename must include the version of icu lib. But we don't want android code to be dependent of the icu lib version. So let's copy all files in the icu directory. Fixes #201.
Currently in alpha. The crash happens just after the first character is put in the search box.
The text was updated successfully, but these errors were encountered: