Gimp freezes and makes whole system lagging when opening large file

Bug #408317 reported by Przemysław Kochański
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Baltix
New
Undecided
Unassigned
gimp (Ubuntu)
Incomplete
Medium
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gimp

Ubuntu 9.10
Gimp 2.6.6-1ubuntu2
Gimp goes crazy when opening attached file.

Revision history for this message
Przemysław Kochański (kochas315) wrote :
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for the report, it doesn't freeze here but it takes a while to open the file since it's pretty big which is expected, could you get a backtrace of that freeze and attach it to the report? Thanks.

Changed in gimp (Ubuntu):
assignee: nobody → Ubuntu Desktop Bugs (desktop-bugs)
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Przemysław Kochański (kochas315) wrote :

It doesn't freeze system completely, but for 1sec and again 1sec and again 1sec.... If I move my mouse i see 1fps slide-show. All I wanted to do was resize the image, and I had to use another tool. The point is when I open it I cant stop the process of that freezes and have to force shut down my laptop. Maybe just my PC is to weak?
After 3min of backtrace I interrupted program with ctrl+c.
Maybe it's not a bug, just performance issue.

Revision history for this message
Pedro Villavicencio (pedro) wrote : Re: [Bug 408317] Re: Gimp freezes and makes whole system lagging when opening large file

Hello,

On Mon, 2009-08-03 at 12:08 +0000, Przemysław Kochański wrote:
> It doesn't freeze system completely, but for 1sec and again 1sec and again 1sec.... If I move my mouse i see 1fps slide-show. All I wanted to do was resize the image, and I had to use another tool. The point is when I open it I cant stop the process of that freezes and have to force shut down my laptop. Maybe just my PC is to weak?
> After 3min of backtrace I interrupted program with ctrl+c.
> Maybe it's not a bug, just performance issue.
>
> ** Attachment added: "gdb-gimp.txt"
> http://launchpadlibrarian.net/29822969/gdb-gimp.txt

Could you please get a more detailed backtrace with the instructions at:
https://wiki.ubuntu.com/Backtrace and attach it to the report? It might
be a good idea to get a valgrind log as well:
https://wiki.ubuntu.com/Valgrind ; Please do so and attach both logs to
the report, Thanks in advance.

Revision history for this message
vietnam (vietnam-ro2005) wrote :

Gimp, like other programs, load the file like a BMP and need to load every single pixels. Gimp need to load 14000 X 8000 pixels... that about an image with a size of 924.4 MB.

Revision history for this message
Mantas Kriaučiūnas (mantas) wrote :

This is really a GIMP bug because of too big memory usage when working with 3.9 MiB jpeg file.

I've tested that jpeg file with other image viewing/edidint applications and didn't noticed such big memory usage, like with GIMP.
Computer has 3Gb of RAM and no swap. I simply open image with 3 different applications and look how many they use memory with htop. Then I try to zoom in several times, then zoom out and finally - rotate image to the right (90 angle). Results of my tests:

Eog 2.30.0-0ubuntu1 :
400Mb (13,5% of total memory) after opening, zoom doesn't increase memory usage, ~800Mb during rotate;

Shotwell viewer 0.7.2-0ubuntu2 :
~40Mb (only ~1% of total memory) after opening, 1Gb (33%) after zoom, rotating doesn't increase memory usage (if I rotate before zoom, then memory usage remains ~40Mb !!!);

GIMP 2.6.8-2ubuntu1.1 :
1,3 Gb (42% of total memory) after opening, zoom doesn't increase memory usage, increased memory usage during rotate and kernel killed GIMP...

So, vietnam isn't right - GIMP uses much more memory for the same image comparing to other programs. Maybe we need to test with latest GIMP version 2.6.11 and report a bug to upstream if memory usage is too big?

vietnam wrote on 2010-01-27:
> Gimp, like other programs, load the file like a BMP and need to load every single pixels. Gimp need to load 14000 X 8000 pixels... that about an image with a size of 924.4 MB.

Changed in baltix:
status: New → Invalid
Revision history for this message
Thomas Hotz (thotz-deactivatedaccount) wrote :

Reverted status in Baltix. This was my mistake.

Changed in baltix:
status: Invalid → New
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.