Bug 179865

Summary: boxswitch crashes if window is closed
Product: [Plasma] kwin Reporter: Cassiano Leal <cassianoleal>
Component: compositingAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: crash CC: alinm.elena, anselmolsm, auxsvr, b.m.kast, christiandehne, dado, esigra, ionut.ciocirlan, jonas.vejlin, jos, lazy.kent, lgrinberg, marcus, mensch, null, philip.falkner, pixi, richts, stefano.fornari, steffen_moeller, wolfgang, zayed.alsaidi
Priority: HI    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Unspecified   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Cassiano Leal 2009-01-07 00:42:18 UTC
Version:            (using Devel)
Installed from:    Compiled sources

After closing a Firefox 3.1b2 window, kwin crashed with the backtrace below.

I am using Xrender effects in an Intel on-board video card.

Application: KWin (kwin), signal SIGSEGV

Thread 1 (Thread 0xb64316e0 (LWP 5490)):
[KCrash Handler]
#6  0xb69aa908 in vtable for __cxxabiv1::__si_class_type_info () from /usr/lib/libstdc++.so.6
#7  0xb7933742 in WindowPaintData (this=0xbff5f630, w=0x9be2d70) at ../../../kwin/lib/kwineffects.cpp:74
#8  0xb4b8544d in KWin::BoxSwitchEffect::paintWindowThumbnail (this=0x9be2ae0, w=0x9be2d70) at ../../../kwin/effects/boxswitch.cpp:761
#9  0xb4b88732 in KWin::BoxSwitchEffect::paintScreen (this=0x9be2ae0, mask=0, region=
        {d = 0xbff5f8a8, static shared_empty = {ref = {_q_value = 97}, rgn = 0x9c02890, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbff5fdf8) at ../../../kwin/effects/boxswitch.cpp:147
#10 0xb7f0f246 in KWin::EffectsHandlerImpl::paintScreen (this=0x9bb7720, mask=0, region=
        {d = 0xbff5fa0c, static shared_empty = {ref = {_q_value = 97}, rgn = 0x9c02890, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbff5fdf8) at ../../kwin/effects.cpp:121
#11 0xb4b8b82d in KWin::DesktopGridEffect::paintScreen (this=0x9bf0288, mask=0, region=
        {d = 0xbff5fa58, static shared_empty = {ref = {_q_value = 97}, rgn = 0x9c02890, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbff5fdf8) at ../../../kwin/effects/desktopgrid.cpp:122
#12 0xb7f0f246 in KWin::EffectsHandlerImpl::paintScreen (this=0x9bb7720, mask=0, region=
        {d = 0xbff5fa98, static shared_empty = {ref = {_q_value = 97}, rgn = 0x9c02890, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbff5fdf8) at ../../kwin/effects.cpp:121
#13 0xb79318c6 in KWin::Effect::paintScreen (this=0x9c25fb0, mask=0, region={d = 0xbff5fad8, static shared_empty = {ref = {_q_value = 97}, rgn = 0x9c02890, xrectangles = 0x0, qt_rgn = 0x0}}, 
    data=@0xbff5fdf8) at ../../../kwin/lib/kwineffects.cpp:199
#14 0xb7f0f246 in KWin::EffectsHandlerImpl::paintScreen (this=0x9bb7720, mask=0, region=
        {d = 0xbff5fb18, static shared_empty = {ref = {_q_value = 97}, rgn = 0x9c02890, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbff5fdf8) at ../../kwin/effects.cpp:121
#15 0xb79318c6 in KWin::Effect::paintScreen (this=0x9bfa058, mask=0, region={d = 0xbff5fb58, static shared_empty = {ref = {_q_value = 97}, rgn = 0x9c02890, xrectangles = 0x0, qt_rgn = 0x0}}, 
    data=@0xbff5fdf8) at ../../../kwin/lib/kwineffects.cpp:199
#16 0xb7f0f246 in KWin::EffectsHandlerImpl::paintScreen (this=0x9bb7720, mask=0, region=
        {d = 0xbff5fb98, static shared_empty = {ref = {_q_value = 97}, rgn = 0x9c02890, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbff5fdf8) at ../../kwin/effects.cpp:121
#17 0xb79318c6 in KWin::Effect::paintScreen (this=0x9c53c20, mask=0, region={d = 0xbff5fbd8, static shared_empty = {ref = {_q_value = 97}, rgn = 0x9c02890, xrectangles = 0x0, qt_rgn = 0x0}}, 
    data=@0xbff5fdf8) at ../../../kwin/lib/kwineffects.cpp:199
#18 0xb7f0f246 in KWin::EffectsHandlerImpl::paintScreen (this=0x9bb7720, mask=0, region=
        {d = 0xbff5fcf4, static shared_empty = {ref = {_q_value = 97}, rgn = 0x9c02890, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbff5fdf8) at ../../kwin/effects.cpp:121
#19 0xb4b916a5 in KWin::DimScreenEffect::paintScreen (this=0x9be28d0, mask=0, region=
        {d = 0xbff5fd38, static shared_empty = {ref = {_q_value = 97}, rgn = 0x9c02890, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbff5fdf8) at ../../../kwin/effects/dimscreen.cpp:60
#20 0xb7f0f246 in KWin::EffectsHandlerImpl::paintScreen (this=0x9bb7720, mask=0, region=
        {d = 0xbff5fd78, static shared_empty = {ref = {_q_value = 97}, rgn = 0x9c02890, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbff5fdf8) at ../../kwin/effects.cpp:121
#21 0xb79318c6 in KWin::Effect::paintScreen (this=0x9bebbd0, mask=0, region={d = 0xbff5fdb8, static shared_empty = {ref = {_q_value = 97}, rgn = 0x9c02890, xrectangles = 0x0, qt_rgn = 0x0}}, 
    data=@0xbff5fdf8) at ../../../kwin/lib/kwineffects.cpp:199
#22 0xb7f0f246 in KWin::EffectsHandlerImpl::paintScreen (this=0x9bb7720, mask=0, region=
        {d = 0xbff5fe50, static shared_empty = {ref = {_q_value = 97}, rgn = 0x9c02890, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0xbff5fdf8) at ../../kwin/effects.cpp:121
#23 0xb7ef9cf0 in KWin::Scene::paintScreen (this=0x9bb64c0, mask=0xbff5fed4, region=0xbff5ff94) at ../../kwin/scene.cpp:133
#24 0xb7efe718 in KWin::SceneXrender::paint (this=0x9bb64c0, damage={d = 0xbff5ff94, static shared_empty = {ref = {_q_value = 97}, rgn = 0x9c02890, xrectangles = 0x0, qt_rgn = 0x0}}, toplevels=
        {{p = {static shared_null = {ref = {_q_value = 2942}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0xbff5ff90}, d = 0xbff5ff90}}) at ../../kwin/scene_xrender.cpp:256
#25 0xb7ef4f6e in KWin::Workspace::performCompositing (this=0x9ba3bd8) at ../../kwin/composite.cpp:384
#26 0xb7e8cc2d in KWin::Workspace::qt_metacall (this=0x9ba3bd8, _c=QMetaObject::InvokeMetaMethod, _id=140, _a=0xbff60068) at ./workspace.moc:443
#27 0xb6b0dbd0 in QMetaObject::activate (sender=0x9ba3e2c, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3031
#28 0xb6b0e952 in QMetaObject::activate (sender=0x9ba3e2c, m=0xb6bdc0a4, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3101
#29 0xb6b48857 in QTimer::timeout (this=0x9ba3e2c) at .moc/release-shared/moc_qtimer.cpp:126
#30 0xb6b1457e in QTimer::timerEvent (this=0x9ba3e2c, e=0xbff6051c) at kernel/qtimer.cpp:257
#31 0xb6b086af in QObject::event (this=0x9ba3e2c, e=0xbff6051c) at kernel/qobject.cpp:1120
#32 0xb6d8779c in QApplicationPrivate::notify_helper (this=0x9b09738, receiver=0x9ba3e2c, e=0xbff6051c) at kernel/qapplication.cpp:3803
#33 0xb6d8f61e in QApplication::notify (this=0xbff607f8, receiver=0x9ba3e2c, e=0xbff6051c) at kernel/qapplication.cpp:3393
#34 0xb7b56a0d in KApplication::notify (this=0xbff607f8, receiver=0x9ba3e2c, event=0xbff6051c) at ../../kdeui/kernel/kapplication.cpp:307
#35 0xb7ea47fd in KWin::Application::notify (this=0xbff607f8, o=0x9ba3e2c, e=0xbff6051c) at ../../kwin/main.cpp:368
#36 0xb6af90d1 in QCoreApplication::notifyInternal (this=0xbff607f8, receiver=0x9ba3e2c, event=0xbff6051c) at kernel/qcoreapplication.cpp:587
#37 0xb6b27031 in QTimerInfoList::activateTimers (this=0x9b0c714) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:209
#38 0xb6b23680 in timerSourceDispatch (source=0x9b0c6e0) at kernel/qeventdispatcher_glib.cpp:160
#39 0xb65cf398 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#40 0xb65d2a33 in ?? () from /usr/lib/libglib-2.0.so.0
#41 0x09b0ba78 in ?? ()
#42 0x00000000 in ?? ()
Comment 1 auxsvr 2009-01-26 15:17:35 UTC
Plasma hang for a while while I was accessing a plasmoid with the dashboard, and I used Alt-Tab to move to another application. Kwin crashed then with backtrace:

Application: KWin (kwin), signal SIGSEGV
[Current thread is 1 (Thread 0xb6472700 (LWP 6225))]

Thread 1 (Thread 0xb6472700 (LWP 6225)):
[KCrash Handler]
#6  0x07000038 in ?? ()
#7  0xb491b0fc in KWin::BoxSwitchEffect::paintWindowThumbnail(KWin::EffectWindow*) () from /usr/lib/kde4/kwin4_effect_builtins.so
#8  0xb491e3d2 in KWin::BoxSwitchEffect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /usr/lib/kde4/kwin4_effect_builtins.so
#9  0xb80286cf in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /usr/lib/libkdeinit4_kwin.so
#10 0xb7f63ab6 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /usr/lib/libkwineffects.so.1
#11 0xb80286cf in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /usr/lib/libkdeinit4_kwin.so
#12 0xb7f63ab6 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /usr/lib/libkwineffects.so.1
#13 0xb80286cf in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /usr/lib/libkdeinit4_kwin.so
#14 0xb49261b5 in KWin::DimScreenEffect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /usr/lib/kde4/kwin4_effect_builtins.so
#15 0xb80286cf in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /usr/lib/libkdeinit4_kwin.so
#16 0xb7f63ab6 in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /usr/lib/libkwineffects.so.1
#17 0xb80286cf in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /usr/lib/libkdeinit4_kwin.so
#18 0xb8015d10 in KWin::Scene::paintScreen(int*, QRegion*) () from /usr/lib/libkdeinit4_kwin.so
#19 0xb80226aa in KWin::SceneOpenGL::paint(QRegion, QList<KWin::Toplevel*>) () from /usr/lib/libkdeinit4_kwin.so
#20 0xb8011bf6 in KWin::Workspace::performCompositing() () from /usr/lib/libkdeinit4_kwin.so
#21 0xb7fb24ed in KWin::Workspace::qt_metacall(QMetaObject::Call, int, void**) () from /usr/lib/libkdeinit4_kwin.so
#22 0xb6ecd580 in QMetaObject::activate (sender=0x80d8e64, from_signal_index=4, to_signal_index=4, argv=0x0) at kernel/qobject.cpp:3031
#23 0xb6ece302 in QMetaObject::activate (sender=0x80d8e64, m=0xb6fa0904, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3101
#24 0xb6f087f7 in QTimer::timeout (this=0x80d8e64) at .moc/release-shared/moc_qtimer.cpp:126
#25 0xb6ed3f9e in QTimer::timerEvent (this=0x80d8e64, e=0xbffad860) at kernel/qtimer.cpp:257
#26 0xb6ec804f in QObject::event (this=0x80d8e64, e=0xbffad860) at kernel/qobject.cpp:1120
#27 0xb71278fc in QApplicationPrivate::notify_helper (this=0x8058a90, receiver=0x80d8e64, e=0xbffad860) at kernel/qapplication.cpp:3803
#28 0xb712f75e in QApplication::notify (this=0xbffadb64, receiver=0x80d8e64, e=0xbffad860) at kernel/qapplication.cpp:3393
#29 0xb7d698fd in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#30 0xb7fc6f4d in KWin::Application::notify(QObject*, QEvent*) () from /usr/lib/libkdeinit4_kwin.so
#31 0xb6eb8961 in QCoreApplication::notifyInternal (this=0xbffadb64, receiver=0x80d8e64, event=0xbffad860) at kernel/qcoreapplication.cpp:587
#32 0xb6ee6b86 in QTimerInfoList::activateTimers (this=0x805b9ac) at kernel/qcoreapplication.h:209
#33 0xb6ee3060 in timerSourceDispatch (source=0x805b978) at kernel/qeventdispatcher_glib.cpp:160
#34 0xb65849a8 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#35 0xb6588063 in ?? () from /usr/lib/libglib-2.0.so.0
#36 0xb6588221 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#37 0xb6ee2fb8 in QEventDispatcherGlib::processEvents (this=0x804b128, flags={i = -1074079224}) at kernel/qeventdispatcher_glib.cpp:319
#38 0xb71c0785 in QGuiEventDispatcherGlib::processEvents (this=0x804b128, flags={i = -1074079176}) at kernel/qguieventdispatcher_glib.cpp:198
#39 0xb6eb701a in QEventLoop::processEvents (this=0xbffadab0, flags={i = -1074079112}) at kernel/qeventloop.cpp:143
#40 0xb6eb71da in QEventLoop::exec (this=0xbffadab0, flags={i = -1074079048}) at kernel/qeventloop.cpp:194
#41 0xb6eb9895 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:845
#42 0xb7127777 in QApplication::exec () at kernel/qapplication.cpp:3331
#43 0xb7fc9e1a in kdemain () from /usr/lib/libkdeinit4_kwin.so
#44 0x080487b2 in main ()

Comment 2 Martin Flöser 2009-02-09 11:28:24 UTC
*** Bug 182341 has been marked as a duplicate of this bug. ***
Comment 3 Martin Flöser 2009-02-09 11:54:53 UTC
*** Bug 183763 has been marked as a duplicate of this bug. ***
Comment 4 Marcus Better 2009-03-12 15:48:52 UTC
Confirmed on KDE 4.2.1 (Debian experimental, kde-window-manager 4:4.2.1-2).
Comment 5 Ionut Ciocirlan 2009-03-23 13:18:05 UTC
KDE 4.2.1 (Debian experimental) here as well.
The simplest way to reproduce this bug:

$ kate & pid=$! ; sleep 3 ; kill $pid
Comment 6 Martin Flöser 2009-03-29 12:10:12 UTC
*** Bug 188377 has been marked as a duplicate of this bug. ***
Comment 7 Martin Flöser 2009-05-08 09:59:38 UTC
*** Bug 192005 has been marked as a duplicate of this bug. ***
Comment 8 Martin Flöser 2009-05-25 00:46:51 UTC
*** Bug 193934 has been marked as a duplicate of this bug. ***
Comment 9 Marcus Better 2009-06-08 14:08:58 UTC
Bug still present in KDE 4.2.4 (Debian kdebase-workspace 4:4.2.4-1).
Comment 10 Thomas Lübking 2009-06-09 15:18:05 UTC
*** Bug 195774 has been marked as a duplicate of this bug. ***
Comment 11 Thomas Lübking 2009-06-09 15:21:56 UTC
the whole effect code doesn't look robust against loosing windows while being active at all. :-(
Comment 12 Martin Flöser 2009-06-11 12:18:22 UTC
*** Bug 196000 has been marked as a duplicate of this bug. ***
Comment 13 Dario Andres 2009-06-15 01:37:39 UTC
*** Bug 196543 has been marked as a duplicate of this bug. ***
Comment 14 Unknown 2009-06-17 14:19:26 UTC
4.3 Beta 2 still contains this (Qt: 4.5.1 and KDE: 4.2.91 (KDE 4.2.91 (KDE 4.3 >= 20090609)) "release 1").

Bug 166960, Bug 179865, Bug 184602, and Bug 185827 are also duplicates of this.

Application: KWin (kwin), signal: Segmentation fault
[KCrash Handler]
#5  WindowPaintData (this=0x7fff022f1770, w=0x4083180000000000) at /usr/src/debug/kdebase-workspace-4.2.91svn979380/kwin/lib/kwineffects.cpp:76
#6  0x00007f46ea4653f9 in KWin::CoverSwitchEffect::paintWindows (this=0x123e620, windows=0x123e6a8, left=false, reflectedWindows=<value optimized out>, additionalWindow=<value optimized out>)
    at /usr/src/debug/kdebase-workspace-4.2.91svn979380/kwin/effects/coverswitch/coverswitch.cpp:886
#7  0x00007f46ea465cfe in KWin::CoverSwitchEffect::paintScene (this=0x123e620, frontWindow=0x1325610, leftWindows=0x123e6a0, rightWindows=0x123e6a8, reflectedWindows=<value optimized out>)
    at /usr/src/debug/kdebase-workspace-4.2.91svn979380/kwin/effects/coverswitch/coverswitch.cpp:454
#8  0x00007f46ea46bf0b in KWin::CoverSwitchEffect::paintScreen (this=0x123e620, mask=0, region=
        {d = 0x7fff022f1bb0, static shared_empty = {ref = {_q_value = 700}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=<value optimized out>)
    at /usr/src/debug/kdebase-workspace-4.2.91svn979380/kwin/effects/coverswitch/coverswitch.cpp:308
#9  0x00007f46f9eac957 in KWin::EffectsHandlerImpl::paintScreen (this=0x14405b0, mask=32, region=
        {d = 0x7fff022f1c00, static shared_empty = {ref = {_q_value = 700}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0x7fff022f1d80)
    at /usr/src/debug/kdebase-workspace-4.2.91svn979380/kwin/effects.cpp:122
#10 0x00007f46f99cf680 in KWin::Effect::paintScreen (this=<value optimized out>, mask=32, region=<value optimized out>, data=@0x7fff022f1d80)
    at /usr/src/debug/kdebase-workspace-4.2.91svn979380/kwin/lib/kwineffects.cpp:206
#11 0x00007f46f9eac957 in KWin::EffectsHandlerImpl::paintScreen (this=0x14405b0, mask=32, region=
        {d = 0x7fff022f1cb0, static shared_empty = {ref = {_q_value = 700}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0x7fff022f1d80)
    at /usr/src/debug/kdebase-workspace-4.2.91svn979380/kwin/effects.cpp:122
#12 0x00007f46f99cf680 in KWin::Effect::paintScreen (this=<value optimized out>, mask=32, region=<value optimized out>, data=@0x7fff022f1d80)
    at /usr/src/debug/kdebase-workspace-4.2.91svn979380/kwin/lib/kwineffects.cpp:206
#13 0x00007f46f9eac957 in KWin::EffectsHandlerImpl::paintScreen (this=0x14405b0, mask=32, region=
        {d = 0x7fff022f1e00, static shared_empty = {ref = {_q_value = 700}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, data=@0x7fff022f1d80)
    at /usr/src/debug/kdebase-workspace-4.2.91svn979380/kwin/effects.cpp:122
#14 0x00007f46f9e981ec in KWin::Scene::paintScreen (this=0xae87f0, mask=0x7fff022f1f0c, region=0x7fff022f2010) at /usr/src/debug/kdebase-workspace-4.2.91svn979380/kwin/scene.cpp:134
#15 0x00007f46f9ea6bcf in KWin::SceneOpenGL::paint (this=0xae87f0, damage={d = 0x7fff022f2010, static shared_empty = {ref = {_q_value = 700}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, 
    toplevels=<value optimized out>) at /usr/src/debug/kdebase-workspace-4.2.91svn979380/kwin/scene_opengl.cpp:746
#16 0x00007f46f9e93614 in KWin::Workspace::performCompositing (this=0x747500) at /usr/src/debug/kdebase-workspace-4.2.91svn979380/kwin/composite.cpp:412
#17 0x00007f46f9e303aa in KWin::Workspace::qt_metacall (this=0x747500, _c=QMetaObject::InvokeMetaMethod, _id=<value optimized out>, _a=0x7fff022f21a0)
    at /usr/src/debug/kdebase-workspace-4.2.91svn979380/build/kwin/workspace.moc:473
#18 0x00007f46f7559c22 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQtCore.so.4
#19 0x00007f46f7553f43 in QObject::event(QEvent*) () from /usr/lib64/libQtCore.so.4
#20 0x00007f46f7c4778d in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#21 0x00007f46f7c4fa2a in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#22 0x00007f46f918c08b in KApplication::notify (this=0x7fff022f2cb0, receiver=0x747928, event=0x7fff022f2890) at /usr/src/debug/kdelibs-4.2.91svn979380/kdeui/kernel/kapplication.cpp:302
#23 0x00007f46f754415c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#24 0x00007f46f75715c0 in ?? () from /usr/lib64/libQtCore.so.4
#25 0x00007f46f756d93d in ?? () from /usr/lib64/libQtCore.so.4
#26 0x00007f46f04790fb in g_main_context_dispatch () from /usr/lib64/libglib-2.0.so.0
#27 0x00007f46f047c8cd in ?? () from /usr/lib64/libglib-2.0.so.0
#28 0x00007f46f047ca8b in g_main_context_iteration () from /usr/lib64/libglib-2.0.so.0
#29 0x00007f46f756d89f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#30 0x00007f46f7cdeb0f in ?? () from /usr/lib64/libQtGui.so.4
#31 0x00007f46f75429f2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#32 0x00007f46f7542dbd in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#33 0x00007f46f75450a4 in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#34 0x00007f46f9e48398 in kdemain (argc=3, argv=0x7fff022f3198) at /usr/src/debug/kdebase-workspace-4.2.91svn979380/kwin/main.cpp:526
#35 0x00007f46f4589586 in __libc_start_main () from /lib64/libc.so.6
#36 0x0000000000400849 in _start () at ../sysdeps/x86_64/elf/start.S:113
Comment 15 Martin Flöser 2009-06-25 13:38:35 UTC
*** Bug 197833 has been marked as a duplicate of this bug. ***
Comment 16 Martin Flöser 2009-07-17 23:38:32 UTC
*** Bug 200601 has been marked as a duplicate of this bug. ***
Comment 17 Martin Flöser 2009-07-24 17:29:32 UTC
*** Bug 201361 has been marked as a duplicate of this bug. ***
Comment 18 Martin Flöser 2009-08-05 16:16:37 UTC
*** Bug 202644 has been marked as a duplicate of this bug. ***
Comment 19 Martin Flöser 2009-08-06 14:11:16 UTC
*** Bug 202797 has been marked as a duplicate of this bug. ***
Comment 20 Martin Flöser 2009-08-24 18:33:30 UTC
*** Bug 204991 has been marked as a duplicate of this bug. ***
Comment 21 Martin Flöser 2009-09-01 16:16:44 UTC
*** Bug 205785 has been marked as a duplicate of this bug. ***
Comment 22 Martin Flöser 2009-09-04 08:13:56 UTC
*** Bug 206213 has been marked as a duplicate of this bug. ***
Comment 23 Konstantin 2009-09-04 13:35:03 UTC
It seems that the bug still exists (but may be mutated) in 4.3.1.
My case is:
-----
KDE Version: 4.3.1 (KDE 4.3.1) "release 163"
Qt Version: 4.5.2
Operating System: Linux 2.6.27.29-0.1-pae i686
Distribution: "openSUSE 11.1 (i586)"

KWin crashed while switching between applications using Alt+Tab. Compositing is active (using proprietary NVIDIA drivers), alternative task bar plasmoid (Smooth Tasks) is being used, applications running were (1) Firefox, (2) OpenOffice.org Writer, GKrellM, Kontact, KWrite. The switch was from (2) to (1).
Unfortunately I can not reproduce that bug, but it could probably be related to high system load (OO.org was saving a large document during the switch).
-----

 -- Backtrace:
Application: KWin (kwin), signal: Illegal instruction
[KCrash Handler]
#6  0xb767f9c8 in ?? () from /usr/lib/libQtGui.so.4
#7  0xb1c9884e in KWin::BoxSwitchEffect::paintWindowThumbnail (this=0x828ad20, w=0x8904fd0) at /usr/src/debug/kdebase-workspace-4.3.1/kwin/effects/boxswitch/boxswitch.cpp:747
#8  0xb1c9a6aa in KWin::BoxSwitchEffect::paintScreen (this=0x828ad20, mask=8, region={d = 0xbf93d408, static shared_empty = {ref = {_q_value = 535}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, 
    data=@0xbf93d668) at /usr/src/debug/kdebase-workspace-4.3.1/kwin/effects/boxswitch/boxswitch.cpp:157
#9  0xb805e03f in KWin::EffectsHandlerImpl::paintScreen (this=0x815a460, mask=8, region={d = 0xbf93d448, static shared_empty = {ref = {_q_value = 535}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, 
    data=@0xbf93d668) at /usr/src/debug/kdebase-workspace-4.3.1/kwin/effects.cpp:122
#10 0xb7f7ac76 in KWin::Effect::paintScreen (this=0x80f8190, mask=8, region={d = 0xbf93d488, static shared_empty = {ref = {_q_value = 535}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, 
    data=@0xbf93d668) at /usr/src/debug/kdebase-workspace-4.3.1/kwin/lib/kwineffects.cpp:206
#11 0xb805e03f in KWin::EffectsHandlerImpl::paintScreen (this=0x815a460, mask=8, region={d = 0xbf93d4c8, static shared_empty = {ref = {_q_value = 535}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, 
    data=@0xbf93d668) at /usr/src/debug/kdebase-workspace-4.3.1/kwin/effects.cpp:122
#12 0xb7f7ac76 in KWin::Effect::paintScreen (this=0x828c020, mask=8, region={d = 0xbf93d508, static shared_empty = {ref = {_q_value = 535}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, 
    data=@0xbf93d668) at /usr/src/debug/kdebase-workspace-4.3.1/kwin/lib/kwineffects.cpp:206
#13 0xb805e03f in KWin::EffectsHandlerImpl::paintScreen (this=0x815a460, mask=8, region={d = 0xbf93d548, static shared_empty = {ref = {_q_value = 535}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, 
    data=@0xbf93d668) at /usr/src/debug/kdebase-workspace-4.3.1/kwin/effects.cpp:122
#14 0xb7f7ac76 in KWin::Effect::paintScreen (this=0x8285960, mask=8, region={d = 0xbf93d588, static shared_empty = {ref = {_q_value = 535}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, 
    data=@0xbf93d668) at /usr/src/debug/kdebase-workspace-4.3.1/kwin/lib/kwineffects.cpp:206
#15 0xb805e03f in KWin::EffectsHandlerImpl::paintScreen (this=0x815a460, mask=8, region={d = 0xbf93d5dc, static shared_empty = {ref = {_q_value = 535}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, 
    data=@0xbf93d668) at /usr/src/debug/kdebase-workspace-4.3.1/kwin/effects.cpp:122
#16 0xb1cd5d1d in KWin::ZoomEffect::paintScreen (this=0x82b4140, mask=8, region={d = 0xbf93d628, static shared_empty = {ref = {_q_value = 535}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, 
    data=@0xbf93d668) at /usr/src/debug/kdebase-workspace-4.3.1/kwin/effects/zoom/zoom.cpp:73
#17 0xb805e03f in KWin::EffectsHandlerImpl::paintScreen (this=0x815a460, mask=8, region={d = 0xbf93d6c0, static shared_empty = {ref = {_q_value = 535}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, 
    data=@0xbf93d668) at /usr/src/debug/kdebase-workspace-4.3.1/kwin/effects.cpp:122
#18 0xb80475f0 in KWin::Scene::paintScreen (this=0x81b9cd0, mask=0xbf93d744, region=0xbf93d804) at /usr/src/debug/kdebase-workspace-4.3.1/kwin/scene.cpp:134
#19 0xb805713a in KWin::SceneOpenGL::paint (this=0x81b9cd0, damage={d = 0xbf93d804, static shared_empty = {ref = {_q_value = 535}, rgn = 0x0, xrectangles = 0x0, qt_rgn = 0x0}}, toplevels=
        {{p = {static shared_null = {ref = {_q_value = 7594}, alloc = 0, begin = 0, end = 0, sharable = 1, array = {0x0}}, d = 0xbf93d800}, d = 0xbf93d800}})
    at /usr/src/debug/kdebase-workspace-4.3.1/kwin/scene_opengl.cpp:746
#20 0xb80422db in KWin::Workspace::performCompositing (this=0x81af3c0) at /usr/src/debug/kdebase-workspace-4.3.1/kwin/composite.cpp:420
#21 0xb7fd2cfd in KWin::Workspace::qt_metacall (this=0x81af3c0, _c=QMetaObject::InvokeMetaMethod, _id=149, _a=0xbf93d8d8) at /usr/src/debug/kdebase-workspace-4.3.1/build/kwin/workspace.moc:473
#22 0xb6bb6788 in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQtCore.so.4
#23 0xb6bb7412 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/libQtCore.so.4
#24 0xb6bf2fe7 in QTimer::timeout() () from /usr/lib/libQtCore.so.4
#25 0xb6bbcc0e in QTimer::timerEvent(QTimerEvent*) () from /usr/lib/libQtCore.so.4
#26 0xb6bb172f in QObject::event(QEvent*) () from /usr/lib/libQtCore.so.4
#27 0xb6e2c7bc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#28 0xb6e34aae in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQtGui.so.4
#29 0xb7b4472d in KApplication::notify (this=0xbf93e0a4, receiver=0x81af624, event=0xbf93dda0) at /usr/src/debug/kdelibs-4.3.1/kdeui/kernel/kapplication.cpp:302
#30 0xb7fea5ad in KWin::Application::notify (this=0xbf93e0a4, o=0x81af624, e=0xbf93dda0) at /usr/src/debug/kdebase-workspace-4.3.1/kwin/main.cpp:366
#31 0xb6ba116b in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/libQtCore.so.4
#32 0xb6bd05f6 in ?? () from /usr/lib/libQtCore.so.4
#33 0xb6bcc980 in ?? () from /usr/lib/libQtCore.so.4
#34 0xb4e44e28 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#35 0xb4e48453 in ?? () from /usr/lib/libglib-2.0.so.0
#36 0xb4e485d8 in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#37 0xb6bcc8d8 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#38 0xb6eccca5 in ?? () from /usr/lib/libQtGui.so.4
#39 0xb6b9f78a in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#40 0xb6b9fbd2 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQtCore.so.4
#41 0xb6ba2079 in QCoreApplication::exec() () from /usr/lib/libQtCore.so.4
#42 0xb6e2c637 in QApplication::exec() () from /usr/lib/libQtGui.so.4
#43 0xb7fece23 in kdemain (argc=3, argv=0xbf93e284) at /usr/src/debug/kdebase-workspace-4.3.1/kwin/main.cpp:522
#44 0x080487c2 in main (argc=-1311677976, argv=0xb66a9301) at /usr/src/debug/kdebase-workspace-4.3.1/build/kwin/kwin_dummy.cpp:3
Comment 24 Jonas Vejlin 2009-09-04 13:38:56 UTC
I think it is fixed in 4.4 and planed to be backported in kde 4.3.2 but I can be mistaken
Comment 25 Steffen Möller 2009-09-04 13:46:38 UTC
Konstantin wrote:
> KWin crashed while switching between applications using Alt+Tab. Compositing is
> active (using proprietary NVIDIA drivers), alternative task bar plasmoid
> (Smooth Tasks) is being used, applications running were (1) Firefox, (2)
> OpenOffice.org Writer, GKrellM, Kontact, KWrite. The switch was from (2) to
> (1).
> Unfortunately I can not reproduce that bug, but it could probably be related to
> high system load (OO.org was saving a large document during the switch).
I agree. I am running the very latest Debian packages and am not even reporting all the
instances any more. I feel that with high load (make with ccache, ALT key pressed a bit
longer, followed with a very quick series of TABs pressed (not waiting for the image to
jump since you know how many windows you need to go already)) the problem is close to
becoming reproducible. Low memory might be an issue, too (using a 1G laptop).

I am with an Intel driver, not with Nvidia.
Excerpt from lspci:
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express
Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express
Integrated Graphics Controller (rev 03)

Open Office, IceWeasel (Firefox) and IceDove (Thunderbird) are also what I have kind of in
mind. My hunch was always IceDove to be irritating it all. My last crash was so quick,
there was not even a "to", it already crashed with a "from". Maybe I should have reported
it nonetheless ... next time.

Steffen
Comment 26 Martin Flöser 2009-09-04 14:30:00 UTC
Ok current state:
 * fixed in Flipswitch with new implementation for 4.4 (cannot be backported)
 * fixed in PresentWindows by some changes for 4.4 (have to check if that could be backported or even is already backported)
 * fixed in Coverswitch and will be backported to 4.3.2
 * boxswitch: not yet fixed and I am unable to reproduce reliable or not at all
Comment 27 Martin Flöser 2009-09-06 11:58:11 UTC
*** Bug 195295 has been marked as a duplicate of this bug. ***
Comment 28 Martin Flöser 2009-09-06 14:25:29 UTC
SVN commit 1020481 by graesslin:

Do not crash when a window get's closed while boxswitch is active.
Tested with and without animation, if window is the selected or not and I am unable to reproduce any more.
If anyone still get's a crash please let me know.
BUG: 179865

 M  +21 -1     boxswitch.cpp  
 M  +1 -0      boxswitch.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1020481
Comment 29 Martin Flöser 2009-09-08 22:39:32 UTC
SVN commit 1021318 by graesslin:

Backport rev 1020481:
Do not crash when a window get's closed while boxswitch is active.
CCBUG: 179865


 M  +21 -1     boxswitch.cpp  
 M  +1 -0      boxswitch.h  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1021318
Comment 30 Steffen Möller 2009-09-09 12:31:33 UTC
That "crash-upon-close" was well-spotted, but not the cause of my previously reported
problems. And it functions well with applications being added while the boxswitch is open.
With my current KDE 4.3.1-1 Debian package is seems like I cannot reproduce the bug any
more. And I challenged it hard. [funnily enough, I triggered another bug while trying to
start iceweasel next to opera, previously iceweasel was always open, see
https://bugs.kde.org/show_bug.cgi?id=206850]. A second invocation of ALT-F2 icewRETURN was
just working fine, also I was not quick enough to prevent the window from opening and show
the iceweasel icon before I entered return. Also with oowriter, iceweasel and icedove up,
the breakage could not be induced.

Steffen
Comment 31 Martin Flöser 2009-09-15 23:33:10 UTC
*** Bug 207512 has been marked as a duplicate of this bug. ***
Comment 32 Martin Flöser 2009-10-01 21:39:49 UTC
*** Bug 209115 has been marked as a duplicate of this bug. ***
Comment 33 Martin Flöser 2009-10-06 08:56:25 UTC
*** Bug 209601 has been marked as a duplicate of this bug. ***