Bug 317160

Summary: kwin crashes while enable opengl
Product: [Plasma] kwin Reporter: stefan.walser
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: crash CC: stefan.walser
Priority: NOR    
Version: 4.9.5   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: New crash information added by DrKonqi

Description stefan.walser 2013-03-21 20:46:04 UTC
Application: kwin (4.9.5)
KDE Platform Version: 4.9.5
Qt Version: 4.8.3
Operating System: Linux 3.5.0-26-generic x86_64
Distribution: Ubuntu 12.10

-- Information about the crash:
- What I was doing when the application crashed:
switch from XRender to opengl
- Unusual behavior I noticed:
while updating kubuntu 12.04 graphic display was crashing after some minutes. I upgraded to kubuntu 12.10. Now there is no possibility to use opengl
- Custom settings of the application:
XRender with Raster (and ugly windows e. g. firefox)

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[KCrash Handler]
#6  brw_update_renderbuffer_surface (brw=0x28ef940, rb=0x27d6f40, unit=0) at brw_wm_surface_state.c:1109
#7  0x00007fc34e92aab0 in brw_update_renderbuffer_surfaces (brw=0x28ef940) at brw_wm_surface_state.c:1205
#8  0x00007fc34e914b02 in brw_upload_state (brw=brw@entry=0x28ef940) at brw_state_upload.c:498
#9  0x00007fc34e9021a7 in brw_try_draw_prims (max_index=41, min_index=1164376040, ib=<optimized out>, nr_prims=<optimized out>, prim=0x7fff4566f7d0, arrays=<optimized out>, ctx=0x28ef940) at brw_draw.c:493
#10 brw_draw_prims (ctx=0x28ef940, prim=0x7fff4566f7d0, nr_prims=<optimized out>, ib=<optimized out>, index_bounds_valid=<optimized out>, min_index=0, max_index=41, tfb_vertcount=0x0) at brw_draw.c:589
#11 0x00007fc34e47eb84 in vbo_draw_arrays (ctx=0x28ef940, mode=4, start=0, count=42, numInstances=1, baseInstance=<optimized out>) at ../../../../../src/mesa/vbo/vbo_exec_array.c:645
#12 0x00007fc3671a089e in KWin::GLVertexBufferPrivate::corePainting (this=0x2af2010, region=..., primitiveMode=4, hardwareClipping=<optimized out>) at ../../../kwin/libkwineffects/kwinglutils.cpp:1218
#13 0x00007fc3671a0dbd in KWin::GLVertexBuffer::render (this=0x2af1600, region=..., primitiveMode=4, hardwareClipping=<optimized out>) at ../../../kwin/libkwineffects/kwinglutils.cpp:1341
#14 0x00007fc36aba9b1e 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 0x00007fc36abaff7b in KWin::SceneOpenGL::Window::performPaint (this=0x2ce0c10, mask=9, region=..., data=...) at ../../kwin/scene_opengl.cpp:593
#17 0x00007fc36ab9bbb6 in KWin::Scene::finalDrawWindow (this=<optimized out>, w=0x2885fc0, mask=9, region=..., data=...) at ../../kwin/scene.cpp:454
#18 0x00007fc36abba45a in KWin::EffectsHandlerImpl::drawWindow (this=0x2bf29a0, w=w@entry=0x2885fc0, mask=mask@entry=9, region=..., data=...) at ../../kwin/effects.cpp:310
#19 0x00007fc36ab9b02a in KWin::Scene::finalPaintWindow (this=<optimized out>, w=0x2885fc0, mask=9, region=..., data=...) at ../../kwin/scene.cpp:439
#20 0x00007fc36abba1ca in KWin::EffectsHandlerImpl::paintWindow (this=0x2bf29a0, w=0x2885fc0, mask=mask@entry=9, region=..., data=...) at ../../kwin/effects.cpp:273
#21 0x00007fc36ab9ddfd in KWin::Scene::paintWindow (this=<optimized out>, w=0x2ce0c10, mask=9, region=..., quads=...) at ../../kwin/scene.cpp:348
#22 0x00007fc36ab9d15f in KWin::Scene::paintSimpleScreen (this=this@entry=0x27f1b70, orig_mask=orig_mask@entry=8, region=...) at ../../kwin/scene.cpp:334
#23 0x00007fc36ab9af72 in KWin::Scene::finalPaintScreen (this=0x27f1b70, mask=8, region=..., data=...) at ../../kwin/scene.cpp:192
#24 0x00007fc36abba5b3 in KWin::EffectsHandlerImpl::paintScreen (this=0x2bf29a0, mask=8, region=..., data=...) at ../../kwin/effects.cpp:246
#25 0x00007fc36ab9c5bb in KWin::Scene::paintScreen (this=0x27f1b70, mask=0x7fff4567054c, region=0x7fff456705f0) at ../../kwin/scene.cpp:146
#26 0x00007fc36abb117d in KWin::SceneOpenGL::paint (this=0x27f1b70, damage=..., toplevels=...) at ../../kwin/scene_opengl_glx.cpp:499
#27 0x00007fc36ab962b8 in KWin::Workspace::performCompositing (this=this@entry=0x277d730) at ../../kwin/composite.cpp:443
#28 0x00007fc36ab96893 in KWin::Workspace::slotCompositingOptionsInitialized (this=0x277d730) at ../../kwin/composite.cpp:199
#29 0x00007fc36ab3044a in qt_static_metacall (_a=<optimized out>, _id=<optimized out>, _o=<optimized out>, _c=<optimized out>) at ./workspace.moc:390
#30 KWin::Workspace::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at ./workspace.moc:269
#31 0x00007fc3664b2f5f in QMetaObject::activate (sender=0x27a4730, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3547
#32 0x00007fc366391477 in QFutureWatcherBase::event (this=<optimized out>, event=0x7fc348001ff0) at concurrent/qfuturewatcher.cpp:344
#33 0x00007fc365844e9c in QApplicationPrivate::notify_helper (this=this@entry=0x2627cf0, receiver=receiver@entry=0x27a4730, e=e@entry=0x7fc348001ff0) at kernel/qapplication.cpp:4562
#34 0x00007fc36584930a in QApplication::notify (this=0x7fff45671500, receiver=0x27a4730, e=0x7fc348001ff0) at kernel/qapplication.cpp:4423
#35 0x00007fc36a3101f6 in KApplication::notify (this=0x7fff45671500, receiver=0x27a4730, event=0x7fc348001ff0) at ../../kdeui/kernel/kapplication.cpp:311
#36 0x00007fc36649d56e in QCoreApplication::notifyInternal (this=0x7fff45671500, receiver=receiver@entry=0x27a4730, event=event@entry=0x7fc348001ff0) at kernel/qcoreapplication.cpp:915
#37 0x00007fc3664a13f1 in sendEvent (event=0x7fc348001ff0, receiver=0x27a4730) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#38 QCoreApplicationPrivate::sendPostedEvents (receiver=0x0, event_type=0, data=0x25cd1f0) at kernel/qcoreapplication.cpp:1539
#39 0x00007fc3658ea89c in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#40 QEventDispatcherX11::processEvents (this=0x25cead0, flags=...) at kernel/qeventdispatcher_x11.cpp:75
#41 0x00007fc36649c2bf in QEventLoop::processEvents (this=this@entry=0x7fff45671210, flags=...) at kernel/qeventloop.cpp:149
#42 0x00007fc36649c548 in QEventLoop::exec (this=0x7fff45671210, flags=...) at kernel/qeventloop.cpp:204
#43 0x00007fc3664a1708 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1187
#44 0x00007fc36ab4fec4 in kdemain (argc=3, argv=0x7fff45671648) at ../../kwin/main.cpp:545
#45 0x00007fc36a74f76d in __libc_start_main (main=0x4006a0 <main(int, char**)>, argc=3, ubp_av=0x7fff45671648, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff45671638) at libc-start.c:226
#46 0x00000000004006d1 in _start ()

Possible duplicates by query: bug 317130, bug 316866, bug 316327, bug 314730, bug 314673.

Reported using DrKonqi
Comment 1 stefan.walser 2013-03-21 20:52:33 UTC
Created attachment 78279 [details]
New crash information added by DrKonqi

kwin (4.9.5) on KDE Platform 4.9.5 using Qt 4.8.3

- What I was doing when the application crashed:
Reproduction of exactly this error
- Unusual behavior I noticed:
Firefox does not open https://bugs.kde.org/createaccount.cgi 
- Custom settings of the application:

-- Backtrace (Reduced):
#6  brw_update_renderbuffer_surface (brw=0x2858120, rb=0x2749910, unit=0) at brw_wm_surface_state.c:1109
#7  0x00007fd40ef74ab0 in brw_update_renderbuffer_surfaces (brw=0x2858120) at brw_wm_surface_state.c:1205
#8  0x00007fd40ef5eb02 in brw_upload_state (brw=brw@entry=0x2858120) at brw_state_upload.c:498
#9  0x00007fd40ef4c1a7 in brw_try_draw_prims (max_index=47, min_index=3343207896, ib=<optimized out>, nr_prims=<optimized out>, prim=0x7fffc7454dc0, arrays=<optimized out>, ctx=0x2858120) at brw_draw.c:493
#10 brw_draw_prims (ctx=0x2858120, prim=0x7fffc7454dc0, nr_prims=<optimized out>, ib=<optimized out>, index_bounds_valid=<optimized out>, min_index=0, max_index=47, tfb_vertcount=0x0) at brw_draw.c:589
Comment 2 Thomas Lübking 2013-03-21 21:23:02 UTC
Technically a dupe of #299333 - a bug in the driver, no need to post more backtraces.

However, "while updating ubuntu" - just reboot afterwards.
They most likely truncate files during installation (we got maaaany bugreports in that direction) and then your libraries point into a pile of junk.

If the issue remains after the reboot, it's really bug #299333

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