Summary: | Plasma-desktop crashes when selecting the "Grid Desktop" containment | ||
---|---|---|---|
Product: | [Unmaintained] plasma4 | Reporter: | Diego Casella <polentino911> |
Component: | general | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | ae.8.128, bugs, cuscat63, db, diego.ml, freespacer, kaysimon, mail, mail, marc321, mark.coolen, mkiselovs, onet.cristian, paul, raphael, svelanka, uetsah, woskimi, wuseldusel, yofel |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Unlisted Binaries | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 4.7.1 | |
Sentry Crash Report: | |||
Attachments: |
New crash information added by DrKonqi
New crash information added by DrKonqi |
Description
Diego Casella
2011-07-21 20:05:43 UTC
Confirmed for me, 4.6.5 worked fine, 4.7.0 crashes plasma-desktop when grid-layout is activated. Relevant backtrace: #6 0x00007f5cf23322ab in QString::length (this=0x13cc410) at ../../include/QtCore/../../src/corelib/tools/qstring.h:700 #7 0x00007f5cf2368f11 in QString::operator< (this=0x7fff934a2d10, other=...) at tools/qstring.cpp:2204 #8 0x00007f5ce2da8fcf in GroupInfo::operator< (this=0x13cc560, gi=...) at /usr/tmp/portage/kde-base/kdeplasma-addons-4.7.0/work/kdeplasma-addons-4.7.0/containments/groupingdesktop/lib/groupinfo.cpp:97 #9 0x00007f5ce2daa082 in qMapLessThanKey<GroupInfo> (key1=..., key2=...) at /usr/include/qt4/QtCore/qmap.h:107 #10 0x00007f5ce2dbf3fa in QMap<GroupInfo, AbstractGroup* (*)(QGraphicsItem*)>::mutableFindNode (this=0x12d05c0, aupdate=0x7fff934a2dd0, akey=...) at /usr/include/qt4/QtCore/qmap.h:782 #11 0x00007f5ce2dbf155 in QMap<GroupInfo, AbstractGroup* (*)(QGraphicsItem*)>::insert (this=0x12d05c0, akey=..., avalue=@0x7fff934a2e78) at /usr/include/qt4/QtCore/qmap.h:562 #12 0x00007f5ce2dc9c4d in GroupFactory::registerGroup<FlowGroup> (this=0x12d05c0) at /usr/tmp/portage/kde-base/kdeplasma-addons-4.7.0/work/kdeplasma-addons-4.7.0/containments/groupingdesktop/lib/groupfactory_p.h:47 #13 0x00007f5ce2dc9b3e in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at /usr/tmp/portage/kde-base/kdeplasma-addons-4.7.0/work/kdeplasma-addons-4.7.0/containments/groupingdesktop/lib/groups/flowgroup.cpp:37 #14 0x00007f5ce2dc9b59 in global constructors keyed to flowgroup.cpp(void) () at /usr/tmp/portage/kde-base/kdeplasma-addons-4.7.0/work/kdeplasma-addons-4.7.0_build/containments/groupingdesktop/lib/flowgroup.moc:86 #15 0x00007f5ce2dd4ef6 in ?? () from /usr/lib64/libplasma_groupingcontainment.so.4 The same here. no difference between one and two screens setups. When reverting http://quickgit.kde.org/?p=kdeplasma-addons.git&a=blobdiff&h=2106cca7e951216571f8520ef9d6f167034856c6&hp=9682500e1747f09b5ffe7f0b54eab0a8ce12a42e&hb=50e281f9610b32baef8c7891ccea70f20d44f34f&f=containments/groupingdesktop/lib/groupinfo.cpp it seems to work without crashing, but that's obviously not a fix but rather a hint of some sort of memory corruption somewhere else. in containments/groupingdesktop/lib/groupfactory_p.h@47: template<class T> bool registerGroup() { GroupInfo gi = T::groupInfo(); m_groups.insert(gi, &createGroup<T>); return true; } The previous destructor of gi is called on every new assignment, so it's private variable d is freed now with mentioned commit. The QMap m_groups however still references gi while it is already gone and uses it to compare the keys. This seems to be fishy, but the destructor gets called and I believe it should not be called until m_groups is destroyed. Quite lucky it worked before. Confirmed for me, as well. In the 4.7 RCs, grid desktop worked w/o crashing, and was my default layout. Upon upgrading to 4.7.0, plasma-desktop crashed every time I logged in. To work around, I edited ~/.kde4/share/config/plasma-desktop-appletsrc and changed plugin=org.kde.grid-desktop to plugin=desktop. *** Bug 278725 has been marked as a duplicate of this bug. *** *** Bug 278797 has been marked as a duplicate of this bug. *** I confirm this bug, it didn't happen on 4.7 RC2 but happens in 4.7.0 (plasma crashes on login). And I independently found the same solution as in comment #5 I can confirmed this on openSUSE 11.4 + KDE 4.7.0. We also need a patch to fix this issue in KDE 4.7. Regards, Sebastian (openSUSE Member Freespacer) Created attachment 62325 [details]
New crash information added by DrKonqi
plasma-desktop (0.4) on KDE Platform 4.7.00 (4.7.0) using Qt 4.7.2
- What I was doing when the application crashed:
1. Installed kdeplasma-addons/project-neon-kdeplasma-addons
2. Right click desktop >> Desktop Settings
3. Select Grid Desktop from the layout option.
4. Plasma crashes.
-- Backtrace (Reduced):
#7 0x053bb72f in GroupingContainment::restoreContents(KConfigGroup&) () from /usr/lib/libplasma_groupingcontainment.so.4
#8 0x003fefbe in Plasma::Containment::restore (this=0x9f312d0, group=...) at ../../plasma/containment.cpp:340
#9 0x004bbe81 in Plasma::View::swapContainment (this=0x9604fe0, existing=0x95ace28, name=..., args=...) at ../../plasma/view.cpp:339
#10 0x00843cb7 in BackgroundDialog::saveConfig() () from /usr/lib/libplasmagenericshell.so.4
#11 0x0083f9ab in BackgroundDialog::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libplasmagenericshell.so.4
*** Bug 278818 has been marked as a duplicate of this bug. *** *** Bug 278778 has been marked as a duplicate of this bug. *** *** Bug 278822 has been marked as a duplicate of this bug. *** I can confirmed this! See also bug report: https://bugzilla.novell.com/show_bug.cgi?id=709408 Best regards, Linuxsusefan Created attachment 62332 [details]
New crash information added by DrKonqi
plasma-desktop (0.4) on KDE Platform 4.7.00 (4.7.0) using Qt 4.7.2
I can confirm this on Gentoo, since upgrading to KDE 4.7.0 plasma-desktop crashes on startup.
-- Backtrace (Reduced):
#6 QString::operator< (this=0x7fff04a13b20, other=...) at tools/qstring.cpp:2204
#7 0x00007eff9d6a5c67 in GroupInfo::operator< (this=<value optimized out>, gi=<value optimized out>) at /var/tmp/portage/kde-base/kdeplasma-addons-4.7.0/work/kdeplasma-addons-4.7.0/containments/groupingdesktop/lib/groupinfo.cpp:97
#8 0x00007eff9d6be24a in qMapLessThanKey<GroupInfo> () at /usr/include/qt4/QtCore/qmap.h:107
#9 mutableFindNode () at /usr/include/qt4/QtCore/qmap.h:782
#10 insert () at /usr/include/qt4/QtCore/qmap.h:562
Git commit 67b5c56e564f5052238bab38342a85e5f4af570b by Christoph Feck. Committed on 30/07/2011 at 19:15. Pushed by cfeck into branch '4.7'. Fix assignment operator and add copy constructor This fixes the crash in Grid Desktop and Grouping Desktop. Thanks to Aaron Seigo for investigation and patch review. BUG: 278222 FIXED-IN: 4.7.1 M +11 -6 containments/groupingdesktop/lib/groupinfo.cpp M +2 -1 containments/groupingdesktop/lib/groupinfo.h http://commits.kde.org/kdeplasma-addons/67b5c56e564f5052238bab38342a85e5f4af570b Git commit 4127af9b305485be34fd9ae7d6be7fab29b73a55 by Christoph Feck. Committed on 30/07/2011 at 19:15. Pushed by cfeck into branch 'master'. Fix assignment operator and add copy constructor This fixes the crash in Grid Desktop and Grouping Desktop. Thanks to Aaron Seigo for investigation and patch review. BUG: 278222 FIXED-IN: 4.7.1 (cherry picked from commit 67b5c56e564f5052238bab38342a85e5f4af570b) M +11 -6 containments/groupingdesktop/lib/groupinfo.cpp M +2 -1 containments/groupingdesktop/lib/groupinfo.h http://commits.kde.org/kdeplasma-addons/4127af9b305485be34fd9ae7d6be7fab29b73a55 I can confirm this fixed the initially reported crash, but now plasma-desktop still keeps crashing on startup, see bug#276957 *** Bug 279220 has been marked as a duplicate of this bug. *** *** Bug 279418 has been marked as a duplicate of this bug. *** *** Bug 279418 has been marked as a duplicate of this bug. *** *** Bug 278938 has been marked as a duplicate of this bug. *** *** Bug 278906 has been marked as a duplicate of this bug. *** *** Bug 278162 has been marked as a duplicate of this bug. *** i'm not using the grid layout, plasma-desktop crashes nevertheless. .kde4/share/config/plasma-desktop-appletsrc does not contain a line with plugin=org.kde.grid-desktop i'm using the plain old "Arbeitsfläche" (Workspace?). should i file another bug report or is it related? (In reply to comment #25) > i'm using the plain old "Arbeitsfläche" (Workspace?). should i file another bug > report or is it related? Please file another bug, this is fixed. |