https://bugs.kde.org/show_bug.cgi?id=485884
Bug ID: 485884 Summary: With an offscreen effect enabled, opening a window without frame sometimes causes a flickering black screen on Wayland Classification: Plasma Product: kwin Version: 6.0.4 Platform: NixOS OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: effects-various Assignee: kwin-bugs-n...@kde.org Reporter: afd5997d-00de-465b-bd93-7f979e280...@simplelogin.com Target Milestone: --- Created attachment 168736 --> https://bugs.kde.org/attachment.cgi?id=168736&action=edit The output of "qdbus org.kde.KWin /KWin org.kde.KWin.supportInformation" SUMMARY When window decorations are disabled, a window's expanded geometry can be 0 for a very short period of time after being opened. Frame geometry seems to always have a correct value. When an offscreen effect is active, KWin attempts to allocate a 0 by 0 texture in OffscreenData::maybeRender, which fails, but KWin uses that texture anyways. This results in the entire screen turning black with the following messages being logged in the journal: kwi 21 10:35:49 thinkpad kwin_wayland[1628]: kf.windowsystem: static bool KX11Extras::mapViewport() may only be used on X11 kwi 21 10:35:49 thinkpad kwin_wayland[1628]: kwin_scene_opengl: 0x2: GL_INVALID_VALUE in glTexStorage2D(width, height or depth < 1) kwi 21 10:35:49 thinkpad kwin_wayland[1628]: kwin_scene_opengl: Invalid framebuffer status: "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT" kwi 21 10:35:49 thinkpad kwin_wayland[1628]: kwin_scene_opengl: Can't enable invalid framebuffer object! This issue only occurs on Wayland. I found two programs it can reliably reproduced with: - Cryptomator (1.12.4) - GIMP (2.10.36) It doesn't seem to occur with Qt or other GTK applications. STEPS TO REPRODUCE 1. Create a window rule that disables the titlebar and frame 2. Enable an offscreen effect, such as colorblindness correction 3. Open GIMP (sometimes this alone can cause the bug) 4. Repeatedly open and close a dialog by pressing CTRL+N and ESC. If the issue does not occur after a few attempts, restart GIMP and try again. OBSERVED RESULT The entire screen turns black and flickers until repainted. EXPECTED RESULT The screen shouldn't turn black. SOFTWARE/OS VERSIONS Linux: NixOS 24.05, Linux 6.8.7 KDE Plasma Version: 6.0.4 KDE Frameworks Version: 6.1.0 Qt Version: 6.7.0 ADDITIONAL INFORMATION I've attached videos of the issue occurring with GIMP and Cryptomator along with the output of "qdbus org.kde.KWin /KWin org.kde.KWin.supportInformation". -- You are receiving this mail because: You are watching all bug changes.