After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 304303 - crash on opening pdf with : Not a JPEG file: starts with 0x02 0x00
crash on opening pdf with : Not a JPEG file: starts with 0x02 0x00
Status: RESOLVED NOTGNOME
Product: evince
Classification: Core
Component: general
0.2.x
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-05-15 23:05 UTC by Thilo
Modified: 2005-05-16 09:06 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Thilo 2005-05-15 23:05:53 UTC
Distribution/Version: Fedora/development

I made a PDF with OpenOffice (1.9.100-1 on Fedora development) with a jpeg image
inside. I than exported it with losless compression. Evince crashed with "Not a
JPEG file: starts with 0x02 0x00".

If I choose to export PDF with JPEG compression Evince does not crash. XPDF does
not crash on either document and displays both correctly. BTW: Nautilus displays
a preview only for the PDF with JPEG compression.

A Trace ended with:

open("/path/filename.pdf", O_RDONLY|O_LARGEFILE) = 1 7
fstat64(17, {st_mode=S_IFREG|0644, st_size=56956, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7
499000
_llseek(17, 0, [0], SEEK_CUR)           = 0
_llseek(17, 0, [0], SEEK_SET)           = 0
read(17, "%PDF-1.4\r\n%\303\244\303\274\303\266\303\237\r\n2 0 o"..., 4096) = 40 96
fstat64(17, {st_mode=S_IFREG|0644, st_size=56956, ...}) = 0
_llseek(17, 53248, [53248], SEEK_SET)   = 0
read(17, "\33z\261\255A\35\25_X\335\310I\30=\237\325\205h#\314B\311"..., 4096) =
 3708
fstat64(17, {st_mode=S_IFREG|0644, st_size=56956, ...}) = 0
_llseek(17, 56956, [56956], SEEK_SET)   = 0
_llseek(17, 56956, [56956], SEEK_SET)   = 0
read(17, "", 4096)                      = 0
_llseek(17, 53248, [53248], SEEK_SET)   = 0
read(17, "\33z\261\255A\35\25_X\335\310I\30=\237\325\205h#\314B\311"..., 3708) =
 3708
_llseek(17, 56956, [56956], SEEK_SET)   = 0
_llseek(17, 53248, [53248], SEEK_SET)   = 0
read(17, "\33z\261\255A\35\25_X\335\310I\30=\237\325\205h#\314B\311"..., 4096) =
 3708
_llseek(17, 56956, [56956], SEEK_SET)   = 0
_llseek(17, 53248, [53248], SEEK_SET)   = 0
read(17, "\33z\261\255A\35\25_X\335\310I\30=\237\325\205h#\314B\311"..., 4096) =
 3708
_llseek(17, 56956, [56956], SEEK_SET)   = 0
_llseek(17, 53248, [53248], SEEK_SET)   = 0
read(17, "\33z\261\255A\35\25_X\335\310I\30=\237\325\205h#\314B\311"..., 4096) =
 3708
_llseek(17, 56956, [56956], SEEK_SET)   = 0
_llseek(17, 53248, [53248], SEEK_SET)   = 0
read(17, "\33z\261\255A\35\25_X\335\310I\30=\237\325\205h#\314B\311"..., 4096) =
 3708
_llseek(17, 56956, [56956], SEEK_SET)   = 0
_llseek(17, 53248, [53248], SEEK_SET)   = 0
read(17, "\33z\261\255A\35\25_X\335\310I\30=\237\325\205h#\314B\311"..., 4096) =
 3708
_llseek(17, 56956, [56956], SEEK_SET)   = 0
_llseek(17, 53248, [53248], SEEK_SET)   = 0
read(17, "\33z\261\255A\35\25_X\335\310I\30=\237\325\205h#\314B\311"..., 4096) =
 3708
_llseek(17, 56956, [56956], SEEK_SET)   = 0
_llseek(17, 53248, [53248], SEEK_SET)   = 0
read(17, "\33z\261\255A\35\25_X\335\310I\30=\237\325\205h#\314B\311"..., 4096) =
 3708
_llseek(17, 56956, [56956], SEEK_SET)   = 0
_llseek(17, 53248, [53248], SEEK_SET)   = 0
read(17, "\33z\261\255A\35\25_X\335\310I\30=\237\325\205h#\314B\311"..., 4096) =
 3708
_llseek(17, 56956, [56956], SEEK_SET)   = 0
_llseek(17, 53248, [53248], SEEK_SET)   = 0
read(17, "\33z\261\255A\35\25_X\335\310I\30=\237\325\205h#\314B\311"..., 4096) =
 3708
_llseek(17, 56956, [56956], SEEK_SET)   = 0
_llseek(17, 53248, [53248], SEEK_SET)   = 0
read(17, "\33z\261\255A\35\25_X\335\310I\30=\237\325\205h#\314B\311"..., 4096) =
 3708
_llseek(17, 56956, [56956], SEEK_SET)   = 0
_llseek(17, 53248, [53248], SEEK_SET)   = 0
read(17, "\33z\261\255A\35\25_X\335\310I\30=\237\325\205h#\314B\311"..., 4096) =
 3708
futex(0x880d0a4, 0x4 /* FUTEX_??? */, 1) = 1
futex(0x880c560, FUTEX_WAKE, 1Not a JPEG file: starts with 0x02 0x00
)         = 1
Comment 1 Elijah Newren 2005-05-16 02:54:14 UTC
Could you provide a stack trace and the file that causes the crash?  (See
http://live.gnome.org/GettingTraces for more information on how to get a stack
trace)
Comment 2 Nickolay V. Shmyrev 2005-05-16 06:30:03 UTC
Also, this looks like a bug with the PDF backend.  Could you please follow
these instructions to help get this bug fixed. You can attach backtrace and
document directly to poppler bugzilla. 

http://live.gnome.org/Evince/PopplerBugs#poppler

Thank You. 
Comment 3 Thilo 2005-05-16 09:05:42 UTC
Ok, bug for poppler is now here: https://bugs.freedesktop.org/show_bug.cgi?id=3299