Bug 293031

Summary: KWin crashes when switching desktop (Using CTRL+TAB)
Product: [Plasma] kwin Reporter: Robert Voinea <rvoinea>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: senjas
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Robert Voinea 2012-02-01 10:07:45 UTC
Application: kwin (4.8.00 (4.8.0)
KDE Platform Version: 4.8.00 (4.8.0
Qt Version: 4.7.4
Operating System: Linux 3.0.0-16-generic i686
Distribution: Ubuntu 11.10

-- Information about the crash:
- What I was doing when the application crashed:
A few windows opened on one of the virtual desktops.

- Unusual behavior I noticed:
KWin crashes after a few desktop switches.
The crash happens sometimes. I could not find a pattern.
After a crash, sometimes it crashes again (after it automatically restarts), other times it works as expected for some times... and then... crash!... 
As a strange thing... the one panel I have disappears when this happens... only to reappear again.

- Custom settings of the application:
Single-monitor setup.
Two virtual desktops.
Using CTRL+TAB to switch between them.
Using plastik window decorations and widget styles (don't know if this is relevant)
A pager embedded into a plasma panel

The crash can be reproduced some of the time.

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

Thread 3 (Thread 0xb3709b70 (LWP 2446)):
#0  0x007b3d10 in __GI_clock_gettime (clock_id=1, tp=0xb3709088) at ../sysdeps/unix/clock_gettime.c:116
#1  0x084547d5 in do_gettime (frac=0xb3709080, sec=0xb3709078) at tools/qelapsedtimer_unix.cpp:123
#2  qt_gettime () at tools/qelapsedtimer_unix.cpp:140
#3  0x085274b6 in QTimerInfoList::updateCurrentTime (this=0x9e860e0) at kernel/qeventdispatcher_unix.cpp:339
#4  0x0852780a in QTimerInfoList::timerWait (this=0x9e860e0, tm=...) at kernel/qeventdispatcher_unix.cpp:442
#5  0x085294de in QEventDispatcherUNIX::processEvents (this=0x9d7c690, flags=...) at kernel/qeventdispatcher_unix.cpp:905
#6  0x084f71dd in QEventLoop::processEvents (this=0xb37091f0, flags=...) at kernel/qeventloop.cpp:149
#7  0x084f7421 in QEventLoop::exec (this=0xb37091f0, flags=...) at kernel/qeventloop.cpp:201
#8  0x083fa90b in QThread::exec (this=0x9e98238) at thread/qthread.cpp:498
#9  0x084d7e2d in QInotifyFileSystemWatcherEngine::run (this=0x9e98238) at io/qfilesystemwatcher_inotify.cpp:248
#10 0x083fd7b3 in QThreadPrivate::start (arg=0x9e98238) at thread/qthread_unix.cpp:331
#11 0x01874a9c in ?? () from /usr/lib/nvidia-current/libGL.so.1
#12 0x00000000 in ?? ()

Thread 2 (Thread 0xb2efab70 (LWP 2447)):
#0  0x007c1416 in __kernel_vsyscall ()
#1  0x091d2a5c in pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/i386/i686/../i486/pthread_cond_wait.S:169
#2  0x00dbbcfc in __pthread_cond_wait (cond=0x1ec0a50, mutex=0x1ec0a38) at forward.c:139
#3  0x01dbb9a9 in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#4  0x01dbb9ef in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#5  0x01874a9c in ?? () from /usr/lib/nvidia-current/libGL.so.1
#6  0x00000000 in ?? ()

Thread 1 (Thread 0xb5c08720 (LWP 2444)):
[KCrash Handler]
#7  0x006d0fb8 in KWin::TabBox::ClientModel::data (this=0x9d5edb8, index=..., role=37) at ../../kwin/tabbox/clientmodel.cpp:80
#8  0x00fb2d99 in QDeclarativeVisualDataModelDataMetaObject::initialValue (this=0x0, propId=164713720) at graphicsitems/qdeclarativevisualitemmodel.cpp:534
#9  0x00f175c4 in QDeclarativeOpenMetaObjectPrivate::getData (this=0x9fb53b0, idx=3) at util/qdeclarativeopenmetaobject.cpp:149
#10 0x00f1608c in QDeclarativeOpenMetaObject::metaCall (this=0x9fb5390, c=QMetaObject::ReadProperty, id=5, a=0xbf9ef070) at util/qdeclarativeopenmetaobject.cpp:230
#11 0x084feb7d in metacall (argv=0xbf9ef070, idx=5, cl=QMetaObject::ReadProperty, object=0xa260668) at kernel/qmetaobject.cpp:237
#12 QMetaObject::metacall (object=0xa260668, cl=QMetaObject::ReadProperty, idx=5, argv=0xbf9ef070) at kernel/qmetaobject.cpp:232
#13 0x0850199b in QMetaProperty::read (this=0xbf9ef0f8, object=0xa260668) at kernel/qmetaobject.cpp:2238
#14 0x0108eb06 in QDeclarativeObjectScriptClass::property (this=0xbf9ef0f8, obj=0xa260668, name=@0x9d154f8) at qml/qdeclarativeobjectscriptclass.cpp:311
#15 0x01094325 in QDeclarativeContextScriptClass::property (this=0xa0432b0, object=0xa17f0a0, name=@0x0) at qml/qdeclarativecontextscriptclass.cpp:289
#16 0x01e3f576 in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#17 0x01e267f4 in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#18 0x01d0077c in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#19 0x03ff837c in ?? ()
#20 0x01cbaa47 in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#21 0x01d573f2 in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#22 0x01d2ac89 in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#23 0x01e1f63c in QScriptValue::call(QScriptValue const&, QList<QScriptValue> const&) () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#24 0x00fed6f8 in QDeclarativeQtScriptExpression::eval (this=0x9fa05e8, secondaryScope=0x9d154f8, isUndefined=0xbf9ef7bc) at qml/qdeclarativeexpression.cpp:518
#25 0x00feda12 in QDeclarativeQtScriptExpression::scriptValue (this=0x9fa05e8, secondaryScope=0x9d154f8, isUndefined=0xbf9ef7bc) at qml/qdeclarativeexpression.cpp:470
#26 0x00fedd1e in QDeclarativeExpressionPrivate::scriptValue (this=0x9fa05e8, secondaryScope=0x9d154f8, isUndefined=0x9d154f8) at qml/qdeclarativeexpression.cpp:653
#27 0x00fef877 in QDeclarativeBinding::update (this=0x9fa0568, flags=...) at qml/qdeclarativebinding.cpp:365
#28 0x00ff0932 in QDeclarativeBinding::setEnabled (this=0x9fa0568, e=true, flags=...) at qml/qdeclarativebinding.cpp:474
#29 0x00ff8b0f in QDeclarativeComponentPrivate::complete (enginePriv=0xa01ef98, state=0x9f9da20) at qml/qdeclarativecomponent.cpp:948
#30 0x00ff9154 in completeCreate (this=0x9f9d9b0) at qml/qdeclarativecomponent.cpp:1035
#31 QDeclarativeComponentPrivate::completeCreate (this=0x9f9d9b0) at qml/qdeclarativecomponent.cpp:1031
#32 0x00fad92e in QDeclarativeVisualDataModel::completeItem (this=0x9f77a38) at graphicsitems/qdeclarativevisualitemmodel.cpp:1125
#33 0x00fb7e03 in QDeclarativeListViewPrivate::createItem (this=0x9f7d418, modelIndex=1) at graphicsitems/qdeclarativelistview.cpp:664
#34 0x00fbe670 in refill (doBuffer=false, to=555, from=-0, this=0x9f7d418) at graphicsitems/qdeclarativelistview.cpp:766
#35 QDeclarativeListViewPrivate::refill (this=0x9f7d418, from=-0, to=555, doBuffer=false) at graphicsitems/qdeclarativelistview.cpp:710
#36 0x00fbea0c in QDeclarativeListView::refill (this=0xa26bfc0) at graphicsitems/qdeclarativelistview.cpp:3130
#37 0x00fc3050 in QDeclarativeListView::setModel (this=0xa26bfc0, model=...) at graphicsitems/qdeclarativelistview.cpp:1766
#38 0x010f0a95 in QDeclarativeListView::qt_metacall (this=0xa26bfc0, _c=QMetaObject::WriteProperty, _id=0, _a=0xbf9efcf4) at .moc/release-shared/moc_qdeclarativelistview_p.cpp:529
#39 0x00fd7d21 in QDeclarativeVMEMetaObject::metaCall (this=0xa26c088, c=QMetaObject::WriteProperty, _id=67, a=0xbf9efcf4) at qml/qdeclarativevmemetaobject.cpp:673
#40 0x084feb7d in metacall (argv=0xbf9efcf4, idx=67, cl=QMetaObject::WriteProperty, object=0xa26bfc0) at kernel/qmetaobject.cpp:237
#41 QMetaObject::metacall (object=0xa26bfc0, cl=QMetaObject::WriteProperty, idx=67, argv=0xbf9efcf4) at kernel/qmetaobject.cpp:232
#42 0x00ff5b34 in QDeclarativePropertyPrivate::write (object=0xa26bfc0, property=..., value=..., context=0xa263558, flags=...) at qml/qdeclarativeproperty.cpp:1173
#43 0x01090074 in QDeclarativeObjectScriptClass::setProperty (this=0xa044498, obj=0xa26bfc0, name=@0x9d154f8, value=..., context=0xb1c900a0, evalContext=0xa263558) at qml/qdeclarativeobjectscriptclass.cpp:404
#44 0x01090538 in QDeclarativeObjectScriptClass::setProperty (this=0xa044498, object=0x9d505a0, name=@0xbf9efef0, value=...) at qml/qdeclarativeobjectscriptclass.cpp:321
#45 0x01e3f87a in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#46 0x01e26134 in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#47 0x01d07d36 in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#48 0x03ff7d9d in ?? ()
#49 0x01cbaa47 in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#50 0x01d573f2 in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#51 0x01d2ac89 in ?? () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#52 0x01e1f63c in QScriptValue::call(QScriptValue const&, QList<QScriptValue> const&) () from /usr/lib/i386-linux-gnu/libQtScript.so.4
#53 0x00fed6f8 in QDeclarativeQtScriptExpression::eval (this=0xa05ab28, secondaryScope=0x9d154f8, isUndefined=0x0) at qml/qdeclarativeexpression.cpp:518
#54 0x00feda12 in QDeclarativeQtScriptExpression::scriptValue (this=0xa05ab28, secondaryScope=0x9d154f8, isUndefined=0x0) at qml/qdeclarativeexpression.cpp:470
#55 0x00fedd1e in QDeclarativeExpressionPrivate::scriptValue (this=0xa05ab28, secondaryScope=0x9d154f8, isUndefined=0x9d154f8) at qml/qdeclarativeexpression.cpp:653
#56 0x00fedea4 in QDeclarativeExpressionPrivate::value (this=0xa05aad8, secondaryScope=0x0, isUndefined=0x0) at qml/qdeclarativeexpression.cpp:667
#57 0x01029658 in QDeclarativeBoundSignal::qt_metacall (this=0xa046f50, c=QMetaObject::InvokeMetaMethod, id=4, a=0xbf9f0484) at qml/qdeclarativeboundsignal.cpp:186
#58 0x084feb7d in metacall (argv=0xbf9f0484, idx=4, cl=QMetaObject::InvokeMetaMethod, object=0xa046f50) at kernel/qmetaobject.cpp:237
#59 QMetaObject::metacall (object=0xa046f50, cl=QMetaObject::InvokeMetaMethod, idx=4, argv=0xbf9f0484) at kernel/qmetaobject.cpp:232
#60 0x0850da6a in QMetaObject::activate (sender=0xa046f70, m=0x11bc4f8, local_signal_index=4, argv=0x0) at kernel/qobject.cpp:3278
#61 0x00f831f5 in QDeclarativeLoader::loaded (this=0xa046f70) at .moc/release-shared/moc_qdeclarativeloader_p.cpp:187
#62 0x00f83a7d in QDeclarativeLoaderPrivate::_q_sourceLoaded (this=0xa04e680) at graphicsitems/qdeclarativeloader.cpp:423
#63 0x00f84324 in QDeclarativeLoader::qt_metacall (this=0xa046f70, _c=QMetaObject::WriteProperty, _id=0, _a=0xbf9f06fc) at .moc/release-shared/moc_qdeclarativeloader_p.cpp:136
#64 0x00fd7d21 in QDeclarativeVMEMetaObject::metaCall (this=0xa04e8c8, c=QMetaObject::WriteProperty, _id=43, a=0xbf9f06fc) at qml/qdeclarativevmemetaobject.cpp:673
#65 0x084feb7d in metacall (argv=0xbf9f06fc, idx=43, cl=QMetaObject::WriteProperty, object=0xa046f70) at kernel/qmetaobject.cpp:237
#66 QMetaObject::metacall (object=0xa046f70, cl=QMetaObject::WriteProperty, idx=43, argv=0xbf9f06fc) at kernel/qmetaobject.cpp:232
#67 0x08501f03 in QMetaProperty::write (this=0x0, object=0xa046f70, value=...) at kernel/qmetaobject.cpp:2312
#68 0x085116fa in QObject::setProperty (this=0xa046f70, name=0x6fdbdc "source", value=...) at kernel/qobject.cpp:3434
#69 0x006d2b60 in KWin::TabBox::DeclarativeView::updateQmlSource (this=0x9f9cd30) at ../../kwin/tabbox/declarative.cpp:215
#70 0x00601be4 in KWin::TabBox::DeclarativeView::qt_metacall (this=0x9f9cd30, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0xbf9f0934) at moc_declarative.cpp:77
#71 0x084feb7d in metacall (argv=0xbf9f0934, idx=43, cl=QMetaObject::InvokeMetaMethod, object=0x9f9cd30) at kernel/qmetaobject.cpp:237
#72 QMetaObject::metacall (object=0x9f9cd30, cl=QMetaObject::InvokeMetaMethod, idx=43, argv=0xbf9f0934) at kernel/qmetaobject.cpp:232
#73 0x0850da6a in QMetaObject::activate (sender=0x9d72600, m=0x724b08, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3278
#74 0x00603a05 in KWin::TabBox::TabBoxHandler::configChanged (this=0x9d72600) at moc_tabboxhandler.cpp:86
#75 0x006dd3b0 in KWin::TabBox::TabBoxHandler::setConfig (this=0x9d72600, config=...) at ../../kwin/tabbox/tabboxhandler.cpp:401
#76 0x006c9c9e in setMode (this=0x9d00110, mode=<optimized out>) at ../../kwin/tabbox/tabbox.cpp:373
#77 KWin::TabBox::TabBox::setMode (this=0x9d00110, mode=KWin::TabBoxDesktopMode) at ../../kwin/tabbox/tabbox.cpp:362
#78 0x006cda7a in startWalkThroughDesktops (mode=KWin::TabBoxDesktopMode, this=0x9d00110) at ../../kwin/tabbox/tabbox.cpp:933
#79 KWin::TabBox::TabBox::startWalkThroughDesktops (this=0x9d00110, mode=KWin::TabBoxDesktopMode) at ../../kwin/tabbox/tabbox.cpp:927
#80 0x006cdbb7 in KWin::TabBox::TabBox::startWalkThroughDesktops (this=0x9d00110) at ../../kwin/tabbox/tabbox.cpp:940
#81 0x006cdc68 in KWin::TabBox::TabBox::slotWalkThroughDesktops (this=0x9d00110) at ../../kwin/tabbox/tabbox.cpp:804
#82 0x006cdfd7 in KWin::TabBox::TabBox::qt_metacall (this=0x9d00110, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0xbf9f0b78) at ./tabbox.moc:124
#83 0x084feb7d in metacall (argv=0xbf9f0b78, idx=9, cl=QMetaObject::InvokeMetaMethod, object=0x9d00110) at kernel/qmetaobject.cpp:237
#84 QMetaObject::metacall (object=0x9d00110, cl=QMetaObject::InvokeMetaMethod, idx=9, argv=0xbf9f0b78) at kernel/qmetaobject.cpp:232
#85 0x0850da6a in QMetaObject::activate (sender=0x9f18580, m=0x7bf7458, local_signal_index=1, argv=0xbf9f0b78) at kernel/qobject.cpp:3278
#86 0x072a786d in QAction::triggered (this=0x9f18580, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#87 0x072a7b0b in QAction::activate (this=0x9f18580, event=QAction::Trigger) at kernel/qaction.cpp:1257
#88 0x00347b1f in trigger (this=0x9f18580) at /usr/include/qt4/QtGui/qaction.h:218
#89 KGlobalAccelPrivate::_k_invokeAction (this=0x9e86dd0, componentUnique=..., actionUnique=..., timestamp=5928399) at ../../kdeui/shortcuts/kglobalaccel.cpp:449
#90 0x0034a74f in KGlobalAccel::qt_metacall (this=0x9d84c50, _c=QMetaObject::InvokeMetaMethod, _id=<optimized out>, _a=0xbf9f0d60) at ./kglobalaccel.moc:77
#91 0x084feb7d in metacall (argv=0xbf9f0d60, idx=4, cl=QMetaObject::InvokeMetaMethod, object=0x9d84c50) at kernel/qmetaobject.cpp:237
#92 QMetaObject::metacall (object=0x9d84c50, cl=QMetaObject::InvokeMetaMethod, idx=4, argv=0xbf9f0d60) at kernel/qmetaobject.cpp:232
#93 0x0850da6a in QMetaObject::activate (sender=0x9d5d2a8, m=0x5445d8, local_signal_index=0, argv=0xbf9f0d60) at kernel/qobject.cpp:3278
#94 0x00482955 in OrgKdeKglobalaccelComponentInterface::globalShortcutPressed (this=0x9d5d2a8, _t1=..., _t2=..., _t3=5928399) at kglobalaccel_component_interface.moc:150
#95 0x00482e4e in OrgKdeKglobalaccelComponentInterface::qt_metacall (this=0x9d5d2a8, _c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbf9f0f4c) at kglobalaccel_component_interface.moc:98
#96 0x00c41d87 in QDBusConnectionPrivate::deliverCall (this=0x9c51af8, object=0x9d5d2a8, msg=..., metaTypes=..., slotIdx=164713720) at qdbusintegrator.cpp:942
#97 0x00c4bc26 in QDBusCallDeliveryEvent::placeMetaCall (this=0x9f8fa78, object=0x9d5d2a8) at qdbusintegrator_p.h:103
#98 0x08510b52 in QObject::event (this=0x9d5d2a8, e=0x9f8fa78) at kernel/qobject.cpp:1217
#99 0x072aed84 in notify_helper (e=0x9f8fa78, receiver=0x9d5d2a8, this=0x9c58398) at kernel/qapplication.cpp:4486
#100 QApplicationPrivate::notify_helper (this=0x9c58398, receiver=0x9d5d2a8, e=0x9f8fa78) at kernel/qapplication.cpp:4458
#101 0x072b4133 in QApplication::notify (this=0x9f8fa78, receiver=0x9d5d2a8, e=0x9f8fa78) at kernel/qapplication.cpp:3886
#102 0x002f8011 in KApplication::notify (this=0xbf9f1648, receiver=0x9d5d2a8, event=0x9f8fa78) at ../../kdeui/kernel/kapplication.cpp:311
#103 0x0062af5f in notify (e=0x9f8fa78, o=0x9d5d2a8, this=0xbf9f1648) at ../../kwin/main.cpp:368
#104 KWin::Application::notify (this=0xbf9f1648, o=0x9d5d2a8, e=0x9f8fa78) at ../../kwin/main.cpp:364
#105 0x084f819e in QCoreApplication::notifyInternal (this=0xbf9f1648, receiver=0x9d5d2a8, event=0x9f8fa78) at kernel/qcoreapplication.cpp:787
#106 0x084fbf93 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#107 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x9bca2e0) at kernel/qcoreapplication.cpp:1428
#108 0x084fc0ec in QCoreApplication::sendPostedEvents (receiver=0x0, event_type=0) at kernel/qcoreapplication.cpp:1321
#109 0x07367d2d in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:220
#110 QEventDispatcherX11::processEvents (this=0x9bcb230, flags=...) at kernel/qeventdispatcher_x11.cpp:75
#111 0x084f71dd in QEventLoop::processEvents (this=0xbf9f1584, flags=...) at kernel/qeventloop.cpp:149
#112 0x084f7421 in QEventLoop::exec (this=0xbf9f1584, flags=...) at kernel/qeventloop.cpp:201
#113 0x084fc19d in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1064
#114 0x072ac924 in QApplication::exec () at kernel/qapplication.cpp:3760
#115 0x0062def5 in kdemain (argc=1, argv=0xbf9f18f4) at ../../kwin/main.cpp:541
#116 0x0804850b in main (argc=1, argv=0xbf9f18f4) at kwin_dummy.cpp:3

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

Possible duplicates by query: bug 292589, bug 290482, bug 285747.

Reported using DrKonqi
Comment 1 Thomas Lübking 2012-02-01 15:15:05 UTC

*** This bug has been marked as a duplicate of bug 290482 ***
Comment 2 Andrey 2012-02-14 14:04:23 UTC
I experienced this sometimes previously on older versions,
but on 4.8.00 it happens a lot more often. 

Neither did I find the way to 100% reproduce it.
I'm using Intel GMA X3100 and have compositing (OpenGL) enabled.

I don't have debug packages installed yet (I'm quite low on disk space), 
but I will, if needed.