-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Exception thrown by kiwix reader. #162
Comments
@mgautierfr Could you please have a look to this ASAP, Android rollout is blocked (partly) because of this. |
I cannot reproduce using kiwix-serve (both on native_dyn and armhf_static platform). Is it possible to have more information ?
BTW, even if we should investigate why we throw an exception and fix this, the exception is thrown if |
kiwix-lib version is master. libzim should be too. We are catching this and not crashing. But this is occurring with in some cases over half the articles in the ZIM files so we can't display the majority of our content to some users. This is not a hardware issue as it is too prevalent with many users reporting it as a recent regression. |
I really suspect that something is wrong with how we handle cluster > 4GB. I have tried many files >4GB but with an ft index <4GB on my Android phone (with and without chunks) and they all work fine. The problems start with really big files (with I suspect a ft index > 4GB). That said, kiwix-serve on x64_64 works perfectly.... so we have here something a bit more subtle, maybe related to the ARM architecture. What I would suggest here @mgautierfr is to build lowlevel debugging to be able to trace variable values at the read() level before it crash. |
I've added a lot of information in the thrown exception. (openzim/libzim#176 and #163). |
@mgautierfr Thx you very much for the quick help |
With kiwix-android build on my own, I've succed to have some information while try to opening wikipedia_en_all_novid_2018-06.zim. It confirms the behavior (sporadic bug, more frequent with big zim file). |
@mgautierfr Ouch, this stinks... |
Here might be an interesting feedback |
That would explain working on the play store build but not the one I build
to test. Play store will send me arm64 but I locally build arm. It seems
this is very likely to be a 32 bit problem.
…On Tue, 31 Jul 2018, 16:57 Kelson, ***@***.***> wrote:
Here might be an interesting feedback
https://stackoverflow.com/questions/33897711/android-mmap-fails-with-out-of-memory
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#162 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACLlWbiyHAbmT_leDtQtjTeKT05CjCDyks5uMH6EgaJpZM4VlgL7>
.
|
Last changes (mainly openzim/libzim#178) should fix the problem. I can now open wikipedia_en_all on my android phone without any problem. |
Probable cause of kiwix/kiwix-android#824
Some more details:
Seems to happen with both chunked and non chunked ZIM files. Some pages load and some don't for different users and even with different builds.
The text was updated successfully, but these errors were encountered: