Bug 105180 - "Bogus memory allocation size" for many pdf created by inkscape
Summary: "Bogus memory allocation size" for many pdf created by inkscape
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: 2018-02-20 21:53 UTC by Andreas K. Hüttel
Modified: 2018-08-21 10:37 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Inkscape svg source (159.36 KB, image/svg+xml)
2018-02-20 21:56 UTC, Andreas K. Hüttel
Details
pdf exported by inkscape (80.63 KB, application/pdf)
2018-02-20 21:56 UTC, Andreas K. Hüttel
Details
png exported by inkscape (46.29 KB, image/png)
2018-02-20 21:57 UTC, Andreas K. Hüttel
Details

Description Andreas K. Hüttel 2018-02-20 21:53:07 UTC

    
Comment 1 Andreas K. Hüttel 2018-02-20 21:55:29 UTC
When using Okular, I'm getting often "Bogus memory allocation size" error messages from pdf files exported by Inkscape. This typically involves embedded bitmaps, and the bitmaps do not display on the screen.

I'm trying to figure out if this is an inkscape or poppler problem. 

A reduced test case is attached (svg, pdf, and png rendering to show how it's supposed to look). 

Thanks a lot for your help.
Comment 2 Andreas K. Hüttel 2018-02-20 21:56:21 UTC
Created attachment 137484 [details]
Inkscape svg source
Comment 3 Andreas K. Hüttel 2018-02-20 21:56:45 UTC
Created attachment 137485 [details]
pdf exported by inkscape
Comment 4 Andreas K. Hüttel 2018-02-20 21:57:05 UTC
Created attachment 137486 [details]
png exported by inkscape
Comment 5 Andreas K. Hüttel 2018-02-20 21:58:30 UTC
Further information: 

* Gentoo
* Inkscape 0.92.2
* Okular 17.12.2
* Poppler 0.62.0

This problem has been plagueing me for a while though.
Comment 6 Albert Astals Cid 2018-02-20 22:53:57 UTC
the pdf is weirdly constructed.

There's a relatively "crazy" transformation matrix
  18158.399546 0 0 -7163.799821 -0.000000345 7163.799823 cm
which when asked to zoom ends up needing too much memory and poppler bails out.

poppler "could" try to work with such strangely formed documents but it seems to me that it's much better if inkscape creates better formed pdf files.
Comment 7 Andreas K. Hüttel 2018-02-21 13:55:25 UTC
(In reply to Albert Astals Cid from comment #6)
> 
> poppler "could" try to work with such strangely formed documents but it
> seems to me that it's much better if inkscape creates better formed pdf
> files.

OK thanks. I'm going to submit an Inkscape bug and link to it here. Let's see what feedback we get there.
Comment 8 GitLab Migration User 2018-08-21 10:37:10 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/291.


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.