2 MB PDF uses several GB of memory and causes crash

Bug #1485362 reported by Adam
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned
inkscape (Ubuntu)
New
Undecided
Unassigned

Bug Description

Trying to open this 2 MB PDF with Inkscape causes Inkscape to use 3.7 GB of memory. Saving it as an svg file uses 78 MB on disk. Opening the saved svg file requires 3.5 GB of memory. If I then do ctl+A, ctl+G, it crashes immediately with the following output:

Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS

Emergency save activated!
Emergency save completed. Inkscape will close now.
If you can reproduce this crash, please file a bug at www.inkscape.org
with a detailed description of the steps leading to the crash, so we can fix it.
Too many heap sections: Increase MAXHINCR or MAX_HEAP_SECTS
Aborted

Tags: pdf
Revision history for this message
Adam (nodice73) wrote :
affects: inkscape → inkscape (Ubuntu)
Revision history for this message
Adam (nodice73) wrote :

I forgot to mention, I'm using Linux Mint 17.1 with Inkscape version 0.48.4 r9939 (Jan 22 2014).

Revision history for this message
Adam (nodice73) wrote :

I installed version 0.91 from the ppa. The crashing problem seems to have been solved. However, when I import the PDF, it displays strange behavior. While it is importing the PDF, it uses 3.7 GB and levels off for a few minutes, although one cpu shows 100% usage. This behavior is similar to what I saw with version 0.48). Then, it uses another 4.6 GB (which causes swapping on my system which has 8 GB of memory) and successfully imports the image.

Saving the image as svg increases memory another 700 MB during the save and the file uses 98.4 MB on disk. Closing the image briefly displays some kind of error message window that disappears too fast for me to read. Opening the saved svg uses 3.9 GB of memory.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.