Bug 381004

Summary: kwin_core: Failed to initialize compositing, compositing disabled
Product: [Plasma] kwin Reporter: Bernie Innocenti <bernie>
Component: compositingAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.10.1   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: kwinrc
glxinfo output

Description Bernie Innocenti 2017-06-09 04:33:22 UTC
All compositing effects are disabled in my desktop. Happens every time I log in. I suspect this is a regression from Plasma 5.9.x, but I'm not 100% sure.

This system has the Nvidia proprietary drivers 381.22-2 on GM204 (GeForce GTX 970). Direct rendering works and OpenGL applications work correctly.

I can't test with nouveau due to a kernel bug affecting my particular card (https://bugs.freedesktop.org/show_bug.cgi?id=94990).


The user journal contains these log entries:

Jun 09 00:24:26 goreboot kwin_x11[4546]: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 24852, resource id: 499, major code: 14 (GetGeometry), minor code: 0
Jun 09 00:24:26 goreboot kwin_x11[4546]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 24851, resource id: 499, major code: 3 (GetWindowAttributes), minor code: 0
Jun 09 00:24:26 goreboot kwin_x11[4546]: kwin_core: Failed to initialize compositing, compositing disabled
Comment 1 Martin Flöser 2017-06-17 12:26:12 UTC
Please attach your kwinrc and provide the output of glxinfo.
Comment 2 Bernie Innocenti 2017-06-20 02:31:07 UTC
Created attachment 106177 [details]
kwinrc
Comment 3 Bernie Innocenti 2017-06-20 02:31:44 UTC
Created attachment 106178 [details]
glxinfo output
Comment 4 Bernie Innocenti 2017-06-20 02:33:48 UTC
From kwin 5.10.2:

Jun 18 18:42:29 goreboot kwin_x11[22802]: kwin_core: Failed to initialize compositing, compositing disabled
Jun 18 18:42:29 goreboot kwin_x11[22802]: kwin_core: Make Context Current failed
Jun 18 18:42:29 goreboot kwin_x11[22802]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 29714, resource id: 2097265, major code: 10 (UnmapWindow), minor code: 0
Jun 18 18:42:29 goreboot kwin_x11[22802]: QXcbConnection: XCB error: 3 (BadWindow), sequence: 29713, resource id: 2097265, major code: 2 (ChangeWindowAttributes), minor code: 0
Comment 5 Martin Flöser 2017-06-20 14:57:03 UTC
> GLPlatformInterface=egl

You are using egl although that is not supported by NVIDIA. Delete that line from your kwinrc and it will work again.
Comment 6 Bernie Innocenti 2017-06-20 15:06:46 UTC
I don't remember setting EGL by manually editing the file. Could it be that it was exposed in the GUI in an earlier version of the kcm and it was later removed?

In this case, isn't it a bug that the hidden setting stays around, breaking kwin?

On June 20, 2017 10:57:03 AM EDT, "Martin Flöser" <bugzilla_noreply@kde.org> wrote:
>https://bugs.kde.org/show_bug.cgi?id=381004
>
>Martin Flöser <mgraesslin@kde.org> changed:
>
>           What    |Removed                     |Added
>----------------------------------------------------------------------------
>         Resolution|---                         |INVALID
>             Status|UNCONFIRMED                 |RESOLVED
>
>--- Comment #5 from Martin Flöser <mgraesslin@kde.org> ---
>> GLPlatformInterface=egl
>
>You are using egl although that is not supported by NVIDIA. Delete that
>line
>from your kwinrc and it will work again.