Bug 419797 - [Wayland] Firefox rendering issues, also affecting other windows
Summary: [Wayland] Firefox rendering issues, also affecting other windows
Status: RESOLVED DUPLICATE of bug 387313
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: 5.18.3
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-07 15:04 UTC by magiblot
Modified: 2020-05-14 15:47 UTC (History)
2 users (show)

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


Attachments
Link to video showing the issue (66 bytes, text/plain)
2020-04-07 15:04 UTC, magiblot
Details
Link to video showing the issue with kdenlive (66 bytes, text/plain)
2020-04-08 21:00 UTC, magiblot
Details

Note You need to log in before you can comment on or make changes to this bug.
Description magiblot 2020-04-07 15:04:37 UTC
Created attachment 127355 [details]
Link to video showing the issue

SUMMARY

Firefox in Wayland mode is completely unusable. The application seems to be unresponsive as its window takes several seconds to update. Visual glitches can be perceived when positioning other windows over Firefox.

STEPS TO REPRODUCE

1. Open Firefox with the environment variable 'MOZ_ENABLE_WAYLAND' set to some value.
2. Try to interact with the application: move the mouse around, type something in the address bar... changes take several seconds to reflect in the window, although the application seems to be working properly and the mouse cursor changes with responsiveness if you hover over a text area, for example.
3. Place other windows on top of Firefox for more fun.

EXPECTED RESULT

The Firefox window is responsive and it doesn't cause visual glitches on other windows.

SOFTWARE/OS VERSIONS

Operating System: Arch Linux 
KDE Plasma Version: 5.18.4
KDE Frameworks Version: 5.68.0
Qt Version: 5.14.2
Kernel Version: 5.6.2-arch1-2
OS Type: 64-bit
Processors: 4 × Intel® Core™ i5-6200U CPU @ 2.30GHz
Memory: 11,6 GiB of RAM

Mozilla Firefox 75.0

glxinfo:
> name of display: :0
> display: :0  screen: 0
> direct rendering: Yes
> server glx vendor string: SGI
> server glx version string: 1.4
> client glx vendor string: Mesa Project and SGI
> client glx version string: 1.4
> GLX version: 1.4
> Extended renderer info (GLX_MESA_query_renderer):
>     Vendor: Intel (0x8086)
>     Device: Mesa Intel(R) HD Graphics 520 (SKL GT2) (0x1916)
>     Version: 20.0.4
>     Accelerated: yes
>     Video memory: 3072MB
>     Unified memory: yes
>     Preferred profile: core (0x1)
>     Max core profile version: 4.6
>     Max compat profile version: 4.6
>     Max GLES1 profile version: 1.1
>     Max GLES[23] profile version: 3.2
> OpenGL vendor string: Intel
> OpenGL renderer string: Mesa Intel(R) HD Graphics 520 (SKL GT2)
> OpenGL core profile version string: 4.6 (Core Profile) Mesa 20.0.4
> OpenGL core profile shading language version string: 4.60
> OpenGL core profile context flags: (none)
> OpenGL core profile profile mask: core profile
> OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.0.4
> OpenGL shading language version string: 4.60
> OpenGL context flags: (none)
> OpenGL profile mask: compatibility profile
> OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.0.4
> OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
Comment 1 magiblot 2020-04-08 21:00:29 UTC
Created attachment 127395 [details]
Link to video showing the issue with kdenlive

A similar issue can be seen with kdenlive.

> Kdenlive 19.12.3
> KDE Frameworks 5.68.0
> Qt 5.14.2 (built against 5.14.1)
> The wayland windowing system

Additionally, parts of the window (especially the timeline) may become invisible and the window under it is seen instead.
Comment 2 Patrick Silva 2020-05-14 13:57:08 UTC
links to the screen recordings
https://drive.google.com/file/d/1fWoz1BXvUPzxpdOEeaPTtEt-xNwBHs4H/view
https://drive.google.com/file/d/1NVfxczS8_KC41w5WdoEUpIYS5VQRyXE0/view

On neon unstable running Firefox 76.0.1 I can reproduce glitches unmaximizing Firefox window or resizing it by dragging its borders.

Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.18.80
KDE Frameworks Version: 5.71.0
Qt Version: 5.14.2
Kernel Version: 5.3.0-45-generic
OS Type: 64-bit
Processors: 4 × Intel® Core™ i3-3110M CPU @ 2.40GHz
Memory: 7,7 GiB of RAM
Graphics Processor: Mesa DRI Intel® Ivybridge Mobile
Comment 3 Vlad Zahorodnii 2020-05-14 14:04:28 UTC
This is a known issue with sub-surfaces that's already fixed.

*** This bug has been marked as a duplicate of bug 387313 ***
Comment 4 Vlad Zahorodnii 2020-05-14 14:05:07 UTC
(In reply to Patrick Silva from comment #2)
> On neon unstable running Firefox 76.0.1 I can reproduce glitches
> unmaximizing Firefox window or resizing it by dragging its borders.

What kind of glitches?
Comment 5 Patrick Silva 2020-05-14 15:47:30 UTC
(In reply to Vlad Zahorodnii from comment #4)
> (In reply to Patrick Silva from comment #2)
> > On neon unstable running Firefox 76.0.1 I can reproduce glitches
> > unmaximizing Firefox window or resizing it by dragging its borders.
> 
> What kind of glitches?

watch the following screen recording please
https://www.youtube.com/watch?v=tRGyH2uwNhU