-
-
Notifications
You must be signed in to change notification settings - Fork 447
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 Get Content when a particular zim is anywhere on internal storage #896
Comments
Hi @metal450
|
|
For the stack trace you can use
For point (2), try creating another one or two ZIMs if possible and check whether they reproduce the error. If the error is in creation of the ZIM file, then we'll have to focus outside the app. |
I tried 1 more, & the behavior was the same. Works fine on PC, crashes on Android. Were you not able to reproduce this by replicating my specific steps above?
While I don't see the exact text you're mentioning, here's the section around the term "Fatal":
|
The error seems to be some code blocking the UI thread |
@metal450 I'm repeatedly running into the following error when running node wikizimmer http://prepaid-data-sim-card.wikia.com/wiki/Alaska on my Ubuntu machine:
Are your instructions missing some set-up commands? |
I'm on Windows & I did already have Node setup...but other than that, nope. If you prefer, I can just send you the zim...? |
@metal450 I don't think we can really help here without you having published the ZIM file. |
@metal450 that would be great - Just share the drive link to both the ZIMs that you'd created |
@kelson42 I couldn't get the ZIM creator to work, will try and recreate the error with the shared files |
@Aditya-Sood I don't understand at all why |
@kelson42 Is it possible that the contents of the ZIM file are dependent on the program creating it? Becuase while I couldn't find any answers to the problem online, related solutions and re-reading the errors all hint at this new file invoking stuff which the Kiwix downloaded ZIMs don't when opened The error apparently occurs as soon as the app discovers and tries to parse this new file during the initial scan for ZIMs upon launch In-app Logs:(From the Kiwix/ directory on the phone)
Stack Trace:
|
Also, this is an entirely different error from the one faced by @metal450 on his device, which was a |
@Aditya-Sood If you wipe the apps data do you get the same error? |
@mhutti1 it's slightly different upon reinstalling
Entire stack trace for additional context here |
Is it possible that this ZIM file is structured in a different manner from how kiwix creates the same? |
@Aditya-Sood i'm not sure. Broken pipe might imply that there's too much data trying to be read? |
@mhutti1 the error I went over the stacktrace and found this error: |
So chown is probably the 'root' of the error here, but we don't request root access in the manifest as of now. Should we leave it on the back-burner until one of our own ZIMs raises the error? |
...Fingers crossed that you don't. Having this wiki on my phone while I travel internationally would be extremely useful, & I've been waiting super eagerly as I follow this thread hoping for a fix :/ |
@Aditya-Sood Which exact piece of code of Kiwix-Android does a |
Interestingly though, there are additional errors which aren't highlighted in red by android studio and don't necessarily occur always:
|
Are there javascript files within a zim file, to help with parsing and other stuff? |
@metal450 can you share more zims created through zimmer? |
Sure, here's another I just made from a different random wiki: https://www.dropbox.com/s/dsumhpixcrohpyu/magnumpi.wikia.com.zim?dl=0 |
TL;DR - I have hit a total dead end on this bug, with no hints to the cause or solution online. Unless you have any ideas for how to tackle this, I'd like to put this bug aside and focus on other open issues. Final Update:
I didn't check this earlier, but the error pops up (& is handled without crashing) in the absence of the files as well. So a broken pipe has nothing to do with it. What does repeatedly occur is the following:
Now And responses to
All in all, @mhutti1 @kelson42 I have hit a dead end. So unless you have any suggestions for how to solve this, I plan to leave this bug and start focussing on other open issues. |
If this isn't ultimately going to be fixed...is there any other workaround/way I can get the data from http://prepaid-data-sim-card.wikia.com/wiki/Prepaid_SIM_with_data to work in Kiwix...? |
@metal450 Sorry for the lack of feedback. I have put the ticket in 2.5. I suspect a problem with the core library. We will see. Thank you for your patience. |
Sounds good, thanks again for following up. |
This issue has been automatically marked as stale because it has not had recent activity. It will be now be reviewed manually. Thank you for your contributions. |
I just re-tested this, & it looks like it's at long last fixed :) |
Describe the bug
I have a zim created from a Fandom wiki (http://prepaid-data-sim-card.wikia.com/wiki/Prepaid_SIM_with_data) by zimmer (https://github.com/vss-devel/zimmer). The zim works perfectly in Kiwix for Windows. If I copy the zim to the phone's internal storage, launch Kiwix, & go to "Get Content," it immediately crashes. The zim needn't even be in Kiwix's data folder to cause the crash, just sticking it at the root of the storage also causes the issue. As soon as I delete the zim, the "Get Content" screen will again work properly.
Steps to reproduce the behavior:
git clone https://github.com/vss-devel/zimmer
cd zimmer
npm install
node wikizimmer http://prepaid-data-sim-card.wikia.com/wiki/Alaska
node zimmer --optimg prepaid-data-sim-card.wikia.com
Environment
The text was updated successfully, but these errors were encountered: