Inkscape crashes when large file has been opened and zoomed some times

Bug #308589 reported by Jekhor
44
This bug affects 8 people
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
High
Krzysztof Kosinski

Bug Description

Inkscape 0.46-3 from Debian package.

When I open LARGE file in inkscape (~30 MiB, rendered Openstreetmap fragment) and try to zoom in some times, Inkscape crashes with following messages:
----------------------------------------------------------
...
** (inkscape:17799): WARNING **: GC Warning: Repeated allocation of very large block (appr. size 16384):
        May lead to memory leak and poor performance.

** (inkscape:17799): WARNING **: GC Warning: Repeated allocation of very large block (appr. size 16384):
        May lead to memory leak and poor performance.

** (inkscape:17799): WARNING **: GC Warning: Out of Memory! Returning NIL!

terminate called after throwing an instance of 'std::bad_alloc'
  what(): std::bad_alloc

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.
Aborted
------------------------------

After start it consumes 1.3G of memory, after first zoom --- 1.8G, after second --- 1.9G etc.

Probably, it's not bug.

Revision history for this message
deba (markus-debatin) wrote :

Bug also occures using Ubuntu.

Also in Windows there is a similar Problem. The Amount of memory consumed increases by scrolling or zooming. The Program crashes displaying a messege: "Too many heap sessions"

nightrow (jb-benoit)
Changed in inkscape:
importance: Undecided → High
status: New → Confirmed
tags: added: crash
summary: - Inkscape chashes when large file has been opened and zoomed some times
+ Inkscape crashes when large file has been opened and zoomed some times
Revision history for this message
David Rose (drose108) wrote :

I can replicate this at will with the attached svg file. I am also attaching a gdb result log. I am running Inkscape 0.48.1 on a Windows 7 box with 8GB RAM. (Also occurs on a Win XP Pro box).

Revision history for this message
jazzynico (jazzynico) wrote :

Reproduced on Windows XP, Inkscape 0.48.1.
Not reproduced with trunk revision 10466. Zoom and span are now relatively fast, with no excessive memory consumption.

Changed in inkscape:
milestone: none → 0.49
status: Confirmed → Fix Committed
tags: added: performance
Changed in inkscape:
assignee: nobody → Krzysztof Kosinski (tweenk)
Bryce Harrington (bryce)
Changed in inkscape:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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