Bug 331189 - crash when trying to play game using wine
Summary: crash when trying to play game using wine
Status: RESOLVED DUPLICATE of bug 299333
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 4.11.5
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
Keywords: drkonqi
Depends on:
Reported: 2014-02-16 13:41 UTC by giluxxx
Modified: 2014-02-16 15:06 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Note You need to log in before you can comment on or make changes to this bug.
Description giluxxx 2014-02-16 13:41:59 UTC
Application: kwin (4.11.5)
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:

press play on world of tanks launcher

also happens when starting a game from Steam client running through wine

used to be fine before update

-- Backtrace:
Application: KWin (kwin), signal: Segmentation fault
Using host libthread_db library "/lib64/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f4f7f98a900 (LWP 2907))]

Thread 2 (Thread 0x7f4f7165a700 (LWP 2919)):
#0  0x0000003b4b20bd20 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x0000003b6938f09b in QTWTF::TCMalloc_PageHeap::scavengerThread() () from /lib64/libQtScript.so.4
#2  0x0000003b6938f0d9 in QTWTF::TCMalloc_PageHeap::runScavengerThread(void*) () from /lib64/libQtScript.so.4
#3  0x0000003b4b207f33 in start_thread () from /lib64/libpthread.so.0
#4  0x0000003b4aaf4ded in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f4f7f98a900 (LWP 2907)):
[KCrash Handler]
#5  0x00007f4ee8c6a4a2 in gen7_update_renderbuffer_surface () from /usr/lib64/dri/i965_dri.so
#6  0x00007f4ee8c5b6cc in brw_update_renderbuffer_surfaces () from /usr/lib64/dri/i965_dri.so
#7  0x00007f4ee8c30faa in brw_upload_state () from /usr/lib64/dri/i965_dri.so
#8  0x00007f4ee8beceb6 in brw_draw_prims () from /usr/lib64/dri/i965_dri.so
#9  0x00007f4ee8710de0 in vbo_draw_arrays () from /lib64/libdricore9.2.5.so.1
#10 0x0000003b7321239e in KWin::GLVertexBuffer::draw(QRegion const&, unsigned int, int, int, bool) () from /lib64/libkwinglutils.so.1
#11 0x0000003b73215599 in KWin::GLVertexBuffer::render(QRegion const&, unsigned int, bool) () from /lib64/libkwinglutils.so.1
#12 0x0000003b7321560d in KWin::GLVertexBuffer::render(unsigned int) () from /lib64/libkwinglutils.so.1
#13 0x0000003b606db68a in KWin::SceneOpenGL2::doPaintBackground(QVector<float> const&) () from /lib64/libkdeinit4_kwin.so
#14 0x0000003b606def85 in KWin::SceneOpenGL::paintBackground(QRegion) () from /lib64/libkdeinit4_kwin.so
#15 0x0000003b606cea16 in KWin::Scene::paintSimpleScreen(int, QRegion) () from /lib64/libkdeinit4_kwin.so
#16 0x0000003b606cc5a5 in KWin::Scene::finalPaintScreen(int, QRegion, KWin::ScreenPaintData&) () from /lib64/libkdeinit4_kwin.so
#17 0x0000003b606efc8d in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /lib64/libkdeinit4_kwin.so
#18 0x0000003b74611aaf in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /lib64/libkwineffects.so.1
#19 0x0000003b606efc3a in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /lib64/libkdeinit4_kwin.so
#20 0x0000003b74611aaf in KWin::Effect::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /lib64/libkwineffects.so.1
#21 0x0000003b606efc3a in KWin::EffectsHandlerImpl::paintScreen(int, QRegion, KWin::ScreenPaintData&) () from /lib64/libkdeinit4_kwin.so
#22 0x0000003b606cebe6 in KWin::Scene::paintScreen(int*, QRegion const&, QRegion const&, QRegion*, QRegion*) () from /lib64/libkdeinit4_kwin.so
#23 0x0000003b606e241e in KWin::SceneOpenGL::paint(QRegion, QList<KWin::Toplevel*>) () from /lib64/libkdeinit4_kwin.so
#24 0x0000003b606c635b in KWin::Compositor::performCompositing() () from /lib64/libkdeinit4_kwin.so
#25 0x0000003b5579d0a1 in QObject::event(QEvent*) () from /lib64/libQtCore.so.4
#26 0x0000003b57fc9d8c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /lib64/libQtGui.so.4
#27 0x0000003b57fd0725 in QApplication::notify(QObject*, QEvent*) () from /lib64/libQtGui.so.4
#28 0x0000003b5aa4a7da in KApplication::notify(QObject*, QEvent*) () from /lib64/libkdeui.so.5
#29 0x0000003b5578439d in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /lib64/libQtCore.so.4
#30 0x0000003b557b5ae3 in QTimerInfoList::activateTimers() () from /lib64/libQtCore.so.4
#31 0x0000003b557b6548 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#32 0x0000003b5806c5d6 in QEventDispatcherX11::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtGui.so.4
#33 0x0000003b55782edf in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#34 0x0000003b5578322d in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /lib64/libQtCore.so.4
#35 0x0000003b55788749 in QCoreApplication::exec() () from /lib64/libQtCore.so.4
#36 0x0000003b6067e5a1 in kdemain () from /lib64/libkdeinit4_kwin.so
#37 0x0000003b4aa21d65 in __libc_start_main () from /lib64/libc.so.6
#38 0x0000000000400a01 in _start ()

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

Possible duplicates by query: bug 331031, bug 323303, bug 321352, bug 319758, bug 317796.

Reported using DrKonqi
Comment 1 Thomas Lübking 2014-02-16 13:46:34 UTC
driver bug, pot. due to multiple GL contexts.
suspend the compositor before starting a game (Shift+Alt+F12) - you can also use a window rule to do that automatically.

> used to be fine before update
What update?
KDE, kernel, MESA, wine, entier distro?

*** This bug has been marked as a duplicate of bug 299333 ***
Comment 2 giluxxx 2014-02-16 14:31:29 UTC
well the update consisted of 120+ packages so hard to tell..

then start game
this results in a black screen with only mouse pointer visable... and nothing else happens..

only thing to snap out of it is doing 
again which results in the same crash again
Comment 3 Thomas Lübking 2014-02-16 14:37:20 UTC
seems a more general GL issue then and rather induced by wine/the game (while compositing is suspended, kwin neither holds a GL context nor impacts the scanout buffer, ie. "what you see on screen")

I assume that glxgears works fine (w/ and w/o compositing)?
Any related errors in ~/.xsession-errors, /var/log/Xorg.0.log, dmesg?
You can also export MESA / libgl debug envs to check for issues:

MESA_DEBUG=1 LIBGL_DEBUG=verbose glxinfo

See http://www.mesa3d.org/envvars.html for a full reference.
Comment 4 giluxxx 2014-02-16 15:06:16 UTC
made me think..

glxgears works..
optirun glxgears works

optirun -b primus glxgears invokes the bug..
guess this should be tackled by bumblebee team