Bug 494083

Summary: kwin_wayland freezes or crashes while browsing windy.com in Chrome
Product: [Plasma] kwin Reporter: Bernie Innocenti <bernie>
Component: scene-openglAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: crash CC: kde
Priority: NOR    
Version First Reported In: 6.1.90   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Bernie Innocenti 2024-10-04 02:10:15 UTC
Related Chrome bug: https://issues.chromium.org/issues/371247946

NOTE: The root cause might very well be a mesa or Intel DRM bug. Reporting it here because it seems kwin_wayland recovery code for GPU hangs is also failing in some cases.

SUMMARY

The windy.com website often causes a GPU lockup which freezes the display for a few seconds. Afterwards, kwin puts up a notification that effects have been disabled.

On some occasions, kwin_wayland also crashes:

Oct 04 10:35:35 giskard kwin_wayland[1501]: kf.windowsystem: static bool KX11Extras::mapViewport() may only be used on X11
Oct 04 10:35:35 giskard kwin_wayland[1501]: kwin_scene_opengl: 0x3: GL_INVALID_VALUE in glTexStorage2D(width, height or depth < 1)
Oct 04 10:35:35 giskard kwin_wayland[1501]: kwin_scene_opengl: Invalid framebuffer status:  "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT"
Oct 04 10:35:35 giskard kwin_wayland[1501]: kwin_scene_opengl: 0x3: GL_INVALID_OPERATION in glBindFramebuffer(non-gen name)
Oct 04 10:35:35 giskard kwin_wayland[1501]: kwin_scene_opengl: 0x3: GL_INVALID_FRAMEBUFFER_OPERATION in glClear(incomplete framebuffer)


STEPS TO REPRODUCE

Probably requires an Intel GPU to trigger.

1. Go to https://windy.com
2. Switch to the "Radar+" view
3. Zoom in and out or pan for a few seconds

IMPORTANT NOTES

- I can't find any other WebGL site reproducing this.

- This crash has been present for several months, so also with Plasma 6.1 and with earlier versions of Chrome and Mesa.


SOFTWARE/OS VERSIONS
KDE Plasma Version: 6.1.90
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Mesa: 24.2.3
Comment 1 Vlad Zahorodnii 2024-10-04 12:39:50 UTC
I cannot reproduce it
Comment 2 David Edmundson 2024-10-04 12:44:06 UTC
Nor I, there is nothing left to keep this actionable. I think you are right that this is a mesa issue.
Comment 3 Bernie Innocenti 2025-03-31 07:26:20 UTC
This is still reproducible on Fedora Rawhide (past F42), and now even in Firefox.

No action required on the KDE side. For reference, this  is the upstream Mesa bug: https://gitlab.freedesktop.org/mesa/mesa/-/issues/11429