<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>301131</bug_id>
          
          <creation_ts>2012-06-03 23:00:29 +0000</creation_ts>
          <short_desc>KWin sporadic crash when restarting w/ `kwin --replace`</short_desc>
          <delta_ts>2012-07-03 12:58:38 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>kwin</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>299333</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>crash</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Samat Jain">bugs</reporter>
          <assigned_to name="KWin default assignee">kwin-bugs-null</assigned_to>
          
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      <flag name="Intel"
          id="202"
          type_id="5"
          status="+"
          setter="mgraesslin"
    />

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1262036</commentid>
    <comment_count>0</comment_count>
    <who name="Samat Jain">bugs</who>
    <bug_when>2012-06-03 23:00:29 +0000</bug_when>
    <thetext>Application: kwin (4.8.3 (4.8.3))
KDE Platform Version: 4.8.3 (4.8.3)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-24-generic x86_64
Distribution: Ubuntu 12.04 LTS

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

1. Restart KWin w/ `kwin --replace`
2. KWin crashes (crash report from Kubuntu 12.04 attached)

The crash can be reproduced some of the time.

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

Thread 2 (Thread 0x7f1daa951700 (LWP 3505)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007f1dc9c6e222 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#2  0x00007f1dc9c6e259 in ?? () from /usr/lib/x86_64-linux-gnu/libQtScript.so.4
#3  0x00007f1dc1aabe9a in start_thread (arg=0x7f1daa951700) at pthread_create.c:308
#4  0x00007f1dcd1b54bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#5  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f1dcd99f780 (LWP 3500)):
[KCrash Handler]
#6  brw_update_renderbuffer_surface (brw=0x1f884d0, rb=0x1ed4340, unit=0) at brw_wm_surface_state.c:919
#7  0x00007f1db174ea80 in brw_update_renderbuffer_surfaces (brw=0x1f884d0) at brw_wm_surface_state.c:1016
#8  0x00007f1db1738628 in brw_upload_state (brw=0x1f884d0) at brw_state_upload.c:503
#9  0x00007f1db17257bf in brw_try_draw_prims (max_index=&lt;optimized out&gt;, min_index=&lt;optimized out&gt;, ib=0x0, nr_prims=1, prim=0x7fffdcc168e0, arrays=0x1f4cb28, ctx=0x1f884d0) at brw_draw.c:482
#10 brw_draw_prims (ctx=0x1f884d0, arrays=0x1f4cb28, prim=0x7fffdcc168e0, nr_prims=1, ib=0x0, index_bounds_valid=&lt;optimized out&gt;, min_index=0, max_index=5, tfb_vertcount=0x0) at brw_draw.c:566
#11 0x00007f1db1394544 in vbo_draw_arrays (ctx=0x1f884d0, mode=4, start=0, count=&lt;optimized out&gt;, numInstances=1) at vbo/vbo_exec_array.c:600
#12 0x00007f1dc9696ed7 in KWin::GLVertexBufferPrivate::corePainting (this=0x21086f0, region=..., primitiveMode=4) at ../../../kwin/libkwineffects/kwinglutils.cpp:1189
#13 0x00007f1dc9696fd5 in KWin::GLVertexBuffer::render (this=0x20b3c00, region=..., primitiveMode=4) at ../../../kwin/libkwineffects/kwinglutils.cpp:1298
#14 0x00007f1dcd53f78f in renderQuads (normalized=&lt;optimized out&gt;, tex=&lt;optimized out&gt;, quads=..., region=..., this=&lt;optimized out&gt;) at ../../kwin/scene_opengl.cpp:788
#15 KWin::SceneOpenGL::Window::renderQuads (this=&lt;optimized out&gt;, region=..., quads=..., tex=&lt;optimized out&gt;, normalized=&lt;optimized out&gt;) at ../../kwin/scene_opengl.cpp:768
#16 0x00007f1dcd546b82 in KWin::SceneOpenGL::Window::performPaint (this=0x2514440, mask=1, region=..., data=...) at ../../kwin/scene_opengl.cpp:592
#17 0x00007f1dcd52f309 in KWin::Scene::finalDrawWindow (this=&lt;optimized out&gt;, w=&lt;optimized out&gt;, mask=1, region=..., data=...) at ../../kwin/scene.cpp:438
#18 0x00007f1dcd551d35 in KWin::EffectsHandlerImpl::drawWindow (this=0x21264f0, w=0x2514080, mask=1, region=..., data=...) at ../../kwin/effects.cpp:286
#19 0x00007f1dcb31d39b in KWin::Effect::drawWindow (this=&lt;optimized out&gt;, w=0x2514080, mask=1, region=..., data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:182
#20 0x00007f1dcd551cc9 in KWin::EffectsHandlerImpl::drawWindow (this=0x21264f0, w=0x2514080, mask=1, region=..., data=...) at ../../kwin/effects.cpp:283
#21 0x00007f1dcd52e885 in KWin::Scene::finalPaintWindow (this=&lt;optimized out&gt;, w=0x2514070, mask=1, region=..., data=...) at ../../kwin/scene.cpp:429
#22 0x00007f1dcd551fc5 in KWin::EffectsHandlerImpl::paintWindow (this=0x21264f0, w=0x2514080, mask=1, region=..., data=...) at ../../kwin/effects.cpp:249
#23 0x00007f1dab081c0b in KWin::TranslucencyEffect::paintWindow (this=&lt;optimized out&gt;, w=0x2514080, mask=1, region=..., data=...) at ../../../kwin/effects/translucency/translucency.cpp:169
#24 0x00007f1dcd551f59 in KWin::EffectsHandlerImpl::paintWindow (this=0x21264f0, w=0x2514080, mask=1, region=..., data=...) at ../../kwin/effects.cpp:246
#25 0x00007f1dcd52f508 in KWin::Scene::paintWindow (this=&lt;optimized out&gt;, w=0x2514440, mask=1, region=..., quads=...) at ../../kwin/scene.cpp:385
#26 0x00007f1dcd5300ad in KWin::Scene::paintSimpleScreen (this=0x1ee1640, orig_mask=0, region=&lt;error reading variable: Cannot access memory at address 0xffffffffffffffff&gt;) at ../../kwin/scene.cpp:330
#27 0x00007f1dcd52e7b4 in KWin::Scene::finalPaintScreen (this=0x1ee1640, mask=0, region=..., data=...) at ../../kwin/scene.cpp:198
#28 0x00007f1dcd552197 in KWin::EffectsHandlerImpl::paintScreen (this=0x21264f0, mask=0, region=..., data=...) at ../../kwin/effects.cpp:222
#29 0x00007f1dcb31d508 in KWin::Effect::paintScreen (this=&lt;optimized out&gt;, mask=0, region=..., data=...) at ../../../kwin/libkwineffects/kwineffects.cpp:142
#30 0x00007f1dcd55213b in KWin::EffectsHandlerImpl::paintScreen (this=0x21264f0, mask=0, region=..., data=...) at ../../kwin/effects.cpp:219
#31 0x00007f1dcd5317c5 in KWin::Scene::paintScreen (this=0x1ee1640, mask=0x7fffdcc17ab8, region=0x7fffdcc17ba0) at ../../kwin/scene.cpp:156
#32 0x00007f1dcd54768d in KWin::SceneOpenGL::paint (this=0x1ee1640, damage=..., toplevels=...) at ../../kwin/scene_opengl_glx.cpp:459
#33 0x00007f1dcd52b3c8 in KWin::Workspace::performCompositing (this=0x1de6de0) at ../../kwin/composite.cpp:417
#34 0x00007f1dc899c179 in QObject::event (this=0x1de6de0, e=&lt;optimized out&gt;) at kernel/qobject.cpp:1157
#35 0x00007f1dc7d05894 in notify_helper (e=0x7fffdcc18280, receiver=0x1de6de0, this=0x1ce2e40) at kernel/qapplication.cpp:4559
#36 QApplicationPrivate::notify_helper (this=0x1ce2e40, receiver=0x1de6de0, e=0x7fffdcc18280) at kernel/qapplication.cpp:4531
#37 0x00007f1dc7d0a713 in QApplication::notify (this=0x7fffdcc186a0, receiver=0x1de6de0, e=0x7fffdcc18280) at kernel/qapplication.cpp:4420
#38 0x00007f1dccc90bb6 in KApplication::notify (this=0x7fffdcc186a0, receiver=0x1de6de0, event=0x7fffdcc18280) at ../../kdeui/kernel/kapplication.cpp:311
#39 0x00007f1dc8982e9c in QCoreApplication::notifyInternal (this=0x7fffdcc186a0, receiver=0x1de6de0, event=0x7fffdcc18280) at kernel/qcoreapplication.cpp:876
#40 0x00007f1dc89b41f2 in sendEvent (event=0x7fffdcc18280, receiver=&lt;optimized out&gt;) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#41 QTimerInfoList::activateTimers (this=0x1ce3a48) at kernel/qeventdispatcher_unix.cpp:611
#42 0x00007f1dc89b4cb4 in QEventDispatcherUNIX::processEvents (this=0x1c6dad0, flags=...) at kernel/qeventdispatcher_unix.cpp:930
#43 0x00007f1dc7daebf8 in QEventDispatcherX11::processEvents (this=0x1c6dad0, flags=...) at kernel/qeventdispatcher_x11.cpp:152
#44 0x00007f1dc8981c82 in QEventLoop::processEvents (this=&lt;optimized out&gt;, flags=...) at kernel/qeventloop.cpp:149
#45 0x00007f1dc8981ed7 in QEventLoop::exec (this=0x7fffdcc185e0, flags=...) at kernel/qeventloop.cpp:204
#46 0x00007f1dc8986f67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#47 0x00007f1dcd4e0a06 in kdemain (argc=&lt;optimized out&gt;, argv=&lt;optimized out&gt;) at ../../kwin/main.cpp:541
#48 0x00007f1dcd0e476d in __libc_start_main (main=0x400630 &lt;main(int, char**)&gt;, argc=2, ubp_av=0x7fffdcc18dc8, init=&lt;optimized out&gt;, fini=&lt;optimized out&gt;, rtld_fini=&lt;optimized out&gt;, stack_end=0x7fffdcc18db8) at libc-start.c:226
#49 0x0000000000400661 in _start ()

Possible duplicates by query: bug 300886, bug 299333.

Reported using DrKonqi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1262041</commentid>
    <comment_count>1</comment_count>
    <who name="Thomas Lübking">thomas.luebking</who>
    <bug_when>2012-06-03 23:05:14 +0000</bug_when>
    <thetext>crashes in the driver. Which GPU and driver are you using?

*** This bug has been marked as a duplicate of bug 299333 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1262044</commentid>
    <comment_count>2</comment_count>
    <who name="Samat Jain">bugs</who>
    <bug_when>2012-06-03 23:11:08 +0000</bug_when>
    <thetext>Didn&apos;t notice it was in the video driver—thanks!

Using an Intel 965GM:

$lspci | grep Intel
00:02.0 VGA compatible controller: Intel Corporation Mobile GM965/GL960 Integrated Graphics Controller (primary) (rev 0c)

with Intel&apos;s 2.19 driver (from Ubuntu&apos;s &quot;X Updates&quot; PPA):

$dpkg -l | grep intel
ii  xserver-xorg-video-intel                        2:2.19.0-0ubuntu1~xup1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>