Bug 104088 - Can't visualize large PDF
Summary: Can't visualize large PDF
Status: RESOLVED MOVED
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-04 21:37 UTC by Tomas
Modified: 2018-08-21 11:03 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
messy call graph of open-ssh (1.36 MB, application/pdf)
2017-12-04 21:37 UTC, Tomas
Details
evince view of the PDF (7.68 KB, image/png)
2017-12-04 22:16 UTC, Tomas
Details

Description Tomas 2017-12-04 21:37:11 UTC
Created attachment 135940 [details]
messy call graph of open-ssh

Hi,

In Evince, it's not possible to visualize the attached PDF.

I initially reported the bug at Gnome:  https://bugzilla.gnome.org/show_bug.cgi?id=791163

However, as suggested by Germán the issue is more probably triggered by Poppler.


Regards
Comment 1 Albert Astals Cid 2017-12-04 22:10:16 UTC
takes a while but okular can show it fine, what's the problem with evince?
Comment 2 Tomas 2017-12-04 22:15:40 UTC
When it loads I can see a preview of the thing but when I try to zoom I like a "blank" view
Comment 3 Tomas 2017-12-04 22:16:29 UTC
Created attachment 135945 [details]
evince view of the PDF
Comment 4 Albert Astals Cid 2017-12-05 16:07:27 UTC
Honestly without knowing anything about the evince code it seems to me an evince bug because it can't handle "too big stuff", but maybe Germán can come here and point out why he thinks it's a poppler bug :)
Comment 5 Jason Crain 2017-12-05 16:27:44 UTC
He moved it here because pdftocairo complains about the size:

$ pdftocairo -png callgraph.pdf out
Internal Error: cairo context error: invalid value (typically too big) for the size of the input (surface, pattern, etc.)<0a>
cairo error: invalid value (typically too big) for the size of the input (surface, pattern, etc.)
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 out-1.png

The issue is partly that cairo doesn't like really big surfaces though maybe evince and the glib backend shouldn't try to draw the whole thing at once.
Comment 6 Albert Astals Cid 2017-12-05 16:37:19 UTC
Right, that's what Okular does, at some point if you try to render something huge it tiles it and only renders part of it, since your screen is not that big anyway so you don't really need to render it all since you won't be able to see it.
Comment 7 GitLab Migration User 2018-08-21 11:03:46 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/490.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.