Bug 107112

Summary: Bitmap not shown
Product: poppler Reporter: oliver.sander
Component: splash backendAssignee: poppler-bugs <poppler-bugs>
Status: RESOLVED MOVED QA Contact:
Severity: normal    
Priority: medium CC: oliver.sander
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Problematic page rendered with the splash backend
Problematic page rendered with the arthur backend

Description oliver.sander 2018-07-04 07:33:29 UTC
Created attachment 140460 [details]
Problematic page rendered with the splash backend

Consider the file http://www.mdpi.com/2072-4292/10/5/804/pdf

The bitmaps in Figure 7 on page ??? are not shown with the splash backend.

To reproduce: 

./test-render-to-file-qt5 ~/tmp/remotesensing-10-00804-v2.pdf

and then have a look at test-render-to-file11.ppm (attached as test-render-to-file11-splash.ppm).

For comparison, call

./test-render-to-file-qt5 ~/tmp/remotesensing-10-00804-v2.pdf -arthur

and then have a look at test-render-to-file11.ppm again (attached as test-render-to-file11-arthur.ppm).

BTW, the test program prints 'Bogus memory allocation size' several times when handling the pages with the problematic images.
Comment 1 oliver.sander 2018-07-04 07:34:00 UTC
Created attachment 140461 [details]
Problematic page rendered with the arthur backend
Comment 2 oliver.sander 2018-07-04 07:35:04 UTC
Corresponding Okular bug report: https://bugs.kde.org/show_bug.cgi?id=396094
Comment 3 Albert Astals Cid 2018-07-18 21:56:40 UTC
The 'Bogus memory allocation size' is actually the issue, it's trying to allocate a huge bitmap and failing to do so. Someone with time should investigate if that bitmap can be made smaller (there's something like some matrix calculation that can be made earlier?) or if not if we can just use various bitmaps when the needed bitmap is just too big.
Comment 4 GitLab Migration User 2018-08-21 11:08:47 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/532.

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.