Bug 321643 - Kwin crashes with OpenGL compositing is enabled
Summary: Kwin crashes with OpenGL compositing is enabled
Status: RESOLVED DUPLICATE of bug 327310
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 4.10.80
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-26 15:37 UTC by Mikołaj Kowalski
Modified: 2013-11-19 15:59 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 Mikołaj Kowalski 2013-06-26 15:37:19 UTC
Application: kwin (4.10.80)
KDE Platform Version: 4.10.80 (Compiled from sources)
Qt Version: 4.8.4
Operating System: Linux 3.9.2-pf x86_64
Distribution: "Gentoo Base System release 2.2"

-- Information about the crash:
- What I was doing when the application crashed:
1. run kwin --replace in console
2. set OpenGL 3.1 backend and raster graphicssytem
3. apply settings and push reenable opengl detection button
4. crash

- Custom settings of the application:

OpenGL vendor string:                   Intel Open Source Technology Center
OpenGL renderer string:                 Mesa DRI Intel(R) Ironlake Mobile 
OpenGL version string:                  2.1 Mesa 9.1.3
OpenGL shading language version string: 1.20
Driver:                                 Intel
GPU class:                              i965
OpenGL version:                         2.1
GLSL version:                           1.20
Mesa version:                           9.1.3
X server version:                       1.14.1
Linux kernel version:                   3.9.2
Direct rendering:                       yes
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no


kwin and mesa compiled with clang CFLAGS="-O0 -g" 


Some messages from the console:
brwCreateContext: failed to init intel context
kwin(14260) KWin::x11ErrorHandler: kwin: X Error ( "error: GLXBadFBConfig[DAMAGE+27], request <unknown> [152:34], resource: 0x5e" ) 
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
kwin: /var/tmp/portage/x11-libs/libX11-1.5.0/work/libX11-1.5.0/src/xcb_io.c:273: xcb_generic_reply_t *poll_for_event(Display *): Assertion `! xcb_xlib_threads_sequence_lost' failed.
Application::crashHandler() called with signal 6; recent crashes: 1
KCrash: Application 'kwin' crashing...


Note that neither of OpenGL compositing works for me. Kwin crashes and leaves no window decorations. I'm not able to get backtrace for OpenGL 2.0 and 1.2 settings because the Dr Konqi dialog doesn't shows up.

I am aware that my GPU doesn't support OpenGL 3.1

The crash can be reproduced every time.

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

Thread 4 (Thread 0x7f666f4e4700 (LWP 14261)):
#0  0x00007f66783a314e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f6678632215 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007f6678625427 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#3  0x00007f6678631d28 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f667839eec6 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f667a01e98d in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7f666d607700 (LWP 14262)):
#0  0x00007f66783a314e in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007f6678632215 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007f6678625427 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#3  0x00007f6678631d28 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#4  0x00007f667839eec6 in start_thread () from /lib64/libpthread.so.0
#5  0x00007f667a01e98d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7f666ce06700 (LWP 14263)):
#0  0x00007f667a018323 in select () from /lib64/libc.so.6
#1  0x00007f667871ba2f in ?? () from /usr/lib64/qt4/libQtCore.so.4
#2  0x00007f6678631d28 in ?? () from /usr/lib64/qt4/libQtCore.so.4
#3  0x00007f667839eec6 in start_thread () from /lib64/libpthread.so.0
#4  0x00007f667a01e98d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7f6670b547c0 (LWP 14260)):
[KCrash Handler]
#6  0x00007f6679f6bc15 in raise () from /lib64/libc.so.6
#7  0x00007f6679f6d08b in abort () from /lib64/libc.so.6
#8  0x00007f6679f64c7e in ?? () from /lib64/libc.so.6
#9  0x00007f6679f64d22 in __assert_fail () from /lib64/libc.so.6
#10 0x00007f6678e142b1 in poll_for_event (dpy=0x110fef0) at /var/tmp/portage/x11-libs/libX11-1.5.0/work/libX11-1.5.0/src/xcb_io.c:270
#11 0x00007f6678e12c05 in poll_for_response (dpy=0x110fef0) at /var/tmp/portage/x11-libs/libX11-1.5.0/work/libX11-1.5.0/src/xcb_io.c:288
#12 0x00007f6678e12588 in _XEventsQueued (dpy=0x110fef0, mode=1) at /var/tmp/portage/x11-libs/libX11-1.5.0/work/libX11-1.5.0/src/xcb_io.c:362
#13 0x00007f6678e13515 in _XFlush (dpy=0x110fef0) at /var/tmp/portage/x11-libs/libX11-1.5.0/work/libX11-1.5.0/src/xcb_io.c:513
#14 0x00007f6678e150ff in _XGetRequest (dpy=0x110fef0, type=5 '\005', len=20) at /var/tmp/portage/x11-libs/libX11-1.5.0/work/libX11-1.5.0/src/XlibInt.c:1973
#15 0x00007f6678d397e0 in DRI2GetBuffersWithFormat (dpy=0x110fef0, drawable=79692080, width=0x151ae88, height=0x151ae8c, attachments=0x7fffaa1c1da0, count=1, outCount=0x7fffaa1c1e38) at dri2.c:476
#16 0x00007f6678d364b1 in dri2GetBuffersWithFormat (driDrawable=0x151ae60, width=0x151ae88, height=0x151ae8c, attachments=0x7fffaa1c1da0, count=1, out_count=0x7fffaa1c1e38, loaderPrivate=0x151ad80) at dri2_glx.c:893
#17 0x00007f666c2bf94a in intel_query_dri2_buffers (intel=0x1523eb0, drawable=0x151ae60, buffers=0x7fffaa1c1e40, buffer_count=0x7fffaa1c1e38) at intel_context.c:1011
#18 0x00007f666c2bf4c6 in intel_update_renderbuffers (context=0x151b740, drawable=0x151ae60) at intel_context.c:355
#19 0x00007f666c2bfc0a in intel_prepare_render (intel=0x1523eb0) at intel_context.c:408
#20 0x00007f666c2c20e2 in intelMakeCurrent (driContextPriv=0x151b740, driDrawPriv=0x151ae60, driReadPriv=0x151ae60) at intel_context.c:945
#21 0x00007f666c38a287 in driBindContext (pcp=0x151b740, pdp=0x151ae60, prp=0x151ae60) at dri_util.c:382
#22 0x00007f6678d380cb in dri2_bind_context (context=0x151b5a0, old=0x7f6678d50788 <dummyContext>, draw=79692081, read=79692081) at dri2_glx.c:172
#23 0x00007f6678cf36f2 in MakeContextCurrent (dpy=0x110fef0, draw=79692081, read=79692081, gc_user=0x151b5a0) at glxcurrent.c:269
#24 0x00007f6678cf34c9 in glXMakeCurrent (dpy=0x110fef0, draw=79692081, gc=0x151b5a0) at glxcurrent.c:303
#25 0x00007f667a56dfa3 in KWin::GlxBackend::initRenderingContext (this=0x15158d0) at /var/tmp/portage/kde-base/kwin-4.10.80/work/kwin-4.10.80/kwin/glxbackend.cpp:201
#26 0x00007f667a56c743 in KWin::GlxBackend::init (this=0x15158d0) at /var/tmp/portage/kde-base/kwin-4.10.80/work/kwin-4.10.80/kwin/glxbackend.cpp:91
#27 0x00007f667a56c574 in KWin::GlxBackend::GlxBackend (this=0x15158d0) at /var/tmp/portage/kde-base/kwin-4.10.80/work/kwin-4.10.80/kwin/glxbackend.cpp:49
#28 0x00007f667a557ef2 in KWin::SceneOpenGL::createScene () at /var/tmp/portage/kde-base/kwin-4.10.80/work/kwin-4.10.80/kwin/scene_opengl.cpp:199
#29 0x00007f667a52ee26 in KWin::Compositor::slotCompositingOptionsInitialized (this=0x127e180) at /var/tmp/portage/kde-base/kwin-4.10.80/work/kwin-4.10.80/kwin/composite.cpp:201
#30 0x00007f667a45292d in KWin::Compositor::qt_static_metacall (_o=0x127e180, _c=QMetaObject::InvokeMetaMethod, _id=16, _a=0x7fffaa1c2920) at /var/tmp/portage/kde-base/kwin-4.10.80/work/kwin-4.10.80_build/kwin/moc_composite.cpp:194
#31 0x00007f667875cde1 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/qt4/libQtCore.so.4
#32 0x00007f6678621517 in QFutureWatcherBase::event(QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#33 0x00007f6677aa3384 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#34 0x00007f6677aa8ae3 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/qt4/libQtGui.so.4
#35 0x00007f6679636c83 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#36 0x00007f667a4af227 in KWin::Application::notify (this=0x7fffaa1c34d8, o=0x12b7960, e=0x7f66600008c0) at /var/tmp/portage/kde-base/kwin-4.10.80/work/kwin-4.10.80/kwin/main.cpp:423
#37 0x00007f667874582c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/qt4/libQtCore.so.4
#38 0x00007f66787492ea in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib64/qt4/libQtCore.so.4
#39 0x00007f6677b45957 in ?? () from /usr/lib64/qt4/libQtGui.so.4
#40 0x00007f6678743d52 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#41 0x00007f6678743faf in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/qt4/libQtCore.so.4
#42 0x00007f6678749615 in QCoreApplication::exec() () from /usr/lib64/qt4/libQtCore.so.4
#43 0x00007f667a4b0e84 in kdemain (argc=2, argv=0x7fffaa1c3858) at /var/tmp/portage/kde-base/kwin-4.10.80/work/kwin-4.10.80/kwin/main.cpp:591
#44 0x00000000004007e2 in main (argc=2, argv=0x7fffaa1c3858) at /var/tmp/portage/kde-base/kwin-4.10.80/work/kwin-4.10.80_build/kwin/kwin_dummy.cpp:3

Reported using DrKonqi
Comment 1 Thomas Lübking 2013-06-26 17:46:44 UTC
Not getting dr. konqui doesn't sound sane at all.
Can you run kwin in gdb? (from vt1)

export DISPLAY=:0
gdb kwin 2>&1 | tee kwin.gdb
run
[get crash]
bt
[enter enter enter until there's no more output]
detach
quit

Also for completeness sake, please attach the output of "gxlinfo".

I assume OpenGL in general (like glxgears) works?
Does "kwin_gles" work?
Comment 2 Thomas Lübking 2013-08-03 16:23:56 UTC
please reply on opengl in gerenal (glxgears) works and in case please also provide the output of
$ glxinfo
$ qdbus org.kde.kwin /KWin supportInformation
and /var/log/Xorg.0.log - this one after the crash occured

Thanks
Comment 3 Thomas Lübking 2013-11-19 15:59:12 UTC
Lacks information for verification, but is likely bug #327310

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