Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 31982 - XFree86 Xcursor themes cause memory leak
Summary: XFree86 Xcursor themes cause memory leak
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-25 11:31 UTC by Arne-Kolja Bachstein
Modified: 2005-06-13 09:49 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arne-Kolja Bachstein 2003-10-25 11:31:50 UTC
Whenever I am using an Xcursor theme (in this case it was "Silver"), X eats alot
more memory than without it and doesnt stop filling the memory. After a couple
of hours the memory usage changed from about 15% to over 40% only for X.
Especially GTK apps start to swap alot and sometimes the pc swaps that badly,
that it isnt usable for about half an hour. Had this problem for months, always
thinking it was related to GTK, Gaim or Sylpheed-Claws. But now I am sure its
the Xcursors, since I changed back to the core pointer and X' memory usage stays
to be less than 10%, even after days of running Xfree.


Reproducible: Always
Steps to Reproduce:
1.Use an Xcursor theme like "Silver"
2.Run Xfree for a few hours and use it ;)
3.Get excited by listening to your swapping harddrive and looking at top's
output about X

Actual Results:  
It filled my memory badly.

Expected Results:  
It shouldnt have filled my memory :-P

PC is an athlon xp 1800+ with 512megs of ram and about 520megs of swap.
Should be fixed by at least writing info into Xfree-4.3.x's ebuild!
Comment 1 Ahmed Farid 2003-10-25 13:25:11 UTC
heh i can confirm this, bad sadly i can't stop using it, i need my share
of eye candy :D
using golden xcursers here..

peace
Comment 2 Andrew Bevitt 2003-11-23 19:00:42 UTC
Which version of X is this occuring with?
Ive been using the -blue cursors with 4.3.99.x versions of X for considerable time now and havnt had this problem. 
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2003-11-24 23:29:14 UTC
Moving priority to major.
Comment 4 Andrew Bevitt 2004-02-14 15:39:48 UTC
Can't duplicate this in 4.3.99.x at all my X mem usage is 5.8% and has been for about a week solid of running X.... Im going to diff the tree's and see what changed in the cursors implementation
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2004-10-07 16:44:04 UTC
Still a problem in 6.8?
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2004-11-17 22:55:05 UTC
Waiting for info. Please reopen if you add some.
Comment 7 Denis Knauf 2005-04-02 09:26:58 UTC
Xorg needs more than 80%. i have 1gb memory and 1gb swap.
i use the nice, deadly blue cursors.

X Window System Version 6.8.2
linux 2.6.11-mm4
Comment 8 Paul Hoepfner-Homme 2005-05-02 08:55:16 UTC
I have Xorg 6.8.2 installed. 768MB RAM, 512MB swap. I use the crystalwhite xcurors.

After about 4 or 5 days of running Xorg, just running Firefox, VMware, Gaim, Superkaramba, Konsole and Konqueror, Xorg has consumed about 103% of my RAM.

I restart X and it's back down to using 1.3%.

But damn, I don't want to get rid of xcursors! The default cursors are simply ugly as hell. :)
Comment 9 Paul Hoepfner-Homme 2005-05-12 10:07:18 UTC
Hrm. Well, it turns out this memory leak happens whether I use an Xcursor theme or not. So ignore me, I guess.
Comment 10 Denis Knauf 2005-05-13 08:39:05 UTC
i use the simple black Xcursor, no cursortheme. the X-process needs 66% of 1gb memory. it runs only 3 days.

it isn't the cursor. its something different. or i must deactive the cursor completely? then how?
Comment 11 Joshua Baergen (RETIRED) gentoo-dev 2005-05-15 13:06:33 UTC
Denis, Paul: `emerge info` please
Comment 12 Denis Knauf 2005-05-15 13:37:01 UTC
X Window System Version 6.8.2
Release Date: 9 February 2005
X Protocol Version 11, Revision 0, Release 6.8.2
Build Operating System: Linux 2.6.11-rc2-mm1 i686 [ELF] 
Current Operating System: Linux denis 2.6.11-mm4 #2 PREEMPT Fri Mar 18 01:12:41 CET 2005 i686
Build Date: 06 March 2005
	Before reporting problems, check http://wiki.X.Org
	to make sure that you have the latest version.
Module Loader present


# emerge info
Portage 2.0.51.21-r1 (default-linux/x86/2005.0/2.4, gcc-3.4.3-20050110, glibc-2.3.5-r0, 2.6.11-mm4 i686)
=================================================================
System uname: 2.6.11-mm4 i686 AMD Athlon(TM) XP 3000+
Gentoo Base System version 1.6.11
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.2.3-r5, 2.3.5
sys-apps/sandbox:    1.2.8
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.4
sys-devel/binutils:  2.15.97
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.6.11
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -funroll-loops -fomit-frame-pointer -ffast-math -ffloat-store -fforce-mem -fforce-addr -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -frerun-cse-after-loop -fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -funroll-loops -fomit-frame-pointer -ffast-math -ffloat-store -fforce-mem -fforce-addr -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -frerun-cse-after-loop -fprefetch-loop-arrays -pipe"
DISTDIR="/var/portage/distfiles"
FEATURES="autoconfig candy ccache distlocks fixpackages noclean sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS=" 	#deltup://http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror 	#rsync://linux.rz.ruhr-uni-bochum.de/gentoo 	#rsync://ftp.join.uni-muenster.de/gentoo 	#rsync://ftp.belnet.be/gentoo 	#rsync://rsync.gentoo.skynet.be/gentoo 	#rsync://mirrors.sec.informatik.tu-darmstadt.de/gentoo 	#rsync://gd.tuwien.ac.at/opsys/linux/gentoo 	ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror 	ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo 	ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo 	ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo "
LANG="de_DE.UTF-8"
LINGUAS="de"
PKGDIR="/var/portage/packages"
PORTAGE_TMPDIR="/var/portage"
PORTDIR="/var/portage/gentoo"
PORTDIR_OVERLAY="/var/portage/gentoo-de /var/portage/gentookde /var/portage/bmg-main /var/portage/bmg-gnome-current /var/portage/deltup /var/portage/freedesktop /var/portage/local"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X Xaw3d aac aalib accessibility acl alsa ao apache2 apm arts artswrappersuid artworkextra audiofile avi bash-completion bcmath bdb berkdb bitmap-fonts bzlib c++ calendar camaelon cap cddb cdparanoia cdr chroot crypt cscope ctype cups curl curlwrappers dba dbm dbx dga directfb doc droproot dvb dvd dvdr dvdread emacs emboss encode erandom escreen esd etwin exif f77 faac faad fam fbcon fbdev flac flash flatfile foomaticdb fortran ftp gcj gd gd-external gdbm ggi gif gimp gimpprint glade gmp gnutls gphoto2 gpm graphviz gtk gtk2 gtkhtml guile hal hbci icecast iconv idea imagemagick imap imlib imlib2 immqt immqt-bc inifile ipv6 ithreads jabber java javascript jikes jpeg jpeg2k justify kde kdeenablefinal kdexdeltas kerberos kexec kqemu latex ldap leim lesstif libcaca libg++ libwww lirc lm_sensors lynxkeymap lzw-tiff mad maildir mailwrapper matrox mbox mbrola mcal memlimit mhash migemo mikmod mime mmx mmx2 mng monkey motif mozilla mozsvg mozxmlterm mp3 mpeg nas ncurses nethack network nls no-old-linux noamazon nptl nvidia objc offensive ogg oggvorbis openal opengl oss pam pam_chroot pam_timestamp pascal pcre pdflib perl perlsuid php pic plotutils png portaudio posix postgres povray pp_libavcodec ppds pthreads pwdb python qt quicktime quotas rdesktop readline recode rtc ruby samba sasl sblive scanner sdl sendfile session sftplogging shared sharedmem simplexml skey slang slp smartcard smime sndfile snmp soap sockets softmmu speex spell sse ssl streamzap subversion svg svga sysfs sysvipc szip tcltk tcpd tetex theora threads tidy tiff tokenizer truetype truetype-fonts type1-fonts unicode urandom usb v4l v4l2 vdr vidix vim-with-x vorbis winbind wxwindows xface xim xine xml xml2 xmlrpc xmms xpm xprint xrandr xscreensaver xsl xv xvid xvmc zlib zvbi video_cards_matrox linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS, MAKEOPTS
Comment 13 Joshua Baergen (RETIRED) gentoo-dev 2005-05-16 19:25:21 UTC
Is anyone else using the -mm kernel here?  Andrew Morton does some funky memory
management things in the kernel, I want to make sure that's not what's causing
the problem...
Comment 14 Andrew Muhametshin 2005-05-28 17:52:34 UTC
similar problem on: https://bugs.freedesktop.org/show_bug.cgi?id=1043
Comment 15 Donnie Berkholz (RETIRED) gentoo-dev 2005-06-13 09:49:00 UTC
That fix has just been committed upstream.
Comment 16 Donnie Berkholz (RETIRED) gentoo-dev 2005-06-13 09:49:34 UTC
Should be fixed in upstream CVS, and therefore our next snapshot etc.