Bug 332784 - Kwin crashes, no composite
Summary: Kwin crashes, no composite
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: drkonqi
: 332926 332970 333088 334117 334219 334237 334349 334398 334402 334438 334521 337969 (view as bug list)
Depends on:
Blocks:
 
Reported: 2014-03-29 20:02 UTC by Alex
Modified: 2014-09-25 10:38 UTC (History)
19 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
New crash information added by DrKonqi (4.85 KB, text/plain)
2014-04-05 00:56 UTC, buzzmandt
Details
New crash information added by DrKonqi (3.41 KB, text/plain)
2014-05-10 15:24 UTC, dilnix
Details
New crash information added by DrKonqi (3.01 KB, text/plain)
2014-05-10 23:08 UTC, 3ndymion
Details
New crash information added by DrKonqi (6.41 KB, text/plain)
2014-05-11 15:45 UTC, Niclas Moeslund Overby
Details
backtrace (6.75 KB, text/plain)
2014-09-24 14:21 UTC, Maarten
Details
glxinfo output (9.84 KB, text/plain)
2014-09-25 09:16 UTC, Maarten
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex 2014-03-29 20:02:29 UTC
Application: kwin (4.11.8)
KDE Platform Version: 4.12.95
Qt Version: 4.8.6
Operating System: Linux 3.13.0-20-generic x86_64
Distribution: Ubuntu Trusty Tahr (development branch)

-- Information about the crash:
- What I was doing when the application crashed:
Firstly, reboot my system after update.
Secondary, try to change Compositing type.
- Unusual behavior I noticed:
No composite, after update

The crash can be reproduced every time.

-- Backtrace:
Application: KWin (kwin), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[KCrash Handler]
#6  0x00007ffdc6846f79 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#7  0x00007ffdc684a388 in __GI_abort () at abort.c:89
#8  0x00007ffdc683fe36 in __assert_fail_base (fmt=0x7ffdc71204ce "%s%s%s:%u: %s%s\320\237\321\200\320\276\320\262\320\265\321\200\320\276\321\207\320\275\320\276\320\265 \321\203\321\202\320\262\320\265\321\200\320\266\320\264\320\265\320\275\320\270\320\265 \302\253%s\302\273 \320\275\320\265 \320\262\321\213\320\277\320\276\320\273\320\275\320\265\320\275\320\276.\n%n", assertion=assertion@entry=0x7ffda3cf2a63 "brw->hw_ctx != ((void *)0)", file=file@entry=0x7ffda3cf2a28 "../../../../../../../src/mesa/drivers/dri/i965/brw_reset.c", line=line@entry=43, function=function@entry=0x7ffda3cf2a80 <__PRETTY_FUNCTION__.35445> "brw_get_graphics_reset_status") at assert.c:92
#9  0x00007ffdc683fee2 in __GI___assert_fail (assertion=assertion@entry=0x7ffda3cf2a63 "brw->hw_ctx != ((void *)0)", file=file@entry=0x7ffda3cf2a28 "../../../../../../../src/mesa/drivers/dri/i965/brw_reset.c", line=line@entry=43, function=function@entry=0x7ffda3cf2a80 <__PRETTY_FUNCTION__.35445> "brw_get_graphics_reset_status") at assert.c:101
#10 0x00007ffda3bc1b25 in brw_get_graphics_reset_status (ctx=<optimized out>) at ../../../../../../../src/mesa/drivers/dri/i965/brw_reset.c:43
#11 0x00007ffda39493e0 in _mesa_GetGraphicsResetStatusARB () at ../../../../src/mesa/main/getstring.c:327
#12 0x00007ffdc6cb2959 in KWin::SceneOpenGL::paint (this=this@entry=0x15012b0, damage=..., toplevels=...) at ../../kwin/scene_opengl.cpp:372
#13 0x00007ffdc6cb2d07 in KWin::SceneOpenGL1::paint (this=0x15012b0, damage=..., windows=...) at ../../kwin/scene_opengl.cpp:875
#14 0x00007ffdc6c977f3 in KWin::Compositor::performCompositing (this=this@entry=0xeb4370) at ../../kwin/composite.cpp:618
#15 0x00007ffdc6c98aef in KWin::Compositor::slotCompositingOptionsInitialized (this=0xeb4370) at ../../kwin/composite.cpp:273
#16 0x00007ffdc6c213d5 in KWin::Compositor::qt_static_metacall (_o=<optimized out>, _id=<optimized out>, _a=<optimized out>, _c=<optimized out>) at moc_composite.cpp:193
#17 0x00007ffdc36c687a in QMetaObject::activate (sender=0xe7b160, m=<optimized out>, local_signal_index=<optimized out>, argv=0x0) at kernel/qobject.cpp:3539
#18 0x00007ffdc35a0b18 in QFutureWatcherBase::event (this=<optimized out>, event=0x7ffda40008c0) at concurrent/qfuturewatcher.cpp:344
#19 0x00007ffdc2a4be2c in QApplicationPrivate::notify_helper (this=this@entry=0xd287e0, receiver=receiver@entry=0xe7b160, e=e@entry=0x7ffda40008c0) at kernel/qapplication.cpp:4567
#20 0x00007ffdc2a524a0 in QApplication::notify (this=this@entry=0x7fff5ce231c0, receiver=receiver@entry=0xe7b160, e=e@entry=0x7ffda40008c0) at kernel/qapplication.cpp:4353
#21 0x00007ffdc554ebaa in KApplication::notify (this=0x7fff5ce231c0, receiver=0xe7b160, event=0x7ffda40008c0) at ../../kdeui/kernel/kapplication.cpp:311
#22 0x00007ffdc36b24dd in QCoreApplication::notifyInternal (this=0x7fff5ce231c0, receiver=receiver@entry=0xe7b160, event=event@entry=0x7ffda40008c0) at kernel/qcoreapplication.cpp:953
#23 0x00007ffdc36b5b3d in sendEvent (event=0x7ffda40008c0, receiver=0xe7b160) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#24 QCoreApplicationPrivate::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0, data=0xcb21f0) at kernel/qcoreapplication.cpp:1577
#25 0x00007ffdc36b5fe3 in QCoreApplication::sendPostedEvents (receiver=receiver@entry=0x0, event_type=event_type@entry=0) at kernel/qcoreapplication.cpp:1470
#26 0x00007ffdc2aee32c in sendPostedEvents () at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:236
#27 QEventDispatcherX11::processEvents (this=0xcb3af0, flags=...) at kernel/qeventdispatcher_x11.cpp:75
#28 0x00007ffdc36b10af in QEventLoop::processEvents (this=this@entry=0x7fff5ce23030, flags=...) at kernel/qeventloop.cpp:149
#29 0x00007ffdc36b13a5 in QEventLoop::exec (this=this@entry=0x7fff5ce23030, flags=...) at kernel/qeventloop.cpp:204
#30 0x00007ffdc36b6b79 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1225
#31 0x00007ffdc2a4a37c in QApplication::exec () at kernel/qapplication.cpp:3828
#32 0x00007ffdc6c51856 in kdemain (argc=3, argv=0x7fff5ce23308) at ../../kwin/main.cpp:597
#33 0x00007ffdc6831ec5 in __libc_start_main (main=0x4006d0 <main(int, char**)>, argc=3, argv=0x7fff5ce23308, init=<optimized out>, fini=<optimized out>, rtld_fini=<optimized out>, stack_end=0x7fff5ce232f8) at libc-start.c:287
#34 0x00000000004006fe in _start ()

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

Possible duplicates by query: bug 330440, bug 329984, bug 328718, bug 328049, bug 328004.

Reported using DrKonqi
Comment 2 Alex 2014-03-30 05:41:42 UTC
Thank you!
Comment 3 FabiB 2014-03-31 11:02:34 UTC
As little dirty workaround - you can use the egl backend. wich wont crash here:
KWIN_OPENGL_INTERFACE="egl" kwin --replace& ##to try it (make sure you enable effects again)

or 
mkdir $(kde4-config --localprefix)/env
echo 'export KWIN_OPENGL_INTERFACE="egl"' > $(kde4-config --localprefix)/env/kwinegl.sh
chmod +x $(kde4-config --localprefix)/env/kwinegl.sh

to make it permanent for your session
Comment 4 Thomas Lübking 2014-04-01 20:56:31 UTC
*** Bug 332926 has been marked as a duplicate of this bug. ***
Comment 5 Thomas Lübking 2014-04-02 14:33:08 UTC
*** Bug 332970 has been marked as a duplicate of this bug. ***
Comment 6 buzzmandt 2014-04-05 00:56:37 UTC
Created attachment 85959 [details]
New crash information added by DrKonqi

kwin (4.11.8) on KDE Platform 4.12.97 using Qt 4.8.6

- What I was doing when the application crashed:
Just trying to start composite kwin effects, and doesn't matter which compositing type is chosen. Crash every time

Note:
as suggested did
KWIN_OPENGL_INTERFACE="egl" kwin --replace&
and retested, effects worked perfectly with compositing type opengl2.0

-- Backtrace (Reduced):
#6  0x00007f01b4862f79 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#7  0x00007f01b4866388 in __GI_abort () at abort.c:89
#8  0x00007f01b485be36 in __assert_fail_base (fmt=0x7f01b49ad718 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x7f0194d9ca63 "brw->hw_ctx != ((void *)0)", file=file@entry=0x7f0194d9ca28 "../../../../../../../src/mesa/drivers/dri/i965/brw_reset.c", line=line@entry=43, function=function@entry=0x7f0194d9ca80 <__PRETTY_FUNCTION__.35445> "brw_get_graphics_reset_status") at assert.c:92
#9  0x00007f01b485bee2 in __GI___assert_fail (assertion=assertion@entry=0x7f0194d9ca63 "brw->hw_ctx != ((void *)0)", file=file@entry=0x7f0194d9ca28 "../../../../../../../src/mesa/drivers/dri/i965/brw_reset.c", line=line@entry=43, function=function@entry=0x7f0194d9ca80 <__PRETTY_FUNCTION__.35445> "brw_get_graphics_reset_status") at assert.c:101
#10 0x00007f0194c6bb25 in brw_get_graphics_reset_status (ctx=<optimized out>) at ../../../../../../../src/mesa/drivers/dri/i965/brw_reset.c:43
Comment 7 Martin Flöser 2014-04-05 10:10:42 UTC
*** Bug 333088 has been marked as a duplicate of this bug. ***
Comment 8 Alex 2014-04-14 20:48:39 UTC
Recently updates fixed this issue for me.
Comment 9 Thomas Lübking 2014-04-30 08:33:41 UTC
*** Bug 334117 has been marked as a duplicate of this bug. ***
Comment 10 Thomas Lübking 2014-05-02 11:32:02 UTC
*** Bug 334219 has been marked as a duplicate of this bug. ***
Comment 11 Martin Flöser 2014-05-04 08:58:39 UTC
*** Bug 334237 has been marked as a duplicate of this bug. ***
Comment 12 Thomas Lübking 2014-05-04 21:42:07 UTC
*** Bug 334349 has been marked as a duplicate of this bug. ***
Comment 13 Martin Flöser 2014-05-06 05:32:40 UTC
*** Bug 334398 has been marked as a duplicate of this bug. ***
Comment 14 Thomas Lübking 2014-05-06 09:11:28 UTC
*** Bug 334402 has been marked as a duplicate of this bug. ***
Comment 15 Thomas Lübking 2014-05-06 20:23:26 UTC
*** Bug 334438 has been marked as a duplicate of this bug. ***
Comment 16 Thomas Lübking 2014-05-08 17:37:39 UTC
*** Bug 334521 has been marked as a duplicate of this bug. ***
Comment 17 dilnix 2014-05-10 15:24:39 UTC
Created attachment 86561 [details]
New crash information added by DrKonqi

kwin (4.11.9) on KDE Platform 4.12.5 using Qt 4.8.6

- What I was doing when the application crashed:
Just made "yum update -y && reboot".
After restart there is no effects and not posible to enable it - crash is result.

-- Backtrace (Reduced):
#9  0x00007f7780751ce5 in brw_get_graphics_reset_status () from /usr/lib64/dri/i965_dri.so
#10 0x00007f77804d0920 in _mesa_GetGraphicsResetStatusARB () from /usr/lib64/dri/i965_dri.so
#11 0x00000039cf6e2a09 in KWin::SceneOpenGL::paint(QRegion, QList<KWin::Toplevel*>) () from /lib64/libkdeinit4_kwin.so
#12 0x00000039cf6c672b in KWin::Compositor::performCompositing() () from /lib64/libkdeinit4_kwin.so
#13 0x00000039cf6c7aef in KWin::Compositor::slotCompositingOptionsInitialized() () from /lib64/libkdeinit4_kwin.so
Comment 18 3ndymion 2014-05-10 23:08:01 UTC
Created attachment 86567 [details]
New crash information added by DrKonqi

kwin (4.11.9) on KDE Platform 4.12.5 using Qt 4.8.6

- What I was doing when the application crashed:

Kwin crashes just from turning the computer on or rebooting.  Desktop effects cannot be enabled or used anymore.  This started happening after kernel upgrade to 3.14.2.  Now on kernel 3.14.3, still the same.  This does not happen with kernel 3.13.10.

-- Backtrace (Reduced):
#9  0x00007fd0efbbfce5 in brw_get_graphics_reset_status () from /usr/lib64/dri/i965_dri.so
#10 0x00007fd0ef93e920 in _mesa_GetGraphicsResetStatusARB () from /usr/lib64/dri/i965_dri.so
#11 0x0000003de04e2a09 in KWin::SceneOpenGL::paint(QRegion, QList<KWin::Toplevel*>) () from /lib64/libkdeinit4_kwin.so
#12 0x0000003de04c672b in KWin::Compositor::performCompositing() () from /lib64/libkdeinit4_kwin.so
#13 0x0000003de04c7aef in KWin::Compositor::slotCompositingOptionsInitialized() () from /lib64/libkdeinit4_kwin.so
Comment 19 Niclas Moeslund Overby 2014-05-11 15:45:01 UTC
Created attachment 86582 [details]
New crash information added by DrKonqi

kwin (4.11.9) on KDE Platform 4.12.5 using Qt 4.8.6

- What I was doing when the application crashed:
Changed compositing from XRender to OpenGL 3.1.

-- Backtrace (Reduced):
#6  0x000000318f235c39 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#7  0x000000318f237348 in __GI_abort () at abort.c:89
#8  0x000000318f22eb96 in __assert_fail_base (fmt=0x318f37bd88 "%s%s%s:%u: %s%sAssertion `%s' failed.\n%n", assertion=assertion@entry=0x7fa726cf03c0 "brw->hw_ctx != ((void *)0)", file=file@entry=0x7fa726cf03b4 "brw_reset.c", line=line@entry=43, function=function@entry=0x7fa726cf03e0 <__PRETTY_FUNCTION__.35429> "brw_get_graphics_reset_status") at assert.c:92
#9  0x000000318f22ec42 in __GI___assert_fail (assertion=assertion@entry=0x7fa726cf03c0 "brw->hw_ctx != ((void *)0)", file=file@entry=0x7fa726cf03b4 "brw_reset.c", line=line@entry=43, function=function@entry=0x7fa726cf03e0 <__PRETTY_FUNCTION__.35429> "brw_get_graphics_reset_status") at assert.c:101
#10 0x00007fa726bbdce5 in brw_get_graphics_reset_status (ctx=<optimized out>) at brw_reset.c:43
Comment 20 Thomas Lübking 2014-05-11 18:24:49 UTC
As notice for the recent new reporters:
This is a bug in MESA, exposed by kernel 3.14 and should be fixed in recent MESA versions. kwin_gles should be not affected.

https://bugs.freedesktop.org/show_bug.cgi?id=75723
https://bugs.launchpad.net/ubuntu/+source/kde-workspace/+bug/1299499
Comment 21 dilnix 2014-05-11 19:10:58 UTC
Thank you Thomas.
11.05.2014 21:24 пользователь "Thomas Lübking" <thomas.luebking@gmail.com>
написал:

> https://bugs.kde.org/show_bug.cgi?id=332784
>
> --- Comment #20 from Thomas Lübking <thomas.luebking@gmail.com> ---
> As notice for the recent new reporters:
> This is a bug in MESA, exposed by kernel 3.14 and should be fixed in recent
> MESA versions. kwin_gles should be not affected.
>
> https://bugs.freedesktop.org/show_bug.cgi?id=75723
> https://bugs.launchpad.net/ubuntu/+source/kde-workspace/+bug/1299499
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.
Comment 22 Maarten 2014-05-15 09:04:51 UTC
latest update includes mesa-* and solves this problem for me
Comment 23 Thomas Lübking 2014-08-02 06:32:07 UTC
*** Bug 337969 has been marked as a duplicate of this bug. ***
Comment 24 Maarten 2014-09-15 10:01:38 UTC
The behaviour is back again, after the latest update (inc new kernel and xorg-x11-xinit). Booting into older kernel does not solve problem
Comment 25 Thomas Lübking 2014-09-15 11:12:34 UTC
exact same backtrace?
Comment 26 Maarten 2014-09-24 14:21:09 UTC
Created attachment 88830 [details]
backtrace

backtrace after selecting and applying openGL 3.1
Comment 27 Thomas Lübking 2014-09-24 14:41:58 UTC
That's famous bug #327310
What's the output of glxinfo? (please *attach* it, it's a lot of text ;-)
Comment 28 Maarten 2014-09-25 09:16:02 UTC
Created attachment 88835 [details]
glxinfo output
Comment 29 Maarten 2014-09-25 09:26:20 UTC
thanks for pointing to that famous bug. OpenGL 2.0 works for now.
Comment 30 Thomas Lübking 2014-09-25 10:38:24 UTC
> OpenGL renderer string: Mesa DRI Intel(R) Q45/Q43 
> OpenGL version string: 2.1 Mesa 10.1.5
> OpenGL shading language version string: 1.20

Notice that the GMA X4500 doesn't support OpenGL 3 anyway, so if it wouldn't crash, it would silently fall back to GL 2.1 (as it's supposed to be)