Bug 323133

Summary: Kwin crashes when alt-tab to switch between apps if i am in a game, desktop effects enabled, but set to suspend when in fullscreen mode
Product: [Plasma] kwin Reporter: Norkusus <bitzzylvn>
Component: effects-window-managementAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Mageia RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Norkusus 2013-08-03 12:57:11 UTC
Application: kwin (4.10.2)
KDE Platform Version: 4.10.2
Qt Version: 4.8.5
Operating System: Linux 3.8.13.4-desktop-1.mga3 x86_64
Distribution: "Mageia 3"

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

I was in Counter Strike menu, (on steam), and i was modifying the laptop volume with fn key and F8-F9, it is a fujitsu ah-530. 
Sometimes it also crash Kwin when i simply use alt+tab to switch betweet counter strike and other app. 
I have enabled "Desktop Effects" because i use Cairo Dock, but it is set to suspend desktop effects in fullscreen applications. without Desktop Effects enabled Kwin never crashed so far.

The crash can be reproduced sometimes.

-- Backtrace:
Application: KWin (kwin), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f8d8d803780 (LWP 2610))]

Thread 2 (Thread 0x7f8d5f9a1700 (LWP 2620)):
#0  0x00007f8d8802c5c4 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f8d898cc207 in QTWTF::TCMalloc_PageHeap::scavengerThread() () from /lib64/libQtScript.so.4
#2  0x00007f8d898cc239 in QTWTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /lib64/libQtScript.so.4
#3  0x00007f8d88028d18 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f8d8d02d7cd in clone () from /lib64/libc.so.6
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f8d8d803780 (LWP 2610)):
[KCrash Handler]
#5  0x00007f8d6dc90bbc in brw_update_renderbuffer_surface () from /usr/lib64/dri/i965_dri.so
#6  0x00007f8d6dc90530 in brw_update_renderbuffer_surfaces () from /usr/lib64/dri/i965_dri.so
#7  0x00007f8d6dc6b782 in brw_upload_state () from /usr/lib64/dri/i965_dri.so
#8  0x00007f8d6dc2e7cf in brw_draw_prims () from /usr/lib64/dri/i965_dri.so
#9  0x00007f8d6d7892b4 in vbo_draw_arrays () from /lib64/libdricore9.1.3.so.1
#10 0x00007f8d890f0cdd in KWin::GLVertexBufferPrivate::corePainting(QRegion const&, unsigned int, bool) () from /lib64/libkwinglutils.so.1
#11 0x00007f8d890f11fd in KWin::GLVertexBuffer::render(QRegion const&, unsigned int, bool) () from /lib64/libkwinglutils.so.1
#12 0x00007f8d8d3b38bf in KWin::SceneOpenGL::Window::renderQuads(int, QRegion const&, KWin::WindowQuadList const&, KWin::GLTexture*, bool, bool) () from /lib64/libkdeinit4_kwin.so
#13 0x00007f8d8d3b9938 in KWin::SceneOpenGL::Window::performPaint(int, QRegion, KWin::WindowPaintData) () from /lib64/libkdeinit4_kwin.so
#14 0x00007f8d8d3b25ff in KWin::SceneOpenGL2::performPaintWindow(KWin::EffectWindowImpl*, int, QRegion, KWin::WindowPaintData&) () from /lib64/libkdeinit4_kwin.so
#15 0x00007f8d8d3b279d in KWin::SceneOpenGL2::finalDrawWindow(KWin::EffectWindowImpl*, int, QRegion, KWin::WindowPaintData&) () from /lib64/libkdeinit4_kwin.so
#16 0x00007f8d8d3c65b5 in KWin::EffectsHandlerImpl::drawWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () from /lib64/libkdeinit4_kwin.so
#17 0x00007f8d8d3a59ba in KWin::Scene::finalPaintWindow(KWin::EffectWindowImpl*, int, QRegion, KWin::WindowPaintData&) () from /lib64/libkdeinit4_kwin.so
#18 0x00007f8d8d3c6b77 in KWin::EffectsHandlerImpl::paintWindow(KWin::EffectWindow*, int, QRegion, KWin::WindowPaintData&) () from /lib64/libkdeinit4_kwin.so
#19 0x00007f8d8d3a857d in KWin::Scene::paintWindow(KWin::Scene::Window*, int, QRegion, KWin::WindowQuadList) () from /lib64/libkdeinit4_kwin.so
#20 0x00007f8d8d3a78af in KWin::Scene::paintSimpleScreen(int, QRegion) () from /lib64/libkdeinit4_kwin.so
#21 0x00007f8d8d3a58fe in KWin::Scene::finalPaintScreen(int, QRegion, KWin::ScreenPaintData&) () from /lib64/libkdeinit4_kwin.so
#22 0x00007f8d8d3c67f0 in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /lib64/libkdeinit4_kwin.so
#23 0x00007f8d8d3a6c98 in KWin::Scene::paintScreen(int*, QRegion*) () from /lib64/libkdeinit4_kwin.so
#24 0x00007f8d8d3b60fe in KWin::SceneOpenGL::paint(QRegion, QList<KWin::Toplevel*>) () from /lib64/libkdeinit4_kwin.so
#25 0x00007f8d8d3a10bc in KWin::Compositor::performCompositing() () from /lib64/libkdeinit4_kwin.so
#26 0x00007f8d883c9bdc in QObject::event(QEvent*) () from /lib64/libQtCore.so.4
#27 0x00007f8d875493bc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQtGui.so.4
#28 0x00007f8d8754d83a in QApplication::notify(QObject*, QEvent*) () from /lib64/libQtGui.so.4
#29 0x00007f8d8cb190f6 in KApplication::notify(QObject*, QEvent*) () from /lib64/libkdeui.so.5
#30 0x00007f8d883b54ae in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /lib64/libQtCore.so.4
#31 0x00007f8d883e6212 in QTimerInfoList::activateTimers() () from /lib64/libQtCore.so.4
#32 0x00007f8d883e6428 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#33 0x00007f8d875ea34f in QEventDispatcherX11::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtGui.so.4
#34 0x00007f8d883b415f in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#35 0x00007f8d883b43e8 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#36 0x00007f8d883b9278 in QCoreApplication::exec() () from /lib64/libQtCore.so.4
#37 0x00007f8d8d357c6a in kdemain () from /lib64/libkdeinit4_kwin.so
#38 0x00007f8d8cf5fba5 in __libc_start_main () from /lib64/libc.so.6
#39 0x0000000000400751 in _start ()

Possible duplicates by query: bug 322959, bug 322487, bug 321352, bug 320624, bug 319758.

Report to https://bugs.kde.org/

Reproducible: Sometimes

Steps to Reproduce:
1.Start counter strike from steam
2.trying to modify the volume from keys fn + F8 - F9
3.or simply when i hit alt-tab to switch between counter strike and other app
Actual Results:  
it pop up a windows, telling that Kwin has crashed

Expected Results:  
not crashing? :))

i have added in the details all things, my pc specs and some programing stuff that pop up when it was telling me it has crashed.
Comment 1 Thomas Lübking 2013-08-03 13:55:31 UTC
Driver bug.
Disable "suspend comspositing for fullscreen windows"

*** This bug has been marked as a duplicate of bug 299333 ***
Comment 2 Thomas Lübking 2013-08-03 16:02:42 UTC
Ps: can you please record the exact IGP/GPU (in doubt attach the output of "qdbus org.kde.kwin /KWin supportInformation") - we try to figure to what hardware this issue is limited.
Thanks.