Skip to content
This repository has been archived by the owner on Oct 3, 2022. It is now read-only.

freeze if a page cannot be decoded #5

Closed
jwilk opened this issue Apr 26, 2013 · 3 comments
Closed

freeze if a page cannot be decoded #5

jwilk opened this issue Apr 26, 2013 · 3 comments
Labels

Comments

@jwilk
Copy link
Member

jwilk commented Apr 26, 2013

Issue reported by GStager at Bitbucket:

- Page #389
- Page #390
- Page #391
- Page #392
Unexpected End Of File.
- Page #393

... and freeze.

File: http://libgen.org/get?nametype=md5&md5=02AFD32D47B492D04DDFBD2359772884

parms: ~/ocrodjvu-0.7.15/ocrodjvu --in-place -e tesseract -t words --html5 --clear-text -l rus+eng 02AFD32D47B492D04DDFBD2359772884.djvu

@jwilk
Copy link
Member Author

jwilk commented Apr 26, 2013

As the warning suggests, page 392 is broken:

$ ddjvu -page=392 02AFD32D47B492D04DDFBD2359772884.djvu 
ddjvu: Cannot decode page 392.

But of course ocrodjvu shouldn't hang. I'll get that fixed soon.

@jwilk
Copy link
Member Author

jwilk commented Apr 27, 2013

Fixed in 56aab44. Instead of hanging, ocrodjvu will throw an exception. Then you should be able to use --on-error=resume to skip over undecodable pages.

@jwilk
Copy link
Member Author

jwilk commented Apr 28, 2013

Fixed in 0.7.16.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Development

No branches or pull requests

1 participant