Last modified: 2014-01-08 18:39:55 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T61669, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59669 - Cannot read some valid DjVu files on Commons
Cannot read some valid DjVu files on Commons
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
DjVu (Other open bugs)
unspecified
All All
: Lowest normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-05 10:11 UTC by Dmytro Dziuma
Modified: 2014-01-08 18:39 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Comment 1 Andre Klapper 2014-01-06 13:53:30 UTC
> 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
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\>
Comment 2 Dmytro Dziuma 2014-01-06 13:59:21 UTC
Because I can read them locally
Comment 3 Andre Klapper 2014-01-06 14:11:43 UTC
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.
Comment 4 Andre Klapper 2014-01-06 14:35:04 UTC
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.
Comment 5 Dmytro Dziuma 2014-01-08 15:32:03 UTC
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
Comment 6 Andre Klapper 2014-01-08 16:58:13 UTC
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: EOF

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.
Comment 7 Dmytro Dziuma 2014-01-08 17:06:57 UTC
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.
Comment 8 Dmytro Dziuma 2014-01-08 17:14:07 UTC
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
Comment 9 Andre Klapper 2014-01-08 18:39:55 UTC
:D  No problem.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links