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 334825 - Totem use 100 Mo to load totem_logo.png
Totem use 100 Mo to load totem_logo.png
Status: RESOLVED NOTABUG
Product: totem
Classification: Core
Component: xine-lib backend
1.4.x
Other All
: Normal critical
: ---
Assigned To: Maintainer alias for xine-lib component of Totem
Maintainer alias for xine-lib component of Totem
Depends on:
Blocks:
 
 
Reported: 2006-03-16 22:57 UTC by Cédric Bellegarde
Modified: 2006-03-18 13:05 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14



Description Cédric Bellegarde 2006-03-16 22:57:52 UTC
Please describe the problem:
When starting totem, it use 100 Mo of ram :(

Steps to reproduce:
Launch totem


Actual results:
Load totem_logo.png and eat 100Mo of ram

Expected results:


Does this happen every time?
Yes

Other information:
Comment 1 Bastien Nocera 2006-03-16 23:31:38 UTC
After starting up Totem (xine-lib) on my machine:
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
<snip>
10738 hadess    15   0  139m  26m  18m S  0.0  5.3   0:00.68 totem

So it uses 26 megs of RAM (and not 139 megs).
That's mainly the plugins, and the needed application and library bits loaded in memory. Where exactly did you find this 100 megs?
Comment 2 Cédric Bellegarde 2006-03-17 18:04:22 UTC
Before starting totem, my systeme use 135 Mo,
after starting it, it use near 300 Mo of ram.

Maybe an Ubuntu bug :(
Comment 3 Bastien Nocera 2006-03-17 18:26:23 UTC
You probably need to learn how to read the free memory on Linux. Here are a few of the links that showed up in Google:
http://gentoo-wiki.com/FAQ_Linux_Memory_Management
http://sourcefrog.net/weblog/software/linux-kernel/free-mem.html
Comment 4 Cédric Bellegarde 2006-03-18 12:40:40 UTC
I know how to read memory usage on Linux.

Sorry, but with xine plugin on Ubuntu Dapper, totem take about 10 seconds to load the png logo totem_logo.png and while loading this png, memory usage grow (100 Mo).

With gstreamer plugin, loading totem_logo.png is really fast and i can't see memory leaks.

With xine:
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 3359 gnumdk    15   0  275m 139m  12m S  3.0 27.6   0:00.75 totem

What lib is used by totem while loading png files with xine engine? It may be a bug in this lib on dapper :(

Thanx for answers ;)
Comment 5 Bastien Nocera 2006-03-18 13:05:20 UTC
Ha, yeah, file a bug with Ubuntu to include a newer version of xine-lib, or tell them to backport the gdk-pixbuf decoder I wrote. The ImageMagick backend is utter crap, and will use gobs of memory.
You're better off remove the ImageMagick decoder in the meanwhile.