Bug 258270

Summary: Plasma crashed when I was removing activities
Product: [Unmaintained] plasma4 Reporter: Gregor Petrin <gregap>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED WORKSFORME    
Severity: crash CC: andresbajotierra, notmart, tuxgeok
Priority: NOR    
Version: 4.6.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Gregor Petrin 2010-11-29 11:21:03 UTC
Application: plasma-desktop (0.4)
KDE Platform Version: 4.5.80 (4.6 Beta1)
Qt Version: 4.7.1
Operating System: Linux 2.6.34.7-0.5-default i686
Distribution: "openSUSE 11.3 (i586)"

-- Information about the crash:
- What I was doing when the application crashed:

I tried removing an unused Activities (which contained no plasmoids) when plasma crashed.

-- Backtrace:
Application: Plasma Desktop Shell (kdeinit4), signal: Segmentation fault
[Current thread is 1 (Thread 0xb58a5710 (LWP 12974))]

Thread 3 (Thread 0xaa8eeb70 (LWP 12975)):
#0  0xb6cdd474 in __pthread_mutex_unlock_usercnt () from /lib/libpthread.so.0
#1  0xb5af30b3 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#2  0xb5af3f22 in ?? () from /usr/lib/libglib-2.0.so.0
#3  0xb5af460e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0xb6e82da7 in QEventDispatcherGlib::processEvents (this=0x8419110, flags=...) at kernel/qeventdispatcher_glib.cpp:424
#5  0xb6e5389d in QEventLoop::processEvents (this=0xaa8ee2b0, flags=...) at kernel/qeventloop.cpp:149
#6  0xb6e53ac9 in QEventLoop::exec (this=0xaa8ee2b0, flags=...) at kernel/qeventloop.cpp:201
#7  0xb6d527a9 in QThread::exec (this=0x84322d0) at thread/qthread.cpp:490
#8  0xb6e334ad in QInotifyFileSystemWatcherEngine::run (this=0x84322d0) at io/qfilesystemwatcher_inotify.cpp:248
#9  0xb6d5539a in QThreadPrivate::start (arg=0x84322d0) at thread/qthread_unix.cpp:285
#10 0xb6cd9b25 in start_thread () from /lib/libpthread.so.0
#11 0xb608946e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xa8675b70 (LWP 13530)):
#0  0xffffe430 in __kernel_vsyscall ()
#1  0xb6cde452 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb6d55a2c in wait (this=0x8e76214, mutex=0x8e76210, time=30000) at thread/qwaitcondition_unix.cpp:86
#3  QWaitCondition::wait (this=0x8e76214, mutex=0x8e76210, time=30000) at thread/qwaitcondition_unix.cpp:160
#4  0xb6d4adf4 in QThreadPoolThread::run (this=0x8404e50) at concurrent/qthreadpool.cpp:140
#5  0xb6d5539a in QThreadPrivate::start (arg=0x8404e50) at thread/qthread_unix.cpp:285
#6  0xb6cd9b25 in start_thread () from /lib/libpthread.so.0
#7  0xb608946e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb58a5710 (LWP 12974)):
[KCrash Handler]
#7  deref (this=0x90ec158, other=@0xbf7fc114) at ../../src/corelib/arch/qatomic_i386.h:132
#8  QString::operator= (this=0x90ec158, other=@0xbf7fc114) at tools/qstring.cpp:1358
#9  0xb2444efa in operator= (this=0x90ec138, selected=false) at /usr/include/QtCore/qstring.h:432
#10 Plasma::AbstractIcon::setSelected (this=0x90ec138, selected=false) at /usr/src/debug/kdebase-workspace-4.5.80/libs/plasmagenericshell/abstracticon.cpp:213
#11 0xb2442ac9 in Plasma::AbstractIconList::itemSelected (this=0x90a81f8, icon=0x90edec8) at /usr/src/debug/kdebase-workspace-4.5.80/libs/plasmagenericshell/abstracticonlist.cpp:185
#12 0xb243a16d in Plasma::AbstractIconList::qt_metacall (this=0x90a81f8, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0xbf7fc298)
    at /usr/src/debug/kdebase-workspace-4.5.80/build/libs/plasmagenericshell/moc_abstracticonlist.cpp:85
#13 0xb251d2a2 in ActivityList::qt_metacall (this=0x90a81f8, _c=QMetaObject::InvokeMetaMethod, _id=38, _a=0xbf7fc298)
    at /usr/src/debug/kdebase-workspace-4.5.80/build/plasma/desktop/shell/moc_activitylist.cpp:72
#14 0xb6e5ae5d in QMetaObject::metacall (object=0x90a81f8, cl=QMetaObject::InvokeMetaMethod, idx=38, argv=0xbf7fc298) at kernel/qmetaobject.cpp:237
#15 0xb6e6affc in QMetaObject::activate (sender=0x90edec8, m=0xb247bd70, local_signal_index=3, argv=0xbf7fc298) at kernel/qobject.cpp:3272
#16 0xb243b455 in Plasma::AbstractIcon::clicked (this=0x90edec8, _t1=0x90edec8) at /usr/src/debug/kdebase-workspace-4.5.80/build/libs/plasmagenericshell/moc_abstracticon.cpp:155
#17 0xb2444549 in Plasma::AbstractIcon::mouseReleaseEvent (this=0x90edec8, event=0xbf7fca38) at /usr/src/debug/kdebase-workspace-4.5.80/libs/plasmagenericshell/abstracticon.cpp:186
#18 0xb69c80ea in QGraphicsItem::sceneEvent (this=0x90eded0, event=0xbf7fca38) at graphicsview/qgraphicsitem.cpp:6701
#19 0xb6a28216 in QGraphicsWidget::sceneEvent (this=0x90edec8, event=0xbf7fca38) at graphicsview/qgraphicswidget.cpp:1175
#20 0xb69f35de in QGraphicsScenePrivate::sendEvent (this=0x8121498, item=0x90eded0, event=0xbf7fca38) at graphicsview/qgraphicsscene.cpp:1207
#21 0xb69f42a8 in QGraphicsScenePrivate::sendMouseEvent (this=0x8121498, mouseEvent=0xbf7fca38) at graphicsview/qgraphicsscene.cpp:1281
#22 0xb69f4d07 in QGraphicsScene::mouseReleaseEvent (this=0x8166b30, mouseEvent=0xbf7fca38) at graphicsview/qgraphicsscene.cpp:4107
#23 0xb6a0814c in QGraphicsScene::event (this=0x8166b30, event=0xbf7fca38) at graphicsview/qgraphicsscene.cpp:3440
#24 0xb6350414 in QApplicationPrivate::notify_helper (this=0x80cfb98, receiver=0x8166b30, e=0xbf7fca38) at kernel/qapplication.cpp:4445
#25 0xb6359137 in QApplication::notify (this=0x80c9d98, receiver=0x8166b30, e=0xbf7fca38) at kernel/qapplication.cpp:3845
#26 0xb74c0471 in KApplication::notify (this=0x80c9d98, receiver=0x8166b30, event=0xbf7fca38) at /usr/src/debug/kdelibs-4.5.80/kdeui/kernel/kapplication.cpp:311
#27 0xb6e545be in QCoreApplication::notifyInternal (this=0x80c9d98, receiver=0x8166b30, event=0xbf7fca38) at kernel/qcoreapplication.cpp:732
#28 0xb634e37d in sendSpontaneousEvent (receiver=0x8166b30, event=0xbf7fca38) at ../../src/corelib/kernel/qcoreapplication.h:218
#29 qt_sendSpontaneousEvent (receiver=0x8166b30, event=0xbf7fca38) at kernel/qapplication.cpp:5439
#30 0xb6a2146c in QGraphicsView::mouseReleaseEvent (this=0x90e49b0, event=0xbf7fd194) at graphicsview/qgraphicsview.cpp:3336
#31 0xb63ab6d0 in QWidget::event (this=0x90e49b0, event=0xbf7fd194) at kernel/qwidget.cpp:8200
#32 0xb67c3cc5 in QFrame::event (this=0x90e49b0, e=0xbf7fd194) at widgets/qframe.cpp:557
#33 0xb6855391 in QAbstractScrollArea::viewportEvent (this=0x90e49b0, e=0xbf7fd194) at widgets/qabstractscrollarea.cpp:1043
#34 0xb6a2658c in QGraphicsView::viewportEvent (this=0x90e49b0, event=0xbf7fd194) at graphicsview/qgraphicsview.cpp:2864
#35 0xb6857c86 in viewportEvent (this=0x9106ca8, o=0x9108538, e=0xbf7fd194) at widgets/qabstractscrollarea_p.h:100
#36 QAbstractScrollAreaFilter::eventFilter (this=0x9106ca8, o=0x9108538, e=0xbf7fd194) at widgets/qabstractscrollarea_p.h:116
#37 0xb6e54756 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=0x80cfb98, receiver=0x9108538, event=0xbf7fd194) at kernel/qcoreapplication.cpp:847
#38 0xb63503e4 in QApplicationPrivate::notify_helper (this=0x80cfb98, receiver=0x9108538, e=0xbf7fd194) at kernel/qapplication.cpp:4441
#39 0xb6359c90 in QApplication::notify (this=0xbf7fceac, receiver=0x9108538, e=0xbf7fd194) at kernel/qapplication.cpp:4006
#40 0xb74c0471 in KApplication::notify (this=0x80c9d98, receiver=0x9108538, event=0xbf7fd194) at /usr/src/debug/kdelibs-4.5.80/kdeui/kernel/kapplication.cpp:311
#41 0xb6e545be in QCoreApplication::notifyInternal (this=0x80c9d98, receiver=0x9108538, event=0xbf7fd194) at kernel/qcoreapplication.cpp:732
#42 0xb63514bc in sendSpontaneousEvent (receiver=0x9108538, event=0xbf7fd194, alienWidget=0x9108538, nativeWidget=0x909aa48, buttonDown=0xb6cd0c00, lastMouseReceiver=..., spontaneous=true)
    at ../../src/corelib/kernel/qcoreapplication.h:218
#43 QApplicationPrivate::sendMouseEvent (receiver=0x9108538, event=0xbf7fd194, alienWidget=0x9108538, nativeWidget=0x909aa48, buttonDown=0xb6cd0c00, lastMouseReceiver=..., spontaneous=true)
    at kernel/qapplication.cpp:3103
#44 0xb63dd4ac in QETWidget::translateMouseEvent (this=0x909aa48, event=0xbf7fd6ac) at kernel/qapplication_x11.cpp:4438
#45 0xb63dc5ce in QApplication::x11ProcessEvent (this=0x80c9d98, event=0xbf7fd6ac) at kernel/qapplication_x11.cpp:3442
#46 0xb6406db0 in x11EventSourceDispatch (s=0x80d2238, callback=0, user_data=0x0) at kernel/qguieventdispatcher_glib.cpp:146
#47 0xb5af3b49 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#48 0xb5af4350 in ?? () from /usr/lib/libglib-2.0.so.0
#49 0xb5af460e in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#50 0xb6e82d5b in QEventDispatcherGlib::processEvents (this=0x80a44c0, flags=...) at kernel/qeventdispatcher_glib.cpp:422
#51 0xb64069aa in QGuiEventDispatcherGlib::processEvents (this=0x80a44c0, flags=...) at kernel/qguieventdispatcher_glib.cpp:204
#52 0xb6e5389d in QEventLoop::processEvents (this=0xbf7fd964, flags=...) at kernel/qeventloop.cpp:149
#53 0xb6e53ac9 in QEventLoop::exec (this=0xbf7fd964, flags=...) at kernel/qeventloop.cpp:201
#54 0xb6e58570 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#55 0xb634e114 in QApplication::exec () at kernel/qapplication.cpp:3719
#56 0xb25340ea in kdemain (argc=1, argv=0x80b31c8) at /usr/src/debug/kdebase-workspace-4.5.80/plasma/desktop/shell/main.cpp:118
#57 0x0804e521 in launch (argc=1, _name=0x80a0ebc "/usr/bin/plasma-desktop", args=<value optimized out>, cwd=0x0, envc=0, envs=<value optimized out>, reset_env=false, tty=0x0, avoid_loops=false, 
    startup_id_str=0x80525a3 "0") at /usr/src/debug/kdelibs-4.5.80/kinit/kinit.cpp:730
#58 0x0804f057 in handle_launcher_request (sock=8, who=<value optimized out>) at /usr/src/debug/kdelibs-4.5.80/kinit/kinit.cpp:1222
#59 0x0804f6fc in handle_requests (waitForPid=<value optimized out>) at /usr/src/debug/kdelibs-4.5.80/kinit/kinit.cpp:1415
#60 0x08050579 in main (argc=) at /usr/src/debug/kdelibs-4.5.80/kinit/kinit.cpp:1901

Possible duplicates by query: bug 252345, bug 245439, bug 238086, bug 221849.

Reported using DrKonqi
Comment 1 Marco Martin 2010-11-30 11:48:27 UTC
this crashes when assigning a qstring...
what on earth could go wrong with that? Qt bug?
Comment 2 Dario Andres 2011-01-01 15:54:54 UTC
[Comment from a bug triager]
Bug 259187 talks about the similar situation and it also hits "Plasma::AbstractIcon::setSelected"; may be there is something in common ?
Comment 3 Myriam Schweingruber 2012-05-17 19:38:02 UTC
*** Bug 259187 has been marked as a duplicate of this bug. ***
Comment 4 Myriam Schweingruber 2012-05-17 19:39:39 UTC
Confirmed by duplicate, but that was 4.6 beta, is this still valid with KDE 4.8.3?
Comment 5 Gregor Petrin 2012-05-18 11:36:35 UTC
I'm still on KDE 4.8.2, but it seems I can remove activities now just fine. Also adding & removing various activity-related widgets and they all work fine.
Comment 6 Myriam Schweingruber 2012-05-19 22:14:41 UTC
Thank you for the feedback.