After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 671883 - Memory leaks in nautilus_file_set_display_name
Memory leaks in nautilus_file_set_display_name
Status: RESOLVED DUPLICATE of bug 669763
Product: nautilus
Classification: Core
Component: general
3.3.x
Other Linux
: Normal major
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2012-03-12 10:35 UTC by Vadim Rutkovsky
Modified: 2012-12-15 13:34 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Vadim Rutkovsky 2012-03-12 10:35:36 UTC
Original Report: https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/952108

Package: nautilus 1:3.3.91-0ubuntu4

It's just to note that Nautilus has memory leaks with the latest version: with an uptime of 10 hours, Nautilus uses 420Mo.

It's maybe interesting to know that:
 * I'm using a slideshow and not one single image as background.
 * I opened Nautilus in directories where big files were being downloaded (and Nautilus regularly refreshed their preview)
 * I made a few actions (like opening directories with a lot of files, moving files, creating directories, extracting tarball, etc.)
 * I'm using a few plugins like nautilus-dropbox, nautilus-image-converter, etc.
 * I've bookmarks with special characters like 'Vidéos' and 'Téléchargements'.

This is what I did:
 * I installed nautilus-dbg
 * Closed nautilus: nautilus -q
 * Opened nautilus with valgrind: G_SLICE=always-malloc G_DEBUG=gc-friendly valgrind -v --tool=memcheck --leak-check=full --num-callers=40 --log-file=valgrind.log nautilus
 * Opened a directory where a video file was being downloaded (and Nautilus regularly refreshed its preview)
 * Opened a directory with a lot of other directories
 * Opened a directory with a lot of music files
        Nautilus gives us a lot of error like that:
          totem-video-thumbnailer: 'file:///path/to/a/mp3/file' isn't thumbnailable
          Reason: Media contains no supported video streams.
 * Kill Nautilus with <Ctrl> + C

Valgrind log: https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/952108/+attachment/2855168/+files/valgrind-logs-nautilus.tar.gz

Most recent error:
==3013== Invalid read of size 8
==3013==    at 0x90CE333: wcslen (wcslen.S:87)
==3013==    by 0x90D768E: wcsxfrm_l (strxfrm_l.c:107)
==3013==    by 0x867A63E: g_utf8_collate_key (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3120.0)
==3013==    by 0x867A8EF: g_utf8_collate_key_for_filename (in /lib/x86_64-linux-gnu/libglib-2.0.so.0.3120.0)
==3013==    by 0x4B8D38: nautilus_file_set_display_name (nautilus-file.c:240)
Comment 1 Cosimo Cecchi 2012-03-12 21:25:20 UTC
Thanks for the bug report. This particular bug has already been reported into our bug tracking system, but please feel free to report any further bugs you find.

*** This bug has been marked as a duplicate of bug 669763 ***
Comment 2 Jan Claeys 2012-10-29 15:38:03 UTC
This is incorrectly duplicated; the bug it currently points to is "fixed" as NOTABUG, so it can't be the cause of the massive memory leak(s) *this* bug report is about (also see the Ubuntu bug report on Launchpad).

So can somebody please remove the DUPLICATE status of this bug?
Comment 3 André Klapper 2012-12-15 13:34:12 UTC
Obviously also related to wcslen so correctly closed as NOTABUG in Nautilus because it is not a bug in Nautilus. Nautilus developers cannot fix bugs in 3rd party software.