Bug 243918

Summary: Kwin crash when toggling desktop effects
Product: [Plasma] kwin Reporter: Ryan Thompson <rct+bugs>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: kde
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ryan Thompson 2010-07-08 08:02:33 UTC
Application: kwin (4.4.90 (KDE 4.4.90 (KDE 4.5 RC1)))
KDE Platform Version: 4.4.90 (KDE 4.4.90 (KDE 4.5 RC1))
Qt Version: 4.7.0
Operating System: Linux 2.6.32-21-generic x86_64
Distribution: Ubuntu 10.04 LTS

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

I pressed Alt+Ctrl+F12 to toggle compositing, and Kwin crashed. This happens quite often, though not every time.

-- Backtrace:
Application: KWin (kwin), signal: Segmentation fault
[Current thread is 1 (Thread 0x7fd58c7067a0 (LWP 3502))]

Thread 2 (Thread 0x7fd56c2d2710 (LWP 3505)):
#0  0x00007fd58c081fe3 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007fd5889ae06e in qt_safe_select (nfds=22, fdread=0x1710dd0, fdwrite=0x1711068, fdexcept=0x1711300, orig_timeout=0x0) at kernel/qcore_unix.cpp:82
#2  0x00007fd5889b339b in QEventDispatcherUNIXPrivate::doSelect (this=0x1710c10, flags=<value optimized out>, timeout=<value optimized out>) at kernel/qeventdispatcher_unix.cpp:219
#3  0x00007fd5889b3fcb in QEventDispatcherUNIX::processEvents (this=0x151d430, flags=) at kernel/qeventdispatcher_unix.cpp:919
#4  0x00007fd5889835b2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#5  0x00007fd58898398c in QEventLoop::exec (this=0x7fd56c2d1d70, flags=) at kernel/qeventloop.cpp:201
#6  0x00007fd58888f1cd in QThread::exec (this=<value optimized out>) at thread/qthread.cpp:490
#7  0x00007fd5889634d8 in QInotifyFileSystemWatcherEngine::run (this=0x1698e10) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007fd58889214e in QThreadPrivate::start (arg=0x1698e10) at thread/qthread_unix.cpp:266
#9  0x00007fd5886009ca in start_thread (arg=<value optimized out>) at pthread_create.c:300
#10 0x00007fd58c0896fd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fd58c7067a0 (LWP 3502)):
[KCrash Handler]
#6  QBasicAtomicInt::deref (node=0x1738b10) at ../../include/QtCore/../../src/corelib/arch/qatomic_x86_64.h:133
#7  ~QString (node=0x1738b10) at ../../include/QtCore/../../src/corelib/tools/qstring.h:882
#8  ~QHashNode (node=0x1738b10) at ../../include/QtCore/../../src/corelib/tools/qhash.h:217
#9  QHash<QString, QSvgNode*>::deleteNode2 (node=0x1738b10) at ../../include/QtCore/../../src/corelib/tools/qhash.h:519
#10 0x00007fd5888ae7ad in QHashData::free_helper (this=0x1fb0940, node_delete=0x7fd5871716e0 <QHash<QString, QSvgNode*>::deleteNode2(QHashData::Node*)>) at tools/qhash.cpp:271
#11 0x00007fd587176c0b in QHash<QString, QSvgNode*>::freeData (this=0x1b5a2d0, __in_chrg=<value optimized out>) at ../../include/QtCore/../../src/corelib/tools/qhash.h:568
#12 ~QHash (this=0x1b5a2d0, __in_chrg=<value optimized out>) at ../../include/QtCore/../../src/corelib/tools/qhash.h:284
#13 ~QSvgTinyDocument (this=0x1b5a2d0, __in_chrg=<value optimized out>) at qsvgtinydocument.cpp:75
#14 0x00007fd58717a564 in ~QSvgRendererPrivate (this=0x1a3e180, __in_chrg=<value optimized out>) at qsvgrenderer.cpp:115
#15 0x00007fd58899dedc in QScopedPointerDeleter<QObjectData>::cleanup (this=<value optimized out>, __in_chrg=<value optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:62
#16 ~QScopedPointer (this=<value optimized out>, __in_chrg=<value optimized out>) at ../../include/QtCore/../../src/corelib/tools/qscopedpointer.h:100
#17 ~QObject (this=<value optimized out>, __in_chrg=<value optimized out>) at kernel/qobject.cpp:963
#18 0x00007fd58b60ca13 in ~SharedSvgRenderer (this=0x1738b10, __in_chrg=<value optimized out>) at ../../plasma/svg.cpp:64
#19 0x00007fd58b60ae4b in KSharedPtr<Plasma::SharedSvgRenderer>::attach (this=0x172a750, __in_chrg=<value optimized out>) at ../../kdecore/util/ksharedptr.h:214
#20 KSharedPtr<Plasma::SharedSvgRenderer>::operator= (this=0x172a750, __in_chrg=<value optimized out>) at ../../kdecore/util/ksharedptr.h:97
#21 Plasma::SvgPrivate::eraseRenderer (this=0x172a750, __in_chrg=<value optimized out>) at ../../plasma/svg.cpp:323
#22 ~SvgPrivate (this=0x172a750, __in_chrg=<value optimized out>) at ../../plasma/svg.cpp:84
#23 ~Svg (this=0x172a750, __in_chrg=<value optimized out>) at ../../plasma/svg.cpp:504
#24 0x00007fd58a9aa07b in ~EffectFrame (this=0x172a738, __in_chrg=<value optimized out>) at ../../../kwin/lib/kwineffects.cpp:1404
#25 0x00007fd573af1fd4 in ~PresentWindowsEffect (this=0x172a680, __in_chrg=<value optimized out>) at ../../../kwin/effects/presentwindows/presentwindows.cpp:109
#26 0x00007fd58c3fdb7f in KWin::EffectsHandlerImpl::unloadEffect (this=0x1123320, name=<value optimized out>) at ../../kwin/effects.cpp:1126
#27 0x00007fd58c3fe015 in ~EffectsHandlerImpl (this=0x1123320, __in_chrg=<value optimized out>) at ../../kwin/effects.cpp:111
#28 0x00007fd58c3dc118 in KWin::Workspace::finishCompositing (this=0x11f8540) at ../../kwin/composite.cpp:274
#29 0x00007fd58c3dece0 in KWin::Workspace::suspendCompositing (this=0x1738b10, suspend=false) at ../../kwin/composite.cpp:346
#30 0x00007fd58c35ea13 in KWin::Workspace::qt_metacall (this=0x11f8540, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffe9832070) at ./workspace.moc:537
#31 0x00007fd58899c597 in QMetaObject::activate (sender=0x12cfc60, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x26c5cf0) at kernel/qobject.cpp:3280
#32 0x00007fd587aea1a2 in QAction::triggered (this=0x1738b10, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#33 0x00007fd587aeb89b in QAction::activate (this=0x12cfc60, event=<value optimized out>) at kernel/qaction.cpp:1256
#34 0x00007fd58bbd9790 in QAction::trigger (this=<value optimized out>, componentUnique=<value optimized out>, actionUnique=<value optimized out>, timestamp=69221737)
    at /usr/include/qt4/QtGui/qaction.h:218
#35 KGlobalAccelPrivate::_k_invokeAction (this=<value optimized out>, componentUnique=<value optimized out>, actionUnique=<value optimized out>, timestamp=69221737)
    at ../../kdeui/shortcuts/kglobalaccel.cpp:440
#36 0x00007fd58bbddbb8 in KGlobalAccel::qt_metacall (this=0x12fc830, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffe9832280) at ./kglobalaccel.moc:77
#37 0x00007fd58899c597 in QMetaObject::activate (sender=0x1326590, m=<value optimized out>, local_signal_index=<value optimized out>, argv=0x26c5cf0) at kernel/qobject.cpp:3280
#38 0x00007fd58bce5da9 in OrgKdeKglobalaccelComponentInterface::globalShortcutPressed (this=0x1738b10, _t1=<value optimized out>, _t2=<value optimized out>, _t3=69221737)
    at kglobalaccel_component_interface.moc:150
#39 0x00007fd58bce610a in OrgKdeKglobalaccelComponentInterface::qt_metacall (this=0x1326590, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fffe9832740)
    at kglobalaccel_component_interface.moc:98
#40 0x00007fd588cdb93e in QDBusConnectionPrivate::deliverCall (this=<value optimized out>, object=<value optimized out>, msg=<value optimized out>, metaTypes=..., slotIdx=<value optimized out>)
    at qdbusintegrator.cpp:909
#41 0x00007fd588ce676f in QDBusCallDeliveryEvent::placeMetaCall (this=0x0, object=0x0) at qdbusintegrator_p.h:103
#42 0x00007fd58899666e in QObject::event (this=0x1326590, e=0x1738b10) at kernel/qobject.cpp:1219
#43 0x00007fd587af184c in QApplicationPrivate::notify_helper (this=0x10bdd00, receiver=0x1326590, e=0x150bd10) at kernel/qapplication.cpp:4358
#44 0x00007fd587af72ed in QApplication::notify (this=0x7fffe9833280, receiver=0x1326590, e=0x150bd10) at kernel/qapplication.cpp:4241
#45 0x00007fd58bb876b6 in KApplication::notify (this=0x7fffe9833280, receiver=0x1326590, event=0x150bd10) at ../../kdeui/kernel/kapplication.cpp:309
#46 0x00007fd58898487c in QCoreApplication::notifyInternal (this=0x7fffe9833280, receiver=0x1326590, event=0x150bd10) at kernel/qcoreapplication.cpp:732
#47 0x00007fd5889877a2 in QCoreApplication::sendEvent (receiver=0x0, event_type=<value optimized out>, data=0x109ad20) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#48 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=<value optimized out>, data=0x109ad20) at kernel/qcoreapplication.cpp:1373
#49 0x00007fd587ba3dc4 in QCoreApplication::sendPostedEvents (this=<value optimized out>, flags=) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#50 QEventDispatcherX11::processEvents (this=<value optimized out>, flags=) at kernel/qeventdispatcher_x11.cpp:75
#51 0x00007fd5889835b2 in QEventLoop::processEvents (this=<value optimized out>, flags=) at kernel/qeventloop.cpp:149
#52 0x00007fd58898398c in QEventLoop::exec (this=0x7fffe98331c0, flags=) at kernel/qeventloop.cpp:201
#53 0x00007fd588987a3b in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#54 0x00007fd58c37b5dd in kdemain (argc=<value optimized out>, argv=<value optimized out>) at ../../kwin/main.cpp:531
#55 0x00007fd58bfc1c4d in __libc_start_main (main=<value optimized out>, argc=<value optimized out>, ubp_av=<value optimized out>, init=<value optimized out>, fini=<value optimized out>, 
    rtld_fini=<value optimized out>, stack_end=0x7fffe9833888) at libc-start.c:226
#56 0x00000000004006b9 in _start ()

Possible duplicates by query: bug 213283, bug 163538.

Reported using DrKonqi
Comment 1 Martin Flöser 2010-08-07 08:26:19 UTC
the backtrace is not 100 % match, but most of the crash is in upper Qt and Plasma parts and that is matching

*** This bug has been marked as a duplicate of bug 243257 ***
Comment 2 Martin Flöser 2011-04-28 22:19:34 UTC
*** Bug 269381 has been marked as a duplicate of this bug. ***