Bug 331265 - kwin crashed upon trying to run glxgears under optimus
Summary: kwin crashed upon trying to run glxgears under optimus
Status: RESOLVED DUPLICATE of bug 324598
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 4.11.6
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2014-02-18 00:32 UTC by CK
Modified: 2014-02-18 06:41 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description CK 2014-02-18 00:32:03 UTC
Application: kwin (4.11.6)
KDE Platform Version: 4.11.5
Qt Version: 4.8.5
Operating System: Linux 3.12.10-300.fc20.x86_64 x86_64
Distribution: "Fedora release 20 (Heisenbug)"

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

# primusrun glxgears

- Custom settings of the application:

all effects are enabled but run on i915
bubmlebee-nvidia is installed

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
81	T_PSEUDO (SYSCALL_SYMBOL, SYSCALL_NAME, SYSCALL_NARGS)
[Current thread is 1 (Thread 0x7f3bb23ff900 (LWP 1838))]

Thread 2 (Thread 0x7f3ba6ae5700 (LWP 1844)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x0000003b7838f09b in QTWTF::TCMalloc_PageHeap::scavengerThread (this=0x3b7868df00 <QTWTF::pageheap_memory>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:2359
#2  0x0000003b7838f0d9 in QTWTF::TCMalloc_PageHeap::runScavengerThread (context=<optimized out>) at ../3rdparty/javascriptcore/JavaScriptCore/wtf/FastMalloc.cpp:1464
#3  0x0000003b53e07f33 in start_thread (arg=0x7f3ba6ae5700) at pthread_create.c:309
#4  0x0000003b536f4ded in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111

Thread 1 (Thread 0x7f3bb23ff900 (LWP 1838)):
[KCrash Handler]
#6  intel_miptree_used_for_rendering (mt=0x0) at intel_mipmap_tree.h:678
#7  brw_update_renderbuffer_surface (brw=0x2175f80, rb=0x1e83560, layered=<optimized out>, unit=0) at brw_wm_surface_state.c:635
#8  0x00007f3ba44c36cc in brw_update_renderbuffer_surfaces (brw=0x2175f80) at brw_wm_surface_state.c:717
#9  0x00007f3ba4498faa in brw_upload_state (brw=brw@entry=0x2175f80) at brw_state_upload.c:513
#10 0x00007f3ba4454eb6 in brw_try_draw_prims (max_index=<optimized out>, min_index=<optimized out>, ib=<optimized out>, nr_prims=<optimized out>, prim=<optimized out>, arrays=<optimized out>, ctx=0x2175f80) at brw_draw.c:445
#11 brw_draw_prims (ctx=0x2175f80, prim=<optimized out>, 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:530
#12 0x00007f3b17b56de0 in vbo_draw_arrays (ctx=0x2175f80, mode=4, start=0, count=6, numInstances=1, baseInstance=0) at ../../../src/mesa/vbo/vbo_exec_array.c:660
#13 0x00007f3bb32a339e in KWin::GLVertexBuffer::draw (this=this@entry=0x224e700, region=..., primitiveMode=primitiveMode@entry=4, first=first@entry=0, count=6, hardwareClipping=hardwareClipping@entry=false) at /usr/src/debug/kde-workspace-4.11.6/kwin/libkwineffects/kwinglutils.cpp:1949
#14 0x00007f3bb32a6599 in KWin::GLVertexBuffer::render (this=0x224e700, region=..., primitiveMode=4, hardwareClipping=<optimized out>) at /usr/src/debug/kde-workspace-4.11.6/kwin/libkwineffects/kwinglutils.cpp:1902
#15 0x00007f3bb32a660d in KWin::GLVertexBuffer::render (this=this@entry=0x224e700, primitiveMode=primitiveMode@entry=4) at /usr/src/debug/kde-workspace-4.11.6/kwin/libkwineffects/kwinglutils.cpp:1896
#16 0x00007f3bb37c9a5a in KWin::SceneOpenGL2::doPaintBackground (this=<optimized out>, vertices=...) at /usr/src/debug/kde-workspace-4.11.6/kwin/scene_opengl.cpp:748
#17 0x00007f3bb37cd355 in KWin::SceneOpenGL::paintBackground (this=this@entry=0x2291920, region=...) at /usr/src/debug/kde-workspace-4.11.6/kwin/scene_opengl.cpp:460
#18 0x00007f3bb37bcdb6 in KWin::Scene::paintSimpleScreen (this=this@entry=0x2291920, orig_mask=orig_mask@entry=8, region=...) at /usr/src/debug/kde-workspace-4.11.6/kwin/scene.cpp:367
#19 0x00007f3bb37ba945 in KWin::Scene::finalPaintScreen (this=0x2291920, mask=mask@entry=8, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.6/kwin/scene.cpp:198
#20 0x00007f3bb37de05d in KWin::EffectsHandlerImpl::paintScreen (this=0x25c99e0, mask=mask@entry=8, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.6/kwin/effects.cpp:375
#21 0x00007f3b175c3dd7 in KWin::StartupFeedbackEffect::paintScreen (this=this@entry=0x252fb70, mask=mask@entry=8, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.6/kwin/effects/startupfeedback/startupfeedback.cpp:175
#22 0x00007f3bb37de00a in KWin::EffectsHandlerImpl::paintScreen (this=0x25c99e0, mask=mask@entry=8, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.6/kwin/effects.cpp:372
#23 0x00007f3bb3072baf in KWin::Effect::paintScreen (this=this@entry=0x2522720, mask=mask@entry=8, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.6/kwin/libkwineffects/kwineffects.cpp:522
#24 0x00007f3bb37de00a in KWin::EffectsHandlerImpl::paintScreen (this=0x25c99e0, mask=8, region=..., data=...) at /usr/src/debug/kde-workspace-4.11.6/kwin/effects.cpp:372
#25 0x00007f3bb37bcf86 in KWin::Scene::paintScreen (this=this@entry=0x2291920, mask=mask@entry=0x7fffe986228c, damage=..., repaint=..., updateRegion=updateRegion@entry=0x7fffe98622a0, validRegion=validRegion@entry=0x7fffe98622b0) at /usr/src/debug/kde-workspace-4.11.6/kwin/scene.cpp:148
#26 0x00007f3bb37d07de in KWin::SceneOpenGL::paint (this=0x2291920, damage=..., toplevels=...) at /usr/src/debug/kde-workspace-4.11.6/kwin/scene_opengl.cpp:389
#27 0x00007f3bb37b44bb in KWin::Compositor::performCompositing (this=0x2039e00) at /usr/src/debug/kde-workspace-4.11.6/kwin/composite.cpp:618
#28 0x0000003b5eb9d0a1 in QObject::event (this=0x2039e00, e=<optimized out>) at kernel/qobject.cpp:1156
#29 0x000000359e7c9d8c in QApplicationPrivate::notify_helper (this=this@entry=0x1ecefe0, receiver=receiver@entry=0x2039e00, e=e@entry=0x7fffe98627e0) at kernel/qapplication.cpp:4562
#30 0x000000359e7d0725 in QApplication::notify (this=this@entry=0x7fffe9862ce0, receiver=receiver@entry=0x2039e00, e=e@entry=0x7fffe98627e0) at kernel/qapplication.cpp:4348
#31 0x000000339f24a7da in KApplication::notify (this=0x7fffe9862ce0, receiver=0x2039e00, event=0x7fffe98627e0) at /usr/src/debug/kdelibs-4.11.5/kdeui/kernel/kapplication.cpp:311
#32 0x0000003b5eb8439d in QCoreApplication::notifyInternal (this=0x7fffe9862ce0, receiver=0x2039e00, event=event@entry=0x7fffe98627e0) at kernel/qcoreapplication.cpp:949
#33 0x0000003b5ebb5ae3 in sendEvent (event=0x7fffe98627e0, receiver=<optimized out>) at kernel/qcoreapplication.h:231
#34 QTimerInfoList::activateTimers (this=0x1ecf9d8) at kernel/qeventdispatcher_unix.cpp:621
#35 0x0000003b5ebb5b60 in QEventDispatcherUNIX::activateTimers (this=this@entry=0x1e7ac00) at kernel/qeventdispatcher_unix.cpp:878
#36 0x0000003b5ebb6548 in QEventDispatcherUNIX::processEvents (this=this@entry=0x1e7ac00, flags=...) at kernel/qeventdispatcher_unix.cpp:940
#37 0x000000359e86c5d6 in QEventDispatcherX11::processEvents (this=0x1e7ac00, flags=...) at kernel/qeventdispatcher_x11.cpp:152
#38 0x0000003b5eb82edf in QEventLoop::processEvents (this=this@entry=0x7fffe9862b30, flags=...) at kernel/qeventloop.cpp:149
#39 0x0000003b5eb8322d in QEventLoop::exec (this=this@entry=0x7fffe9862b30, flags=...) at kernel/qeventloop.cpp:204
#40 0x0000003b5eb88749 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1221
#41 0x000000359e7c83fc in QApplication::exec () at kernel/qapplication.cpp:3823
#42 0x00007f3bb376c411 in kdemain (argc=1, argv=0x7fffe9862e38) at /usr/src/debug/kde-workspace-4.11.6/kwin/main.cpp:597
#43 0x0000003b53621d65 in __libc_start_main (main=0x4009d0 <main(int, char**)>, argc=1, argv=0x7fffe9862e38, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fffe9862e28) at libc-start.c:285
#44 0x0000000000400a01 in _start ()

The reporter indicates this bug may be a duplicate of or related to bug 324598.

Possible duplicates by query: bug 324598.

Reported using DrKonqi
Comment 1 Thomas Lübking 2014-02-18 06:41:54 UTC
check, whether you get the same dmesg errors as in https://bugs.freedesktop.org/show_bug.cgi?id=51376
To us, it's a driver bug - you might want to auto-suspend compositing with optirun or switch to xrender composition.

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