Nautilus memory leak when thumbnailing jpeg2000 images

Bug #1225201 reported by Federico Tello Gentile
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gdk-pixbuf (Ubuntu)
Expired
High
Unassigned

Bug Description

Nautilus starts with under 300 MB and after thumbnailing some jp2 files (JPEG 2000) memory ends up above 900 MB. Closing all nautilus windows does not release the memory. Memory is only freed when doing nautilus -q.
The more files is thumbnails the more memory is uses.

Steps to reproduce:
Drop a few jp2 files in a folder (I tested with lossless jpeg2000 files about 3000 by 3000)
Quit nautilus (nautilus -q)
Start nautilus again and open the folder containing jp2 files.
Watch memory go up as nautilus is thumbnailing each file.
Close nautilus (ALT-F4 or clicking in the red cross), memory is never released.
Quit nautilus (nautilus -q) and memory is freed.

Valgrind is very helpful, apparently libpixbufloader-jasper.so is used to read jp2 files.

==3829== 325,112,688 bytes in 11 blocks are possibly lost in loss record 12,461 of 12,461
==3829== at 0x4C2CD7B: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==3829== by 0x72AC150: gdk_pixbuf_new (in /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0.2800.0)
==3829== by 0x288C42CE: ??? (in /usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-jasper.so)
==3829== by 0x72B2CA9: gdk_pixbuf_loader_close (in /usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so.0.2800.0)
==3829== by 0x5471919: ??? (in /usr/lib/libgnome-desktop-3.so.4.0.0)
==3829== by 0x5471E51: gnome_desktop_thumbnail_factory_generate_thumbnail (in /usr/lib/libgnome-desktop-3.so.4.0.0)
==3829== by 0x4D8B2A: ??? (in /usr/bin/nautilus)
==3829== by 0x8A70F8D: start_thread (pthread_create.c:311)
==3829== by 0x8D7FE1C: clone (clone.S:113)
==3829==
==3829== LEAK SUMMARY:
==3829== definitely lost: 12,603 bytes in 42 blocks
==3829== indirectly lost: 34,224 bytes in 1,064 blocks
==3829== possibly lost: 328,125,169 bytes in 16,209 blocks
==3829== still reachable: 226,694,419 bytes in 14,183 blocks
==3829== suppressed: 0 bytes in 0 blocks

ProblemType: Bug
DistroRelease: Ubuntu 13.04
Package: nautilus 1:3.6.3-0ubuntu16
ProcVersionSignature: Ubuntu 3.8.0-30.44-generic 3.8.13.6
Uname: Linux 3.8.0-30-generic x86_64
ApportVersion: 2.9.2-0ubuntu8.3
Architecture: amd64
Date: Fri Sep 13 18:15:06 2013
GsettingsChanges:
 b'org.gnome.nautilus.window-state' b'geometry' b"'979x653+131+63'"
 b'org.gnome.nautilus.window-state' b'sidebar-width' b'194'
InstallationDate: Installed on 2013-03-27 (170 days ago)
InstallationMedia: Ubuntu 12.10 "Quantal Quetzal" - Release amd64 (20121017.5)
MarkForUpload: True
SourcePackage: nautilus
UpgradeStatus: Upgraded to raring on 2013-04-25 (140 days ago)

Revision history for this message
Federico Tello Gentile (federicotg) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

The issue seems rather in the pixbuf loader/jpg library. Do you still see the problem in newer Ubuntu versions? If so could you add a file example to the bug?

affects: nautilus (Ubuntu) → gdk-pixbuf (Ubuntu)
Changed in gdk-pixbuf (Ubuntu):
importance: Undecided → High
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for gdk-pixbuf (Ubuntu) because there has been no activity for 60 days.]

Changed in gdk-pixbuf (Ubuntu):
status: Incomplete → Expired
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.