http://bugs.openzim.org/show_bug.cgi?id=12
Summary: ZimReader freezes Product: openZIM Version: unspecified Platform: PC OS/Version: Linux Status: NEW Severity: blocker Priority: P5 Component: zimreader AssignedTo: tommi@tntnet.org ReportedBy: emmanuel@engelhart.org CC: dev-l@openzim.org Estimated Hours: 0.0
By surfing on a ZimReader instance serving: http://tmp.kiwix.org/zim/wikipedia_en_wp1_0.7_30000+_05_2009_beta2.zim
I get pretty quickly the following message in the browser:
Error file in error state
After that the HTTP server stays blocked and I always get this same error page.
http://bugs.openzim.org/show_bug.cgi?id=12
Tommi Mäkitalo tommi@tntnet.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Component|zimreader |zimwriter
--- Comment #1 from Tommi Mäkitalo tommi@tntnet.org 2009-11-08 12:56:15 CET --- I just checked the zim file. It is indeed corrupt. Therefore reading fails.
The problem is, that the file is truncated. It may well be, that there was something wrong when the file was written. Most probably the partition was full. And indeed - the zimwriter do not check for errors, when the file is written. I fixed that.
Emmanuel: can you please try to recreate the file with your input data after updating the zimwriter?
http://bugs.openzim.org/show_bug.cgi?id=12
Tommi Mäkitalo tommi@tntnet.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |INVALID
--- Comment #2 from Tommi Mäkitalo tommi@tntnet.org 2009-11-08 17:07:43 CET --- Reason for the problem was a failed data transfer of zim file. Zimlib correctly replied with a exception when trying to read the cluster, which was not in the file.
While investigating the reason for the problem (it was actually no bug), I discovered, thatn zimwriter does not check, if the file was successfully written. This is fixed now.