Summary: | High CPU usage when used with Qt 4.5 rc1 or switching Qt versions | ||
---|---|---|---|
Product: | [Frameworks and Libraries] kdelibs | Reporter: | Joe Morris <joedmorris> |
Component: | kded | Assignee: | David Faure <faure> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | CC: | wstephenson |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Joe Morris
2009-02-17 00:52:46 UTC
Oops, hardware details, Sempron 3100 x86_64 running openSUSE 11.1, ATI 9200 using radeon oss driver, though I'm not sure these are needed in this case. Do you know which process was eating 100% CPU? I believe it was kded4, and it was actually about 97% CPU, and raised the CPU temp by 10-14 C from the norm. Yes, it was kded4, I had the same bug here the day I upgraded qt-copy to 4.5-rc1. I tried to look into what kded was doing, but it was always in the glib event processing, I couldn't make sense of it. And restarting KDE fixed the problem. I don't think there is much we can do about this bug, if it's a one-time-only upgrade bug. I haven't had it since... *** This bug has been marked as a duplicate of bug 178228 *** SVN commit 1075552 by dfaure: Fix 100% CPU usage due to a startTimer(0) that was never stopped; this could happen if the timer was started twice, so m_timerId was overwritten, and the first timer ID never recognized. It's much much simpler to use deleteLater: no risk of forgetting the deletion and no risk of timers running forever. It means using QWeakPointer to notice when it got deleted, though. CCMAIL: kretz@kde.org I'm not sure which of the "kded uses 100% cpu" bugs this really fixes; maybe all, or maybe just the one that talks about phonon specifically... Fixed for: 4.4 BUG: 202744 CCBUG: 178228 CCBUG: 184576 CCBUG: 217364 CCBUG: 220047 M +16 -34 hardwaredatabase.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1075552 |