Inkscape crashes when shifting location of large embeded PNG file

Bug #1329198 reported by rickmastfan67
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
New
Undecided
Unassigned

Bug Description

Inkscape 0.48.4 r9939
Windows 7 x64 SP1

Just found a way to crash Inkscape reliably 100% of the time. It happens after you embed a large PNG file and try to shift it's location by using the 'Shit+arrow keys'. Memory shoots through the roof and Inkscape then crashes.

Steps to reproduce:
1. Download and save the 'original' size PNG located at this page: http://commons.wikimedia.org/wiki/File:Green_wool_texture.png
2. Once you have the image saved, go to wherever you saved it to and then import it into Inkscape.
3. When the window shows up asking you to either 'link' or 'embed' the image, select 'embed'.
4. Once he main Inkscape GUI shows up with the 'embeded' image, select the image with you mouse.
5. After you have selected the image, hold down your 'SHIFT' button and any of the keyboard's 'arrow' keys (any of the 4 will do, happens with all) for as long as necessary to trigger what happens below.

What should happen:
Inkscape should shift the image in the direction of the arrow button you're holding down without a massive memory leak + crash.

What happens:
After about ~3-5 seconds, Inkscape crashes because of a massive memory leak from shifting the image location. The memory usage for Inkscape gets up to around 1.32GB when it crashes. It seems that every time the image is shifted by the 'SHIFT' + 'Arrow Key', the memory goes up ~36,000K per move via the arrow keys. That adds up really fast if you need to move the embeded image a lot and results in the crash.

This happens with a fresh brand new profile and my normal profile, so, not a profile bug.

Revision history for this message
su_v (suv-lp) wrote :

Seems similar or related to
- Bug #1327481 “Crashes while using bmp files”
  <https://bugs.launchpad.net/inkscape/+bug/1327481>

tags: added: bitmap crash win32
Revision history for this message
Liam P. White (liampwhite) wrote :

Confirmed with stable 0.48.4 r9939 on Windows 7 x64 with arch i386-mingw32
Console message @ crash:
** (inkscape.exe:8072): WARNING **: GC Warning: Out of Memory! Returning NIL!

Not confirmed with lp:inkscape/0.48.x r10038 on x86_64 Ubuntu 14.04
Not confirmed with lp:inkscape/experimental r13397 on Windows 7 x64 with arch x86_64-w64-mingw32

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.