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 742692 - PDF file fails to display
PDF file fails to display
Status: RESOLVED NOTGNOME
Product: evince
Classification: Core
Component: PDF
3.16.x
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-01-10 10:41 UTC by Dimitri Papadopoulos
Modified: 2015-10-18 00:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dimitri Papadopoulos 2015-01-10 10:41:40 UTC
evince cannot display attached file. The same file is properly displayed by Adobe Reader on Windows.

Error message on the command line look like this:
** (evince:5052): CRITICAL **: void pdf_document_get_page_size(EvDocument*, EvPage*, double*, double*): assertion 'POPPLER_IS_PAGE (page->backend_page)' failed

This had been initially reproduced on fedora 17 with evince 3.4, still there in Fedora 21 with evince 3.14. See downstream bug:
https://bugzilla.redhat.com/show_bug.cgi?id=883750
Comment 1 Dimitri Papadopoulos 2015-01-10 10:48:59 UTC
The PDF file weighs 2869 KB, I cannot attach it. Please get it directly from:
http://downloads.avaya.com/css/P8/documents/100095593

Note that Firefox also displays a warning about it ("document might not display correctly"). In the end Firefox does display the document though.
Comment 2 Germán Poo-Caamaño 2015-10-16 21:21:13 UTC
This is a bug in poppler, the library used by Evince to render PDF.
Please file a bug in https://bugs.freedesktop.org/enter_bug.cgi?product=poppler

For example:

$ pdftocairo -png 'NN46240-710_01.01_Troubleshooting-VPN.pdf' 
Syntax Error: font resource is not a dictionary
Syntax Error: font resource is not a dictionary
Syntax Error: XObject 'Im0' is unknown
Syntax Warning: Object (1 0) is not a pageDict
Syntax Warning: Failed parsing page 2 using hint tables
Syntax Error: Top-level pages object is wrong type (null)
Syntax Warning: Object (1 0) is not a pageDict
Syntax Warning: Failed parsing page 2 using hint tables
Syntax Error: Top-level pages object is wrong type (null)
Syntax Warning: Object (1 0) is not a pageDict
Syntax Warning: Failed parsing page 2 using hint tables
Syntax Error: Top-level pages object is wrong type (null)
Syntax Warning: Object (1 0) is not a pageDict
Syntax Warning: Failed parsing page 2 using hint tables
Syntax Error: Top-level pages object is wrong type (null)
Syntax Warning: Object (1 0) is not a pageDict
Syntax Warning: Failed parsing page 2 using hint tables
Syntax Error: Top-level pages object is wrong type (null)
libpng warning: Image width is zero in IHDR
libpng warning: Image height is zero in IHDR
libpng error: Invalid IHDR data
Internal Error: Error during writing header
Error writing NN46240-710_01.01_Troubleshooting-VPN-002.png

pdftocairo is a tool that comes with poppler.
Comment 3 Dimitri Papadopoulos 2015-10-17 17:06:53 UTC
Filed a bug report as asked:
https://bugs.freedesktop.org/show_bug.cgi?id=92508

Bug still there in Fedora 22 with evince 3.16.
Comment 4 Germán Poo-Caamaño 2015-10-18 00:38:40 UTC
Thanks.

It will be there until it is fixed in poppler and there were a new poppler release.  Until then, Fedora will have to pick the latest poppler version.

I am closing this one as not GNOME, as it is being tracked where it belongs to.