Bug 278943

Summary: KDE hangs on startup, after "K" icon has lit up
Product: [I don't know] kde Reporter: optiluca <optiluca>
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: ben, cfeck, dilfridge, kde-bugs-68795, pebek2, porternw.tmp, vitaliy.osypenko
Priority: NOR    
Version: 4.7   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: .xsession-errors from a typical unsuccessful boot

Description optiluca@gmail.com 2011-07-31 15:33:37 UTC
Created attachment 62385 [details]
.xsession-errors from a typical unsuccessful boot

Version:           4.7 (using KDE 4.7.0) 
OS:                Linux

Title says it all really.  A new KDE installation, clean .kde folder.  After a few days of use, it now hangs after the "K" has lit up.  Not always, but when it happens only a full restart seems to fix the issue.  Logging in/out will keep recreating the same problem

Reproducible: Sometimes

Steps to Reproduce:
-log in via KDM

Actual Results:  
Boot hangs when "K" icon is lit up

Expected Results:  
KDE starts

I attach a copy of .xsession-errors
Comment 1 Christoph Feck 2011-07-31 15:55:46 UTC
Looks more like a setup problem with ConsoleKit. Please ask in a forum of your distribtion, I doubt it is a KDE specific problem.
Comment 2 optiluca@gmail.com 2011-07-31 16:11:27 UTC
Have just inquired in the Gentoo forum, waiting for something there...
Comment 3 Vitaliy V. Osypenko 2011-08-13 10:17:11 UTC
It is possible I have the similar problem. With kde 4.6.5 and now with kde 4.7.0. KDM starts but never shows desktop, just mouse pointer. Top shows that plasma-desktops has 100% cpu usage. I "resolved" it by removing ~/.kde4/share/apps/plasma/plasmoids directory where I had had two
similar plasmoids scripted in python.
And if I restore this directory after login and try to readd these plasmoids,
plasma-desktop hangs a eats cpu in the same way, but sometimes it adds plasmoids and works fine. BUT when I run same plasmoid
with plasmoidviewer it always works!

It looks like that PyQt4, pykde4 or
something similar is involved. Other plasmoids work fine. For me don't work two
with this imports:

from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyKDE4.plasma import Plasma
from PyKDE4 import plasmascript
from PyQt4 import QtCore
import commands
import time
Comment 4 Khumba 2011-08-31 00:56:46 UTC
Hi Luca, did you get help at the Gentoo forum?  I (also on Gentoo) had this same problem with the Service Monitor python applet that's in HotNewStuff.  Agreed that it seems to have started in one of the 4.6.x releases, and continues in 4.7.0, and that only a full restart helps.  Comment #3 did fix the hang for me, thanks!  Are you on Gentoo as well, Vitaliy?  The thread at http://forums.gentoo.org/viewtopic.php?p=6800404 seems to be the same problem, with a Plasma PyWeather widget.
Comment 5 optiluca@gmail.com 2011-08-31 08:39:32 UTC
Hi.  The only "non stock" plasmoids I am running are gmail-plasmoid and the comic strip (which however does already ship with KDE itself).  The only plasmoid in the folder Vitaliy refers to is gmail-plasmoid.  Is that python based?  In any case, I have not had this hang in a few weeks now, which is strange.  It may well be just chance, as it only ever seemed to occur sporadically anyway.  If it does happen again, I could try and remove the gmail-plasmoid and see how that goes.

FYI, I have a gentoo forum post here http://forums.gentoo.org/viewtopic-t-888852-highlight-.html (as you can see no luck there); as well as a gentoo bug here https://bugs.gentoo.org/show_bug.cgi?id=377337
Comment 6 Vitaliy V. Osypenko 2011-08-31 15:44:41 UTC
Yes, I do have Gentoo. It also happens on my notebook with Sabayon (binary Gentoo) with the same plasmoids. Sometimes helps just killing plasma-desktop and starting it again with Alt+F2 KRunner.
Comment 7 optiluca@gmail.com 2011-09-02 08:43:53 UTC
Hi.  I got the hang again today, so I deleted ~/.kde4/share/apps/plasma/plasmoids as you suggested, restarted X and KDE started up just fine.  So it does appear we are all suffering the same issue here...
Comment 8 porternw.tmp 2012-08-01 13:51:56 UTC
Same issue here (Gentoo), using live kde builds.  I've been having this issue for ~9 months, resolves when you remove python plasmoids from the desktop/panel.
Comment 9 Christoph Feck 2013-07-21 13:11:55 UTC
What is the status of this bug in recent KDE versions (KDE 4.10 or KDE 4.11)?
Comment 10 Christoph Feck 2013-08-11 10:57:29 UTC
If you can provide the information requested in comment #9, please add it.
Comment 11 Ben Creasy 2018-03-03 16:38:03 UTC
Please reopen this if it is still happening.

KDM is deprecated and no longer maintained, however, and SDDM is recommended.