Bug 470789

Summary: Firefox flickers in Plasma Wayland session
Product: [Plasma] kwin Reporter: Lassi Väätämöinen <lassi.vaatamoinen>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal CC: kde, postix, qydwhotmail, whickle
Priority: NOR    
Version First Reported In: 5.27.5   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Lassi Väätämöinen 2023-06-08 14:35:56 UTC
SUMMARY
After a recent upgrade, Firefox started flickering in the Wayland session. Prior to upgrade, the rendering was OK. Also, CPU usage of kwin_wayland is up from what it was, when Firefox is running (maybe around 18% on idle, at times).


STEPS TO REPRODUCE
1.  Upgrade Firefox
2. Reboot and login to Plasma Wayland session
3. Start Firefox

OBSERVED RESULT
Firefox flickering happens when window is moved, or other GUI actions perfromed

EXPECTED RESULT
No extra flicker.

SOFTWARE/OS VERSIONS

Operating System: KDE neon 5.27
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9
Kernel Version: 5.19.0-43-generic (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i7-7820HQ CPU @ 2.90GHz
Memory: 22,7 GiB of RAM
Graphics Processor: SVGA3D; build: RELEASE; LLVM;
Manufacturer: innotek GmbH
Product Name: VirtualBox
System Version: 1.2

ADDITIONAL INFORMATION

This worked fine:
2023-05-31 20:31:25 upgrade firefox:amd64 114.0+build1-0ubuntu0.22.04.1~mt1 114.0+build2-0ubuntu0.22.04.1~mt1


This started flickering:
2023-06-06 16:26:14 upgrade firefox:amd64 114.0+build2-0ubuntu0.22.04.1~mt1 114.0+build3-0ubuntu0.22.04.1~mt1


No Wayland or Plasma packages upgraded, according to /var/log/dpkg.log.
Comment 1 Lassi Väätämöinen 2023-06-08 14:36:31 UTC
This may be something similar to 424586
Comment 2 Lassi Väätämöinen 2023-06-13 08:25:21 UTC
>This may be something similar to 424586
https://bugs.kde.org/show_bug.cgi?id=424586

Seems to be particular issue to Firefox. I had to go to Chrome for now.
Comment 3 Lassi Väätämöinen 2023-06-13 08:28:05 UTC
(In reply to Lassi Väätämöinen from comment #2)
> https://bugs.kde.org/show_bug.cgi?id=424586
> 
> Seems to be particular issue to Firefox. I had to go to Chrome for now.

Also, eventually Firefox window contents stop updating, but when clicking around the tabs, the window title changes, so the actual UI events are passed, but the window contents is not updating.

When attempting closing Firefox, it ends up to "Not responding" grey window view.
Comment 4 Vlad Zahorodnii 2023-06-13 11:01:50 UTC
Can you check whether downgrading firefox helps? also can you check whether firefox uses webrender?
Comment 5 David Edmundson 2023-06-13 21:32:44 UTC
marking as needsinfo as per vlad's comment
Comment 6 Lassi Väätämöinen 2023-06-14 17:55:24 UTC
(In reply to Vlad Zahorodnii from comment #4)
> Can you check whether downgrading firefox helps?
Could not downgrade, but I had a system that was not upgraded yet. Was reproduced:
114.0+build2-0ubuntu0.22.04.1~mt1  -> OK
114.0.1+build1-0ubuntu0.22.04.1~mt1 -> NOK

>also can you check whether  firefox uses webrender?
 How?


--------------------
System info:

Operating System: KDE neon 5.27
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.106.0
Qt Version: 5.15.9
Kernel Version: 5.19.0-43-generic (64-bit)
Graphics Platform: Wayland
Processors: 4 × AMD Ryzen 5 3600 6-Core Processor
Memory: 7,8 GiB of RAM
Graphics Processor: SVGA3D; build: RELEASE; LLVM;
Manufacturer: innotek GmbH
Product Name: VirtualBox
System Version: 1.2


--------------------------------------------
Comment 7 Lassi Väätämöinen 2023-06-14 18:13:05 UTC
(In reply to Vlad Zahorodnii from comment #4)
>can you check whether firefox uses webrender?

gfx.webrender.all : false -> true

There is still flickering, but it's of different kind.

When webrender.all = false, eventyually ALL window content, except the titlebar text, stops rendering, including tabs and UI buttons etc.
Comment 8 Fushan Wen 2023-06-15 01:43:30 UTC
Can also sometimes reproduce on wayland, but only when there is more than one screen.
Comment 9 wescode 2023-07-04 20:24:32 UTC
(In reply to Lassi Väätämöinen from comment #3)
> (In reply to Lassi Väätämöinen from comment #2)
> > https://bugs.kde.org/show_bug.cgi?id=424586
> > 
> > Seems to be particular issue to Firefox. I had to go to Chrome for now.
> 
> Also, eventually Firefox window contents stop updating, but when clicking
> around the tabs, the window title changes, so the actual UI events are
> passed, but the window contents is not updating.
> 
> When attempting closing Firefox, it ends up to "Not responding" grey window
> view.

This is what I am experiencing, but I do not get any type of flicker. I haven't been able to reproduce the error yet, it seems random.

Operating System: Fedora Linux 38
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.107.0
Qt Version: 5.15.10
Kernel Version: 6.3.11-200.fc38.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5800X3D 8-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon Graphics 7900XT
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7C84
System Version: 1.0
Comment 10 postix 2025-02-25 11:20:01 UTC
Hi! Thank you very much for your bug report. Some time has passed. Could you please check if you can still reproduce the issue under Plasma 6.3 and with a more recent Firefox version? Thanks!
Comment 11 Bug Janitor Service 2025-03-12 03:47:20 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 12 Bug Janitor Service 2025-03-27 03:46:47 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.