Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99866 - KDE sometimes hangs on startup, possibly sound-related
Summary: KDE sometimes hangs on startup, possibly sound-related
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-21 23:06 UTC by Mark Purtill
Modified: 2006-02-03 10:08 UTC (History)
0 users

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


Attachments
kwin.eventrc file that may (or may not) cause problems (sometimes) (kwin.eventsrc,2.15 KB, application/octet-stream)
2005-07-25 18:55 UTC, Mark Purtill
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Purtill 2005-07-21 23:06:04 UTC
Recently KDE (3.4) has been hanging on startup, usually when the startup screen
is in the "restoring session" section (at various percentages).  I discovered
that if I deleted the file ~/.kde-gentoo/share/config/ksmserverrc file (my
KDEHOME environment variable is set to ~/.kde-gentoo), I could then kill the
X-server (with Ctrl-Alt-Backspace) and log in.  However, the next time I logged
in, I'd have the same problem.  I eventually discovered that in the KDE control
center (KDE Components > Session Manager) I could save the session manually (by
choosing Restore manually saved session under On Login; one can then save the
session on the KDE menu) and did some experiments.  I discovered that if there
was more than one konsole in the session (not counting kwin, which always seems
to be added), I'd get the hang.  (The various other apps I tried adding included
kppp, kbiff, xemacs and xosview.)  For now, I've disabled the session manager
(Start with empty session in KDE control center) and start my initial
applications with a script in the Autostart directory.  But this is less
convenient (and obviously does not restore my previous session).

Please advise of any kde files it would be useful to see to analyze the problem.

emerge info gives:

Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20041102-r1, 2.6.11-gentoo-r8 i686)
=================================================================
System uname: 2.6.11-gentoo-r8 i686 AMD Athlon(tm) XP 1900+
Gentoo Base System version 1.6.12
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.10
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.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-g -O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config
/usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config
/usr/kde/3.3/shutdown /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/lib/mozilla/defaults/pref /usr/share/config
/usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-g -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages nostrip sandbox sfperms strict userpriv"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ ftp://gentoo.ccccom.com
ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo http://mirror.datapipe.net/gentoo
http://gentoo.mirrors.easynews.com/linux/gentoo/ http://gentoo.ccccom.com"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en ja"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 3dnow X Xaw3d aalib alsa apm arts avi berkdb bindist bitmap-fonts canna
cdr cjk crypt cups curl debug doc dvd emboss encode esd fam flac foomaticdb
fortran freetype freewnn gd gdbm gif gnome gpm gtk gtk2 guile imagemagick imlib
ipv6 java joystick jpeg junit kde libg++ libwww mad maildir mbox mikmod mng
mozilla mozsvg mp3 mpeg mule ncurses nls noantlr nobcel nobeanutils nobsh
nocommonslogging nocommonsnet nodrm nojdepend nojsch nojython nolog4j nooro
noregexp norhino noxalan noxerces ogg oggvorbis opengl oss pam pdflib perl pic
png python qt quicktime readline ruby scanner sdl slang speex spell sse ssl svga
tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb vorbis wmf
xine xinerama xml xml2 xmms xv zlib video_cards_matrox linguas_en linguas_ja
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, MAKEOPTS
Comment 1 Mark Purtill 2005-07-21 23:18:44 UTC
Oops, it looks like having ksmserverrc not start anything may not be relevant. 
With my current set up, I just had another hang.  I killed the X-server, and
tried logging in again, and there was no hang.

Any thoughts on how I could track this down would be welcome.
Comment 2 Mark Purtill 2005-07-25 18:52:45 UTC
I tried all the things mentioned in bug #99794.  Removing files and re-emerging
did no good.  Starting with a new user did seem to help (see below), but of
course is unacceptable as a long-term solution.  I took small steps toward
changing the new user toward my KDE settings, and the first time got a hang was
after changing the system notifications so the kwin used sound, which seems to
be set in ~/.kde/share/config/kwin.eventsrc.  I deleted that file from my
existing users' setup, and haven't had any hangs.

HOWEVER, the problem is very sporadic.  I got the hang several times in a row
sometimes, then not at all several times.  Other times it will alternate
(problem one time, no problem the next).  I think there may be a race condition,
perhaps involving notify trying to produce a sound before arts is working or
something like that.  Any hints as to how to track this down for sure would be
appreciated (and I do not consider the problem FIXED, so please don't mark this
bug as such).
Comment 3 Mark Purtill 2005-07-25 18:55:21 UTC
Created attachment 64320 [details]
kwin.eventrc file that may (or may not) cause problems (sometimes)
Comment 4 Mark Purtill 2005-08-06 14:45:23 UTC
I find that if I choose 'KDE 3.3.2 session' when logging in, the problem goes
away.  So I have a work-around for now, but something seems to be wrong with KDE
3.4.1.

I'm assuming from the lack of response here that no one has any ideas on how to
help me debug this.  So should I just go ahead an put a bug in on the KDE bugzilla?
Comment 5 Mark Purtill 2005-08-07 11:48:05 UTC
It appears this is the same as KDE bug #102046
<http://bugs.kde.org/show_bug.cgi?id=102046>.
Comment 6 Mark Purtill 2006-02-01 20:54:12 UTC
FYI, this appears fixed in kde 3.5.  At least I'm not having the problem any more, and the referenced KDE bug indicates the problem was found and fixed.
Comment 7 Carsten Lohrke (RETIRED) gentoo-dev 2006-02-03 10:08:28 UTC
O.k., resolving as fixed