Bug 308398

Summary: KWin crashing when enabling OpenGL detection/compositing
Product: [Plasma] kwin Reporter: Stefan Derkits <stefan>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash    
Priority: NOR    
Version: 4.9.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Stefan Derkits 2012-10-14 20:28:59 UTC
Application: kwin (4.9.2)
KDE Platform Version: 4.9.2
Qt Version: 4.8.3
Operating System: Linux 3.5.0-17-generic x86_64
Distribution: Ubuntu 12.10

-- Information about the crash:
Tried to enable compositing via shortcut. KWin crashed. Now the settings dialog warns me that my system may crash when enabling OpenGL detection, and if I try to enable it, KWin crashes.

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin), signal: Bus error
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f08d46a4780 (LWP 6187))]

Thread 2 (Thread 0x7f08c729c700 (LWP 6198)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f08e4646cd7 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2  0x00007f08e4646d09 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3  0x00007f08dc74ce9a in start_thread (arg=0x7f08c729c700) at pthread_create.c:308
#4  0x00007f08e771ccbd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f08d46a4780 (LWP 6187)):
[KCrash Handler]
#6  __memset_sse2 () at ../sysdeps/x86_64/multiarch/../memset.S:908
#7  0x00007f08c67f7de6 in memset (__len=<optimized out>, __ch=255, __dest=<optimized out>) at /usr/include/x86_64-linux-gnu/bits/string3.h:85
#8  intel_miptree_alloc_mcs (intel=intel@entry=0xc92a80, mt=0xe99170, num_samples=num_samples@entry=8) at intel_mipmap_tree.c:823
#9  0x00007f08c67f80cd in intel_miptree_create_for_renderbuffer (intel=intel@entry=0xc92a80, format=format@entry=MESA_FORMAT_ARGB8888, width=<optimized out>, height=<optimized out>, num_samples=num_samples@entry=8) at intel_mipmap_tree.c:480
#10 0x00007f08c67f8df7 in intel_miptree_create_for_dri2_buffer (intel=intel@entry=0xc92a80, dri_attachment=1, format=MESA_FORMAT_ARGB8888, num_samples=num_samples@entry=8, region=0xd66720) at intel_mipmap_tree.c:372
#11 0x00007f08c67f40ab in intel_process_dri2_buffer (buffer_name=0x7f08c6875f29 "dri2 back buffer", rb=0xa651a0, buffer=<optimized out>, intel=0xc92a80, drawable=<optimized out>) at intel_context.c:1024
#12 intel_update_renderbuffers (context=context@entry=0xc28840, drawable=drawable@entry=0xa99590) at intel_context.c:389
#13 0x00007f08c67f4202 in intel_prepare_render (intel=intel@entry=0xc92a80) at intel_context.c:408
#14 0x00007f08c680ab6f in brw_try_draw_prims (max_index=5, min_index=0, ib=0x0, nr_prims=1, prim=0x7fff23964080, arrays=0xd21e78, ctx=0xc92a80) at brw_draw.c:435
#15 brw_draw_prims (ctx=0xc92a80, prim=0x7fff23964080, nr_prims=1, ib=0x0, index_bounds_valid=<optimized out>, min_index=0, max_index=5, tfb_vertcount=0x0) at brw_draw.c:589
#16 0x00007f08c638ab54 in vbo_draw_arrays (ctx=0xc92a80, mode=4, start=0, count=6, numInstances=1, baseInstance=<optimized out>) at ../../../../../src/mesa/vbo/vbo_exec_array.c:645
#17 0x00007f08e409c89e in KWin::GLVertexBufferPrivate::corePainting (this=0xe9f6c0, region=..., primitiveMode=4, hardwareClipping=<optimized out>) at ../../../kwin/libkwineffects/kwinglutils.cpp:1218
#18 0x00007f08e409cdbd in KWin::GLVertexBuffer::render (this=this@entry=0xa20d70, region=..., primitiveMode=primitiveMode@entry=4, hardwareClipping=hardwareClipping@entry=false) at ../../../kwin/libkwineffects/kwinglutils.cpp:1341
#19 0x00007f08e409ce41 in KWin::GLVertexBuffer::render (this=0xa20d70, primitiveMode=4) at ../../../kwin/libkwineffects/kwinglutils.cpp:1333
#20 0x00007f08e7aa8661 in KWin::SceneOpenGL::paintBackground (this=this@entry=0x87a4b0, region=...) at ../../kwin/scene_opengl.cpp:210
#21 0x00007f08e7a98270 in KWin::Scene::paintSimpleScreen (this=this@entry=0x87a4b0, orig_mask=orig_mask@entry=8, region=...) at ../../kwin/scene.cpp:323
#22 0x00007f08e7a95ee2 in KWin::Scene::finalPaintScreen (this=0x87a4b0, mask=8, region=..., data=...) at ../../kwin/scene.cpp:192
#23 0x00007f08e7ab5463 in KWin::EffectsHandlerImpl::paintScreen (this=0xfa4440, mask=mask@entry=8, region=..., data=...) at ../../kwin/effects.cpp:246
#24 0x00007f08e5f08bf7 in KWin::Effect::paintScreen (this=this@entry=0xc193b0, mask=mask@entry=8, region=..., data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:142
#25 0x00007f08e7ab540b in KWin::EffectsHandlerImpl::paintScreen (this=0xfa4440, mask=8, region=..., data=...) at ../../kwin/effects.cpp:243
#26 0x00007f08e7a9752b in KWin::Scene::paintScreen (this=0x87a4b0, mask=0x7fff2396469c, region=0x7fff23964740) at ../../kwin/scene.cpp:146
#27 0x00007f08e7aac022 in KWin::SceneOpenGL::paint (this=0x87a4b0, damage=..., toplevels=...) at ../../kwin/scene_opengl_glx.cpp:481
#28 0x00007f08e7a91238 in KWin::Workspace::performCompositing (this=0x85c200) at ../../kwin/composite.cpp:440
#29 0x00007f08e33ae26c in QObject::event (this=0x85c200, e=<optimized out>) at kernel/qobject.cpp:1157
#30 0x00007f08e2740e9c in QApplicationPrivate::notify_helper (this=this@entry=0x716c90, receiver=receiver@entry=0x85c200, e=e@entry=0x7fff23964e20) at kernel/qapplication.cpp:4562
#31 0x00007f08e274530a in QApplication::notify (this=0x7fff23965460, receiver=0x85c200, e=0x7fff23964e20) at kernel/qapplication.cpp:4423
#32 0x00007f08e720b1d6 in KApplication::notify (this=0x7fff23965460, receiver=0x85c200, event=0x7fff23964e20) at ../../kdeui/kernel/kapplication.cpp:311
#33 0x00007f08e339956e in QCoreApplication::notifyInternal (this=0x7fff23965460, receiver=0x85c200, event=0x7fff23964e20) at kernel/qcoreapplication.cpp:915
#34 0x00007f08e33ca462 in sendEvent (event=0x7fff23964e20, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#35 QTimerInfoList::activateTimers (this=0x717848) at kernel/qeventdispatcher_unix.cpp:611
#36 0x00007f08e33ca4c0 in QEventDispatcherUNIX::activateTimers (this=this@entry=0x6c3ad0) at kernel/qeventdispatcher_unix.cpp:868
#37 0x00007f08e33ca618 in QEventDispatcherUNIX::processEvents (this=0x6c3ad0, flags=...) at kernel/qeventdispatcher_unix.cpp:930
#38 0x00007f08e27e6a3f in QEventDispatcherX11::processEvents (this=0x6c3ad0, flags=...) at kernel/qeventdispatcher_x11.cpp:152
#39 0x00007f08e33982bf in QEventLoop::processEvents (this=this@entry=0x7fff23965170, flags=...) at kernel/qeventloop.cpp:149
#40 0x00007f08e3398548 in QEventLoop::exec (this=0x7fff23965170, flags=...) at kernel/qeventloop.cpp:204
#41 0x00007f08e339d708 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#42 0x00007f08e7a4ae34 in kdemain (argc=3, argv=0x7fff239655a8) at ../../kwin/main.cpp:545
#43 0x00007f08e764a76d in __libc_start_main (main=0x4006a0 <main(int, char**)>, argc=3, ubp_av=0x7fff239655a8, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff23965598) at libc-start.c:226
#44 0x00000000004006d1 in _start ()

Possible duplicates by query: bug 308369.

Reported using DrKonqi
Comment 1 Thomas Lübking 2012-10-14 20:31:53 UTC
perfect dupe, likely a driver bug.
please see comment #1 on the dupe and if possible provide the demanded information, thanks.

*** This bug has been marked as a duplicate of bug 308369 ***
Comment 2 Martin Flöser 2012-10-14 20:32:31 UTC
looks like we will have much fun with Intel in Kubuntu 12.10 *sigh*