gnome-theme-manager hangs, stops updating UI

Bug #68578 reported by Justin Mason
10
Affects Status Importance Assigned to Milestone
gtk-qt-engine (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

I've just dist-upgraded from dapper to edgy. If I log in and run gnome-theme-manager, its window appears, populated with the list of installed themes -- however, it immediately pegs the CPU to 100% and stops updating the window.

gdb backtrace:

0xb78fad67 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
(gdb) bt
#0 0xb78fad67 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#1 0xb78fb4a5 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#2 0xb78fbb89 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#3 0xb7c5d574 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#4 0x08052384 in main ()
(gdb) thr
[Current thread is 1 (Thread -1225488720 (LWP 5618))]

strace shows it looping in:

5678 read(5, "", 1024) = 0
5678 ioctl(3, FIONREAD, [0]) = 0
5678 gettimeofday({1161945967, 531757}, NULL) = 0
5678 poll([{fd=6, events=POLLIN}, {fd=3, events=POLLIN}, {fd=10, events=POLLIN|PO
LLPRI}, {fd=13, events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, ev
ents=POLLIN|POLLPRI}, {fd=16, events=POLLIN}, {fd=17, events=POLLIN}, {fd=12, even
ts=POLLIN|POLLPRI}, {fd=5, events=POLLIN, revents=POLLHUP}], 10, 0) = 1
5678 read(5, "", 1024) = 0
5678 ioctl(3, FIONREAD, [0]) = 0
5678 gettimeofday({1161945967, 531853}, NULL) = 0
5678 poll([{fd=6, events=POLLIN}, {fd=3, events=POLLIN}, {fd=10, events=POLLIN|PO
LLPRI}, {fd=13, events=POLLIN|POLLPRI}, {fd=14, events=POLLIN|POLLPRI}, {fd=15, ev
ents=POLLIN|POLLPRI}, {fd=16, events=POLLIN}, {fd=17, events=POLLIN}, {fd=12, even
ts=POLLIN|POLLPRI}, {fd=5, events=POLLIN, revents=POLLHUP}], 10, 0) = 1
5678 read(5, "", 1024) = 0
5678 ioctl(3, FIONREAD, [0]) = 0
....[etc]

Looking at the strace, it appears the loop is ignoring an EOF from a subprocess it had forked earlier. That subprocess has died with a SEGV. I'll attach the trace.

Revision history for this message
Justin Mason (jm-ubuntu) wrote :

here's the strace. search for SEGV around line 15010.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug. Do you have the issue every time you run it? Could you get a backtrace with "thread apply all bt"?

Changed in gnome-desktop:
assignee: nobody → desktop-bugs
status: Unconfirmed → Needs Info
Revision history for this message
Justin Mason (jm-ubuntu) wrote :

yep, it happens every time.

gdb) thread apply all bt

Thread 1 (Thread -1225476432 (LWP 5768)):
#0 0xffffe410 in __kernel_vsyscall ()
#1 0xb781bed6 in gettimeofday () from /lib/tls/i686/cmov/libc.so.6
#2 0xb78fbbf1 in g_get_current_time () from /usr/lib/libglib-2.0.so.0
#3 0xb78fbd43 in g_source_get_current_time () from /usr/lib/libglib-2.0.so.0
#4 0xb78fbebd in g_source_get_current_time () from /usr/lib/libglib-2.0.so.0
#5 0xb78fdcd2 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#6 0xb78fe4a5 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#7 0xb78feb89 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#8 0xb7c60574 in gtk_main () from /usr/lib/libgtk-x11-2.0.so.0
#9 0x08052384 in main ()

Revision history for this message
Benjamin Davis (benkong2-gmail) wrote :
Download full text (58.4 KiB)

ProblemType: Crash
CoreDump:
CrashCounter: 1
Date: Thu Oct 26 17:47:41 2006
Dependencies:
 libgcc1 1:4.1.1-13ubuntu5
 metacity-common 1:2.16.3-0ubuntu2
 xgamma 1:1.0.1-0ubuntu1
 lsb-base 3.1-10ubuntu4
 libfs6 2:1.0.0-3build1
 libavahi-common3 0.6.13-2ubuntu2
 readline-common 5.1-7build1
 libpci2 2:2.1.11-2
 xinit 1.0.2-0ubuntu3
 libreadline5 5.1-7build1
 xstdcmap 1:1.0.1-0ubuntu1
 xev 1:1.0.2-0ubuntu1
 libslang2 2.0.6-2
 libxxf86misc1 1:1.0.1-0ubuntu1
 python-support 0.5.3ubuntu1
 ttf-dejavu 2.7-2
 xutils-dev 1:1.0.2-3ubuntu3
 libncursesw5 5.5-2ubuntu1
 libgnomevfs2-0 2.16.1-0ubuntu2
 librsvg2-common 2.16.0-0ubuntu2
 xfontsel 1:1.0.1-0ubuntu1
 whiptail 0.52.2-5.1ubuntu1
 libtext-charwidth-perl 0.04-4
 libxrender1 1:0.9.1-0ubuntu1
 libcamel1.2-8 1.8.1-0ubuntu3
 libbonobo2-0 2.16.0-0ubuntu1
 fontconfig 2.3.2-7ubuntu2
 oclock 1:1.0.1-0ubuntu1
 libssl0.9.8 0.9.8b-2ubuntu2
 liblocale-gettext-perl 1.05-1
 libxau6 1:1.0.1-1
 xlsatoms 1:1.0.1-0ubuntu1
 libxext6 2:1.0.1-1ubuntu1
 libgnome2-common 2.16.0-0ubuntu1
 xlogo 1:1.0.1-0ubuntu1
 libpam-modules 0.79-3.1ubuntu1
 xcursorgen 1:1.0.1-0ubuntu1
 libxfixes3 1:4.0.1-0ubuntu1
 gnome-keyring 0.6.0-0ubuntu2
 python 2.4.3-11ubuntu3
 xrefresh 1:1.0.2-0ubuntu1
 libjpeg62 6b-13
 libdbus-glib-1-2 0.71-1ubuntu1
 xfonts-utils 1:1.0.0-6ubuntu3
 libacl1 2.2.39-1ubuntu2
 liblzo1 1.08-3
 gnome-mime-data 2.4.2-2
 libncurses5 5.5-2ubuntu1
 libgnome2-0 2.16.0-0ubuntu1
 xwud 1:1.0.1-0ubuntu1
 libgtk2.0-0 2.10.6-0ubuntu1
 libgpg-error0 1.2-1
 libidl0 0.8.6-1ubuntu1
 libpam0g 0.79-3.1ubuntu1
 xman 1:1.0.1-0ubuntu2
 gnome-icon-theme 2.16.0.1-0ubuntu2
 libxt6 1:1.0.2-1ubuntu1
 libgamin0 0.1.7-3ubuntu2
 esound-common 0.2.36-3ubuntu3
 xrgb 1:1.0.0-0ubuntu2
 xml-core 0.09-0.1
 python2.4-minimal 2.4.4~c1-0ubuntu1
 libpopt0 1.10-2
 gcc-4.1-base 4.1.1-13ubuntu5
 xlsclients 1:1.0.1-0ubuntu1
 psmisc 22.2-1
 libxcursor1 1.1.7-0ubuntu1
 xmag 1:1.0.1-0ubuntu1
 dbus 0.93-0ubuntu3
 libfontconfig1 2.3.2-7ubuntu2
 libglib2.0-0 2.12.4-0ubuntu1
 shared-mime-info 0.18-0ubuntu1
 xwininfo 1:1.0.1-0ubuntu1
 libpng12-0 1.2.8rel-5.1
 adduser 3.92
 defoma 0.11.10
 libbonobo2-common 2.16.0-0ubuntu1
 libnspr4 2:1.firefox2.0+0dfsg-0ubuntu3
 xhost 1:1.0.1-0ubuntu1
 libtext-wrapi18n-perl 0.06-5
 libxklavier11 3.0-0ubuntu1
 sgml-data 2.0.3
 libavahi-client3 0.6.13-2ubuntu2
 libtiff4 3.8.2-6
 xpmutils 1:3.5.5-1
 sed 4.1.5-1
 libgnome-menu2 2.16.1-0ubuntu1
 libcupsys2 1.2.4-2ubuntu3
 python-gmenu 2.16.1-0ubuntu1
 mktemp 1.5-2
 libxaw7 2:1.0.2-0ubuntu1
 libxrandr2 2:1.1.1-0ubuntu1
 xkbutils 1:1.0.2-0ubuntu1
 xdpyinfo 1:1.0.1-0ubuntu1
 libselinux1 1.30-1ubuntu1
 libgnome-desktop-2 2.16.1-0ubuntu1
 beforelight 1.0.1-0ubuntu1
 libebook1.2-9 1.8.1-0ubuntu3
 libnss3 2:1.firefox2.0+0dfsg-0ubuntu3
 viewres 1:1.0.1-0ubuntu1
 passwd 1:4.0.16-2ubuntu4
 fstobdf 1.0.2-0ubuntu1
 sgml-base 1.26
 libpam-runtime 0.79-3.1ubuntu1
 libgstreamer-plugins-base0.10-0 0.10.10-1ubuntu1
 libmagic1 4.17-2ubuntu1
 xrdb 1:1.0.2-0ubuntu2
 libgnome-keyring0 0.6.0-0ubuntu2
 xprop 1:1.0.2-0ubuntu1
 alsa-utils 1.0.11-6ubuntu2
 libgnome-window-settings1 1:2.16.1-0ubuntu4
 libcap1 1:1.10-14
 xfd 1:1.0.1-0ubuntu1
 python2.4 2.4.4~c1-0ubuntu1
 libattr1 2.4.32-1ubuntu1
 libgnomeui-common 2.16....

Revision history for this message
Rob Beazizo (beazizo) wrote :

Just an FYI, I had this same problem. I did an upgrade from Dapper to Edgy as well.

I suspected that there was some incompatibility so I removed all themes from my ~/.themes and /usr/share/themes and then reinstalled the ones I cared about. This fixed the problem.

Revision history for this message
Daniel Holbach (dholbach) wrote :

Justin and Benjamin: do you still have the problems? Do you have custom themes too?

Revision history for this message
Benjamin Davis (benkong2-gmail) wrote : Re: [Bug 68578] Re: gnome-theme-manager hangs, stops updating UI

Yes, I do have a custom theme. I followed Daniel Holbach's suggestion and
the problem is now solved.

On 10/30/06, Daniel Holbach <email address hidden> wrote:
>
> Justin and Benjamin: do you still have the problems? Do you have custom
> themes too?
>
> --
> gnome-theme-manager hangs, stops updating UI
> https://launchpad.net/bugs/68578
>

Revision history for this message
Daniel Holbach (dholbach) wrote :

If you still have the custom theme around, it would be nice if you could attach it to the bug report. So the problem can be identified properly.

Revision history for this message
Justin Mason (jm-ubuntu) wrote :

actually, as far as I can tell, I was just using the default Human theme from Dapper. How do I tell? (sorry, I usually use KDE on my main desktop)

~/.themes is empty. When gnome-theme-manager starts, before it hangs, "Human" is selected in the list at the left-hand side of the window.

As far as I can tell, the themes installed are pretty vanilla:

: jm 111...; dpkg --get-selections | grep -i theme
edgy-gdm-themes install
gnome-accessibility-themes install
gnome-icon-theme install
gnome-themes install
gray-theme install
hicolor-icon-theme install
human-cursors-theme install
human-gtk-theme install
human-icon-theme install
human-theme install
industrial-cursor-theme install
industrialtango-theme install
legacyhuman-theme install
outdoors-theme install
resilience-theme install
silicon-theme install
tangerine-icon-theme install
tango-icon-theme install
tango-icon-theme-common install
usplash-theme-ubuntu install
xcursor-themes install

I can post any files you'd like to examine -- let me know and I'll attach them.

Revision history for this message
ben (bhaubeck-gmail) wrote :

i ran into the same problems.
after deleting everything but "Human" in /usr/share/themes it worked again.
what i have in /usr/share/themes:

ls /usr/share/themes/
AgingGorilla
Crux
Gray
Human
LowContrast
Outdoors
Silicon
Atlanta
Default HighContrast
Industrial
LowContrastLargePrint
Qt
Simple
Bright
Emacs
HighContrastInverse
IndustrialTango
Metabox
Raleigh
ThinIce
Clearlooks
Esco
HighContrastLargePrint
LargePrint
metacity-1
Redmond
ClearlooksAlternative
Glider
HighContrastLargePrintInverse
LegacyHuman
Mist
Resilience

my girlfriend has an account on this machine, that was not affected from that problem, so it must have something to do with my personal themes, which are:

6nome
Aero
Almond
Alphacube
AluminumAlloy-Smog
ben
ben010
ben011
ben012
ben013
ben014
ben04
ben05
ben06
ben07
ben08
ben09
ben14
ben15
ben2
ben3
BlueHeart
c2
Cillop
Cillop-Midnite
Clearlooks
Clearlooks-Visto
Clearlooks-Xp
CoronaX-default
Fuoco
Gilouche
Glossy
GreenHeart
Litoral
Live
OldVignette
Plastik
Polycarbonate-0.5
Shiny-Tango
Soy
TheBlues-gtk2-Amber
Variance
Water
Wonderlooks
XFwm4
YattaBlues
Yattacier3

my personals are still active.
/usr/share/themes is now empty but "Human"

ben

Revision history for this message
Justin Mason (jm-ubuntu) wrote :

Thanks Ben, good idea. I just used a binary search to find the offending theme; it was "Qt" in my case. With that directory, gnome-theme-manager hung; without it, it works fine.

/usr/share/themes/Qt contains:
/usr/share/themes/Qt/gtk-2.0/gtkrc

style "default"
{
  engine "qtengine"
  {
  }
}
class "GtkWidget" style "default"

so I guess some incompatibility between gnome-theme-manager and gtk2-engines-gtk-qt or gtk2-engines-qtpixmap?

Revision history for this message
David Hardstone (dhardstone) wrote :

I have the same bug. No custom themes or anything (& ~/.themes is empty).
I installed a fresh version of dapper and upgraded to edgy without using much and problem has happened since.

Revision history for this message
Daniel Holbach (dholbach) wrote :

David: which theme to you use? What does ls /usr/share/themes give?

Revision history for this message
David Hardstone (dhardstone) wrote :

I'm using the default Ubuntu Human theme.
ls /usr/share/themes gives:

AgingGorilla HighContrast Metabox
Atlanta HighContrastInverse metacity-1
Bright HighContrastLargePrint Mist
Clearlooks HighContrastLargePrintInverse Outdoors
ClearlooksAlternative Human Qt
Crux Industrial Raleigh
Default IndustrialTango Redmond
Emacs LargePrint Resilience
Esco LegacyHuman Silicon
Glider LowContrast Simple
Gray LowContrastLargePrint ThinIce

Revision history for this message
Daniel Holbach (dholbach) wrote :

David: https://launchpad.net/distros/ubuntu/+source/control-center/+bug/68578/comments/11 seems to be your problem. Can you try to remove the package 'gtk2-engines-gtk-qt' and see if "fixes" the problem?

Revision history for this message
David Hardstone (dhardstone) wrote :

Yeah that seems to sort it out, shame its a dependency of the 'kubuntu-desktop' package.

Revision history for this message
Sebastien Bacher (seb128) wrote :

another gtk-qt-engine bug apparently, reassigning to the correct package

Changed in control-center:
assignee: desktop-bugs → nobody
status: Needs Info → Unconfirmed
Revision history for this message
Michael Adams (madams) wrote : Similar condition seen in Hardy...

I may be experiencing this bug in Hardy. It occurs alongside a CPU load of 100%, and can be temporarily resolved by switching the appearance of the windows to something different. This also happens regardless of the "Visual Effects" level. I am using an onboard Intel video chipset from about 3 years ago. It may be tied to Pidgin, currently version 2.4.1.

Daniel T Chen (crimsun)
Changed in gtk-qt-engine:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Is this still a problem in Intrepid?

Changed in gtk-qt-engine:
status: Confirmed → Incomplete
Revision history for this message
Justin Mason (jm-jmason) wrote :

I can no longer reproduce it. good news ;)

Revision history for this message
Jonathan Thomas (echidnaman) wrote :

Great! Thanks for testing.

Changed in gtk-qt-engine:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.