Bug 490682 - GL_INVALID_OPERATION errors when alt-tab tries to show window previews
Summary: GL_INVALID_OPERATION errors when alt-tab tries to show window previews
Status: RESOLVED UPSTREAM
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 6.1.3
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL: https://codereview.qt-project.org/c/q...
Keywords:
: 490563 493911 (view as bug list)
Depends on:
Blocks:
 
Reported: 2024-07-23 00:57 UTC by iodreamify
Modified: 2024-10-25 14:56 UTC (History)
7 users (show)

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


Attachments
error log (30.66 KB, application/octet-stream)
2024-07-23 00:57 UTC, iodreamify
Details

Note You need to log in before you can comment on or make changes to this bug.
Description iodreamify 2024-07-23 00:57:38 UTC
Created attachment 171918 [details]
error log

SUMMARY
kwin will consistently spam 

kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
 
errors when i press alt-tab and hold alt so the preview box appears and i start selecting different windows with the arrow keys by pressing the tab key again. It only seems to happen when the previews are activated because just a quick single alt-tab so that the last window gets raised immediate and no previews are shown doesn't trigger the error. 

As far as i can tell no functionality is missing though because the previews are working.

STEPS TO REPRODUCE
1. enter the alt-tab preview box 
2. use arrow keys to select different windows
3. hold the selection for a few seconds.

OBSERVED RESULT
kwin spams GL error messages 

EXPECTED RESULT
no error messages

Operating System: Arch Linux 
KDE Plasma Version: 6.1.3
KDE Frameworks Version: 6.4.0
Qt Version: 6.7.2
Kernel Version: 6.9.10-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 7535HS with Radeon Graphics
Graphics Processor: AMD Radeon 660M
Comment 1 Bug Janitor Service 2024-07-23 01:33:37 UTC
Thank you for the bug report!

However Plasma 5.25.4 is no longer eligible for support or maintenance from KDE; supported versions are 5.27 (LTS), and 5.27 (non-LTS) or newer. Please upgrade to a supported version as soon as your distribution makes it available to you. Plasma is a fast-moving project, and bugs in one version are often fixed in the next one.

If you need support for Plasma 5.25.4, please contact your distribution, who bears the responsibility of providing support for older releases that are no longer supported by KDE.

If you can reproduce the issue after upgrading to a supported version, feel free to re-open this bug report.
Comment 2 iodreamify 2024-07-23 01:35:13 UTC
Sorry, wrong Plasma version was selected
Comment 3 Vlad Zahorodnii 2024-07-25 11:40:28 UTC
*** Bug 490563 has been marked as a duplicate of this bug. ***
Comment 4 Zlatko 2024-08-08 07:21:06 UTC
To add to this -> this line is preceded by another one:

    kwin_wayland[3504]: This plugin does not support raise()

When you raise a task switcher (alt-tab) and it finally apears, the "this plugin does not support  raise()" message appears, and then the GL_INVALID_OPERATION starts slowly spamming (about 3-5 times per second) the messages log.

I landed here while researching why the alt-tab task switcher takes so long - longer then one second to show, and then again the same to "unfreeze" once you pick a window - on a modern desktop.

My config (if it helps):

Operating System: Fedora Linux 40
KDE Plasma Version: 6.1.2
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel Version: 6.9.9-200.fc40.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen 9 7900X 12-Core Processor
Memory: 62,0 GiB of RAM
Graphics Processor: AMD Radeon RX 6700 XT
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7E26
System Version: 1.0
Comment 5 Bernie Innocenti 2024-08-20 02:38:46 UTC
Perhaps relevant: I get a large number of these errors from kwin following an Intel GPU reset:

Aug 20 11:23:54 giskard kwin_wayland[1430]: kwin_scene_opengl: A graphics reset not attributable to the current GL context occurred.
Aug 20 11:23:54 giskard kwin_wayland[1430]: kwin_scene_opengl: 0x3: GL_CONTEXT_LOST in context lost
Aug 20 11:23:54 giskard kwin_wayland[1430]: kwin_scene_opengl: 0x3: GL_CONTEXT_LOST in context lost
...
Aug 20 11:23:54 giskard kwin_wayland[1430]: kwin_scene_opengl: 0x3: GL_CONTEXT_LOST in context lost
Aug 20 11:23:54 giskard kwin_wayland[1430]: kwin_scene_opengl: 0x3: GL_CONTEXT_LOST in context lost
Aug 20 11:23:54 giskard google-chrome-stable[80091]: [80151:80151:0820/112354.363244:ERROR:shared_context_state.cc(1210)] SharedContextState context lost via ARB/EXT_robustness. Reset status = GL_GUILTY_CONTEXT_RESET_KHR
Aug 20 11:23:54 giskard google-chrome-stable[80091]: [80151:80151:0820/112354.366781:ERROR:gpu_service_impl.cc(1147)] Exiting GPU process because some drivers can't recover from errors. GPU process will restart shortly.
Aug 20 11:23:54 giskard kwin_wayland[1430]: KPackageStructure of KPluginMetaData(pluginId:"kwin4_effect_glitch", fileName: "/home/bernie/.local/share/kwin/effects/kwin4_effect_glitch/metadata.json") does not match requested format "KWin/Effect"
Aug 20 11:23:54 giskard kwin_wayland[1430]: KPackageStructure of KPluginMetaData(pluginId:"kwin4_effect_tv_glitch", fileName: "/home/bernie/.local/share/kwin/effects/kwin4_effect_tv_glitch/metadata.json") does not match requested format "KWin/Effect"
Aug 20 11:23:54 giskard google-chrome-stable[80091]: [101202:14:0820/112354.432108:ERROR:command_buffer_proxy_impl.cc(132)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
Aug 20 11:23:54 giskard google-chrome-stable[80091]: [80086:80086:0820/112354.450783:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=8704
Aug 20 11:24:02 giskard kwin_wayland[1430]: This plugin does not support raise()
Aug 20 11:24:02 giskard kwin_wayland[1430]: kwin_scene_opengl: 0x3: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
Aug 20 11:24:02 giskard kwin_wayland[1430]: kwin_scene_opengl: 0x3: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
Aug 20 11:24:02 giskard kwin_wayland[1430]: kwin_scene_opengl: 0x3: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
Aug 20 11:24:02 giskard kwin_wayland[1430]: kwin_scene_opengl: 0x3: GL_INVALID_OPERATION in glDrawBuffers(unsupported buffer GL_BACK_LEFT)
Comment 6 Malte S. Stretz 2024-08-29 08:38:31 UTC
This bug was closed as "UPSTREAM" without a comment but I guess the upstream bug is https://bugreports.qt.io/browse/QTBUG-122819
Comment 7 Zamundaaa 2024-10-25 14:35:46 UTC
*** Bug 493911 has been marked as a duplicate of this bug. ***
Comment 8 Zamundaaa 2024-10-25 14:48:17 UTC
This is just Qt calling glDrawBuffers in a situation where it doesn't make sense. I'll fix it upstream