Bug 360033 - Cannot enable compositing with OpenGL GLX
Summary: Cannot enable compositing with OpenGL GLX
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: glx (show other bugs)
Version: 5.5.5
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL: https://git.reviewboard.kde.org/r/127...
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-03 16:04 UTC by m00nraker
Modified: 2021-11-06 22:57 UTC (History)
11 users (show)

See Also:
Latest Commit:
Version Fixed In:
thomas.luebking: NVIDIA+
thomas.luebking: ReviewRequest+


Attachments
additional patch from thomas (520 bytes, patch)
2016-03-08 17:50 UTC, m00nraker
Details
nvidia-settings -q all (2.63 KB, text/plain)
2016-03-15 00:35 UTC, m00nraker
Details
nvidia-settings -q all (155.36 KB, text/plain)
2016-03-15 00:44 UTC, m00nraker
Details
patch to skill self-test (499 bytes, patch)
2016-03-18 19:17 UTC, m00nraker
Details
skip selftest (479 bytes, patch)
2016-03-19 00:34 UTC, Thomas Lübking
Details
Invite the right order (1.06 KB, patch)
2016-03-19 23:37 UTC, Thomas Lübking
Details
Skip Self Tests (559 bytes, patch)
2016-09-10 03:09 UTC, Jason A. Donenfeld
Details

Note You need to log in before you can comment on or make changes to this bug.
Description m00nraker 2016-03-03 16:04:59 UTC
Hi.

I cannot activate compositing for desktop effects. XRender works, but compositing via OpenGL GLX fails.

Software:
openSUSE Leap 42.1 (x86_64) (updated from OBS repos)
KDE Plasma Version 5.5.5 (OBS repo)
Qt: 5.5.1
NVidia-Driver:  304.131 from nvidia-repository
Nouveau is disabled (blacklisted)

Hardware:
Notebook Dell XPS M1710
Graphics: NVidia GeForce Go 7950 GTX 512MB
Specs: http://www.nvidia.com/page/go_7800gtx.html#axzz41qRYMtMf

Some output:

uname -a output:
Linux linux-gss9.suse 4.1.15-8-default #1 SMP PREEMPT Wed Jan 20 16:41:00 UTC 2016 (0e3b3ab) x86_64 x86_64 x86_64 GNU/Linux 

rpm -qa | grep -i nvidia 
nvidia-gfxG02-kmp-default-304.131_k4.1.12_1-38.1.x86_64
nvidia-computeG02-304.131-39.1.x86_64
x11-video-nvidiaG02-304.131-39.1.x86_64

In Plasma Systemsettings/Display/Compositor:
Enable Compositor on startup (checked)
Rendering Backend: OpenGL 2 
OpenGL interface: GLX 

qdbus org.kde.KWin /KWin supportInformation
https://paste.kde.org/peft8eimj

glxinfo output:
https://paste.kde.org/ptbsvexvf

cat /var/log/Xorg.log
https://paste.kde.org/p84hyrmo8

cat .xsession-errors-\:0 
https://paste.kde.org/phtw8rkpk

I also use sddm:
rpm -qa | grep sddm
kcm_sddm-lang-5.5.5-49.1.noarch
sddm-0.13.0-58.16.x86_64
sddm-branding-openSUSE-0.13.0-58.16.x86_64
kcm_sddm-5.5.5-49.1.x86_64

rpm -qa | grep -i mesa
Mesa-libGL1-11.0.8-137.1.x86_64
Mesa-libva-11.1.2-133.1.x86_64
Mesa-libEGL1-32bit-11.0.8-137.1.x86_64
Mesa-libGL-devel-11.0.8-137.1.x86_64
Mesa-libglapi0-11.0.8-137.1.x86_64
Mesa-libEGL1-11.0.8-137.1.x86_64
Mesa-demo-x-8.2.0-4.4.x86_64
Mesa-libGL1-32bit-11.0.8-137.1.x86_64
Mesa-11.0.8-137.1.x86_64
Mesa-libEGL-devel-11.0.8-137.1.x86_64
Mesa-libglapi0-32bit-11.0.8-137.1.x86_64
Mesa-libGLESv2-2-11.0.8-137.1.x86_64
Mesa-32bit-11.0.8-137.1.x86_64

Shell-Output from "kwin_x11 --replace" from a running plasma5 desktop:
QXcbConnection: XCB error: 3 (BadWindow), sequence: 174, resource id: 31457286, major code: 20 (GetProperty), minor code: 0
QXcbConnection: XCB error: 8 (BadMatch), sequence: 1410, resource id: 60817413, major code: 42 (SetInputFocus), minor code: 0
OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 GeForce Go 7950 GTX/PCIe/SSE2
OpenGL version string:                  2.1.2 NVIDIA 304.131
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
Driver:                                 NVIDIA
Driver version:                         304.131
GPU class:                              NV40/G70
OpenGL version:                         2.1.2
GLSL version:                           1.20
X server version:                       1.17.2
Linux kernel version:                   4.1.15
Requires strict binding:                no
GLSL shaders:                           limited
Texture NPOT support:                   yes
Virtual Machine:                        no
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 0, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 1, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.44882, 0.14882, 0.14882, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.50064, 0.80064, 0.50064, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.05054, 0.05054, 0.35054, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 1, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.3, 0, 0, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0.4, 0, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0, 0.5, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.3, 0.4, 0.5, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.134646, 0.044646, 0.044646, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.200256, 0.320256, 0.200256, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.02527, 0.02527, 0.17527, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.360172, 0.390172, 0.420172, 0.6)
kwin_core: ShaderManager self test failed
kwin_core: Failed to initialize compositing, compositing disabled
QXcbConnection: XCB error: 3 (BadWindow), sequence: 1571, resource id: 579, major code: 3 (GetWindowAttributes), minor code: 0

Interesting:
kwin_core ShaderManager self test failed.

Hope u can help ))

Reproducible: Always

Steps to Reproduce:
1. Reinstall OS.
2. Reinstall nvidia drivers
3....

Actual Results:  
No compositing, even if u activate it in systemsettings5.
 

Expected Results:  
Enabled compositing and desktop effects via OpenGL 2 and GLX.
Comment 1 Martin Flöser 2016-03-03 16:16:21 UTC
can you please provide the output of "glxinfo -l"
Comment 2 m00nraker 2016-03-03 16:31:29 UTC
(In reply to Martin Gräßlin from comment #1)
> can you please provide the output of "glxinfo -l"

Some glxinfo output:

glxinfo -l
https://paste.kde.org/pzpytsdko

glxinfo -v
https://paste.kde.org/plmbbcxxh

glxinfo -i
name of display: :0
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  155 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  33
  Current serial number in output stream:  34
Comment 3 Thomas Lübking 2016-03-03 19:04:51 UTC
might relate to https://git.reviewboard.kde.org/r/125883/
Martin, what happened about robust context creation itr?

@moonraker, can you please also attach (avoid paste services, they've limited ttl) ~/.config/kwinrc
Comment 4 m00nraker 2016-03-03 19:22:17 UTC
(In reply to Thomas Lübking from comment #3)
> @moonraker, can you please also attach (avoid paste services, they've
> limited ttl) ~/.config/kwinrc

cat ~/.config/kwinrc

[Compositing]
AnimationSpeed=3
Backend=OpenGL
Enabled=true
GLColorCorrection=false
GLCore=false
GLPlatformInterface=glx
GLPreferBufferSwap=a
GLTextureFilter=1
HiddenPreviews=5
OpenGLIsUnsafe=false
UnredirectFullscreen=false
XRenderSmoothScale=false

[Effect-Zoom]
InitialZoom=1

[Plugins]
kwin4_effect_translucencyEnabled=false
wobblywindowsEnabled=true

[TabBox]
DesktopLayout=org.kde.breeze.desktop
DesktopListLayout=org.kde.breeze.desktop
LayoutName=org.kde.breeze.desktop

In " kcmshell5 kwincompositing" I also tried to change "Tearing prevention(vsync)" from "automatic" to  "Full screen repaints". Seems to have no effect.
Comment 5 Thomas Lübking 2016-03-04 00:26:55 UTC
> GLColorCorrection=false
> GLCore=false

Nope, dead end.
Wrt https://git.reviewboard.kde.org/r/125883/ you should seek to try 5.6 asap.
Comment 6 Martin Flöser 2016-03-04 07:57:22 UTC
(In reply to Thomas Lübking from comment #3)
> might relate to https://git.reviewboard.kde.org/r/125883/

somehow I doubt that NVIDIA got it wrong.

> Martin, what happened about robust context creation itr?

looking at the code I think we are not able to resolve whether we use a robust context if we don't have GL 3. Maybe we need to not try robust context if we don't have GL 3?

> Wrt https://git.reviewboard.kde.org/r/125883/ you should seek to try 5.6 asap.

The robust checks are already in Plasma/5.5 branch...
Comment 7 Thomas Lübking 2016-03-04 09:51:48 UTC
(In reply to Martin Gräßlin from comment #6)

> looking at the code I think we are not able to resolve whether we use a
> robust context if we don't have GL 3.

Why?

        if (options->glCoreProfile()) {
            .....
        }

        if (!ctx && have_robustness)
            ctx = glXCreateContextAttribsARB(display(), fbconfig, 0, direct, attribs_legacy_robustness);

        if (!ctx)
            ...........


attribs_legacy_robustness contain GLX_CONTEXT_ROBUST_ACCESS_BIT_ARB which is tested alongside GL_ARB_robustness on function resolution, so the only possible failure seems
"glGetIntegerv(GL_CONTEXT_FLAGS, &value);" yesno?


I've also no problems creating a GL 2.0 context and the only relevant difference seems that non-legacy nvidia drivers support GL_ARB_robustness and GL_EXT_robustness (but we prefer the ARB resolution anyway)

We could probably add an environment to turn down robust context creation to figure whether it's in that area, but that's gonna be a looooong TaE process.

@m00nraker
capable of compiling a patched kwin? =)
Comment 8 Martin Flöser 2016-03-04 11:07:38 UTC
> "glGetIntegerv(GL_CONTEXT_FLAGS, &value);" yesno?

no. If the creation of the robust context fails we have the extension, and assume that it's a robust context as the GL_CONTEXT_FLAGS is not available in 2.1. So yes the main problem is that the check fails in our case.
Comment 9 m00nraker 2016-03-04 12:21:03 UTC
(In reply to Thomas Lübking from comment #7)
> capable of compiling a patched kwin? =)

Sry, I think no.
Comment 10 Thomas Lübking 2016-03-04 14:02:20 UTC
Because of bug #355522
=> Bottom line would be that we need to store the robustness locally, what also means to wire it up from the backend to the glutils. Ewww.

Something along this?

diff --git a/glxbackend.cpp b/glxbackend.cpp
index c59c647..c632082 100644
--- a/glxbackend.cpp
+++ b/glxbackend.cpp
@@ -286,13 +286,20 @@ bool GlxBackend::initRenderingContext()
 
             if (!ctx)
                 ctx = glXCreateContextAttribsARB(display(), fbconfig, 0, direct, attribs_31_core);
+            if (ctx) {
+                blacklistGLExtension(QByteArrayLiteral("GL_ARB_robustness"));
+                blacklistGLExtension(QByteArrayLiteral("GL_EXT_robustness"));
+            }
         }
 
         if (!ctx && have_robustness)
             ctx = glXCreateContextAttribsARB(display(), fbconfig, 0, direct, attribs_legacy_robustness);
 
-        if (!ctx)
+        if (!ctx) {
+            blacklistGLExtension(QByteArrayLiteral("GL_ARB_robustness"));
+            blacklistGLExtension(QByteArrayLiteral("GL_EXT_robustness"));
             ctx = glXCreateContextAttribsARB(display(), fbconfig, 0, direct, attribs_legacy);
+        }
     }
 
     if (!ctx)
diff --git a/libkwineffects/kwinglutils.cpp b/libkwineffects/kwinglutils.cpp
index bd84db7..c4d33f2 100644
--- a/libkwineffects/kwinglutils.cpp
+++ b/libkwineffects/kwinglutils.cpp
@@ -181,6 +181,13 @@ bool hasGLExtension(const QByteArray &extension)
     return glExtensions.contains(extension) || glxExtensions.contains(extension) || eglExtensions.contains(extension);
 }
 
+void blacklistGLExtension(const QByteArray &extension)
+{
+    glExtensions.removeAll(extension);
+    glxExtensions.removeAll(extension);
+    eglExtensions.removeAll(extension);
+}
+
 static QString formatGLError(GLenum err)
 {
     switch(err) {
diff --git a/libkwineffects/kwinglutils.h b/libkwineffects/kwinglutils.h
index 3c1ac28..e9aa313 100644
--- a/libkwineffects/kwinglutils.h
+++ b/libkwineffects/kwinglutils.h
@@ -69,6 +69,7 @@ bool KWINGLUTILS_EXPORT hasGLXVersion(int major, int minor, int release = 0);
 bool KWINGLUTILS_EXPORT hasEGLVersion(int major, int minor, int release = 0);
 // use for both OpenGL and GLX extensions
 bool KWINGLUTILS_EXPORT hasGLExtension(const QByteArray &extension);
+void KWINGLUTILS_EXPORT blacklistGLExtension(const QByteArray &extension);
 
 // detect OpenGL error (add to various places in code to pinpoint the place)
 bool KWINGLUTILS_EXPORT checkGLError(const char* txt);


----

We could also turn this into a wider concept of "KWIN_IGNORE_GL_EXTENSIONS=GL_EXT_Foo,GL_ARB_Bar"
(which is possible on MESA but afaik not on the blob drivers)
Comment 11 Thomas Lübking 2016-03-04 15:58:23 UTC
Better patch (ie. might actually work ;-) in review request:
https://git.reviewboard.kde.org/r/127278/

@m00nraker, from local tests i'm not 100% sure that this will resolve your problem - if there's any chance to fetch kwin from git and test the patch, that will raise odds to resolve your situation by some magnitudes.
Comment 12 m00nraker 2016-03-08 03:29:47 UTC
(In reply to Thomas Lübking from comment #11)
> Better patch (ie. might actually work ;-) in review request:
> https://git.reviewboard.kde.org/r/127278/
> 
> @m00nraker, from local tests i'm not 100% sure that this will resolve your
> problem - if there's any chance to fetch kwin from git and test the patch,
> that will raise odds to resolve your situation by some magnitudes.

@Thomas:
Ok, I followed these steps to create a plasma build environment: https://community.kde.org/Plasma/Building
I applied your patch via. "git apply __gl_blacklist.diff" in /opt/kde/sources/kwin
After compiling and finishing all steps from the tutorial I restarted and logged into plasma desktop.
Compositing via. OpenGL2/GLX is still NOT WORKING with this patch. Tell me, if u need any further information.
Comment 13 m00nraker 2016-03-08 14:39:26 UTC
(In reply to m00nraker from comment #12)
> (In reply to Thomas Lübking from comment #11)
> > Better patch (ie. might actually work ;-) in review request:
> > https://git.reviewboard.kde.org/r/127278/
> > 
> > @m00nraker, from local tests i'm not 100% sure that this will resolve your
> > problem - if there's any chance to fetch kwin from git and test the patch,
> > that will raise odds to resolve your situation by some magnitudes.
> 
> @Thomas:
> Ok, I followed these steps to create a plasma build environment:
> https://community.kde.org/Plasma/Building
> I applied your patch via. "git apply __gl_blacklist.diff" in
> /opt/kde/sources/kwin
> After compiling and finishing all steps from the tutorial I restarted and
> logged into plasma desktop.
> Compositing via. OpenGL2/GLX is still NOT WORKING with this patch. Tell me,
> if u need any further information.

qdbus org.kde.KWin /KWin supportInformation

KWin-Unterstützungsinformationen:
Benutzen Sie die folgenden Informationen, wenn Sie nach Unterstützung fragen, z. B. auf http://forum.kde.org.
Sie enthalten Informationen über die momentan laufende Instanz, welche Optionen verwendet werden,
welcher OpenGL-Treiber verwendet wird und welche Effekte laufen.
Bitte geben Sie die untenstehenden Informationen bei einem Pastebin-Dienst wie http://paste.kde.org ein, anstatt sie direkt in die Hilfediskussionen zu schreiben.

==========================

Version
=======
KWin version: 5.6.90
Qt Version: 5.5.1
Qt compile version: 5.5.1
XCB compile version: 1.11.1

Operation Mode: X11 only

Build Options
=============
KWIN_BUILD_DECORATIONS: yes
KWIN_BUILD_TABBOX: yes
KWIN_BUILD_ACTIVITIES: yes
HAVE_INPUT: yes
HAVE_DRM: yes
HAVE_GBM: no
HAVE_X11_XCB: yes
HAVE_EPOXY_GLX: yes
HAVE_WAYLAND_EGL: no

X11
===
Vendor: The X.Org Foundation
Vendor Release: 11702000
Protocol Version/Revision: 11/0
SHAPE: yes; Version: 0x11
RANDR: yes; Version: 0x14
DAMAGE: yes; Version: 0x11
Composite: yes; Version: 0x4
RENDER: yes; Version: 0xb
XFIXES: yes; Version: 0x50
SYNC: yes; Version: 0x31
GLX: yes; Version: 0x0

Decoration
==========
Plugin: org.kde.breeze
Theme: 
Blur: 0
onAllDesktopsAvailable: true
alphaChannelSupported: false
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 0, 2
decorationButtonsRight: 6, 3, 4, 5
borderSize: 3
gridUnit: 14
font: Noto Sans,10,-1,0,50,0,0,0,0,0
smallSpacing: 3
largeSpacing: 14

Options
=======
focusPolicy: 0
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
placement: 4
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
rollOverDesktops: true
focusStealingPreventionLevel: 1
legacyFullscreenSupport: false
operationTitlebarDblClick: 5000
operationMaxButtonLeftClick: 5000
operationMaxButtonMiddleClick: 5015
operationMaxButtonRightClick: 5014
commandActiveTitlebar1: 0
commandActiveTitlebar2: 30
commandActiveTitlebar3: 2
commandInactiveTitlebar1: 4
commandInactiveTitlebar2: 30
commandInactiveTitlebar3: 2
commandWindow1: 7
commandWindow2: 8
commandWindow3: 8
commandWindowWheel: 31
commandAll1: 10
commandAll2: 3
commandAll3: 14
keyCmdAllModKey: 16777251
showGeometryTip: false
condensedTitle: false
electricBorderMaximize: true
electricBorderTiling: true
electricBorderCornerRatio: 0.25
borderlessMaximizedWindows: false
killPingTimeout: 5000
hideUtilityWindowsForInactive: true
inactiveTabsSkipTaskbar: false
autogroupSimilarWindows: false
autogroupInForeground: true
compositingMode: 1
useCompositing: true
compositingInitialized: true
hiddenPreviews: 1
unredirectFullscreen: false
glSmoothScale: 1
colorCorrected: false
xrenderSmoothScale: false
maxFpsInterval: 16666666
refreshRate: 0
vBlankTime: 6000000
glStrictBinding: false
glStrictBindingFollowsDriver: true
glCoreProfile: false
glPreferBufferSwap: 99
glPlatformInterface: 1

Screen Edges
============
desktopSwitching: false
desktopSwitchingMovingClients: false
cursorPushBackDistance: 1x1
timeThreshold: 150
reActivateThreshold: 350
actionTopLeft: 0
actionTop: 0
actionTopRight: 0
actionRight: 0
actionBottomRight: 0
actionBottom: 0
actionBottomLeft: 0
actionLeft: 0

Screens
=======
Multi-Head: no
Active screen follows mouse:  no
Number of Screens: 1

Screen 0:
---------
Name: LVDS-0
Geometry: 0,0,1920x1200
Refresh Rate: 59.9687


Compositing
===========
Compositing is not active

------

cat ~/.config/kwinrc 

[Compositing]
AnimationSpeed=3
Backend=OpenGL
Enabled=true
GLColorCorrection=false
GLCore=false
GLPlatformInterface=glx
GLPreferBufferSwap=a
GLTextureFilter=1
HiddenPreviews=5
OpenGLIsUnsafe=false
UnredirectFullscreen=false
XRenderSmoothScale=false

[Effect-Zoom]
InitialZoom=1

[Plugins]
blurEnabled=true
kwin4_effect_eyeonscreenEnabled=true
kwin4_effect_translucencyEnabled=false
wobblywindowsEnabled=true
Comment 14 Thomas Lübking 2016-03-08 16:40:44 UTC
(In reply to m00nraker from comment #12)

> Ok, I followed these steps to create a plasma build environment:
> https://community.kde.org/Plasma/Building

Ewww... you don't have to build all of KDE/Plasma

git clone kde:kwin.git
cd kwin
git checkout Plasma/5.5
mkdir build
cd build
ccmake -DCMAKE_INSTALL_PREFIX=`kf5-config --prefix`
[adjust stuff to your likings through fancy curses UI, press "c"onfigure and "g"enerate, then "q"uit]
make && sudo make install


> After compiling and finishing all steps from the tutorial I restarted and
> logged into plasma desktop.

Let's assume you installed kwin overriding the actual installation (/usr?) ...

> Compositing via. OpenGL2/GLX is still NOT WORKING with this patch. Tell me,
> if u need any further information.

the next thing to try would be to downforce robustness externally:
export KWIN_GL_EXT_BLACKLIST=GLX_ARB_create_context_robustness,GL_ARB_robustness,GL_EGL_robustness
kwin_x11 --replace &

to see whether the robust context (and the function resolution) is the troublemaker here at all.


To have an indicator on whether you're running the patched version at all, you might want to add this patch in addition:

diff --git a/glxbackend.cpp b/glxbackend.cpp
index 1e519c3..53ccd62 100644
--- a/glxbackend.cpp
+++ b/glxbackend.cpp
@@ -322,6 +322,7 @@ bool GlxBackend::initRenderingContext()
         return false;
     }
 
+    qDebug() << "blacklist?" << blacklistRobustness << hasGLExtension(QByteArrayLiteral("GLX_ARB_create_context"));
     if (blacklistRobustness) {
         QList<QByteArray> blacklist = qgetenv("KWIN_GL_EXT_BLACKLIST").split(',');
         blacklist << QByteArrayLiteral("GL_ARB_robustness") << QByteArrayLiteral("GL_EXT_robustness");



-----------------

it should print
    blacklist? true true
if the original assumption is somehow correct.

If it's more like
    blacklist? false true
creating the robust context actually worked

And in case of
    blacklist? false false
this means the robust context wasn't even considered (but not blacklisted either, so we *might* still resolve the wrong functions - it does however not match your glxinfo)
Comment 15 m00nraker 2016-03-08 17:50:22 UTC
Created attachment 97769 [details]
additional patch from thomas

Something wrong with that file.
git apply __gl_blacklist2.diff
-> Error in line 13
Comment 16 Thomas Lübking 2016-03-08 17:55:37 UTC
bugzilla.
you probably copied in non-printable characters or similar.
Just edit glxbackend.cpp w/ your favourite text editor and inject the "+" prefixed line (just w/o the plus)
Otherwise I'll attach a patch *file* later on ;-)
Comment 17 m00nraker 2016-03-08 18:24:09 UTC
(In reply to Thomas Lübking from comment #16)
> bugzilla.
> you probably copied in non-printable characters or similar.
> Just edit glxbackend.cpp w/ your favourite text editor and inject the "+"
> prefixed line (just w/o the plus)
> Otherwise I'll attach a patch *file* later on ;-)

@Thomas:
> Let's assume you installed kwin overriding the actual installation (/usr?) ... 

No, I don't have a mixed setup and I haven't overwritten my actual Plasma5 setup in /usr. According to the wiki I configured a different location (/opt/kde/{install, build, sources, logs}). To start a new compiled Plasma5 from git I used SSDM with a new xsession file for Plasma5Git. So I'm sure that I started the right patched version of kwin with your __gl_blacklist.diff file.

Problem now:
Something wrong with the new diff-file for your other patch. So I injected it manually and gave it another try:

kwin_x11 --replace

QXcbConnection: XCB error: 8 (BadMatch), sequence: 1048, resource id: 104857605, major code: 42 (SetInputFocus), minor code: 0
blacklist? false true
kwin_core: Failed to initialize compositing, compositing disabled
QXcbConnection: XCB error: 3 (BadWindow), sequence: 1159, resource id: 579, major code: 3 (GetWindowAttributes), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1160, resource id: 579, major code: 14 (GetGeometry), minor code: 

So: blacklist? false true
Comment 18 Thomas Lübking 2016-03-08 18:36:00 UTC
means that we successfully create a robust context, try downforcing that:

export KWIN_GL_EXT_BLACKLIST=GLX_ARB_create_context_robustness,GL_ARB_robustness,GL_EGL_robustness
kwin_x11 --replace &

(you can ignore the debug out)
Comment 19 m00nraker 2016-03-08 18:41:22 UTC
export KWIN_GL_EXT_BLACKLIST=GLX_ARB_create_context_robustness,GL_ARB_robustness,GL_EGL_robustness

kwin_x11 --replace &
..
blacklist? true true
kwin_core: Failed to initialize compositing, compositing disabled
..
Comment 20 Thomas Lübking 2016-03-14 22:16:13 UTC
Ok, despite the wrong output (the debug output should have been GLX_ARB_create_context_robustness) is confusion, the problem is not related to the robust contexts.

Since we now have the neat feature to blacklist stuff at will, let's try legacy context creation.

export KWIN_GL_EXT_BLACKLIST=GLX_ARB_create_context
kwin_x11 --replace &

If that fails as well, please attach (do NOT post it ;-) the output of "nvidia-settings -q all"


---
Sorry for the delay.
Comment 21 m00nraker 2016-03-15 00:34:20 UTC
Thx for reply and working on that bug-report.
Fail again (blacklist? false true):

export KWIN_GL_EXT_BLACKLIST=GLX_ARB_create_context
kwin_x11 --replace &

QXcbConnection: XCB error: 8 (BadMatch), sequence: 820, resource id: 69206021, major code: 42 (SetInputFocus), minor code: 0
blacklist? false true
OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 GeForce Go 7950 GTX/PCIe/SSE2
OpenGL version string:                  2.1.2 NVIDIA 304.131
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
Driver:                                 NVIDIA
Driver version:                         304.131
GPU class:                              NV40/G70
OpenGL version:                         2.1.2
GLSL version:                           1.20
X server version:                       1.17.2
Linux kernel version:                   4.1.15
Requires strict binding:                no
GLSL shaders:                           limited
Texture NPOT support:                   yes
Virtual Machine:                        no
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 0, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 1, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.44882, 0.14882, 0.14882, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.50064, 0.80064, 0.50064, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.05054, 0.05054, 0.35054, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 1, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.3, 0, 0, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0.4, 0, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0, 0.5, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.3, 0.4, 0.5, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.134646, 0.044646, 0.044646, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.200256, 0.320256, 0.200256, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.02527, 0.02527, 0.17527, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.360172, 0.390172, 0.420172, 0.6)
kwin_core: ShaderManager self test failed
kwin_core: Failed to initialize compositing, compositing disabled
QXcbConnection: XCB error: 3 (BadWindow), sequence: 926, resource id: 579, major code: 3 (GetWindowAttributes), minor code: 0

nvidia-settings -q all
Output in attached file nvidia-output.txt

Another thing:
After I applied your first patch, I injected the debug-output code directly into glxbackend.cpp, as you suggested. To make sure that everything is ok, could you maybe upload a complete diff-file for me to apply? (I'm confused about the "...GlxBackend::initRenderingContext() return false;" in your debug output code in comment #14). Do not forget that I'm not a software developer and I haven't many experience in editing source code. So a complete diff file would be the better choice for me, to make clear, that everything is as it should be :-) Nevertheless I'm quite sure, that I did it right.
Comment 22 m00nraker 2016-03-15 00:35:35 UTC
Created attachment 97902 [details]
nvidia-settings -q all

output
nvidia-settings -q all
Comment 23 m00nraker 2016-03-15 00:36:33 UTC
Comment on attachment 97902 [details]
nvidia-settings -q all

export GL_EXT_BLACKLIST=GLX_ARB_create_context

kwin_x11 --replace &                          

[1] 3804
test@linux-gss9:~> QXcbConnection: XCB error: 8 (BadMatch), sequence: 820, resource id: 69206021, major code: 42 (SetInputFocus), minor code: 0
blacklist? false true
OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 GeForce Go 7950 GTX/PCIe/SSE2
OpenGL version string:                  2.1.2 NVIDIA 304.131
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
Driver:                                 NVIDIA
Driver version:                         304.131
GPU class:                              NV40/G70
OpenGL version:                         2.1.2
GLSL version:                           1.20
X server version:                       1.17.2
Linux kernel version:                   4.1.15
Requires strict binding:                no
GLSL shaders:                           limited
Texture NPOT support:                   yes
Virtual Machine:                        no
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 0, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 1, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.44882, 0.14882, 0.14882, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.50064, 0.80064, 0.50064, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.05054, 0.05054, 0.35054, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 1, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.3, 0, 0, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0.4, 0, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0, 0.5, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.3, 0.4, 0.5, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.134646, 0.044646, 0.044646, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.200256, 0.320256, 0.200256, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.02527, 0.02527, 0.17527, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.360172, 0.390172, 0.420172, 0.6)
kwin_core: ShaderManager self test failed
kwin_core: Failed to initialize compositing, compositing disabled
QXcbConnection: XCB error: 3 (BadWindow), sequence: 926, resource id: 579, major code: 3 (GetWindowAttributes), minor code: 0
Comment 24 m00nraker 2016-03-15 00:37:28 UTC
Comment on attachment 97902 [details]
nvidia-settings -q all

wrong upload
Comment 25 m00nraker 2016-03-15 00:44:54 UTC
Created attachment 97903 [details]
nvidia-settings -q all

output
nvidia-settings -q all
Comment 26 m00nraker 2016-03-15 00:49:16 UTC
Comment #21 is Ok.
#22 to #24 is trash. Don't read ! Sry.
Comment 27 EllisIsPfroh 2016-03-18 00:12:30 UTC
@moonraker: you can also use https://paste.kde.org – this wouldn't be shortliving on assumption.
Comment 28 Thomas Lübking 2016-03-18 15:55:53 UTC
@EllisIsPfroh
Please do not suggest this again.

paste.kde.org is in general *COMPLETELY* unsuited for bug data.
Lifetime there is limited to 1 year - if valuable information gets posted there and someone looks up this bug afterwards it will be lost to him.

----

Unfortunately the nvidia settings seem nowhere suspicious to cause this.
Well, let's just try what happens if we skip the self-test (remember SHIFT+Alt+F12 will suspend the compositor if you're presented w/ an unreadable screen)


diff --git a/scene_opengl.cpp b/scene_opengl.cpp
index c81c2b8..18e3306 100644
--- a/scene_opengl.cpp
+++ b/scene_opengl.cpp
@@ -1040,7 +1040,7 @@ SceneOpenGL2::SceneOpenGL2(OpenGLBackend *backend, QObject *parent)
         glBindVertexArray(vao);
     }
 
-    if (!ShaderManager::instance()->selfTest()) {
+    if (false && !ShaderManager::instance()->selfTest()) {
         qCCritical(KWIN_CORE) << "ShaderManager self test failed";
         init_ok = false;
         return;
Comment 29 EllisIsPfroh 2016-03-18 17:32:03 UTC
@Thomas Lübking: O.K. heard this loud&clear & will remember it. Thanks!
Comment 30 m00nraker 2016-03-18 19:17:56 UTC
Created attachment 97961 [details]
patch to skill self-test

Failed to apply diff to scene_opengl.cpp
error: Anwendung des Patches fehlgeschlagen: scene_opengl.cpp:1040
error: scene_opengl.cpp: Patch konnte nicht angewendet werden
Comment 31 m00nraker 2016-03-18 19:22:48 UTC
@Thomas

I can't apply your diff (file attached).

git apply __scene_opengl.diff
error: Anwendung des Patches fehlgeschlagen: scene_opengl.cpp:1040
error: scene_opengl.cpp: Patch konnte nicht angewendet werden

from sources/kwin/scene_opengl.cpp:

   // It is not legal to not have a vertex array object bound in a core context
    if (!GLPlatform::instance()->isGLES() && hasGLExtension(QByteArrayLiteral("GL_ARB_vertex_array_object"))) {
        glGenVertexArrays(1, &vao);
        glBindVertexArray(vao);
    }

Line 1040: glBindVertexArray(vao);

Don't know how to proceed. Please help. Do I have a different file scene_opengl.cpp?
Comment 32 Thomas Lübking 2016-03-19 00:34:33 UTC
Created attachment 97965 [details]
skip selftest

The problem is that you somehow html encode the patch (copying from the page source?) ie eg. ">" becomes "&gt;" - and that oc. doesn't apply.

Try the attached patch (may be set off by 4/5 lines, but that's no blocker)
Comment 33 m00nraker 2016-03-19 03:02:06 UTC
(In reply to Thomas Lübking from comment #32)
> The problem is that you somehow html encode the patch (copying from the page
> source?) ie eg. ">" becomes "&gt;" - and that oc. doesn't apply.
> 
> Try the attached patch (may be set off by 4/5 lines, but that's no blocker)

Exactly, you're right. I copy/paste your code from the page source to a text file. Don't know how to do it better... sorry for wasting your time with a nub like me.

But some good news: after applying your "skip selftest" patch compositing is working now, just like in the old KDE SC 4 times. I think we now have to find out, why the selftest fails for my configuration?! Your turn now ))) Thx.
Comment 34 Thomas Lübking 2016-03-19 11:13:32 UTC
Just copy from the web page, the browser should do "the right thing™"

Let's see whether glReadPixels reads "something" and just the painting fails (you need to revert the skipping patch)


diff --git a/libkwineffects/kwinglutils.cpp b/libkwineffects/kwinglutils.cpp
index 9a6b2da..048ab30 100644
--- a/libkwineffects/kwinglutils.cpp
+++ b/libkwineffects/kwinglutils.cpp
@@ -756,7 +756,7 @@ bool ShaderManager::selfTest()
     vbo->bindArrays();
 
     glViewport(0, 0, 32, 32);
-    glClearColor(0, 0, 0, 0);
+    glClearColor(1, 0, 1, 1);
 
     // Set up the projection matrix
     QMatrix4x4 matrix;
Comment 35 m00nraker 2016-03-19 22:11:04 UTC
Attention: Mistake detected
Thomas, I just have realized that I made a mistake in #comment14, injecting the debug outputline (blacklist? ...). That caused that one debug output string (blacklist? xx xx) is wrong. I don't know, if that is important. So I started from scratch and applied all patches again. Here my summary:

1. I downloaded sourcecode from git to start from scratch

2. comment11: I applied "__gl_blacklist.diff"

   kwin_x11 --replace:
   kwin_core: ShaderManager self test failed
   kwin_core: Failed to initialize compositing, compositing disabled
      
3. comment14: injecting your debug output code into glxbackend.cpp
   Line: qDebug() << "blacklist?" << blacklistRobustness << hasGLExtension(QByteArrayLiteral("GLX_ARB_create_context"));

   kwin_x11 --replace output: 

   blacklist? false true (like before)
   kwin_core: ShaderManager self test failed
   kwin_core: Failed to initialize compositing, compositing disabled
   
4. comment18: downforcing the context

   export KWIN_GL_EXT_BLACKLIST=GLX_ARB_create_context_robustness,GL_ARB_robustness,GL_EGL_robustness   
   kwin_x11 --replace output:

   blacklist? true true (like before)
   kwin_core: ShaderManager self test failed
   kwin_core: Failed to initialize compositing, compositing disabled

5. comment20: legacy context creation
 
   export KWIN_GL_EXT_BLACKLIST=GLX_ARB_create_context
   kwin_x11 --replace output:

###   blacklist? true false (THIS HAS CHANGED, compare with comment21) ####
   kwin_core: ShaderManager self test failed
   kwin_core: Failed to initialize compositing, compositing disabled

So the "blacklist? true false" output in step 5. is different from what I posted in comment20 (legay context creation), because of my wrong injection of the debug code from comment14.

Be aware, I started from scratch, but before step 1 I also applied your last diff from comment34 (glReadPixels). Hope this doesn't matter.

6. Comment34: Last but not least the complete kwin_x11 --replace output (without using "export KWIN_GL_EXT_BLACKLIST=..." in shell before):


kwin_x11 --replace

blacklist? false true
OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 GeForce Go 7950 GTX/PCIe/SSE2
OpenGL version string:                  2.1.2 NVIDIA 304.131
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
Driver:                                 NVIDIA
Driver version:                         304.131
GPU class:                              NV40/G70
OpenGL version:                         2.1.2
GLSL version:                           1.20
X server version:                       1.17.2
Linux kernel version:                   4.1.15
Requires strict binding:                no
GLSL shaders:                           limited
Texture NPOT support:                   yes
Virtual Machine:                        no
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 0, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 1, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.44882, 0.14882, 0.14882, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.50064, 0.80064, 0.50064, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.05054, 0.05054, 0.35054, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 1, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.3, 0, 0, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0.4, 0, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0, 0.5, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.3, 0.4, 0.5, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.134646, 0.044646, 0.044646, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.200256, 0.320256, 0.200256, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.02527, 0.02527, 0.17527, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.360172, 0.390172, 0.420172, 0.6)
kwin_core: ShaderManager self test failed
kwin_core: Failed to initialize compositing, compositing disabled
QXcbConnection: XCB error: 3 (BadWindow), sequence: 912, resource id: 579, major code: 3 (GetWindowAttributes), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 913, resource id: 579, major code: 14 (GetGeometry), minor code: 0
Comment 36 Thomas Lübking 2016-03-19 23:37:31 UTC
Created attachment 97987 [details]
Invite the right order

No, all fine.

Ok, let's try an older theory and invite the GPU to write before read (though i've not much hope - this might account for "exotic" chips, but the blob should really handle this correctly)

The attached patch is the only one you need on top of the vanilla code and when it says something like "pass 1 true" or at least thinks the texture is pink, we'll have made some progress (it will fail later on anyway because i did't want to copy the lines a dozen times for no reason ;-)
Comment 37 m00nraker 2016-03-20 02:13:34 UTC
Ok, vanilla, only __invite_fbo_red.diff applied:

pass 1-4 false

kwin_x11 --replace
QXcbConnection: XCB error: 8 (BadMatch), sequence: 806, resource id: 67108869, major code: 42 (SetInputFocus), minor code: 0
OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 GeForce Go 7950 GTX/PCIe/SSE2
OpenGL version string:                  2.1.2 NVIDIA 304.131
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
Driver:                                 NVIDIA
Driver version:                         304.131
GPU class:                              NV40/G70
OpenGL version:                         2.1.2
GLSL version:                           1.20
X server version:                       1.17.2
Linux kernel version:                   4.1.15
Requires strict binding:                no
GLSL shaders:                           limited
Texture NPOT support:                   yes
Virtual Machine:                        no
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
pass 1 false
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
pass 2 false
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
pass 3 false
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
pass 4 false
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 0, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 1, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.44882, 0.14882, 0.14882, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.50064, 0.80064, 0.50064, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.05054, 0.05054, 0.35054, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 1, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.3, 0, 0, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0.4, 0, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0, 0.5, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.3, 0.4, 0.5, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.134646, 0.044646, 0.044646, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.200256, 0.320256, 0.200256, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.02527, 0.02527, 0.17527, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.360172, 0.390172, 0.420172, 0.6)
kwin_core: ShaderManager self test failed
kwin_core: Failed to initialize compositing, compositing disabled
QXcbConnection: XCB error: 3 (BadWindow), sequence: 912, resource id: 579, major code: 3 (GetWindowAttributes), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 913, resource id: 579, major code: 14 (GetGeometry), minor code: 0
Comment 38 Torsten Bielen 2016-04-07 07:53:50 UTC
I just installed an update of the nvidia driver (OpenSuse Leap) and the problem is solved. I enabled openGL (2.0/3.1) in the Compositor's configuration page and the system doesn't switch back to XRender.

rpm -qa | grep nvidia

nvidia-gfxG04-kmp-default-361.42_k4.1.12_1-21.1.x86_64
x11-video-nvidiaG04-361.42-21.1.x86_64
nvidia-glG04-361.42-21.1.x86_64
nvidia-computeG04-361.42-21.1.x86_64
Comment 39 m00nraker 2016-04-07 11:00:10 UTC
(In reply to Torsten Bielen from comment #38)
> I just installed an update of the nvidia driver (OpenSuse Leap) and the
> problem is solved. I enabled openGL (2.0/3.1) in the Compositor's
> configuration page and the system doesn't switch back to XRender.
> 
> rpm -qa | grep nvidia
> 
> nvidia-gfxG04-kmp-default-361.42_k4.1.12_1-21.1.x86_64
> x11-video-nvidiaG04-361.42-21.1.x86_64
> nvidia-glG04-361.42-21.1.x86_64
> nvidia-computeG04-361.42-21.1.x86_64

@Thorsten Bielen
No, you are wrong. This bug isn't fixed.

In this bug report we are talking about compositing with the NVidia GeForce 7 series. The current driver version is 304.131, which is up-to-date. It's the nvidia-glG02 line. Look first post.
But your driver is the nvidia-GL04 line, which is different and does not support the legacy 7 series. So you don't have a legacy card, but a newer one, which has nothing to do with this br.
Comment 40 Sergey 2016-05-31 18:19:52 UTC
I have the same problem with compositor not working on the following versions of Plasma: 5.5.5-r1 and 5.6.4.
Comment 41 Sergey 2016-05-31 18:27:01 UTC
My hardware is the following:
CPU: Phenom II X4 810
GPU: NVIDIA GeForce 7600 GS/PCIe/SSE2 512MB
RAM: 12GB

I had no problems in KDE4. Games like OpenRA are still working in Plasma 5, so it's not a problem of video card/drivers. 
[code]
$ mv ~/.config/kwinrc ~/.config/kwinrc.bak

$ kwin_x11 --replace
OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 GeForce 7600 GS/PCIe/SSE2
OpenGL version string:                  2.1.2 NVIDIA 304.131
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
Driver:                                 NVIDIA
Driver version:                         304.131
GPU class:                              NV40/G70
OpenGL version:                         2.1.2
GLSL version:                           1.20
X server version:                       1.17.4
Linux kernel version:                   3.18.34
Requires strict binding:                no
GLSL shaders:                           limited
Texture NPOT support:                   yes
Virtual Machine:                        no
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 0, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 1, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.44882, 0.14882, 0.14882, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.50064, 0.80064, 0.50064, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.05054, 0.05054, 0.35054, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 1, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.3, 0, 0, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0.4, 0, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0, 0.5, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.3, 0.4, 0.5, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.134646, 0.044646, 0.044646, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.200256, 0.320256, 0.200256, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.02527, 0.02527, 0.17527, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.360172, 0.390172, 0.420172, 0.6)
kwin_core: ShaderManager self test failed
kwin_core: Failed to initialize compositing, compositing disabled
QXcbConnection: XCB error: 3 (BadWindow), sequence: 710, resource id: 1185, major code: 3 (GetWindowAttributes), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 711, resource id: 1185, major code: 14 (GetGeometry), minor code: 0                                                   
QXcbConnection: XCB error: 8 (BadMatch), sequence: 1772, resource id: 65011718, major code: 42 (SetInputFocus), minor code: 0                                               
OpenGL vendor string:                   NVIDIA Corporation                            
OpenGL renderer string:                 GeForce 7600 GS/PCIe/SSE2                     
OpenGL version string:                  2.1.2 NVIDIA 304.131                          
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler                   
Driver:                                 NVIDIA                                        
Driver version:                         304.131                                       
GPU class:                              NV40/G70                                      
OpenGL version:                         2.1.2                                         
GLSL version:                           1.20                                          
X server version:                       1.17.4
Linux kernel version:                   3.18.34
Requires strict binding:                no
GLSL shaders:                           limited
Texture NPOT support:                   yes
Virtual Machine:                        no
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 0, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 1, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.44882, 0.14882, 0.14882, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.50064, 0.80064, 0.50064, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.05054, 0.05054, 0.35054, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(1, 1, 1, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.3, 0, 0, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0.4, 0, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 0, 0.5, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.3, 0.4, 0.5, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.134646, 0.044646, 0.044646, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.200256, 0.320256, 0.200256, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.02527, 0.02527, 0.17527, 0.6)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0.360172, 0.390172, 0.420172, 0.6)
kwin_core: ShaderManager self test failed
kwin_core: Failed to initialize compositing, compositing disabled
QXcbConnection: XCB error: 3 (BadWindow), sequence: 1978, resource id: 1184, major code: 3 (GetWindowAttributes), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1979, resource id: 1184, major code: 14 (GetGeometry), minor code: 0[/code]

Support information after changing settings back and replace kwin (compositor doesn't work there either):
[code]$ qdbus org.kde.KWin /KWin supportInformation
KWin Support Information:
The following information should be used when requesting support on e.g. http://forum.kde.org.
It provides information about the currently running instance, which options are used,
what OpenGL driver and which effects are running.
Please post the information provided underneath this introductory text to a paste bin service
like http://paste.kde.org instead of pasting into support threads.

==========================

Version
=======
KWin version: 5.6.4
Qt Version: 5.5.1
Qt compile version: 5.5.1
XCB compile version: 1.11.1

Operation Mode: X11 only

Build Options
=============
KWIN_BUILD_DECORATIONS: yes
KWIN_BUILD_TABBOX: yes
KWIN_BUILD_ACTIVITIES: yes
HAVE_INPUT: yes
HAVE_DRM: yes
HAVE_GBM: yes
HAVE_X11_XCB: yes
HAVE_EPOXY_GLX: yes
HAVE_WAYLAND_EGL: yes

X11
===
Vendor: The X.Org Foundation
Vendor Release: 11704000
Protocol Version/Revision: 11/0
SHAPE: yes; Version: 0x11
RANDR: yes; Version: 0x14
DAMAGE: yes; Version: 0x11
Composite: yes; Version: 0x4
RENDER: yes; Version: 0xb
XFIXES: yes; Version: 0x50
SYNC: yes; Version: 0x31
GLX: yes; Version: 0x0

Decoration
==========
Plugin: org.kde.kwin.aurorae
Theme: __aurorae__svg__my-glowglass-lite-black
Blur: 1
onAllDesktopsAvailable: true
alphaChannelSupported: false
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 0, 2
decorationButtonsRight: 6, 3, 4, 5
borderSize: 3
gridUnit: 14
font: DejaVu Sans,12,-1,5,50,0,0,0,0,0
smallSpacing: 3
largeSpacing: 14

Options
=======
focusPolicy: 0
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
placement: 4
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
rollOverDesktops: true
focusStealingPreventionLevel: 1
legacyFullscreenSupport: false
operationTitlebarDblClick: 5000
operationMaxButtonLeftClick: 5000
operationMaxButtonMiddleClick: 5015
operationMaxButtonRightClick: 5014
commandActiveTitlebar1: 0
commandActiveTitlebar2: 30
commandActiveTitlebar3: 2
commandInactiveTitlebar1: 4
commandInactiveTitlebar2: 30
commandInactiveTitlebar3: 2
commandWindow1: 7
commandWindow2: 8
commandWindow3: 8
commandWindowWheel: 31
commandAll1: 10
commandAll2: 3
commandAll3: 14
keyCmdAllModKey: 16777251
showGeometryTip: false
condensedTitle: false
electricBorderMaximize: true
electricBorderTiling: true
electricBorderCornerRatio: 0.25
borderlessMaximizedWindows: false
killPingTimeout: 5000
hideUtilityWindowsForInactive: true
inactiveTabsSkipTaskbar: false
autogroupSimilarWindows: false
autogroupInForeground: true
compositingMode: 1
useCompositing: true
compositingInitialized: true
hiddenPreviews: 1
unredirectFullscreen: false
glSmoothScale: 2
colorCorrected: false
xrenderSmoothScale: false
maxFpsInterval: 16666666
refreshRate: 0
vBlankTime: 6000000
glStrictBinding: false
glStrictBindingFollowsDriver: true
glCoreProfile: false
glPreferBufferSwap: 99
glPlatformInterface: 1

Screen Edges
============
desktopSwitching: false
desktopSwitchingMovingClients: false
cursorPushBackDistance: 1x1
timeThreshold: 150
reActivateThreshold: 350
actionTopLeft: 0
actionTop: 0
actionTopRight: 0
actionRight: 0
actionBottomRight: 0
actionBottom: 0
actionBottomLeft: 0
actionLeft: 0

Screens
=======
Multi-Head: yes
Head: 0
Active screen follows mouse:  no
Number of Screens: 1

Screen 0:
---------
Name: DVI-I-0
Geometry: 0,0,1280x1024
Refresh Rate: 85.0241


Compositing
===========
Compositing is not active[/code]
Comment 42 Sergey 2016-05-31 18:43:26 UTC
I have the latest x11-drivers/nvidia-drivers-304.131-r4 for this card (Geforce 7 series). Also, I have a glitch of incorrect placement of Plasma startup window right after login from SDDM. It disappears right after start of Plasma but it's placement is incorrect. It should be in the center, but it's in the top-left corner. I'm talking about this window (in the center on the video): https://youtu.be/Y1NAZGsQtjQ?t=2m11s
Maybe it will help to investigate a problem.
Comment 43 Sergey 2016-06-01 00:07:39 UTC
After applying patch from comment https://bugs.kde.org/show_bug.cgi?id=360033#c28 compositing has started to work like in good old times of KDE4.

$ kwin_x11 --replace
OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 GeForce 7600 GS/PCIe/SSE2
OpenGL version string:                  2.1.2 NVIDIA 304.131
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
Driver:                                 NVIDIA
Driver version:                         304.131
GPU class:                              NV40/G70
OpenGL version:                         2.1.2
GLSL version:                           1.20
X server version:                       1.17.4
Linux kernel version:                   3.18.34
Requires strict binding:                no
GLSL shaders:                           limited
Texture NPOT support:                   yes
Virtual Machine:                        no
Module 'org.kde.kwin.decoration' does not contain a module identifier directive - it cannot be protected from external registrations.
QXcbConnection: XCB error: 8 (BadMatch), sequence: 2083, resource id: 65011718, major code: 42 (SetInputFocus), minor code: 0
OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 GeForce 7600 GS/PCIe/SSE2
OpenGL version string:                  2.1.2 NVIDIA 304.131
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
Driver:                                 NVIDIA
Driver version:                         304.131
GPU class:                              NV40/G70
OpenGL version:                         2.1.2
GLSL version:                           1.20
X server version:                       1.17.4
Linux kernel version:                   3.18.34
Requires strict binding:                no
GLSL shaders:                           limited
Texture NPOT support:                   yes
Virtual Machine:                        no
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2473, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2483, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2484, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2485, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2486, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 2487, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QMetaProperty::read: Unable to handle unregistered datatype 'KWayland::Server::SurfaceInterface*' for property 'KWin::Toplevel::surface'

$ qdbus org.kde.KWin /KWin supportInformation
KWin Support Information:
The following information should be used when requesting support on e.g. http://forum.kde.org.
It provides information about the currently running instance, which options are used,
what OpenGL driver and which effects are running.
Please post the information provided underneath this introductory text to a paste bin service
like http://paste.kde.org instead of pasting into support threads.

==========================

Version
=======
KWin version: 5.6.4
Qt Version: 5.5.1
Qt compile version: 5.5.1
XCB compile version: 1.11.1

Operation Mode: X11 only

Build Options
=============
KWIN_BUILD_DECORATIONS: yes
KWIN_BUILD_TABBOX: yes
KWIN_BUILD_ACTIVITIES: yes
HAVE_INPUT: yes
HAVE_DRM: yes
HAVE_GBM: yes
HAVE_X11_XCB: yes
HAVE_EPOXY_GLX: yes
HAVE_WAYLAND_EGL: yes

X11
===
Vendor: The X.Org Foundation
Vendor Release: 11704000
Protocol Version/Revision: 11/0
SHAPE: yes; Version: 0x11
RANDR: yes; Version: 0x14
DAMAGE: yes; Version: 0x11
Composite: yes; Version: 0x4
RENDER: yes; Version: 0xb
XFIXES: yes; Version: 0x50
SYNC: yes; Version: 0x31
GLX: yes; Version: 0x0

Decoration
==========
Plugin: org.kde.kwin.aurorae
Theme: __aurorae__svg__my-glowglass-lite-black
Blur: 1
onAllDesktopsAvailable: true
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 0, 2
decorationButtonsRight: 6, 3, 4, 5
borderSize: 3
gridUnit: 14
font: DejaVu Sans,12,-1,5,50,0,0,0,0,0
smallSpacing: 3
largeSpacing: 14

Options
=======
focusPolicy: 0
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
placement: 4
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
rollOverDesktops: true
focusStealingPreventionLevel: 1
legacyFullscreenSupport: false
operationTitlebarDblClick: 5000
operationMaxButtonLeftClick: 5000
operationMaxButtonMiddleClick: 5015
operationMaxButtonRightClick: 5014
commandActiveTitlebar1: 0
commandActiveTitlebar2: 30
commandActiveTitlebar3: 2
commandInactiveTitlebar1: 4
commandInactiveTitlebar2: 30
commandInactiveTitlebar3: 2
commandWindow1: 7
commandWindow2: 8
commandWindow3: 8
commandWindowWheel: 31
commandAll1: 10
commandAll2: 3
commandAll3: 14
keyCmdAllModKey: 16777251
showGeometryTip: false
condensedTitle: false
electricBorderMaximize: true
electricBorderTiling: true
electricBorderCornerRatio: 0.25
borderlessMaximizedWindows: false
killPingTimeout: 5000
hideUtilityWindowsForInactive: true
inactiveTabsSkipTaskbar: false
autogroupSimilarWindows: false
autogroupInForeground: true
compositingMode: 1
useCompositing: true
compositingInitialized: true
hiddenPreviews: 1
unredirectFullscreen: false
glSmoothScale: 2
colorCorrected: false
xrenderSmoothScale: false
maxFpsInterval: 16666666
refreshRate: 0
vBlankTime: 6000000
glStrictBinding: false
glStrictBindingFollowsDriver: true
glCoreProfile: false
glPreferBufferSwap: 0
glPlatformInterface: 1

Screen Edges
============
desktopSwitching: false
desktopSwitchingMovingClients: false
cursorPushBackDistance: 1x1
timeThreshold: 150
reActivateThreshold: 350
actionTopLeft: 0
actionTop: 0
actionTopRight: 0
actionRight: 0
actionBottomRight: 0
actionBottom: 0
actionBottomLeft: 0
actionLeft: 0

Screens
=======
Multi-Head: yes
Head: 0
Active screen follows mouse:  no
Number of Screens: 1

Screen 0:
---------
Name: DVI-I-0
Geometry: 0,0,1280x1024
Refresh Rate: 85.0241


Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 7600 GS/PCIe/SSE2
OpenGL version string: 2.1.2 NVIDIA 304.131
OpenGL platform interface: GLX
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
Driver: NVIDIA
Driver version: 304.131
GPU class: NV40/G70
OpenGL version: 2.1.2
GLSL version: 1.20
X server version: 1.17.4
Linux kernel version: 3.18.34
Direct rendering: Requires strict binding: no
GLSL shaders:  limited
Texture NPOT support:  yes
Virtual Machine:  no
OpenGL 2 Shaders are used
Painting blocks for vertical retrace:  no

Loaded Effects:
---------------
zoom
slidingpopups
kwin4_effect_login
screenshot
kwin4_effect_windowaperture
minimizeanimation
kwin4_effect_translucency
desktopgrid
cubeslide
kwin4_effect_fade
kwin4_effect_maximize
kwin4_effect_morphingpopups
presentwindows
kwin4_effect_dialogparent
highlightwindow
blur
contrast
logout
startupfeedback
screenedge
kscreen

Currently Active Effects:
-------------------------
blur
contrast

Effect Settings:
----------------
zoom:
zoomFactor: 1.2
mousePointer: 0
mouseTracking: 0
enableFocusTracking: false
followFocus: true
focusDelay: 350
moveFactor: 20
targetZoom: 1

slidingpopups:
fadeInTime: 150
fadeOutTime: 250

kwin4_effect_login:

screenshot:

kwin4_effect_windowaperture:

minimizeanimation:

kwin4_effect_translucency:

desktopgrid:
zoomDuration: 300
border: 10
desktopNameAlignment: 0
layoutMode: 0
customLayoutRows: 2
usePresentWindows: true

cubeslide:
rotationDuration: 500
dontSlidePanels: true
dontSlideStickyWindows: false
usePagerLayout: true
useWindowMoving: false

kwin4_effect_fade:

kwin4_effect_maximize:

kwin4_effect_morphingpopups:

presentwindows:
layoutMode: 0
showCaptions: true
showIcons: true
doNotCloseWindows: false
ignoreMinimized: false
accuracy: 20
fillGaps: true
fadeDuration: 150
showPanel: false
leftButtonWindow: 1
rightButtonWindow: 2
middleButtonWindow: 0
leftButtonDesktop: 2
middleButtonDesktop: 0
rightButtonDesktop: 0

kwin4_effect_dialogparent:

highlightwindow:

blur:
blurRadius: 12
cacheTexture: true

contrast:

logout:
useBlur: true

startupfeedback:
type: 1

screenedge:

kscreen:

PLEASE, make a fix of this bug!!! We are not the only one with this GPUs using Plasma! And set the status of this bug to CONFIRMED!
Comment 44 bill p. (aka google01103) 2016-06-01 10:06:21 UTC
just a note, the patch posted in comment #28 
works per https://forum.kde.org/viewtopic.php?f=111&t=127733&p=357753&view=lastpost#p357753
Comment 45 Jason A. Donenfeld 2016-09-10 03:09:12 UTC
Created attachment 101005 [details]
Skip Self Tests

This is still a problem for me:

OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 Quadro M2000M/PCIe/SSE2
OpenGL version string:                  3.1.0 NVIDIA 370.23
OpenGL shading language version string: 1.40 NVIDIA via Cg compiler
Driver:                                 NVIDIA
Driver version:                         370.23
GPU class:                              Unknown
OpenGL version:                         3.1
GLSL version:                           1.40
X server version:                       1.18.4
Linux kernel version:                   4.7.3
Requires strict binding:                no
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
Pixel was QVector4D(0, 0, 0, 0) expected QVector4D(0, 1, 0, 1)
kwin_core: ShaderManager self test failed
kwin_core: Failed to initialize compositing, compositing disabled
QXcbConnection: XCB error: 3 (BadWindow), sequence: 1755, resource id: 611, major code: 3 (GetWindowAttributes), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1756, resource id: 611, major code: 14 (GetGeometry), minor code: 0

I'm attaching here my patch that fixes this issue.

Skipping the selftests generally seems like a horrible idea, but things appear to work perfectly when doing so. So... what's the deal? Are the self tests bogus? Is there a driver problem? A config problem?
Comment 46 Martin Flöser 2016-09-12 08:46:27 UTC
@Jason: you are experiencing bug #367766
Comment 47 kde 2016-11-04 22:39:22 UTC
Hello,

I have approximatively the same hardware than the one described in this bug.

When I try to activate the OpenGL compositor, kwin becomes so slow that it is not usable anymore, the time between a mouse button click and the click handling is more than one minute. Xrender works fine. 

As far as I understood m00nraker and Sergei succeed to enable OpenGl compositor by disabling the selftest as described here : https://bugs.kde.org/show_bug.cgi?id=360033#c28

Unfortunately, it does not change anything for me as the test was successful.

here is some output : (I tried with Kwin 5.8.2 too)

qdbus org.kde.KWin /KWin supportInformation
==========================

Version
=======
KWin version: 5.8.0
Qt Version: 5.6.1
Qt compile version: 5.6.1
XCB compile version: 1.12

Operation Mode: X11 only

Build Options
=============
KWIN_BUILD_DECORATIONS: yes
KWIN_BUILD_TABBOX: yes
KWIN_BUILD_ACTIVITIES: yes
HAVE_INPUT: yes
HAVE_DRM: yes
HAVE_GBM: yes
HAVE_X11_XCB: yes
HAVE_EPOXY_GLX: yes
HAVE_WAYLAND_EGL: yes

X11
===
Vendor: The X.Org Foundation
Vendor Release: 11804000
Protocol Version/Revision: 11/0
SHAPE: yes; Version: 0x11
RANDR: yes; Version: 0x14
DAMAGE: yes; Version: 0x11
Composite: yes; Version: 0x4
RENDER: yes; Version: 0xb
XFIXES: yes; Version: 0x50
SYNC: yes; Version: 0x31
GLX: yes; Version: 0x0

Decoration
==========
Plugin: org.kde.breeze
Theme: 
Blur: 0
onAllDesktopsAvailable: true
alphaChannelSupported: true
closeOnDoubleClickOnMenu: false
decorationButtonsLeft: 0, 2
decorationButtonsRight: 6, 3, 4, 5
borderSize: 3
gridUnit: 10
font: DejaVu Sans,10,-1,5,50,0,0,0,0,0
smallSpacing: 2
largeSpacing: 10

Options
=======
focusPolicy: 0
nextFocusPrefersMouse: false
clickRaise: true
autoRaise: false
autoRaiseInterval: 0
delayFocusInterval: 0
shadeHover: false
shadeHoverInterval: 250
separateScreenFocus: false
placement: 4
focusPolicyIsReasonable: true
borderSnapZone: 10
windowSnapZone: 10
centerSnapZone: 0
snapOnlyWhenOverlapping: false
rollOverDesktops: true
focusStealingPreventionLevel: 1
legacyFullscreenSupport: false
operationTitlebarDblClick: 5000
operationMaxButtonLeftClick: 5000
operationMaxButtonMiddleClick: 5015
operationMaxButtonRightClick: 5014
commandActiveTitlebar1: 0
commandActiveTitlebar2: 30
commandActiveTitlebar3: 2
commandInactiveTitlebar1: 4
commandInactiveTitlebar2: 30
commandInactiveTitlebar3: 2
commandWindow1: 7
commandWindow2: 8
commandWindow3: 8
commandWindowWheel: 31
commandAll1: 10
commandAll2: 3
commandAll3: 14
keyCmdAllModKey: 16777251
showGeometryTip: false
condensedTitle: false
electricBorderMaximize: true
electricBorderTiling: true
electricBorderCornerRatio: 0.25
borderlessMaximizedWindows: false
killPingTimeout: 5000
hideUtilityWindowsForInactive: true
inactiveTabsSkipTaskbar: false
autogroupSimilarWindows: false
autogroupInForeground: true
compositingMode: 1
useCompositing: true
compositingInitialized: true
hiddenPreviews: 1
glSmoothScale: 2
colorCorrected: false
xrenderSmoothScale: false
maxFpsInterval: 16666666
refreshRate: 0
vBlankTime: 6000000
glStrictBinding: false
glStrictBindingFollowsDriver: true
glCoreProfile: false
glPreferBufferSwap: 99
glPlatformInterface: 1
windowsBlockCompositing: true

Screen Edges
============
desktopSwitching: false
desktopSwitchingMovingClients: false
cursorPushBackDistance: 1x1
timeThreshold: 150
reActivateThreshold: 350
actionTopLeft: 0
actionTop: 0
actionTopRight: 0
actionRight: 0
actionBottomRight: 0
actionBottom: 0
actionBottomLeft: 0
actionLeft: 0

Screens
=======
Multi-Head: no
Active screen follows mouse:  no
Number of Screens: 1

Screen 0:
---------
Name: DVI-I-1
Geometry: 0,0,1280x1024
Refresh Rate: 60.0197


Compositing
===========
Compositing is active
Compositing Type: OpenGL
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 6500/PCIe/SSE2
OpenGL version string: 2.1.2 NVIDIA 304.131
OpenGL platform interface: GLX
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
Driver: NVIDIA
Driver version: 304.131
GPU class: NV40/G70
OpenGL version: 2.1.2
GLSL version: 1.20
X server version: 1.18.4
Linux kernel version: 4.6
Direct rendering: Requires strict binding: no
GLSL shaders:  limited
Texture NPOT support:  yes
Virtual Machine:  no
OpenGL 2 Shaders are used
Painting blocks for vertical retrace:  no

Loaded Effects:
---------------
blur

Currently Active Effects:
-------------------------
blur

Effect Settings:
----------------
blur:
blurRadius: 12
cacheTexture: true


kwin_x11 --replace

OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 GeForce 6500/PCIe/SSE2
OpenGL version string:                  2.1.2 NVIDIA 304.131
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
Driver:                                 NVIDIA
Driver version:                         304.131
GPU class:                              NV40/G70
OpenGL version:                         2.1.2
GLSL version:                           1.20
X server version:                       1.18.4
Linux kernel version:                   4.6
Requires strict binding:                no
GLSL shaders:                           limited
Texture NPOT support:                   yes
Virtual Machine:                        no
QXcbConnection: XCB error: 3 (BadWindow), sequence: 35175, resource id: 20974176, major code: 18 (ChangeProperty), minor code: 0
OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 GeForce 6500/PCIe/SSE2
OpenGL version string:                  2.1.2 NVIDIA 304.131
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
Driver:                                 NVIDIA
Driver version:                         304.131
GPU class:                              NV40/G70
OpenGL version:                         2.1.2
GLSL version:                           1.20
X server version:                       1.18.4
Linux kernel version:                   4.6
Requires strict binding:                no
GLSL shaders:                           limited
Texture NPOT support:                   yes
Virtual Machine:                        no
OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 GeForce 6500/PCIe/SSE2
OpenGL version string:                  2.1.2 NVIDIA 304.131
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
Driver:                                 NVIDIA
Driver version:                         304.131
GPU class:                              NV40/G70
OpenGL version:                         2.1.2
GLSL version:                           1.20
X server version:                       1.18.4
Linux kernel version:                   4.6
Requires strict binding:                no
GLSL shaders:                           limited
Texture NPOT support:                   yes
Virtual Machine:                        no

glxinfo |grep -i opengl
OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce 6500/PCIe/SSE2
OpenGL version string: 2.1.2 NVIDIA 304.131
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 2.0 NVIDIA 304.131 304.131
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 1.00

PS: nvidia has updated the driver to 304.132 but it gave me a black screen
and I had to revert back to the 304.131..

Hope it helps
Regards
Cedric
Comment 48 kde 2016-11-05 17:01:10 UTC
Some additional debug informations with QT_LOGGING_RULES="*.debug=true",
It seems that at a certain moment we loose the X11 connection.

I do not know if I should open a new bug report with this new informations, or if this thread is the right one.


QT_LOGGING_RULES="*.debug=true" kwin_x11 --replace

qt.qpa.screen: Output VGA-0 is not connected
qt.qpa.screen: Output DVI-I-0 is not connected
qt.qpa.screen: Output TV-0 is not connected
qt.qpa.screen: adding QXcbScreen(0xc2a240, name="DVI-I-1", geometry=1280x1024+0+0, availableGeometry=1280x997+0+0, devicePixelRatio=1.0, logicalDpi=QPair(85.1,86.1), physicalSize=376.0x301.0mm, screenNumber=0, virtualSize=1280x1024 (1280.0x1024.0mm), orientation=Qt::ScreenOrientation(LandscapeOrientation), depth=24, refreshRate=60.0, root=252, windowManagerName="KWin") (Primary: true )
qt.qpa.screen: primary output is "DVI-I-1"
qt.qpa.input.devices: XInput version 2.2 is available and Qt supports 2.2 or greater
qt.qpa.input.devices: input device  Virtual core XTEST pointer ID 4
qt.qpa.input.devices:    has 10 buttons
qt.qpa.input.devices:    has valuator "Rel X" recognized? true
qt.qpa.input.devices:    has valuator "Rel Y" recognized? true
qt.qpa.input.devices:    it's a scrolling device
qt.qpa.input.devices: input device  USB Optical Mouse ID 10
qt.qpa.input.devices:    has 7 buttons
qt.qpa.input.devices:    has valuator "Rel X" recognized? true
qt.qpa.input.devices:    has valuator "Rel Y" recognized? true
qt.qpa.input.devices:    has valuator "Rel Horiz Scroll" recognized? true
qt.qpa.input.devices:    has valuator "Rel Vert Scroll" recognized? true
qt.qpa.input.devices:    it's a scrolling device
qt.xcb.glintegration: Choosing xcb gl-integration based on following priority
 ("xcb_glx", "xcb_egl")
qt.xcb.glintegration: Xcb GLX gl-integration created
qt.xcb.glintegration: Xcb GLX gl-integration successfully initialized
kwin_platform_x11_standalone: Has XInput support 2 . 2
kwin_xkbcommon: XKB: created compose table from locale fr_FR.UTF-8 with path /usr/share/X11/locale/en_US.UTF-8/Compose
kwin_xkbcommon: XKB: Compiling from RMLVO: rules 'evdev', model 'pc104', layout 'us', variant '(null)', options ''
kwin_xkbcommon: XKB: Compiling from KcCGST: keycodes 'evdev+aliases(qwerty)', types 'complete', compat 'complete', symbols 'pc+us+inet(evdev)'
kwin_xkbcommon: XKB: Compiling xkb_keycodes "(unnamed)"
kwin_xkbcommon: XKB: Compiling xkb_types "(unnamed)"
kwin_xkbcommon: XKB: Compiling xkb_compatibility "(unnamed)"
kwin_xkbcommon: XKB: The "group" statement in compat is unsupported; Ignored
kwin_xkbcommon: XKB: The "group" statement in compat is unsupported; Ignored                                                                         
kwin_xkbcommon: XKB: The "group" statement in compat is unsupported; Ignored                                                                         
kwin_xkbcommon: XKB: The "allowExplicit" field in indicator statements is unsupported; Ignored                                                       
kwin_xkbcommon: XKB: The "allowExplicit" field in indicator statements is unsupported; Ignored                                                       
kwin_xkbcommon: XKB: The "allowExplicit" field in indicator statements is unsupported; Ignored                                                       
kwin_xkbcommon: XKB: The "allowExplicit" field in indicator statements is unsupported; Ignored                                                       
kwin_xkbcommon: XKB: The "indicatorDrivesKeyboard" field in indicator statements is unsupported; Ignored                                             
kwin_xkbcommon: XKB: The "allowExplicit" field in indicator statements is unsupported; Ignored                                                       
kwin_xkbcommon: XKB: Indicator name "Shift Lock" was not declared in the keycodes section; Adding new indicator                                      
kwin_xkbcommon: XKB: Indicator name "Group 2" was not declared in the keycodes section; Adding new indicator                                         
kwin_xkbcommon: XKB: Indicator name "Mouse Keys" was not declared in the keycodes section; Adding new indicator
kwin_xkbcommon: XKB: Compiling xkb_symbols "(unnamed)"

kwin_core: Extensions: shape: 0x "11"  composite: 0x "4"  render: 0x "b"  fixes: 0x "50"  randr: 0x "14"  sync: 0x "31"  damage: 0x  "11"
kwin_decorations: Trying to load decoration plugin:  "/usr/lib/x86_64-linux-gnu/qt5/plugins/org.kde.kdecoration2/breezedecoration.so"
org.kde.kwindowsystem: Loaded plugin "/usr/lib/x86_64-linux-gnu/qt5/plugins/kf5/org.kde.kwindowsystem.platforms/KF5WindowSystemX11Plugin.so" for platform "xcb"
kwin_core: User timestamp, ASN: 314465
kwin_core: User timestamp, final: 'ID: 52428804 ;WMCLASS: "systemsettings" : "systemsettings5" ;Caption: "Configuration du système" ' : 314465
kwin_core: User timestamp, ASN: 93001
kwin_core: User timestamp, final: 'ID: 44040196 ;WMCLASS: "kate" : "kate" ;Caption: "kwin_supportInformation.txt  — Kate" ' : 93001
kwin_core: User timestamp, ASN: 371046
kwin_core: User timestamp, final: 'ID: 37748741 ;WMCLASS: "konsole" : "konsole" ;Caption: "kwin-5.8.2 : kwin_x11 — Konsole" ' : 371046
kwin_core: User timestamp, ASN: 72770
kwin_core: User timestamp, final: 'ID: 35651593 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Bureau — Plasma" ' : 72770
kwin_core: User timestamp, ASN: 339969
kwin_core: User timestamp, final: 'ID: 65011818 ;WMCLASS: "firefox" : "navigator" ;Caption: "Clean up how we deal with debug input | Diff Viewer | Review Board - Mozilla Firefox" ' : 339969
kwin_core: User timestamp, ASN: 342465
kwin_core: User timestamp, final: 'ID: 35651601 ;WMCLASS: "plasmashell" : "plasmashell" ;Caption: "Plasma" ' : 342465
kwin_core: Initializing OpenGL compositing
kwin_platform_x11_standalone: Choosing GLXFBConfig 0xf9 X visual 0x2f depth 24 RGBA 8:8:8:0 ZS 0:0
OpenGL vendor string:                   NVIDIA Corporation
OpenGL renderer string:                 GeForce 6500/PCIe/SSE2
OpenGL version string:                  2.1.2 NVIDIA 304.131
OpenGL shading language version string: 1.20 NVIDIA via Cg compiler
Driver:                                 NVIDIA
Driver version:                         304.131
GPU class:                              NV40/G70
OpenGL version:                         2.1.2
GLSL version:                           1.20
X server version:                       1.18.4
Linux kernel version:                   4.7
Requires strict binding:                no
GLSL shaders:                           limited
Texture NPOT support:                   yes
Virtual Machine:                        no
kwin_platform_x11_standalone: Direct rendering: true
kwin_core: Initializing fences for synchronization with the X command stream
kwin_core: Color correction: false
kwin_core: OpenGL 2 compositing successfully initialized
kwin_core: Vertical Refresh rate  60 Hz ( "primary screen" )
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-API" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-MainScript" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KDE-Ordering" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-API" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-MainScript" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KDE-Ordering" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KDE-ParentApp" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KDE-Ordering" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-API" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-MainScript" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-RemoteLocation" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KWin-Video-Url" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-API" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-MainScript" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KDE-Ordering" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KDE-Ordering" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-API" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-MainScript" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KDE-PluginKeyword" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KDE-ParentComponents" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KWin-Config-TranslationDomain" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KDE-Ordering" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-API" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-MainScript" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KDE-PluginKeyword" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KDE-ParentComponents" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KWin-Config-TranslationDomain" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-API" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-MainScript" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KDE-Ordering" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-API" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-MainScript" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KDE-Ordering" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KWin-Video-Url" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KWin-Exclusive-Category" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KDE-ParentApp" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KDE-Ordering" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-API" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-DefaultSize" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-MainScript" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-RemoteLocation" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KWin-Video-Url" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-API" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-MainScript" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KDE-Ordering" -> falling back to string
kwin_platform_x11_standalone: Using FBConfig 0x170 for visual 0xb0
kwin_platform_x11_standalone: Using FBConfig 0xfd for visual 0x31
kwin_platform_x11_standalone: Using FBConfig 0xfd for visual 0x31
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1651, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1661, resource id: 0, major code: 14 (GetGeometry), minor code: 0
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-API" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-MainScript" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KWin-Exclude-Listing" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-API" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-MainScript" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KDE-PluginKeyword" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KDE-ParentComponents" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-API" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-MainScript" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-API" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-MainScript" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KDE-PluginKeyword" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-API" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-MainScript" -> falling back to string
kwin_core: Session path: "/org/freedesktop/login1/session/_33"
kwin_core: Successfully loaded built-in effect:  "blur"
The X11 connection broke (error 1). Did the X11 server die?
Application::crashHandler() called with signal 11; recent crashes: 1
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = kwin_x11 path = /usr/bin pid = 2097
KCrash: Arguments: /usr/bin/kwin_x11 --replace 
Erreur de segmentation

After this segmentation fault, the kwin_x11 restart up to the following crash :

win_platform_x11_standalone: Using FBConfig 0x170 for visual 0xb0
kwin_platform_x11_standalone: Using FBConfig 0xfd for visual 0x31
kwin_platform_x11_standalone: Using FBConfig 0xfd for visual 0x31
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1661, resource id: 0, major code: 14 (GetGeometry), minor code: 0
QXcbConnection: XCB error: 9 (BadDrawable), sequence: 1671, resource id: 0, major code: 14 (GetGeometry), minor code: 0
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-API" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-MainScript" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KWin-Exclude-Listing" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-API" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-MainScript" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KDE-PluginKeyword" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KDE-ParentComponents" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-API" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-MainScript" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-API" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-MainScript" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-KDE-PluginKeyword" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-API" -> falling back to string
kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-MainScript" -> falling back to string
The X11 connection broke: I/O error (code 1)
XIO:  fatal IO error 2 (Aucun fichier ou dossier de ce type) on X server ":0"
      after 1799 requests (1799 known processed) with 0 events remaining.
Application::crashHandler() called with signal 11; recent crashes: 2
KCrash: crashing... crashRecursionCounter = 2
KCrash: Application Name = kwin_x11 path = /usr/bin pid = 2110
KCrash: Arguments: /usr/bin/kwin_x11 --crashes 1 
qt.qpa.screen: Output VGA-0 is not connected
qt.qpa.screen: Output DVI-I-0 is not connected
qt.qpa.screen: Output TV-0 is not connected
OpenGL 2 compositing successfully initialized

Regards
Cedric
Comment 49 Martin Flöser 2016-11-05 17:43:19 UTC
@Cedric: you are experiencing a crash which is not the same problem as original described in this bug report. Please report a new bug with the backtrace of the crash.
Comment 50 Leslie Zhai 2016-11-25 04:38:43 UTC
> kf5.kcoreaddons.desktopparser: Unknown property type for key "X-Plasma-API" -> falling back to string

why kcoreaddons/src/lib/plugin/desktopfileparser.cpp can *NOT* find key, the size of m_definitions is always ZERO!?
Comment 51 kde.org 2021-11-06 18:11:53 UTC
This issue report is quite old. Can you please confirm, that it still persists with KDE 5.23?
Comment 52 Sergey 2021-11-06 22:53:22 UTC
(In reply to kde.org from comment #51)
> This issue report is quite old. Can you please confirm, that it still
> persists with KDE 5.23?

nVidia has stopped supporting such old generation of GPUs in the kernel. So, I decided to upgrade GPU and I no longer have such problem and I also don't have to use suggested patch above. But I didn't try to use old GPU with opensource video driver.
Comment 53 kde.org 2021-11-06 22:57:14 UTC
User cannot reproduce the issue, as hardware has been upgraded and new hardware doesn't expose the reported issue.