Bug 349356

Summary: kwin_x11 crash during second match of Counter Strike: Global Offensive
Product: [Plasma] kwin Reporter: Levi Self <trevordorl>
Component: coreAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED DUPLICATE    
Severity: crash Keywords: drkonqi
Priority: NOR    
Version: 5.2.2   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Levi Self 2015-06-18 22:59:15 UTC
Application: kwin_x11 (5.2.2)

Qt Version: 5.4.1
Operating System: Linux 3.19.0-21-generic x86_64
Distribution: Ubuntu 15.04

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

Any time I play CS:GO kwin either crashes early on or specifically during the second match. I've messed with the settings of kwin_x11 and CSGO and gone through everything I can think of, and kwin always crashes

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin_x11), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f3fcd186800 (LWP 3896))]

Thread 3 (Thread 0x7f3fa7fff700 (LWP 3914)):
#0  0x00007f3fccc50743 in select () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f3fcb49a101 in qt_safe_select (nfds=16, fdread=fdread@entry=0x7f3fa0000a78, fdwrite=fdwrite@entry=0x7f3fa0000d08, fdexcept=fdexcept@entry=0x7f3fa0000f98, orig_timeout=orig_timeout@entry=0x0) at kernel/qcore_unix.cpp:75
#2  0x00007f3fcb49bcd2 in select (timeout=0x0, exceptfds=0x7f3fa0000f98, writefds=0x7f3fa0000d08, readfds=0x7f3fa0000a78, nfds=<optimized out>, this=0x7f3fa00008c0) at kernel/qeventdispatcher_unix.cpp:320
#3  QEventDispatcherUNIXPrivate::doSelect (this=this@entry=0x7f3fa00008e0, flags=..., flags@entry=..., timeout=timeout@entry=0x0) at kernel/qeventdispatcher_unix.cpp:196
#4  0x00007f3fcb49c275 in QEventDispatcherUNIX::processEvents (this=0x7f3fa00008c0, flags=...) at kernel/qeventdispatcher_unix.cpp:607
#5  0x00007f3fcb4433e2 in QEventLoop::exec (this=this@entry=0x7f3fa7ffeda0, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#6  0x00007f3fcb202b44 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:503
#7  0x00007f3fc50b5f65 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Qml.so.5
#8  0x00007f3fcb207b0e in QThreadPrivate::start (arg=0x20efc60) at thread/qthread_unix.cpp:337
#9  0x00007f3fc42826aa in start_thread (arg=0x7f3fa7fff700) at pthread_create.c:333
#10 0x00007f3fccc59eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f3fa6ffe700 (LWP 3926)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f3fca00c644 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#2  0x00007f3fca00c689 in ?? () from /usr/lib/x86_64-linux-gnu/libQt5Script.so.5
#3  0x00007f3fc42826aa in start_thread (arg=0x7f3fa6ffe700) at pthread_create.c:333
#4  0x00007f3fccc59eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f3fcd186800 (LWP 3896)):
[KCrash Handler]
#6  0x00007f3f1e56461f in ?? () from /usr/lib/dri/fglrx_dri.so
#7  0x00007f3f1dc56049 in ?? () from /usr/lib/dri/fglrx_dri.so
#8  0x00007f3f1dc562d2 in ?? () from /usr/lib/dri/fglrx_dri.so
#9  0x00007f3f1e0839c3 in ?? () from /usr/lib/dri/fglrx_dri.so
#10 0x00007f3fca53681e in KWin::BlurEffect::doCachedBlur (this=0x2336a80, w=0x7f3fc3650280 <glCopyTexSubImage2D>, region=..., opacity=9.14767638e-41) at ../../effects/blur/blur.cpp:591
#11 0x00007f3fca5374e1 in KWin::BlurEffect::drawWindow (this=this@entry=0x2336a80, w=w@entry=0x24866e0, mask=mask@entry=10, region=..., data=...) at ../../effects/blur/blur.cpp:407
#12 0x00007f3fcc8390d1 in KWin::EffectsHandlerImpl::drawWindow (this=0x2bd21c0, w=w@entry=0x24866e0, mask=mask@entry=10, region=..., data=...) at ../effects.cpp:470
#13 0x00007f3fcaa137c1 in KWin::Effect::drawWindow (this=this@entry=0x2d5c280, w=w@entry=0x24866e0, mask=mask@entry=10, region=..., data=...) at ../../libkwineffects/kwineffects.cpp:580
#14 0x00007f3fcc8390d1 in KWin::EffectsHandlerImpl::drawWindow (this=0x2bd21c0, w=w@entry=0x24866e0, mask=mask@entry=10, region=..., data=...) at ../effects.cpp:470
#15 0x00007f3fcc802841 in KWin::Scene::finalPaintWindow (this=<optimized out>, w=w@entry=0x24866e0, mask=mask@entry=10, region=..., data=...) at ../scene.cpp:605
#16 0x00007f3fcc838f7a in KWin::EffectsHandlerImpl::paintWindow (this=0x2bd21c0, w=w@entry=0x24866e0, mask=mask@entry=10, region=..., data=...) at ../effects.cpp:436
#17 0x00007f3fcaa13651 in KWin::Effect::paintWindow (this=this@entry=0x2b501e0, w=w@entry=0x24866e0, mask=mask@entry=10, region=..., data=...) at ../../libkwineffects/kwineffects.cpp:550
#18 0x00007f3fcc838f21 in KWin::EffectsHandlerImpl::paintWindow (this=0x2bd21c0, w=w@entry=0x24866e0, mask=mask@entry=10, region=..., data=...) at ../effects.cpp:433
#19 0x00007f3fcaa13651 in KWin::Effect::paintWindow (this=this@entry=0x2336a80, w=w@entry=0x24866e0, mask=mask@entry=10, region=..., data=...) at ../../libkwineffects/kwineffects.cpp:550
#20 0x00007f3fcc838f21 in KWin::EffectsHandlerImpl::paintWindow (this=0x2bd21c0, w=w@entry=0x24866e0, mask=mask@entry=10, region=..., data=...) at ../effects.cpp:433
#21 0x00007f3fcaa21937 in KWin::AnimationEffect::paintWindow (this=this@entry=0x2d5c280, w=w@entry=0x24866e0, mask=mask@entry=10, region=..., data=...) at ../../libkwineffects/kwinanimationeffect.cpp:585
#22 0x00007f3fcc838f21 in KWin::EffectsHandlerImpl::paintWindow (this=0x2bd21c0, w=0x24866e0, mask=mask@entry=10, region=..., data=...) at ../effects.cpp:433
#23 0x00007f3fcc806ee8 in KWin::Scene::paintWindow (this=this@entry=0x2c50940, w=0x2d9d500, mask=10, region=..., quads=...) at ../scene.cpp:477
#24 0x00007f3fcc804c0e in KWin::Scene::paintSimpleScreen (this=this@entry=0x2c50940, orig_mask=orig_mask@entry=8, region=...) at ../scene.cpp:380
#25 0x00007f3fcc815513 in KWin::SceneOpenGL2::paintSimpleScreen (this=this@entry=0x2c50940, mask=mask@entry=8, region=...) at ../scene_opengl.cpp:1005
#26 0x00007f3fcc802205 in KWin::Scene::finalPaintScreen (this=0x2c50940, mask=mask@entry=8, region=..., data=...) at ../scene.cpp:199
#27 0x00007f3fcc838cff in KWin::EffectsHandlerImpl::paintScreen (this=0x2bd21c0, mask=mask@entry=8, region=..., data=...) at ../effects.cpp:393
#28 0x00007f3fcaa1357f in KWin::Effect::paintScreen (this=this@entry=0x2b501e0, mask=mask@entry=8, region=..., data=...) at ../../libkwineffects/kwineffects.cpp:535
#29 0x00007f3fcc838cad in KWin::EffectsHandlerImpl::paintScreen (this=0x2bd21c0, mask=mask@entry=8, region=..., data=...) at ../effects.cpp:390
#30 0x00007f3fcaa1357f in KWin::Effect::paintScreen (this=this@entry=0x2336a80, mask=mask@entry=8, region=..., data=...) at ../../libkwineffects/kwineffects.cpp:535
#31 0x00007f3fcc838cad in KWin::EffectsHandlerImpl::paintScreen (this=0x2bd21c0, mask=mask@entry=8, region=..., data=...) at ../effects.cpp:390
#32 0x00007f3fcaa1357f in KWin::Effect::paintScreen (this=this@entry=0x2d5c280, mask=mask@entry=8, region=..., data=...) at ../../libkwineffects/kwineffects.cpp:535
#33 0x00007f3fcc838cad in KWin::EffectsHandlerImpl::paintScreen (this=0x2bd21c0, mask=8, region=..., data=...) at ../effects.cpp:390
#34 0x00007f3fcc801e6a in KWin::Scene::paintScreen (this=this@entry=0x2c50940, mask=mask@entry=0x7ffeccc399bc, damage=..., repaint=..., updateRegion=updateRegion@entry=0x7ffeccc399d0, validRegion=validRegion@entry=0x7ffeccc399e0) at ../scene.cpp:149
#35 0x00007f3fcc81bda7 in KWin::SceneOpenGL::paint (this=0x2c50940, damage=..., toplevels=...) at ../scene_opengl.cpp:651
#36 0x00007f3fcc7fb973 in KWin::Compositor::performCompositing (this=0x1fc03c0) at ../composite.cpp:658
#37 0x00007f3fcb4776f3 in QObject::event (this=0x1fc03c0, e=<optimized out>) at kernel/qobject.cpp:1267
#38 0x00007f3fcbd4fb2c in QApplicationPrivate::notify_helper (this=0x1eecbf0, receiver=0x1fc03c0, e=0x7ffeccc39df0) at kernel/qapplication.cpp:3720
#39 0x00007f3fcbd55000 in QApplication::notify (this=0x7ffeccc3a030, receiver=0x1fc03c0, e=0x7ffeccc39df0) at kernel/qapplication.cpp:3503
#40 0x00007f3fcb445c2b in QCoreApplication::notifyInternal (this=0x7ffeccc3a030, receiver=0x1fc03c0, event=event@entry=0x7ffeccc39df0) at kernel/qcoreapplication.cpp:935
#41 0x00007f3fcb49dae5 in sendEvent (event=0x7ffeccc39df0, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:228
#42 QTimerInfoList::activateTimers (this=0x1f217d8) at kernel/qtimerinfo_unix.cpp:635
#43 0x00007f3fcb49b6a0 in QEventDispatcherUNIX::activateTimers (this=this@entry=0x1f1f5d0) at kernel/qeventdispatcher_unix.cpp:549
#44 0x00007f3fcb49c243 in QEventDispatcherUNIX::processEvents (this=0x1f1f5d0, flags=flags@entry=...) at kernel/qeventdispatcher_unix.cpp:611
#45 0x00007f3fb938596d in QUnixEventDispatcherQPA::processEvents (this=<optimized out>, flags=...) at eventdispatchers/qunixeventdispatcher.cpp:62
#46 0x00007f3fcb4433e2 in QEventLoop::exec (this=this@entry=0x7ffeccc39f50, flags=..., flags@entry=...) at kernel/qeventloop.cpp:204
#47 0x00007f3fcb44b02c in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1188
#48 0x00007f3fcb78a31c in QGuiApplication::exec () at kernel/qguiapplication.cpp:1510
#49 0x00007f3fcbd4b7a5 in QApplication::exec () at kernel/qapplication.cpp:2956
#50 0x00007f3fccf218c3 in kdemain (argc=1, argv=0x7ffeccc3a188) at ../main_x11.cpp:294
#51 0x00007f3fccb73a40 in __libc_start_main (main=0x400790 <main(int, char**)>, argc=1, argv=0x7ffeccc3a188, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7ffeccc3a178) at libc-start.c:289
#52 0x00000000004007c9 in _start ()

Reported using DrKonqi
Comment 1 Levi Self 2015-06-18 23:03:38 UTC
I can get another backtrace if needed, I'm not sure that one is useful as I did not have the debugging symbols until I made it.
Comment 2 Levi Self 2015-06-19 02:47:39 UTC
Another detail, disabling the compositor stops crashing.
Comment 3 Levi Self 2015-06-21 04:33:45 UTC
Fixed product and version
Comment 4 Thomas Lübking 2015-12-14 18:31:17 UTC
fglrx bug, disable blur cache results (run "kcmshell5 kwineffects", filter for blur, click the config button - it's the only checkbox)
If it still crashes, disable blurring and problably the "contrast" effect as well.

Alternatively, consider using the radeon driver.

*** This bug has been marked as a duplicate of bug 346548 ***
Comment 5 Thomas Lübking 2015-12-14 18:34:04 UTC
Sorry for the delay.
Fyi, you changed the assignment of the bug to "unassigned-bugs@kde.org" - I found it by pure luck.
Be careful about the field unless you know what you do.