-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
[Bug]: cbz with corrupted image inside freezes app #204
Comments
Can you send me the CBZ file that is causing the bug? oleguer.llopart.mora@gmail.com |
Done. |
I have fixed the freezing problem when opening corrupt cbz files 05eefb3, but I have not been able to partially read the contents of the file that you have sent me, at least with unzipper, I could try to try a different node package, since I have tried with different applications and some of them partially open the file. Build with fix: https://mega.nz/file/zXglnC7R#YnHNrUcUOLOAbTSUBPHwo9GwRjt-vB88cL3yJ6GsXiY If you can check if the following error has also been fixed #194 (comment) |
From what I saw, Honeyview and 7zip both can see 28 normal images+1 corrupted. |
Thanks for mentioning that it works in 7zip. I have changed the default extraction for zip files to 7z d07feac and now all 28 images are extracted +1 corrupted, it also slightly increases performance in extracion zip files in general. Build: https://mega.nz/file/rSQjxDZC#KhQjUtQHk6KpZc7xvndzShe9uCsSDx4cEsj218HFYlU |
Something I forgot to mention is that you may have to delete the cache, since OpenComic will use the previously generated cache when reading the file. |
I usually just create new folder with testN, where N = 1,2,3.... It do the trick with cache. |
While there is notification when you open file, there is also notification every time when you open folder with cbz files, when one cbz is corrupted. The issue is that the message is 2024-03-29_19-57-14.mp4 |
I've improved a little how this is handled, note that once a compressed file has been extracted, the next times it will be accessed from the cache/tmp, currently I save the last error message in the cache to continue showing it, but it does not always work as expected. Extract corrupt file show first error message: b95de2c Build: https://mega.nz/file/nbQUlDIJ#iVhuBj0ES_H4VUCR0Kl36l980bmSBkYmKKmNpt0anpA |
Current situation for me: error is not shown anymore if I open folder. However, I have one corrupted cbz, but error is shown for every cbz in folder (UPD: first time it has been shown presumably for every cbz, after clearing cache and tmp it's shown for some unrelated uncorrupted cbz, but isn't for others), and for corrupted cbz (which contains corrupted image) error is shown 2 times. |
I'm going to reopen this, since I've only tested it with the corrupt file and not alongside other files. |
Preflight Checklist
OpenComic Version
1.1.0 (well, I'm using your custom test build for me)
Operating System
Win10, 22H2, build 19045
Steps to reproduce
Expected Behavior
Probably like Honeyview that shows all images except broken one.
Actual Behavior
App freezes
Error message
No response
Additional Information
No response
Sample file
No response
The text was updated successfully, but these errors were encountered: