Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94856 - GTK apps go cpu nuts with >=scim-1.3
Summary: GTK apps go cpu nuts with >=scim-1.3
Status: RESOLVED DUPLICATE of bug 95921
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: CJK Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-02 12:01 UTC by Perry Lu
Modified: 2005-06-27 02:55 UTC (History)
0 users

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


Attachments
nautilus strace (nautilus.strace.tar.bz2,148.53 KB, application/x-bzip)
2005-06-03 09:45 UTC, Perry Lu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Perry Lu 2005-06-02 12:01:16 UTC
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
Comment 1 Perry Lu 2005-06-02 20:10:14 UTC
I forgot to mention, I'm using GNOME-2.10
Comment 2 Leonardo Boshell (RETIRED) gentoo-dev 2005-06-03 00:50:49 UTC
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?
Comment 3 Perry Lu 2005-06-03 09:45:32 UTC
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
Comment 4 Perry Lu 2005-06-03 09:54:26 UTC
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.
Comment 5 foser (RETIRED) gentoo-dev 2005-06-03 11:12:22 UTC
and if you revert back to stable fam ?
Comment 6 Perry Lu 2005-06-03 11:38:04 UTC
I reverted back to fam-2.7.0, the problem persists.
Comment 7 Perry Lu 2005-06-03 11:41:34 UTC
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.
Comment 8 Perry Lu 2005-06-03 13:15:25 UTC
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.
Comment 9 Perry Lu 2005-06-06 08:30:12 UTC
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.
Comment 10 Perry Lu 2005-06-12 20:45:40 UTC
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.
Comment 11 Alastair Tse (RETIRED) gentoo-dev 2005-06-27 02:55:32 UTC

*** This bug has been marked as a duplicate of 95921 ***