Gtk applications freeze

Paul Pygeon paul.pygeon at gmail.com
Mon Feb 5 16:24:25 PST 2007


Hi,

I really don't know if my problem is related to hal, dbus or gtk so I
post here.

Since a few days, every time I try to open a Gtk application, dialog box
freeze every time. It is same thing for all applications I've tried,
like Gimp, audacity and others.

When application try to access directory with dialog box, top give me a
lot cpu usage by hald and dbus-daemon, and window dialog stay blank. I
must kill application process.

I've made many search on google without success.

Here's a top command result with gimp-2.3:

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
14020 messageb  15   0  2540 1108  876 S 31.6  0.1   0:51.19 dbus-daemon
14042 haldaemo  15   0 10848 9172 1836 S 22.6  1.0   0:32.64 hald
27443 flipper   17   0  2540 1100  968 S  2.7  0.1   0:01.86 dbus-daemon
27357 root      15   0 72248  50m 6884 S  2.3  5.7   5:02.22 X
16078 flipper   15   0 39852  10m 6596 S  0.7  1.2   0:32.71 tvtime
16420 flipper   15   0  136m  39m  14m S  0.7  4.4   0:03.07 gimp-2.3
16434 flipper   15   0  4472 2588 1904 S  0.7  0.3   0:00.15 gconfd-2
16508 flipper   19   0  7788 3188 2712 R  0.7  0.4   0:00.02
gnome-vfs-daemon

A strace result for gimp-2.3 (normal user):

gettimeofday({1170718904, 245138}, NULL) = 0
poll([{fd=8, events=POLLIN, revents=POLLIN}], 1, 25000) = 1
read(8, "l\4\1\0011\0\0\0\275\0\0\0\211\0\0\0\1\1o\0\25\0\0\0/o"...,
2048) = 398
read(8, 0x938a5a8, 2048)                = -1 EAGAIN (Resource
temporarily unavailable)
gettimeofday({1170718904, 391481}, NULL) = 0
writev(8, [{"l\1\0\1\0\0\0\0T\0\0\0\213\0\0\0\1\1o\0\32\0\0\0/org/g"...,
160}, {"", 0}], 2) = 160
gettimeofday({1170718904, 396190}, NULL) = 0
poll([{fd=8, events=POLLIN, revents=POLLIN}], 1, 25000) = 1
read(8, "l\4\1\0013\0\0\0\277\0\0\0\211\0\0\0\1\1o\0\25\0\0\0/o"...,
2048) = 211
read(8, 0x938a5a8, 2048)                = -1 EAGAIN (Resource
temporarily unavailable)
gettimeofday({1170718904, 405123}, NULL) = 0
poll([{fd=8, events=POLLIN, revents=POLLIN}], 1, 24992) = 1
read(8, "l\4\1\0011\0\0\0\300\0\0\0\211\0\0\0\1\1o\0\25\0\0\0/o"...,
2048) = 398
read(8, 0x938a5a8, 2048)                = -1 EAGAIN (Resource
temporarily unavailable)
poll([{fd=5, events=POLLIN}, {fd=4, events=POLLIN, revents=POLLIN},
{fd=7, events=POLLIN|POLLPRI}, {fd=8, events=POLLIN}], 4, 0) = 1
poll([{fd=5, events=POLLIN}, {fd=4, events=POLLIN, revents=POLLIN},
{fd=7, events=POLLIN|POLLPRI}, {fd=8, events=POLLIN}], 4, 0) = 1
gettimeofday({1170718904, 552447}, NULL) = 0
writev(8, [{"l\1\0\1$\0\0\0U\0\0\0\210\0\0\0\1\1o\0\25\0\0\0/org/fr"...,
152}, {"\31\0\0\0org.gnome.GnomeVFS.Daemon\0\0\0"..., 36}], 2) = 188
gettimeofday({1170718904, 562062}, NULL) = 0
poll([{fd=8, events=POLLIN, revents=POLLIN}], 1, 25000) = 1
read(8, "l\4\1\0013\0\0\0\302\0\0\0\211\0\0\0\1\1o\0\25\0\0\0/o"...,
2048) = 295
read(8, 0x938a5a8, 2048)                = -1 EAGAIN (Resource
temporarily unavailable)
gettimeofday({1170718904, 566495}, NULL) = 0
writev(8, [{"l\1\0\1\0\0\0\0V\0\0\0\212\0\0\0\1\1o\0\32\0\0\0/org/g"...,
160}, {"", 0}], 2) = 160
gettimeofday({1170718904, 566926}, NULL) = 0
poll([{fd=8, events=POLLIN}], 1, 25000) = -1 EINTR (Interrupted system
call)

(script-fu:16852): LibGimpBase-WARNING **: script-fu: wire_read(): error
+++ killed by SIGKILL +++
Process 16843 detached

When I start gimp with sudo, everything work ok and strace give that:
ettimeofday({1170719020, 655229}, NULL) = 0
gettimeofday({1170719020, 657015}, NULL) = 0
gettimeofday({1170719020, 659116}, NULL) = 0
gettimeofday({1170719020, 661063}, NULL) = 0
gettimeofday({1170719020, 662781}, NULL) = 0
gettimeofday({1170719020, 664523}, NULL) = 0
gettimeofday({1170719020, 666407}, NULL) = 0
gettimeofday({1170719020, 669105}, NULL) = 0
gettimeofday({1170719020, 669555}, NULL) = 0
gettimeofday({1170719020, 686266}, NULL) = 0
gettimeofday({1170719020, 686806}, NULL) = 0
gettimeofday({1170719020, 687160}, NULL) = 0
gettimeofday({1170719020, 687506}, NULL) = 0
gettimeofday({1170719020, 687841}, NULL) = 0
gettimeofday({1170719020, 688174}, NULL) = 0
gettimeofday({1170719020, 688578}, NULL) = 0
gettimeofday({1170719020, 688898}, NULL) = 0
gettimeofday({1170719020, 689216}, NULL) = 0
gettimeofday({1170719020, 689428}, NULL) = 0
gettimeofday({1170719020, 689714}, NULL) = 0
gettimeofday({1170719020, 689906}, NULL) = 0
gettimeofday({1170719020, 690099}, NULL) = 0
gettimeofday({1170719020, 690311}, NULL) = 0
gettimeofday({1170719020, 702103}, NULL) = 0
gettimeofday({1170719020, 702647}, NULL) = 0
gettimeofday({1170719020, 703009}, NULL) = 0
gettimeofday({1170719020, 703353}, NULL) = 0
gettimeofday({1170719020, 703708}, NULL) = 0
gettimeofday({1170719020, 704041}, NULL) = 0
gettimeofday({1170719020, 704273}, NULL) = 0
shmdt(0xb60fc000)                       = 0
futex(0xb6100474, 0x5 /* FUTEX_??? */, 1) = 1
futex(0xb6100474, 0x5 /* FUTEX_??? */, 1) = 1
unlink("/root/.gimp-2.3/gimpswap.17092") = -1 ENOENT (No such file or
directory)
exit_group(0)                           = ?
Process 17092 detached

I'm using Mandriva 2007 Power Pack and:
hal-0.5.8.1-2.mdk2007.0.mde
libdbus-glib-1_2-0.71-5mdv2007.0
libdbus-1_3-0.92-8.2mdv2007.0
dbus-0.92-8.2mdv2007.0
libdbus-qt-1_1-0.70-1mdv2007.0
dbus-x11-0.92-8.2mdv2007.0
libgtkhtml2_0-2.11.0-2mdv2007.0
gtkeyboard-1.1.8-9mdk
libgtkglarea5-1.2.3-9mdv2007.0
gtk+2.0-2.10.3-4mdv2007.0
libwxgtk2.6-2.6.3-7mdv2007.0
libgtk+-x11-2.0_0-2.10.3-4mdv2007.0
libgtkhtml-3.8_15-3.12.0-1mdv2007.0
gtk-engines2-2.8.0-2mdv2007.0
libexif-gtk5-0.3.5-4mdv2007.0
gtk-themes-1.0-10mdk
libgtkspell0-2.0.11-1mdk
libgtk+1.2-devel-1.2.10-45mdv2007.0
libgtkglarea2.0-1.99.0-9mdv2007.0
gtkdialogs-2.2-1mdv2007.0
libgtk+1.2-1.2.10-45mdv2007.0
libgtk+2.0_0-2.10.3-4mdv2007.0
python-gtk-0.6.11-12mdv2007.0
pygtk2.0-libglade-2.10.1-1mdv2007.0
pygtk2.0-2.10.1-1mdv2007.0
gtkspell-2.0.11-1mdk
gtkhtml-3.8-3.12.0-1mdv2007.0
libgtkmm2.4_1-2.10.1-1mdv2007.0
libwxgtku2.6-2.6.3-7mdv2007.0
gtk-doc-1.7-1mdv2007.0
gtk-engines-0.12-10mdk
libgtksharpglue-1.0.10-9mdv2007.0
gtkam-0.1.13-3mdv2007.0
libgtk-linux-fb-2.0_0-2.4.14-6mdk
gtk-sharp2-2.10.0-1mdv2007.0
libgtk+2.0_0-devel-2.10.3-4mdv2007.0
libwxgtkgl2.6-2.6.3-7mdv2007.0



If someone can help me, I'll appreciate a lot.

Thanks
Paul
P.S.: I've posted my problem to gtk, hal and dbus groups.



More information about the dbus mailing list