| Summary: | GTK apps go cpu nuts with >=scim-1.3 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Perry Lu <perry> |
| Component: | Current packages | Assignee: | CJK Team <cjk> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | major | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | nautilus strace | ||
I forgot to mention, I'm using GNOME-2.10 I can't reproduce this behaviour. I'd like to ask you a few things: Can you try to find a consistent series of steps that reproduce the problem? Can you try to reproduce it on another machine? What version of nautilus specifically do you have? Could you attach a complete strace log? It's not clear what are the resources that are being constantly polled/read in your example (file descriptiors 3 and 4). Are you running the fam daemon? If so, what version? Are you performing a special action (downloading files, moving files around) when this happens? Do you have any other programs running when this happens? Created attachment 60527 [details]
nautilus strace
I did the following to generate the strace log:
1.killall -9 nautilus
2.strace nautilus
3.close nautilus file browser window
4.open nautilus file browser window
5.kill strace nautilus
I'm using nautilus-2.10.0, the problem occured only recently, and I know it's not because of nautilus itself. indeet I'm running fam daemon, its version is 2.7.0-r3. and after stopping famd, I found the problem is gone. no, I was not running anything(other than the essentials for nautilus) when I discovered the problem. and if you revert back to stable fam ? I reverted back to fam-2.7.0, the problem persists. maybe I made a little mistake before. this time even I stopped famd, the CPU usage still increases, so I guess this isn't really related to famd. I just observed I can reproduce the same problem on gaim and gweather-applet-2. on gaim, I would start a conversation with someone, then close the conversation window, then I would see the CPU usage of gaim sky rocket. on gweather-applet-2, I would open its preference window, then close it, then gweather-applet-2's CPU usage would sky rocket. first I thought this happens to all GTK programs that opens up a child-window, but a few more tests showed this isn't true in all cases. UPDATE: it seems the problem occurs on root account as well. but after switching off "always_use_browser" the problem stopped on nautilus, but persists on other programs. I just found where the problem is, it was caused by scim-1.3.0. Since I have GTK_IM_MODULE=scim in my bash profile, it loads with every GTK program. Downgrade to scim-1.2.3 fixed the problem. I guess I'll file a seperate bug report on this. *** This bug has been marked as a duplicate of 95921 *** |
when I login to GNOME, everything looks fine, but as soon as I open a nautilus file browser and close it again, and type ps aux in a terminal, I see: perry 28329 61.6 1.9 42932 20304 ? Rsl 14:37 7:10 nautilus --no-default-window --sm-client-id default3 CPU usage keeps on increasing(eventually reaches 99%), and I see TIME increasing as well. but when I open up a nautilus browser again, CPU usage slowly drops back to normal, and TIME pauses. and if I close it, the cycle continues. I did a little strace on nautilus and I found as soon as I close nautilus, it repeats the following cycle: ioctl(3, FIONREAD, [0]) = 0 poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, events=POLLIN|POLLPRI}, {fd=10, events=POLLIN}, {fd=12, events=POLLIN|POLLPRI}, {fd=29, events=POLLIN, revents=POLLNVAL}, {fd=29, events=0, revents=POLLNVAL}, {fd=29, events=0, revents=POLLNVAL}, {fd=17, events=POLLIN}], 9, -1) = 3 ioctl(3, FIONREAD, [0]) = 0 poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, events=POLLIN|POLLPRI}, {fd=10, events=POLLIN}, {fd=12, events=POLLIN|POLLPRI}, {fd=29, events=POLLIN, revents=POLLNVAL}, {fd=29, events=0, revents=POLLNVAL}, {fd=29, events=0, revents=POLLNVAL}, {fd=17, events=POLLIN}], 9, -1) = 3 ioctl(3, FIONREAD, [32]) = 0 read(3, "p\2\316\20H\325\f\0\0\24\4\0\20\0\0\0\0\0\0\24\24\24\24"..., 32) = 32 poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, events=POLLIN|POLLPRI}, {fd=10, events=POLLIN}, {fd=12, events=POLLIN|POLLPRI}, {fd=29, events=POLLIN, revents=POLLNVAL}, {fd=29, events=0, revents=POLLNVAL}, {fd=29, events=0, revents=POLLNVAL}, {fd=17, events=POLLIN}], 9, 0) = 3 write(3, "\230\4\2\0\0\1 \1", 8) = 8 read(3, 0xbfffde20, 32) = -1 EAGAIN (Resource temporarily unavailable) select(4, [3], NULL, NULL, NULL) = 1 (in [3]) read(3, "\1\0\317\20\0\0\0\0\24\4\0\20\0\0\0\0\0\0\24\0\0\0\0\0"..., 32) = 32 ioctl(3, FIONREAD, [0]) = 0 poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, events=POLLIN|POLLPRI}, {fd=10, events=POLLIN}, {fd=12, events=POLLIN|POLLPRI}, {fd=29, events=POLLIN, revents=POLLNVAL}, {fd=29, events=0, revents=POLLNVAL}, {fd=29, events=0, revents=POLLNVAL}, {fd=17, events=POLLIN}], 9, -1) = 3 ioctl(3, FIONREAD, [0]) = 0 poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, events=POLLIN|POLLPRI}, {fd=10, events=POLLIN}, {fd=12, events=POLLIN|POLLPRI}, {fd=29, events=POLLIN, revents=POLLNVAL}, {fd=29, events=0, revents=POLLNVAL}, {fd=29, events=0, revents=POLLNVAL}, {fd=17, events=POLLIN}], 9, -1) = 3 ioctl(3, FIONREAD, [0]) = 0 poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, events=POLLIN|POLLPRI}, {fd=10, events=POLLIN}, {fd=12, events=POLLIN|POLLPRI}, {fd=29, events=POLLIN, revents=POLLNVAL}, {fd=29, events=0, revents=POLLNVAL}, {fd=29, events=0, revents=POLLNVAL}, {fd=17, events=POLLIN}], 9, -1) = 3 ioctl(3, FIONREAD, [0]) = 0 poll([{fd=4, events=POLLIN}, {fd=3, events=POLLIN}, {fd=8, events=POLLIN|POLLPRI}, {fd=10, events=POLLIN}, {fd=12, events=POLLIN|POLLPRI}, {fd=29, events=POLLIN, revents=POLLNVAL}, {fd=29, events=0, revents=POLLNVAL}, {fd=29, events=0, revents=POLLNVAL}, {fd=17, events=POLLIN}], 9, -1) = 3 at first I thought this is caused by totem-thumbnailer, but same thing happens after I disabled all thumbnailing. and this is affecting only my user accounts, not my root account. Reproducible: Always Steps to Reproduce: 1.login to GNOME 2.open Nautilus 3.close Nautilus Actual Results: nautilus exponentially increase its CPU usage Expected Results: nautilus goes to sleep state Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.5-r0, 2.6.11-ck8-r1 i686) ================================================================= System uname: 2.6.11-ck8-r1 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.6.12 ccache version 2.4 [enabled] dev-lang/python: 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.5 sys-devel/binutils: 2.16-r1 sys-devel/libtool: 1.5.18 virtual/os-headers: 2.6.11-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=prescott -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /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=prescott -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache digest distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/distributions/gentoo" LANG="en_CA.utf8" LC_ALL="en_CA.utf8" LDFLAGS="-Wl,-O1 -Wl,--sort-common" LINGUAS="en ja zh_CN zh_TW" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portagejp /usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 16bit X a52 aac aalib acpi alsa avi berkdb cairo ccache cdr cjk crypt cups curl dga dhcp directfb divx4linux dvd dvdr emboss encode esd fam firefox flac font-server fortran gdbm gif gimp gimpprint gnome gpm gstreamer gtk gtk2 gtkhtml hal imagemagick imlib ipv6 java jpeg ldap libg++ libwww mad maildir matroska mikmod mime mmx mono motif mp3 mpeg mplayer mysql ncurses nls nptl nvidia offensive ogg oggvorbis opengl oss pam pdflib perl png posix python quicktime readline real rtc samba sdl slang spell sse sse2 ssl svga tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales v4l vorbis win32codecs xml xml2 xmms xprint xscreensaver xv xvid zlib linguas_en linguas_ja linguas_zh_CN linguas_zh_TW userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET