Bug 260446 - [GTK] Rendering is broken with Lower Power Mode
Summary: [GTK] Rendering is broken with Lower Power Mode
Status: RESOLVED DUPLICATE of bug 260073
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: Other
Hardware: PC Linux
: P2 Normal
Assignee: Nobody
URL:
Keywords:
: 261434 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-08-20 09:53 PDT by Abrar Ahmed
Modified: 2023-09-12 02:17 PDT (History)
4 users (show)

See Also:


Attachments
Recording of page content not being updated until resize (12.52 MB, video/webm)
2023-08-20 09:53 PDT, Abrar Ahmed
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Abrar Ahmed 2023-08-20 09:53:27 PDT
Created attachment 467347 [details]
Recording of page content not being updated until resize

Trying to scroll a webpage with Low Power Mode (enabled via setting the system power profile to 'Power Saver') is broken. The scrolling works and the web elements are being moved but the changes are not animated/shown. Forcing a relayout by changing the webview size will update and show the correct content. Animations in general seem broken on all pages.
Comment 1 Abrar Ahmed 2023-08-20 09:56:41 PDT
I forgot to mention the fact that I'm running Epiphany Tech Preview. Epiphany 44 doesn't seem to have this problem (no low power mode?).
Comment 2 Abrar Ahmed 2023-08-20 20:30:35 PDT
I've noticed now that this problem also occurs sometimes when I'm using the 'Balanced' profile too. It doesn't occur in a perfectly reproducible manner unlike with the 'Power Saver' mode.
Comment 3 Michael Catanzaro 2023-08-21 06:11:01 PDT
(In reply to Abrar Ahmed from comment #1)
> I forgot to mention the fact that I'm running Epiphany Tech Preview.
> Epiphany 44 doesn't seem to have this problem (no low power mode?).

Low power mode has been around for years.
Comment 4 Abrar Ahmed 2023-08-21 18:58:58 PDT
(In reply to Michael Catanzaro from comment #3)
> (In reply to Abrar Ahmed from comment #1)
> > I forgot to mention the fact that I'm running Epiphany Tech Preview.
> > Epiphany 44 doesn't seem to have this problem (no low power mode?).
> 
> Low power mode has been around for years.

I did not know that. I can still reproduce the issue with WEBKIT_DISABLE_DMABUF_RENDERER=1 set as well. 
https://bugs.webkit.org/show_bug.cgi?id=260073 seems like I just found a case where this issue pops up more consistently? I'm observing the same sort of behaviour.
Comment 5 Michael Catanzaro 2023-08-22 11:28:40 PDT
Bug #260073 is definitely not related to low power mode, because I have a desktop computer. :)
Comment 6 Michael Catanzaro 2023-09-11 16:37:56 PDT
*** Bug 261434 has been marked as a duplicate of this bug. ***
Comment 7 Michael Catanzaro 2023-09-11 16:57:49 PDT
Anyway, I can reproduce by manually enabling low power mode. It immediately breaks rendering, and the effect is permanent: disabling low power mode does not fix it, only a cross-site navigation to trigger a process swap seems sufficient to get the web view to work again.

It's not just a problem with animations or scrolling. For example, selecting text in the text entries on this Bugzilla does not work. However, I can load new pages and they initially render just fine. But all subsequent rendering is broken.

It seems LowPowerModeNotifier is only used by Page::handleLowModePowerChange (which is a typo, should be Page::handleLowPowerModeChange), so whatever is going wrong must be caused by that. Most notably, it sets a throttling reason ThrottlingReason::LowPowerMode and calls RenderingUpdateScheduler::adjustRenderingUpdateFrequency.
Comment 8 Michael Catanzaro 2023-09-11 16:59:46 PDT
(In reply to Abrar Ahmed from comment #2)
> I've noticed now that this problem also occurs sometimes when I'm using the
> 'Balanced' profile too. It doesn't occur in a perfectly reproducible manner
> unlike with the 'Power Saver' mode.

The non-reproducible variant of this is bug #260073. Carlos Garcia has fixed two different reproducible cases thus far, and this bug smells like a third. Unfortunately low power mode is definitely not the only way to trigger it.
Comment 9 Michael Catanzaro 2023-09-11 17:06:59 PDT
I'm going to bisect this even if we don't actually need to do so to debug the issue, because I suspect the bisect result might be relevant to that bug #260073.
Comment 10 Carlos Garcia Campos 2023-09-12 02:17:36 PDT

*** This bug has been marked as a duplicate of bug 260073 ***