Page MenuHomePhabricator

Cannot read some valid DjVu files on Commons
Closed, InvalidPublic

Details

Reference
bz59669

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 22 2014, 2:18 AM
bzimport added a project: MediaWiki-DjVu.
bzimport set Reference to bz59669.
bzimport added a subscriber: Unknown Object (MLST).

Cannot read some valid DjVu files on Commons

Why do you think they are "valid"?

$:andre\> gs Лотоцький_О._Сторінки_минулого._Частина_2.djvu
GPL Ghostscript 9.10 (2013-08-30)
Copyright (C) 2013 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefined in AT&TFORM\x01\x01
Operand stack:

Execution stack:

%interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1884   1   3   %oparray_pop   1883   1   3   %oparray_pop   1867   1   3   %oparray_pop   1755   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--

Dictionary stack:

--dict:1167/1684(ro)(G)--   --dict:0/20(G)--   --dict:77/200(L)--

Current allocation mode is local
Current file position is 9
GPL Ghostscript 9.10: Unrecoverable error, exit code 1
$:andre\>

Because I can read them locally

Obviously they are not valid, see comment 1.
Maybe your viewing application is just more "forgiving" towards errors, or has the same error as the application creating those djvu files, or you use the same application for creating and viewing djvu. I don't know without more details, but so far this bug report seems to be invalid as ghostscript says the files have errors.

So either Ghostscript incorrectly errors out which means a report should be filed at http://bugs.ghostscript.com/ to fix ghostscript, or your tool to create djvu files is broken (which I consider more likely). Closing as INVALID for MediaWiki for the time being.

Sorry for being annoying, but I've got a response from the #ghostscript IRC channel that actually GS doesn't read djvu files. The only input GS takes is PS or PDF. Could you check it again? Thanks

Urgh. I'm terribly sorry and should have used my brain. :(

Using djview4-4.9-3.fc20.i686 to open Лотоцький_О._Сторінки_минулого._Частина_2.djvu I get
Cannot decode page 167.

  • Unrecognized DjVu Message: ** Message name: \x03EOF

Using evince 3.10 (after installing evince-djvu) I get

  • (evince:29852): WARNING : DjvuLibre error: Unrecognized DjVu Message:
  • Message name: \u0003EOF
  • (evince:29852): WARNING **: DjvuLibre error: DataPool.cpp:1768
  • (evince:29852): WARNING **: DjvuLibre error: DjVuFile.cpp:2249

So the files are still very very likely broken (EOF = End of file), stating that they have a few 100 more pages than actually included.

It could be helpful if you told which application and version you used to create these files.

Unfortunately I don't know that since I've just transferred those files from Ukrainian Wikisource where they had been uploaded by other user. What I can tell you is that I use DjVuLibre DjView 4.9 (for Windows) for opening those files. No errors occur.

Now it is time for me to apologize. I checked the file history on Wikisource and it seems that the file was corrupted on transferring. Sorry for wasting your time