Bug 208765

Summary: Plasma crashes while unminimizing tray app [TaskItemLayout::layoutItems, TaskItemLayout::remove, TaskItemLayout::removeTaskItem]
Product: [Plasma] plasma4 Reporter: Andrew Felske <knopper67>
Component: widget-taskbarAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: crash CC: andresbajotierra, carlos.colorado, iferca
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Andrew Felske 2009-09-28 12:45:06 UTC
Application that crashed: plasma-desktop
Version of the application: 0.3
KDE Version: 4.3.1 (KDE 4.3.1)
Qt Version: 4.5.2
Operating System: Linux 2.6.30-ARCH x86_64

What I was doing when the application crashed:
Plasma crashes when i cycle workspaces with the following apps open:

konqueror,
choqok,
dolphin,
kate

I can reproduce the crash by having all these application's windows open on one workspace and cycling through all workspaces twice. Before the crash the taskbar items appear to become "squished" beside eachother. Then, to finally trigger the crash, switch to another workspace.

 -- Backtrace:
Application: Plasma Workspace (kdeinit4), signal: Segmentation fault
[Current thread is 0 (LWP 1499)]

Thread 2 (Thread 0x7fc301c66910 (LWP 1502)):
#0  0x00007fc32023cdd9 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#1  0x00007fc3204a7c1b in QWaitCondition::wait () from /usr/lib/libQtCore.so.4
#2  0x00007fc31c928a3c in ?? () from /usr/lib/libQtNetwork.so.4
#3  0x00007fc3204a6b55 in ?? () from /usr/lib/libQtCore.so.4
#4  0x00007fc32023857a in start_thread () from /lib/libpthread.so.0
#5  0x00007fc31dc0414d in clone () from /lib/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fc320a6a750 (LWP 1499)):
[KCrash Handler]
#5  0x00007fc3038281c1 in TaskItemLayout::layoutItems () from /usr/lib/kde4/plasma_applet_tasks.so
#6  0x00007fc303828727 in TaskItemLayout::remove () from /usr/lib/kde4/plasma_applet_tasks.so
#7  0x00007fc3038287ce in TaskItemLayout::removeTaskItem () from /usr/lib/kde4/plasma_applet_tasks.so
#8  0x00007fc303833a73 in TaskGroupItem::itemRemoved () from /usr/lib/kde4/plasma_applet_tasks.so
#9  0x00007fc303834eb4 in TaskGroupItem::qt_metacall () from /usr/lib/kde4/plasma_applet_tasks.so
#10 0x00007fc3205a16bc in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#11 0x00007fc303a6e252 in TaskManager::TaskGroup::itemRemoved () from /usr/lib/libtaskmanager.so.4
#12 0x00007fc303a6e931 in TaskManager::TaskGroup::remove () from /usr/lib/libtaskmanager.so.4
#13 0x00007fc303a585ab in TaskManager::GroupManagerPrivate::removeTask () from /usr/lib/libtaskmanager.so.4
#14 0x00007fc303a5a27a in TaskManager::GroupManager::qt_metacall () from /usr/lib/libtaskmanager.so.4
#15 0x00007fc3205a16bc in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#16 0x00007fc303a716d5 in TaskManager::TaskManager::taskRemoved () from /usr/lib/libtaskmanager.so.4
#17 0x00007fc303a7329d in TaskManager::TaskManager::windowRemoved () from /usr/lib/libtaskmanager.so.4
#18 0x00007fc303a74a37 in TaskManager::TaskManager::qt_metacall () from /usr/lib/libtaskmanager.so.4
#19 0x00007fc3205a16bc in QMetaObject::activate () from /usr/lib/libQtCore.so.4
#20 0x00007fc31f087db2 in KWindowSystem::windowRemoved () from /usr/lib/libkdeui.so.5
#21 0x00007fc31f08ab4a in KWindowSystemPrivate::removeClient () from /usr/lib/libkdeui.so.5
#22 0x00007fc31f09858d in NETRootInfo::update () from /usr/lib/libkdeui.so.5
#23 0x00007fc31f0992e1 in NETRootInfo::event () from /usr/lib/libkdeui.so.5
#24 0x00007fc31f08adfc in KWindowSystemPrivate::x11Event () from /usr/lib/libkdeui.so.5
#25 0x00007fc31ef5bda6 in KApplication::x11EventFilter () from /usr/lib/libkdeui.so.5
#26 0x00007fc31472a624 in PlasmaApp::x11EventFilter () from /usr/lib/libkdeinit4_plasma-desktop.so
#27 0x00007fc31e383471 in ?? () from /usr/lib/libQtGui.so.4
#28 0x00007fc31e393a59 in QApplication::x11ProcessEvent () from /usr/lib/libQtGui.so.4
#29 0x00007fc31e3bc89c in ?? () from /usr/lib/libQtGui.so.4
#30 0x00007fc31d28edbe in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#31 0x00007fc31d292568 in g_main_context_iterate () from /usr/lib/libglib-2.0.so.0
#32 0x00007fc31d292690 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#33 0x00007fc3205b4a86 in QEventDispatcherGlib::processEvents () from /usr/lib/libQtCore.so.4
#34 0x00007fc31e3bc07e in ?? () from /usr/lib/libQtGui.so.4
#35 0x00007fc32058aec2 in QEventLoop::processEvents () from /usr/lib/libQtCore.so.4
#36 0x00007fc32058b294 in QEventLoop::exec () from /usr/lib/libQtCore.so.4
#37 0x00007fc32058d449 in QCoreApplication::exec () from /usr/lib/libQtCore.so.4
#38 0x00007fc31471728f in kdemain () from /usr/lib/libkdeinit4_plasma-desktop.so
#39 0x0000000000406eae in _start ()

This bug may be a duplicate of or related to bug 208399

Reported using DrKonqi
Comment 1 Andrew Felske 2009-09-28 12:51:39 UTC
Also, the bug seems to appear best by cycling through the work saces in a "counter-clockwise style starting with the bottom-right workspace". When plasma crashes it outputs this in a terminal:

QDBusObjectPath: invalid path ""
QLayout: Attempting to add QLayout "" to QWidget "", which already has a layout
Invalid D-BUS interface name 'org.kde.plasma-desktop.PlasmaApp' found while parsing introspection
Comment 2 Dario Andres 2009-09-28 16:08:30 UTC
This could be related to bug 199325. Thanks
Comment 3 Dario Andres 2009-11-06 03:28:23 UTC
*** Bug 212084 has been marked as a duplicate of this bug. ***
Comment 4 Beat Wolf 2009-12-11 09:19:24 UTC
*** Bug 218065 has been marked as a duplicate of this bug. ***
Comment 5 Marco Martin 2009-12-21 19:53:01 UTC
SVN commit 1064774 by mart:

someone says division by zero isn't a nice thing
BUG:208765
BUG:219539


 M  +2 -2      taskitemlayout.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1064774