Bug 480114 - On wayland, secondary monitor flickers when opening and closing a submenu in a GTK application (Invalid framebuffer status: "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT")
Summary: On wayland, secondary monitor flickers when opening and closing a submenu in ...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: compositing (show other bugs)
Version: 5.27.10
Platform: Arch Linux Other
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-21 00:55 UTC by juuso.maenpaa
Modified: 2024-03-06 17:54 UTC (History)
2 users (show)

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


Attachments
The other screen looks black on the recording but is actually flickering. It goes back to normal after clicking on the screen (600.80 KB, video/x-matroska)
2024-01-21 00:55 UTC, juuso.maenpaa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description juuso.maenpaa 2024-01-21 00:55:09 UTC
Created attachment 165087 [details]
The other screen looks black on the recording but is actually flickering. It goes back to normal after clicking on the screen

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
When I open a submenu (dialog window) in any GTK app (tested on Bottles and Mission Center) and close it, the monitor that the app is not placed on starts to flicker until I click on the desktop on that monitor.


STEPS TO REPRODUCE
1. Open any GTK application
2. Open a dialog window in the GTK application
3. Close the dialog window

OBSERVED RESULT
The screen not having the app starts to flicker.

EXPECTED RESULT
No screen flickering

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 6.7.0-arch3-1
(available in About System)
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.114.0
Qt Version: 5.12.12

ADDITIONAL INFORMATION
Output from `journalctl --user-unit plasma-kwin_wayland`:
```
-- Boot 02fd652bb3164992b3ca29f11995e157 --
tammi 21 02:22:39 hostname systemd[599]: Starting KDE Window Manager...
tammi 21 02:22:39 hostname systemd[599]: Started KDE Window Manager.
tammi 21 02:22:39 hostname kwin_wayland[647]: No backend specified, automatically choosing drm
tammi 21 02:22:39 hostname kwin_wayland[647]: OpenGL vendor string:                   AMD
tammi 21 02:22:39 hostname kwin_wayland[647]: OpenGL renderer string:                 AMD Radeon RX 6600 (radeonsi, navi23, LLVM 16.0.6, DRM 3.56, 6.7.0-arch3-1)
tammi 21 02:22:39 hostname kwin_wayland[647]: OpenGL version string:                  4.6 (Core Profile) Mesa 23.3.3-arch1.1
tammi 21 02:22:39 hostname kwin_wayland[647]: OpenGL shading language version string: 4.60
tammi 21 02:22:39 hostname kwin_wayland[647]: Driver:                                 Unknown
tammi 21 02:22:39 hostname kwin_wayland[647]: GPU class:                              Unknown
tammi 21 02:22:39 hostname kwin_wayland[647]: OpenGL version:                         4.6
tammi 21 02:22:39 hostname kwin_wayland[647]: GLSL version:                           4.60
tammi 21 02:22:39 hostname kwin_wayland[647]: Mesa version:                           23.3.3
tammi 21 02:22:39 hostname kwin_wayland[647]: Linux kernel version:                   6.7
tammi 21 02:22:39 hostname kwin_wayland[647]: Requires strict binding:                no
tammi 21 02:22:39 hostname kwin_wayland[647]: GLSL shaders:                           yes
tammi 21 02:22:39 hostname kwin_wayland[647]: Texture NPOT support:                   yes
tammi 21 02:22:39 hostname kwin_wayland[647]: Virtual Machine:                        no
tammi 21 02:22:39 hostname kwin_wayland_wrapper[714]: (WW) Option "-listen" for file descriptors is deprecated
tammi 21 02:22:39 hostname kwin_wayland_wrapper[714]: Please use "-listenfd" instead.
tammi 21 02:22:39 hostname kwin_wayland_wrapper[714]: (WW) Option "-listen" for file descriptors is deprecated
tammi 21 02:22:39 hostname kwin_wayland_wrapper[714]: Please use "-listenfd" instead.
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::begin: Paint device returned engine == 0, type: 3
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setCompositionMode: Painter not active
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setPen: Painter not active
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setBrush: Painter not active
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setRenderHint: Painter must be active to set rendering hints
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::end: Painter not active, aborted
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::begin: Paint device returned engine == 0, type: 3
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setCompositionMode: Painter not active
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setPen: Painter not active
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setBrush: Painter not active
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setRenderHint: Painter must be active to set rendering hints
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::end: Painter not active, aborted
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::begin: Paint device returned engine == 0, type: 3
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setPen: Painter not active
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setRenderHint: Painter must be active to set rendering hints
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setBrush: Painter not active
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setCompositionMode: Painter not active
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setBrush: Painter not active
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::end: Painter not active, aborted
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::begin: Paint device returned engine == 0, type: 3
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setPen: Painter not active
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setRenderHint: Painter must be active to set rendering hints
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setBrush: Painter not active
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setCompositionMode: Painter not active
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setBrush: Painter not active
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::end: Painter not active, aborted
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::begin: Paint device returned engine == 0, type: 3
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setCompositionMode: Painter not active
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setPen: Painter not active
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setBrush: Painter not active
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setRenderHint: Painter must be active to set rendering hints
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::end: Painter not active, aborted
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::begin: Paint device returned engine == 0, type: 3
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setCompositionMode: Painter not active
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setPen: Painter not active
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setBrush: Painter not active
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setRenderHint: Painter must be active to set rendering hints
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::end: Painter not active, aborted
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::begin: Paint device returned engine == 0, type: 3
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setPen: Painter not active
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setRenderHint: Painter must be active to set rendering hints
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setBrush: Painter not active
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setCompositionMode: Painter not active
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setBrush: Painter not active
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::end: Painter not active, aborted
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::begin: Paint device returned engine == 0, type: 3
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setPen: Painter not active
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setRenderHint: Painter must be active to set rendering hints
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setBrush: Painter not active
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setCompositionMode: Painter not active
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::setBrush: Painter not active
tammi 21 02:22:39 hostname kwin_wayland[647]: QPainter::end: Painter not active, aborted
tammi 21 02:22:40 hostname kwin_wayland_wrapper[752]: The XKEYBOARD keymap compiler (xkbcomp) reports:
tammi 21 02:22:40 hostname kwin_wayland_wrapper[752]: > Warning:          Could not resolve keysym XF86CameraAccessEnable
tammi 21 02:22:40 hostname kwin_wayland_wrapper[752]: > Warning:          Could not resolve keysym XF86CameraAccessDisable
tammi 21 02:22:40 hostname kwin_wayland_wrapper[752]: > Warning:          Could not resolve keysym XF86CameraAccessToggle
tammi 21 02:22:40 hostname kwin_wayland_wrapper[752]: > Warning:          Could not resolve keysym XF86NextElement
tammi 21 02:22:40 hostname kwin_wayland_wrapper[752]: > Warning:          Could not resolve keysym XF86PreviousElement
tammi 21 02:22:40 hostname kwin_wayland_wrapper[752]: > Warning:          Could not resolve keysym XF86AutopilotEngageToggle
tammi 21 02:22:40 hostname kwin_wayland_wrapper[752]: > Warning:          Could not resolve keysym XF86MarkWaypoint
tammi 21 02:22:40 hostname kwin_wayland_wrapper[752]: > Warning:          Could not resolve keysym XF86Sos
tammi 21 02:22:40 hostname kwin_wayland_wrapper[752]: > Warning:          Could not resolve keysym XF86NavChart
tammi 21 02:22:40 hostname kwin_wayland_wrapper[752]: > Warning:          Could not resolve keysym XF86FishingChart
tammi 21 02:22:40 hostname kwin_wayland_wrapper[752]: > Warning:          Could not resolve keysym XF86SingleRangeRadar
tammi 21 02:22:40 hostname kwin_wayland_wrapper[752]: > Warning:          Could not resolve keysym XF86DualRangeRadar
tammi 21 02:22:40 hostname kwin_wayland_wrapper[752]: > Warning:          Could not resolve keysym XF86RadarOverlay
tammi 21 02:22:40 hostname kwin_wayland_wrapper[752]: > Warning:          Could not resolve keysym XF86TraditionalSonar
tammi 21 02:22:40 hostname kwin_wayland_wrapper[752]: > Warning:          Could not resolve keysym XF86ClearvuSonar
tammi 21 02:22:40 hostname kwin_wayland_wrapper[752]: > Warning:          Could not resolve keysym XF86SidevuSonar
tammi 21 02:22:40 hostname kwin_wayland_wrapper[752]: > Warning:          Could not resolve keysym XF86NavInfo
tammi 21 02:22:40 hostname kwin_wayland_wrapper[752]: Errors from xkbcomp are not fatal to the X server
tammi 21 02:22:40 hostname kwin_wayland_wrapper[759]: The XKEYBOARD keymap compiler (xkbcomp) reports:
tammi 21 02:22:40 hostname kwin_wayland_wrapper[759]: > Warning:          Unsupported maximum keycode 708, clipping.
tammi 21 02:22:40 hostname kwin_wayland_wrapper[759]: >                   X11 cannot support keycodes above 255.
tammi 21 02:22:40 hostname kwin_wayland_wrapper[759]: > Warning:          Could not resolve keysym XF86CameraAccessEnable
tammi 21 02:22:40 hostname kwin_wayland_wrapper[759]: > Warning:          Could not resolve keysym XF86CameraAccessDisable
tammi 21 02:22:40 hostname kwin_wayland_wrapper[759]: > Warning:          Could not resolve keysym XF86CameraAccessToggle
tammi 21 02:22:40 hostname kwin_wayland_wrapper[759]: > Warning:          Could not resolve keysym XF86NextElement
tammi 21 02:22:40 hostname kwin_wayland_wrapper[759]: > Warning:          Could not resolve keysym XF86PreviousElement
tammi 21 02:22:40 hostname kwin_wayland_wrapper[759]: > Warning:          Could not resolve keysym XF86AutopilotEngageToggle
tammi 21 02:22:40 hostname kwin_wayland_wrapper[759]: > Warning:          Could not resolve keysym XF86MarkWaypoint
tammi 21 02:22:40 hostname kwin_wayland_wrapper[759]: > Warning:          Could not resolve keysym XF86Sos
tammi 21 02:22:40 hostname kwin_wayland_wrapper[759]: > Warning:          Could not resolve keysym XF86NavChart
tammi 21 02:22:40 hostname kwin_wayland_wrapper[759]: > Warning:          Could not resolve keysym XF86FishingChart
tammi 21 02:22:40 hostname kwin_wayland_wrapper[759]: > Warning:          Could not resolve keysym XF86SingleRangeRadar
tammi 21 02:22:40 hostname kwin_wayland_wrapper[759]: > Warning:          Could not resolve keysym XF86DualRangeRadar
tammi 21 02:22:40 hostname kwin_wayland_wrapper[759]: > Warning:          Could not resolve keysym XF86RadarOverlay
tammi 21 02:22:40 hostname kwin_wayland_wrapper[759]: > Warning:          Could not resolve keysym XF86TraditionalSonar
tammi 21 02:22:40 hostname kwin_wayland_wrapper[759]: > Warning:          Could not resolve keysym XF86ClearvuSonar
tammi 21 02:22:40 hostname kwin_wayland_wrapper[759]: > Warning:          Could not resolve keysym XF86SidevuSonar
tammi 21 02:22:40 hostname kwin_wayland_wrapper[759]: > Warning:          Could not resolve keysym XF86NavInfo
tammi 21 02:22:40 hostname kwin_wayland_wrapper[759]: > Error:            Key <CAPS> added to map for multiple modifiers
tammi 21 02:22:40 hostname kwin_wayland_wrapper[759]: >                   Using Control, ignoring Lock.
tammi 21 02:22:40 hostname kwin_wayland_wrapper[759]: Errors from xkbcomp are not fatal to the X server
tammi 21 02:22:42 hostname kwin_wayland[647]: kf.config.core: "\"fsrestore1\" - conversion of \"0,0,0,0\" to QRect failed"
tammi 21 02:22:42 hostname kwin_wayland[647]: kf.config.core: "\"fsrestore2\" - conversion of \"0,0,0,0\" to QRect failed"
tammi 21 02:22:42 hostname kwin_wayland[647]: kf.config.core: "\"fsrestore3\" - conversion of \"0,0,0,0\" to QRect failed"
tammi 21 02:22:44 hostname kwin_wayland[647]: kwin_core: Cannot grant a token to KWaylandServer::ClientConnection(0x63b755c19d30)
tammi 21 02:22:51 hostname kwin_wayland_wrapper[647]: error in client communication (pid 1263)
tammi 21 02:22:52 hostname kwin_wayland[647]: kwin_core: Cannot grant a token to KWaylandServer::ClientConnection(0x63b755e26db0)
tammi 21 02:23:03 hostname kwin_wayland[647]: libkwinglutils: Invalid framebuffer status:  "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT"
tammi 21 02:23:03 hostname kwin_wayland[647]: libkwinglutils: Can't enable invalid framebuffer object!
tammi 21 02:23:09 hostname kwin_wayland[647]: libkwinglutils: Invalid framebuffer status:  "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT"
tammi 21 02:23:09 hostname kwin_wayland[647]: libkwinglutils: Can't enable invalid framebuffer object!
tammi 21 02:23:13 hostname kstart5[1637]: Omitting both --window and --windowclass arguments is not recommended
tammi 21 02:24:13 hostname kwin_wayland[647]: kwin_core: Cannot grant a token to KWaylandServer::ClientConnection(0x63b755ce0e50)
tammi 21 02:24:19 hostname kwin_wayland[647]: libkwinglutils: Invalid framebuffer status:  "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT"
tammi 21 02:24:19 hostname kwin_wayland[647]: libkwinglutils: Can't enable invalid framebuffer object!
tammi 21 02:24:22 hostname kwin_wayland[647]: libkwinglutils: Invalid framebuffer status:  "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT"
tammi 21 02:24:22 hostname kwin_wayland[647]: libkwinglutils: Can't enable invalid framebuffer object!
tammi 21 02:24:25 hostname kwin_wayland[647]: libkwinglutils: Invalid framebuffer status:  "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT"
tammi 21 02:24:25 hostname kwin_wayland[647]: libkwinglutils: Can't enable invalid framebuffer object!
tammi 21 02:24:38 hostname kstart5[2763]: Omitting both --window and --windowclass arguments is not recommended
tammi 21 02:25:35 hostname kstart5[2890]: Omitting both --window and --windowclass arguments is not recommended
tammi 21 02:26:02 hostname kwin_wayland[647]: This plugin does not support raise()
tammi 21 02:28:05 hostname kwin_wayland[647]: This plugin does not support raise()
tammi 21 02:29:07 hostname kwin_wayland[647]: kwin_core: Cannot grant a token to KWaylandServer::ClientConnection(0x63b75511f510)
tammi 21 02:29:20 hostname kwin_wayland[647]: libkwinglutils: Invalid framebuffer status:  "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT"
tammi 21 02:29:20 hostname kwin_wayland[647]: libkwinglutils: Can't enable invalid framebuffer object!

```
Comment 1 juuso.maenpaa 2024-03-06 17:54:00 UTC
Updated to Plasma 6 and the issue is now gone.