Bug 286177

Summary: Ubuntu 11.10 x64 KDE Plasma crashes on adding new panel
Product: [Unmaintained] plasma4 Reporter: David Chalkley <Daveyjones_locker>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description David Chalkley 2011-11-09 11:20:21 UTC
Application: plasma-desktop (0.4)
KDE Platform Version: 4.7.2 (4.7.2)
Qt Version: 4.7.4
Operating System: Linux 3.0.0-12-generic x86_64
Distribution: Ubuntu 11.10

-- Information about the crash:
Desktop Icons -> Add panel -> Default Panel -> crash and bug report shows up

The crash can be reproduced every time.

-- Backtrace:
Application: Plasma Desktop Shell (plasma-desktop), signal: Segmentation fault
[Current thread is 1 (Thread 0x7ff42f72b7c0 (LWP 1632))]

Thread 9 (Thread 0x7ff40b4ec700 (LWP 1633)):
#0  0x00007ff42effe773 in __GI___poll (fds=<optimized out>, nfds=<optimized out>, timeout=<optimized out>) at ../sysdeps/unix/sysv/linux/poll.c:87
#1  0x00007ff423589f68 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ff42358a429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007ff42c1f0f3e in QEventDispatcherGlib::processEvents (this=0x1106ab0, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:424
#4  0x00007ff42c1c4cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007ff42c1c4ef7 in QEventLoop::exec (this=0x7ff40b4ebcd0, flags=...) at kernel/qeventloop.cpp:201
#6  0x00007ff42c0dc27f in QThread::exec (this=<optimized out>) at thread/qthread.cpp:498
#7  0x00007ff42c1a7cbf in QInotifyFileSystemWatcherEngine::run (this=0x1105310) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007ff42c0ded05 in QThreadPrivate::start (arg=0x1105310) at thread/qthread_unix.cpp:331
#9  0x00007ff4208a356c in ?? () from /usr/lib/nvidia-current-updates/libGL.so.1
#10 0x00007ff424096efc in start_thread (arg=0x7ff40b4ec700) at pthread_create.c:304
#11 0x00007ff42f00a89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#12 0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7ff408cb7700 (LWP 1634)):
#0  0xffffffffff60017b in ?? ()
#1  0x00007ff408cb69f0 in ?? ()
#2  0x00007fff56dd17e7 in ?? ()
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 7 (Thread 0x7ff3ff14e700 (LWP 1642)):
#0  0x00007ff423589d30 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007ff42358a792 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007ff3ffc2c516 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#3  0x00007ff4235af2b6 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007ff4208a356c in ?? () from /usr/lib/nvidia-current-updates/libGL.so.1
#5  0x00007ff424096efc in start_thread (arg=0x7ff3ff14e700) at pthread_create.c:304
#6  0x00007ff42f00a89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#7  0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7ff3fe5c0700 (LWP 1885)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007ff42c0df1ab in wait (time=18446744073709551615, this=0x1183830) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x115db40, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007ff427ed9864 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x11d8a10, th=0x1e645e0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007ff427edbe0b in ThreadWeaver::WorkingHardState::applyForWork (this=0x115ebd0, th=0x1e645e0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007ff427edaccf in ThreadWeaver::ThreadRunHelper::run (this=0x7ff3fe5bfd20, parent=0x11d8a10, th=0x1e645e0) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007ff427edad5b in ThreadWeaver::Thread::run (this=0x1e645e0) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007ff42c0ded05 in QThreadPrivate::start (arg=0x1e645e0) at thread/qthread_unix.cpp:331
#8  0x00007ff4208a356c in ?? () from /usr/lib/nvidia-current-updates/libGL.so.1
#9  0x00007ff424096efc in start_thread (arg=0x7ff3fe5c0700) at pthread_create.c:304
#10 0x00007ff42f00a89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7ff40197e700 (LWP 1886)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007ff42c0df1ab in wait (time=18446744073709551615, this=0x1183830) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x115db40, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007ff427ed9864 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x11d8a10, th=0x237ced0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007ff427edbe0b in ThreadWeaver::WorkingHardState::applyForWork (this=0x115ebd0, th=0x237ced0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007ff427edaccf in ThreadWeaver::ThreadRunHelper::run (this=0x7ff40197dd20, parent=0x11d8a10, th=0x237ced0) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007ff427edad5b in ThreadWeaver::Thread::run (this=0x237ced0) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007ff42c0ded05 in QThreadPrivate::start (arg=0x237ced0) at thread/qthread_unix.cpp:331
#8  0x00007ff4208a356c in ?? () from /usr/lib/nvidia-current-updates/libGL.so.1
#9  0x00007ff424096efc in start_thread (arg=0x7ff40197e700) at pthread_create.c:304
#10 0x00007ff42f00a89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7ff3ff94f700 (LWP 1887)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007ff42c0df1ab in wait (time=18446744073709551615, this=0x1183830) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x115db40, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007ff427ed9864 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x11d8a10, th=0x288c960) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007ff427edbe0b in ThreadWeaver::WorkingHardState::applyForWork (this=0x115ebd0, th=0x288c960) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007ff427edaccf in ThreadWeaver::ThreadRunHelper::run (this=0x7ff3ff94ed20, parent=0x11d8a10, th=0x288c960) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007ff427edad5b in ThreadWeaver::Thread::run (this=0x288c960) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007ff42c0ded05 in QThreadPrivate::start (arg=0x288c960) at thread/qthread_unix.cpp:331
#8  0x00007ff4208a356c in ?? () from /usr/lib/nvidia-current-updates/libGL.so.1
#9  0x00007ff424096efc in start_thread (arg=0x7ff3ff94f700) at pthread_create.c:304
#10 0x00007ff42f00a89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7ff3fbd2f700 (LWP 1888)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007ff42c0df1ab in wait (time=18446744073709551615, this=0x1183830) at thread/qwaitcondition_unix.cpp:88
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x115db40, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:160
#3  0x00007ff427ed9864 in ThreadWeaver::WeaverImpl::blockThreadUntilJobsAreBeingAssigned (this=0x11d8a10, th=0x7ff4040121b0) at ../../../threadweaver/Weaver/WeaverImpl.cpp:365
#4  0x00007ff427edbe0b in ThreadWeaver::WorkingHardState::applyForWork (this=0x115ebd0, th=0x7ff4040121b0) at ../../../threadweaver/Weaver/WorkingHardState.cpp:71
#5  0x00007ff427edaccf in ThreadWeaver::ThreadRunHelper::run (this=0x7ff3fbd2ed20, parent=0x11d8a10, th=0x7ff4040121b0) at ../../../threadweaver/Weaver/Thread.cpp:87
#6  0x00007ff427edad5b in ThreadWeaver::Thread::run (this=0x7ff4040121b0) at ../../../threadweaver/Weaver/Thread.cpp:142
#7  0x00007ff42c0ded05 in QThreadPrivate::start (arg=0x7ff4040121b0) at thread/qthread_unix.cpp:331
#8  0x00007ff4208a356c in ?? () from /usr/lib/nvidia-current-updates/libGL.so.1
#9  0x00007ff424096efc in start_thread (arg=0x7ff3fbd2f700) at pthread_create.c:304
#10 0x00007ff42f00a89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7ff3faf2b700 (LWP 3135)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007ff4291f5fe2 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2  0x00007ff4291f6019 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3  0x00007ff4208a356c in ?? () from /usr/lib/nvidia-current-updates/libGL.so.1
#4  0x00007ff424096efc in start_thread (arg=0x7ff3faf2b700) at pthread_create.c:304
#5  0x00007ff42f00a89d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7ff42f72b7c0 (LWP 1632)):
[KCrash Handler]
#6  QGraphicsLayoutItemPrivate::hasHeightForWidth (this=0x740065006e002e) at graphicsview/qgraphicslayoutitem.cpp:280
#7  0x00007ff42bb9d591 in QGridLayoutItem::hasDynamicConstraint (this=<optimized out>) at graphicsview/qgridlayoutengine.cpp:576
#8  0x00007ff42bb9e6b2 in ensureDynamicConstraint (this=0x3ad6c30) at graphicsview/qgridlayoutengine.cpp:1657
#9  QGridLayoutEngine::ensureDynamicConstraint (this=0x3ad6c30) at graphicsview/qgridlayoutengine.cpp:1652
#10 0x00007ff42bb9e769 in QGridLayoutEngine::hasDynamicConstraint (this=0x3ad6c30) at graphicsview/qgridlayoutengine.cpp:1677
#11 0x00007ff42bba2a98 in QGridLayoutEngine::sizeHint (this=0x3ad6c30, styleInfo=..., which=Qt::MaximumSize, constraint=...) at graphicsview/qgridlayoutengine.cpp:1134
#12 0x00007ff42bb2c01a in QGraphicsGridLayout::sizeHint (this=<optimized out>, which=Qt::MaximumSize, constraint=...) at graphicsview/qgraphicsgridlayout.cpp:656
#13 0x00007ff42bb56bd9 in QGraphicsLayoutItemPrivate::effectiveSizeHints (this=0x3ad6b20, constraint=...) at graphicsview/qgraphicslayoutitem.cpp:169
#14 0x00007ff42bb57491 in effectiveSizeHint (constraint=<optimized out>, which=<optimized out>, this=<optimized out>) at graphicsview/qgraphicslayoutitem.cpp:818
#15 QGraphicsLayoutItem::effectiveSizeHint (this=<optimized out>, which=<optimized out>, constraint=<optimized out>) at graphicsview/qgraphicslayoutitem.cpp:810
#16 0x00007ff42bb94231 in QGraphicsWidget::sizeHint (this=<optimized out>, which=<optimized out>, constraint=<optimized out>) at graphicsview/qgraphicswidget.cpp:743
#17 0x00007ff42bb56caf in QGraphicsLayoutItemPrivate::effectiveSizeHints (this=0x3ad6a30, constraint=...) at graphicsview/qgraphicslayoutitem.cpp:175
#18 0x00007ff42bb57491 in effectiveSizeHint (constraint=<optimized out>, which=<optimized out>, this=<optimized out>) at graphicsview/qgraphicslayoutitem.cpp:818
#19 QGraphicsLayoutItem::effectiveSizeHint (this=<optimized out>, which=<optimized out>, constraint=<optimized out>) at graphicsview/qgraphicslayoutitem.cpp:810
#20 0x00007ff413ed2905 in SystemTray::TaskArea::adjustHiddentTasksWidget (this=0x3a8a830) at ../../../../../plasma/generic/applets/systemtray/ui/taskarea.cpp:452
#21 0x00007ff413ed45d9 in SystemTray::TaskArea::addWidgetForTask (this=0x3a8a830, task=0x3f7b0b0) at ../../../../../plasma/generic/applets/systemtray/ui/taskarea.cpp:320
#22 0x00007ff413ed4926 in SystemTray::TaskArea::addTask (this=0x3a8a830, task=<optimized out>) at ../../../../../plasma/generic/applets/systemtray/ui/taskarea.cpp:196
#23 0x00007ff413ed5124 in SystemTray::TaskArea::qt_metacall (this=0x3a8a830, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff56c80690) at ./taskarea.moc:89
#24 0x00007ff42c1d8eba in QMetaObject::activate (sender=0xa22c10, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff56c80690) at kernel/qobject.cpp:3278
#25 0x00007ff413eb787f in SystemTray::Manager::taskAdded (this=<optimized out>, _t1=0x3f7b0b0) at ./manager.moc:99
#26 0x00007ff413eb7a95 in SystemTray::Manager::addTask (this=0xa22c10, task=0x3f7b0b0) at ../../../../../plasma/generic/applets/systemtray/core/manager.cpp:87
#27 0x00007ff413eb7be4 in SystemTray::Manager::qt_metacall (this=0xa22c10, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x7fff56c80800) at ./manager.moc:86
#28 0x00007ff42c1d8eba in QMetaObject::activate (sender=0xb2a1d0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fff56c80800) at kernel/qobject.cpp:3278
#29 0x00007ff413eb808f in SystemTray::Protocol::taskCreated (this=<optimized out>, _t1=0x3f7b0b0) at ./protocol.moc:91
#30 0x00007ff413ebf178 in SystemTray::PlasmoidProtocol::addApplet (this=0xb2a1d0, appletName=..., id=<optimized out>, parent=0x1ba30c0) at ../../../../../plasma/generic/applets/systemtray/protocols/plasmoid/plasmoidtaskprotocol.cpp:112
#31 0x00007ff413eb76d6 in SystemTray::Manager::addApplet (this=<optimized out>, appletName=<optimized out>, parent=<optimized out>) at ../../../../../plasma/generic/applets/systemtray/core/manager.cpp:110
#32 0x00007ff413ec9a30 in SystemTray::Applet::checkDefaultApplets (this=0x1ba30c0) at ../../../../../plasma/generic/applets/systemtray/ui/applet.cpp:737
#33 0x00007ff413ecaa4c in SystemTray::Applet::qt_metacall (this=0x1ba30c0, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0x42bf100) at ./applet.moc:91
#34 0x00007ff42c1dca5e in QObject::event (this=0x1ba30c0, e=<optimized out>) at kernel/qobject.cpp:1217
#35 0x00007ff42bb9489b in QGraphicsWidget::event (this=0x1ba30c0, event=0x3adcd10) at graphicsview/qgraphicswidget.cpp:1455
#36 0x00007ff42b576424 in notify_helper (e=0x3adcd10, receiver=0x1ba30c0, this=0x8877e0) at kernel/qapplication.cpp:4486
#37 QApplicationPrivate::notify_helper (this=0x8877e0, receiver=0x1ba30c0, e=0x3adcd10) at kernel/qapplication.cpp:4458
#38 0x00007ff42b57b291 in QApplication::notify (this=0x879100, receiver=0x1ba30c0, e=0x3adcd10) at kernel/qapplication.cpp:4365
#39 0x00007ff42ce74126 in KApplication::notify (this=0x879100, receiver=0x1ba30c0, event=0x3adcd10) at ../../kdeui/kernel/kapplication.cpp:311
#40 0x00007ff42c1c5afc in QCoreApplication::notifyInternal (this=0x879100, receiver=0x1ba30c0, event=0x3adcd10) at kernel/qcoreapplication.cpp:787
#41 0x00007ff42c1c951f in sendEvent (event=0x3adcd10, receiver=0x1ba30c0) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#42 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x7d0430) at kernel/qcoreapplication.cpp:1428
#43 0x00007ff42c1f0a73 in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#44 postEventSourceDispatch (s=<optimized out>) at kernel/qeventdispatcher_glib.cpp:277
#45 0x00007ff423589a5d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#46 0x00007ff42358a258 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#47 0x00007ff42358a429 in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#48 0x00007ff42c1f0ed6 in QEventDispatcherGlib::processEvents (this=0x7d1f40, flags=<optimized out>) at kernel/qeventdispatcher_glib.cpp:422
#49 0x00007ff42b61e07e in QGuiEventDispatcherGlib::processEvents (this=<optimized out>, flags=<optimized out>) at kernel/qguieventdispatcher_glib.cpp:204
#50 0x00007ff42c1c4cf2 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#51 0x00007ff42c1c4ef7 in QEventLoop::exec (this=0x7fff56c81260, flags=...) at kernel/qeventloop.cpp:201
#52 0x00007ff42c1c9789 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#53 0x00007ff42f3091a3 in kdemain (argc=1, argv=0x7fff56c81648) at ../../../../plasma/desktop/shell/main.cpp:120
#54 0x00007ff42ef4a30d in __libc_start_main (main=0x400640 <main(int, char**)>, argc=1, ubp_av=0x7fff56c81648, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff56c81638) at libc-start.c:226
#55 0x0000000000400671 in _start ()

This bug may be a duplicate of or related to bug 282552.

Possible duplicates by query: bug 285969, bug 285929, bug 285926, bug 285855, bug 285520.

Reported using DrKonqi
Comment 1 Aaron J. Seigo 2011-11-09 16:19:06 UTC
Git commit c4adbef26fc61a93c36981ed81cb741e00d63043 by Aaron Seigo.
Committed on 09/11/2011 at 17:11.
Pushed by aseigo into branch 'master'.

since the widget is being deleted, remove it from the collection

BUG:286197
BUG:286195
BUG:264750
BUG:277367
BUG:280326
BUG:280072
BUG:282552
BUG:283061
BUG:284603
BUG:286177
BUG:286181

M  +2    -2    plasma/generic/applets/systemtray/core/task.cpp

http://commits.kde.org/kde-workspace/c4adbef26fc61a93c36981ed81cb741e00d63043
Comment 2 Aaron J. Seigo 2011-11-09 16:19:11 UTC
Git commit 2d1deb4234aa3d43e2a7cc48fc1f6936bd2ff97c by Aaron Seigo.
Committed on 09/11/2011 at 17:11.
Pushed by aseigo into branch 'KDE/4.7'.

since the widget is being deleted, remove it from the collection

BUG:286197
BUG:286195
BUG:264750
BUG:277367
BUG:280326
BUG:280072
BUG:282552
BUG:283061
BUG:284603
BUG:286177
BUG:286181

M  +2    -2    plasma/generic/applets/systemtray/core/task.cpp

http://commits.kde.org/kde-workspace/2d1deb4234aa3d43e2a7cc48fc1f6936bd2ff97c