Summary: | Crash on application cleanup in Oxygen Helper destructor | ||
---|---|---|---|
Product: | [Plasma] Oxygen | Reporter: | David Jarvie <djarvie> |
Component: | style | Assignee: | Hugo Pereira Da Costa <hugo.pereira.da.costa> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | cfeck, hugo.pereira.da.costa |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
David Jarvie
2010-11-22 22:01:05 UTC
Hi David, I suspect a bug in Qt, or (more likely) in KCleanUpGlobalStatic, being called too late. For a long long time, I had in mind to get rid of the globalstatic stuff in Oxygen (cause I hate statics in general). Maybe it is time to do so now ... ... maybe I'll use a QSharedPointer that I will pass around. Hi Hugo, I wouldn't be surprised if there was a bug in KCleanUpGlobalStatic. I've had quite a number of crashes on KAlarm exit in trunk, but most of them don't provide a crash trace. The Oxygen one is just about the only one which I've managed to get a trace for. The other major candidate is the Akonadi libraries cleanup, but it's entirely possible that some are also in global cleanup. SVN commit 1204520 by hpereiradacosta: Remove usage of statically allocated Oxygen::StyleHelper. The helper is now a member of Oxygen::Style. CCBUG: 257646 M +277 -286 oxygenstyle.cpp M +5 -1 oxygenstyle.h WebSVN link: http://websvn.kde.org/?view=rev&revision=1204520 Won't fix the akonadi crashes but should fix the oxygen::styleHelper crashes at cleanup. Please close the bug if it does not happen any more for quite some time. I am not sure if the patch from comment #4 made it into the 4.6 branch, but there are some similar bugs from 4.6.x: bug 274444, bug 275656, bug 277308. @Christoph The patch did make it to KDE4.6. And in fact is reflected by the crash report you posted. ~StyleHelper is now deleted via ~Style and not via KCleanUpGlobalStatic. Which is good. That it still crashes is ... well ... unfortunate ... Will have to investigate the reports one by one since they are actually different :( |