Bug 312468

Summary: KWin crashes just after turning off one display
Product: [Plasma] kwin Reporter: Bernie Innocenti <bernie>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: 4.9.4   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Bernie Innocenti 2013-01-01 22:42:03 UTC
Application: kwin (4.9.4)
KDE Platform Version: 4.9.4
Qt Version: 4.8.3
Operating System: Linux 3.5.0-21-generic x86_64
Distribution: Ubuntu 12.10

-- Information about the crash:
KWin crashed just after turning off one display (leaving only one active display).
Can't reproduce it all the time, so maybe it's a race of some kind (drawing into a surface that has already disappeared).

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

Thread 2 (Thread 0x7fffd5a62700 (LWP 2153)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007ffff46f7cd7 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2  0x00007ffff46f7d09 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3  0x00007fffec7fbe9a in start_thread (arg=0x7fffd5a62700) at pthread_create.c:308
#4  0x00007ffff77cecbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fffe4752780 (LWP 2147)):
[KCrash Handler]
#6  brw_update_renderbuffer_surface (brw=0x89bbd0, rb=0x858bd0, unit=0) at brw_wm_surface_state.c:1109
#7  0x00007fffd7775aa0 in brw_update_renderbuffer_surfaces (brw=0x89bbd0) at brw_wm_surface_state.c:1205
#8  0x00007fffd775fae2 in brw_upload_state (brw=brw@entry=0x89bbd0) at brw_state_upload.c:498
#9  0x00007fffd774d1d7 in brw_try_draw_prims (max_index=5, min_index=4294950728, ib=<optimized out>, nr_prims=<optimized out>, prim=0x7fffffffbf30, arrays=<optimized out>, ctx=0x89bbd0) at brw_draw.c:493
#10 brw_draw_prims (ctx=0x89bbd0, prim=0x7fffffffbf30, nr_prims=<optimized out>, ib=<optimized out>, index_bounds_valid=<optimized out>, min_index=0, max_index=5, tfb_vertcount=0x0) at brw_draw.c:589
#11 0x00007fffd72ccb54 in vbo_draw_arrays (ctx=0x89bbd0, mode=4, start=0, count=6, numInstances=1, baseInstance=<optimized out>) at ../../../../../src/mesa/vbo/vbo_exec_array.c:645
#12 0x00007ffff414d89e in KWin::GLVertexBufferPrivate::corePainting (this=0xa9dcf0, region=..., primitiveMode=4, hardwareClipping=<optimized out>) at ../../../kwin/libkwineffects/kwinglutils.cpp:1218
#13 0x00007ffff414ddbd in KWin::GLVertexBuffer::render (this=0x7f88e0, region=..., primitiveMode=4, hardwareClipping=<optimized out>) at ../../../kwin/libkwineffects/kwinglutils.cpp:1341
#14 0x00007ffff7b56b2e in renderQuads (hardwareClipping=false, normalized=<optimized out>, tex=<optimized out>, quads=..., region=..., this=<optimized out>) at ../../kwin/scene_opengl.cpp:795
#15 KWin::SceneOpenGL::Window::renderQuads (this=<optimized out>, region=..., quads=..., tex=<optimized out>, normalized=<optimized out>, hardwareClipping=false) at ../../kwin/scene_opengl.cpp:774
#16 0x00007ffff7b5cf8b in KWin::SceneOpenGL::Window::performPaint (this=0x18691f0, mask=9, region=..., data=...) at ../../kwin/scene_opengl.cpp:593
#17 0x00007ffff7b48bc6 in KWin::Scene::finalDrawWindow (this=<optimized out>, w=0x8127d0, mask=9, region=..., data=...) at ../../kwin/scene.cpp:454
#18 0x00007ffff7b6746a in KWin::EffectsHandlerImpl::drawWindow (this=0xb73020, w=w@entry=0x8127d0, mask=mask@entry=9, region=..., data=...) at ../../kwin/effects.cpp:310
#19 0x00007fffd5b5e4cd in KWin::BlurEffect::drawWindow (this=<optimized out>, w=0x8127d0, mask=9, region=..., data=...) at ../../../kwin/effects/blur/blur.cpp:405
#20 0x00007ffff7b6740b in KWin::EffectsHandlerImpl::drawWindow (this=0xb73020, w=w@entry=0x8127d0, mask=mask@entry=9, region=..., data=...) at ../../kwin/effects.cpp:307
#21 0x00007ffff5fb9a8a in KWin::Effect::drawWindow (this=<optimized out>, w=0x8127d0, mask=9, region=..., data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:182
#22 0x00007ffff7b6740b in KWin::EffectsHandlerImpl::drawWindow (this=0xb73020, w=w@entry=0x8127d0, mask=mask@entry=9, region=..., data=...) at ../../kwin/effects.cpp:307
#23 0x00007ffff7b4803a in KWin::Scene::finalPaintWindow (this=<optimized out>, w=0x8127d0, mask=9, region=..., data=...) at ../../kwin/scene.cpp:439
#24 0x00007ffff7b671da in KWin::EffectsHandlerImpl::paintWindow (this=0xb73020, w=w@entry=0x8127d0, mask=mask@entry=9, region=..., data=...) at ../../kwin/effects.cpp:273
#25 0x00007ffff5fb9b8a in KWin::Effect::paintWindow (this=<optimized out>, w=0x8127d0, mask=9, region=..., data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:157
#26 0x00007ffff7b6717b in KWin::EffectsHandlerImpl::paintWindow (this=0xb73020, w=w@entry=0x8127d0, mask=mask@entry=9, region=..., data=...) at ../../kwin/effects.cpp:270
#27 0x00007fffd5b19cf8 in KWin::DialogParentEffect::paintWindow (this=<optimized out>, w=0x8127d0, mask=9, region=..., data=...) at ../../../kwin/effects/dialogparent/dialogparent.cpp:64
#28 0x00007ffff7b6717b in KWin::EffectsHandlerImpl::paintWindow (this=0xb73020, w=0x8127d0, mask=mask@entry=9, region=..., data=...) at ../../kwin/effects.cpp:270
#29 0x00007ffff7b4ae0d in KWin::Scene::paintWindow (this=<optimized out>, w=0x18691f0, mask=9, region=..., quads=...) at ../../kwin/scene.cpp:348
#30 0x00007ffff7b4a16f in KWin::Scene::paintSimpleScreen (this=this@entry=0x8375e0, orig_mask=orig_mask@entry=8, region=...) at ../../kwin/scene.cpp:334
#31 0x00007ffff7b47f82 in KWin::Scene::finalPaintScreen (this=0x8375e0, mask=8, region=..., data=...) at ../../kwin/scene.cpp:192
#32 0x00007ffff7b675c3 in KWin::EffectsHandlerImpl::paintScreen (this=0xb73020, mask=mask@entry=8, region=..., data=...) at ../../kwin/effects.cpp:246
#33 0x00007ffff5fb9bf7 in KWin::Effect::paintScreen (this=this@entry=0x132bb70, mask=mask@entry=8, region=..., data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:142
#34 0x00007ffff7b6756b in KWin::EffectsHandlerImpl::paintScreen (this=0xb73020, mask=mask@entry=8, region=..., data=...) at ../../kwin/effects.cpp:243
#35 0x00007ffff5fb9bf7 in KWin::Effect::paintScreen (this=this@entry=0xd71a10, mask=mask@entry=8, region=..., data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:142
#36 0x00007ffff7b6756b in KWin::EffectsHandlerImpl::paintScreen (this=0xb73020, mask=8, region=..., data=...) at ../../kwin/effects.cpp:243
#37 0x00007ffff7b495cb in KWin::Scene::paintScreen (this=0x8375e0, mask=0x7fffffffd0cc, region=0x7fffffffd170) at ../../kwin/scene.cpp:146
#38 0x00007ffff7b5e18d in KWin::SceneOpenGL::paint (this=0x8375e0, damage=..., toplevels=...) at ../../kwin/scene_opengl_glx.cpp:499
#39 0x00007ffff7b432c8 in KWin::Workspace::performCompositing (this=0x812250) at ../../kwin/composite.cpp:443
#40 0x00007ffff345f26c in QObject::event (this=0x812250, e=<optimized out>) at kernel/qobject.cpp:1157
#41 0x00007ffff27f1e9c in QApplicationPrivate::notify_helper (this=this@entry=0x669eb0, receiver=receiver@entry=0x812250, e=e@entry=0x7fffffffd850) at kernel/qapplication.cpp:4562
#42 0x00007ffff27f630a in QApplication::notify (this=0x7fffffffde90, receiver=0x812250, e=0x7fffffffd850) at kernel/qapplication.cpp:4423
#43 0x00007ffff72bd1d6 in KApplication::notify (this=0x7fffffffde90, receiver=0x812250, event=0x7fffffffd850) at ../../kdeui/kernel/kapplication.cpp:311
#44 0x00007ffff344a56e in QCoreApplication::notifyInternal (this=0x7fffffffde90, receiver=0x812250, event=0x7fffffffd850) at kernel/qcoreapplication.cpp:915
#45 0x00007ffff347b462 in sendEvent (event=0x7fffffffd850, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#46 QTimerInfoList::activateTimers (this=0x66abf8) at kernel/qeventdispatcher_unix.cpp:611
#47 0x00007ffff347b4c0 in QEventDispatcherUNIX::activateTimers (this=this@entry=0x669e40) at kernel/qeventdispatcher_unix.cpp:868
#48 0x00007ffff347b618 in QEventDispatcherUNIX::processEvents (this=0x669e40, flags=...) at kernel/qeventdispatcher_unix.cpp:930
#49 0x00007ffff2897a3f in QEventDispatcherX11::processEvents (this=0x669e40, flags=...) at kernel/qeventdispatcher_x11.cpp:152
#50 0x00007ffff34492bf in QEventLoop::processEvents (this=this@entry=0x7fffffffdba0, flags=...) at kernel/qeventloop.cpp:149
#51 0x00007ffff3449548 in QEventLoop::exec (this=0x7fffffffdba0, flags=...) at kernel/qeventloop.cpp:204
#52 0x00007ffff344e708 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#53 0x00007ffff7afced4 in kdemain (argc=3, argv=0x7fffffffdfd8) at ../../kwin/main.cpp:545
#54 0x00007ffff76fc76d in __libc_start_main (main=0x4006a0 <main(int, char**)>, argc=3, ubp_av=0x7fffffffdfd8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffffffdfc8) at libc-start.c:226
#55 0x00000000004006d1 in _start ()

Possible duplicates by query: bug 312336, bug 312335, bug 311682, bug 310612, bug 310417.

Reported using DrKonqi
Comment 1 Thomas Lübking 2013-01-01 23:11:43 UTC
Driver bug, see dupe for more info.

*** This bug has been marked as a duplicate of bug 299333 ***