Nautilus memory leak when thumbnailing jpeg2000 images
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
==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/
==3829== by 0x72AC150: gdk_pixbuf_new (in /usr/lib/
==3829== by 0x288C42CE: ??? (in /usr/lib/
==3829== by 0x72B2CA9: gdk_pixbuf_
==3829== by 0x5471919: ??? (in /usr/lib/
==3829== by 0x5471E51: gnome_desktop_
==3829== by 0x4D8B2A: ??? (in /usr/bin/nautilus)
==3829== by 0x8A70F8D: start_thread (pthread_
==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
ProcVersionSign
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.
b'org.
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)
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?