Public bug reported: 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) ** Affects: nautilus (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug raring ** Attachment added: "Full valgrind log. Generated with --leak-check=full" https://bugs.launchpad.net/bugs/1225201/+attachment/3819962/+files/nautilusvalgrind.log.gz -- You received this bug notification because you are a member of Ubuntu Desktop Bugs, which is subscribed to nautilus in Ubuntu. https://bugs.launchpad.net/bugs/1225201 Title: Nautilus memory leak when thumbnailing jpeg2000 images To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/1225201/+subscriptions -- desktop-bugs mailing list desktop-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/desktop-bugs