Bug 341290

Summary: kwin window corruption: KWin::checkGLError: GL error ( PostPaint ): "GL_INVALID_OPERATION"
Product: [Plasma] kwin Reporter: Wouter Van Hemel <wouter-kde>
Component: scene-openglAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal Keywords: triaged
Priority: NOR    
Version: 4.11.12   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
See Also: https://bugs.kde.org/show_bug.cgi?id=346548
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: qdbus org.kde.kwin /KWin supportInformation

Description Wouter Van Hemel 2014-11-26 12:52:52 UTC
A few hours after boot, the compositor stops redrawing my screen. The whole desktop isn't updated anymore, the image freezes: all windows still show but are not updated anymore, alt-tab and focus shift don't update windows, and switching desktop probably works fine but doesn't update the screen either. Only the mouse pointer changes depending what is under it.

ALT-SHIFT-F12 turns off compositing and brings back full functionality. Toggling compositing back on, the same frozen desktop appears, the state is never reset.

Making a screenshot is probably useless – just imagine staring at your screen without touching your mouse and keyboard.

I have a feeling something in Firefox or its Flash plugin triggers the bug, stealing opengl "focus" or putting it in such a state kwin can't use it anymore. It happens daily for many months, but I haven't found an exact trigger case as I can't get compositing back in a working state easily to test. Problem persists after toggling compositing off and back on.

It could well be related to bug #330986.

Reproducible: Always

Steps to Reproduce:
1. Work with computer
2. Do something unspecified (might be related with direct rendering in Firefox or Flash)
3. Windows don't update anymore

Actual Results:  
Screen is not repainted anymore


Note: kwin version is really 4.11.13 (not listed in options above), the version in Debian unstable.

Some relevant Xorg output:
[     7.252] (--) intel(0): Integrated Graphics Chipset: Intel(R) Q35

[     7.447] (II) intel(0): [DRI2]   DRI driver: i915

[     7.449] (II) UXA(0): Driver registered support for the following operations:
[     7.449] (II)         solid
[     7.449] (II)         copy
[     7.449] (II)         composite (RENDER acceleration)
[     7.449] (II)         put_image
[     7.449] (II)         get_image

[     7.449] (II) intel(0): direct rendering: DRI2 Enabled

[     7.503] (II) AIGLX: enabled GLX_MESA_copy_sub_buffer
[     7.503] (II) AIGLX: enabled GLX_ARB_create_context
[     7.503] (II) AIGLX: enabled GLX_ARB_create_context_profile
[     7.503] (II) AIGLX: enabled GLX_EXT_create_context_es2_profile
[     7.503] (II) AIGLX: enabled GLX_INTEL_swap_event
[     7.503] (II) AIGLX: enabled GLX_SGI_swap_control and GLX_MESA_swap_control
[     7.503] (II) AIGLX: enabled GLX_EXT_framebuffer_sRGB
[     7.503] (II) AIGLX: enabled GLX_ARB_fbconfig_float
[     7.503] (II) AIGLX: GLX_EXT_texture_from_pixmap backed by buffer objects
[     7.503] (II) AIGLX: Loaded and initialized i915
[     7.503] (II) GLX: Initialized DRI2 GL provider for screen 0


$ killall -9 kwin; MESA_DEBUG=1 LIBGL_DEBUG=1 kwin --replace &
Mesa: User error: GL_INVALID_OPERATION in glCopyTexSubImage2D(missing readbuffer, format=0x1908)
kwin(12463) KWin::checkGLError: GL error ( PostPaint ):  "GL_INVALID_OPERATION"
Mesa: User error: GL_INVALID_OPERATION in glCopyTexSubImage2D(missing readbuffer, format=0x1908)
kwin(12463) KWin::checkGLError: GL error ( PostPaint ):  "GL_INVALID_OPERATION"
Mesa: User error: GL_INVALID_OPERATION in glCopyTexSubImage2D(missing readbuffer, format=0x1908)
[...]
Comment 1 Wouter Van Hemel 2014-11-26 12:54:00 UTC
Created attachment 89733 [details]
qdbus org.kde.kwin /KWin supportInformation
Comment 2 Martin Flöser 2014-11-26 13:18:53 UTC
is there some interesting information in dmesg or xorg log at that time? E.g. a notification about a hung GPU?
Comment 3 Thomas Lübking 2014-11-26 15:26:26 UTC
> kwin(12463) KWin::checkGLError: GL error ( PostPaint ):  "GL_INVALID_OPERATION"

Since the lanczos filter seems off (not "accurate", but "smooth" scaling) this would be caused by the blur effect.
-> You could disable it and see if the issue persists.

Other things:
> UXA(0): Driver registered support for the following operations:
You should try SNA acceleration, afair UXA is unmaintained.

> Qt Graphics System: native
Please try the raster graphicssystem here (probably better performance) "kcmshell4 kwincompositing"

Last: please attach the output of "glxinfo -l", thanks.
Comment 4 Thomas Lübking 2015-07-06 20:33:27 UTC
Any update on this?
Comment 5 Andrew Crouthamel 2018-09-25 21:42:53 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 6 Andrew Crouthamel 2018-10-27 03:36:24 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!