GNOME Bugzilla – Bug 344259
Totem leaks a lot of memory when looping files
Last modified: 2006-07-13 13:39:42 UTC
Totem from CVS, GStreamer 0.10.6: - Start totem: 6436 fabio 16 0 58136 19m 11m S 8.9 5.2 0:03.58 totem - Play a video: 6436 fabio 15 0 162m 65m 35m S 30.3 17.5 0:11.99 totem - Wait for the video to loop or press Next 6436 fabio 15 0 193m 89m 57m S 29.6 23.7 0:31.94 totem - Next again 6436 fabio 15 0 215m 110m 79m S 30.5 29.4 0:43.25 totem - Again 6436 fabio 15 0 237m 132m 101m S 28.9 35.1 0:54.58 totem And so on. The same thing happens also when you play another file by double-clicking or drag and dropping within nautilus.
And debugging output doesn't say much. $ totem --debug (totem:6436): libglade-WARNING **: Error loading image: Apertura del file «/usr/local/share/totem/media-player-48.png» fallita: Nessun file o directory (totem:6436): libglade-WARNING **: could not convert string to type `GdkPixbuf' for property `icon' Fontconfig error: "conf.d", line 1: no element found (totem:6436): libglade-WARNING **: Error loading image: Apertura del file «/usr/local/share/totem/media-player-48.png» fallita: Nessun file o directory (totem:6436): libglade-WARNING **: could not convert string to type `GdkPixbuf' for property `icon' (totem:6436): libglade-WARNING **: Error loading image: Apertura del file «/usr/local/share/totem/media-player-48.png» fallita: Nessun file o directory (totem:6436): libglade-WARNING **: could not convert string to type `GdkPixbuf' for property `icon' ** Message: Couldn't initialize lirc.
With current CVS of core/base (=0.10.8) I can't reproduce the increase in RES and SHR memory, but VIRT indeed does increase steadily (and sometimes rapidly). When filesrc is used for local files (which is the case with core >= 0.10.7 I believe) it also appears the file descriptors for the previous files are never closed, which indicates a buffer refcounting problem somewhere, esp. since that effect doesn't occur with gnomevfssrc (so the fd is kept open because there's still an mmap'ed buffer alive). VIRT memory usage can also be made to go up quite a bit when seeking.
*** This bug has been marked as a duplicate of 347304 ***