Firefox flickers white while starting

RESOLVED FIXED in Firefox 64

Status

()

defect
P2
normal
RESOLVED FIXED
8 months ago
7 months ago

People

(Reporter: jrmuizel, Assigned: sotaro, NeedInfo)

Tracking

(Blocks 1 bug)

64 Branch
mozilla64
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox64 fixed)

Details

Attachments

(1 attachment, 4 obsolete attachments)

Reporter

Description

8 months ago
During startup the Firefox window will be white then it draws something then goes all white before finally drawing again. I've been seeing this for a while.
Reporter

Comment 1

8 months ago
Sotaro or Matt have you seen this?
Flags: needinfo?(matt.woodrow)
Reporter

Updated

8 months ago
Flags: needinfo?(sotaro.ikeda.g)
Assignee

Comment 2

8 months ago
I saw it this week, but I could not reproduce it with latest nightly today.
Flags: needinfo?(sotaro.ikeda.g)
Reporter

Comment 3

8 months ago
I think this might only happen on the first load after updating. Perhaps shader cache related?
Assignee

Comment 4

8 months ago
Yea, I confirmed it during first load after updating. But it is not clear if shader cache is related. Just reset shader disk cache and restart Firefox did not cause the problem.
Reporter

Updated

8 months ago
Priority: -- → P2
Assignee

Comment 5

8 months ago
Ah, it seems like to related to gfx/SanityTest.js. I confirmed the problem on P50(Win10) with the following STR.

[STR]
[1] Enable WebRender by setting pref gfx.webrender.all;true.
[2] Reset pref sanity-test.advanced-layers.
[3] Restart firefox
Assignee

Updated

8 months ago
Assignee: nobody → sotaro.ikeda.g
Assignee

Comment 6

7 months ago
(In reply to Sotaro Ikeda [:sotaro] from comment #5)
> Ah, it seems like to related to gfx/SanityTest.js. I confirmed the problem
> on P50(Win10) with the following STR.
> 
> [STR]
> [1] Enable WebRender by setting pref gfx.webrender.all;true.
> [2] Reset pref sanity-test.advanced-layers.
> [3] Restart firefox

We also enable WebRender profiler ui. Somehow Bug 1436020 does not work anymore now.
Assignee

Comment 7

7 months ago
WebRenderBridgeParent::RecvGetSnapshot() seemed to readback obsoleted data. RendererOGL::UpdateAndRender() disables debug flags during readback, but readback data had wr profile ui.
Assignee

Comment 8

7 months ago
It seems that wr_renderer_readback() needs to be called before calling RenderCompositorANGLE::EndFrame() during readback.
Comment hidden (obsolete)
Comment hidden (obsolete)
Assignee

Updated

7 months ago
Depends on: 1499002
Comment hidden (obsolete)
Comment hidden (obsolete)
Assignee

Comment 15

7 months ago
With attachment 9017379 [details] [diff] [review] and enabled dump of gfxUtils::WriteAsPNG(snapshot, filename)  in WebRenderLayerManager::MakeSnapshotIfRequired(), I did not saw profiler ui in the snapshot.

 https://dxr.mozilla.org/mozilla-central/source/gfx/layers/wr/WebRenderLayerManager.cpp#436
Assignee

Updated

7 months ago
Attachment #9017379 - Flags: review?(nical.bugzilla)
Attachment #9017379 - Flags: review?(nical.bugzilla) → review+

Comment 16

7 months ago
Pushed by sikeda@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/52a35a1526e7
Call wr_renderer_readback() before calling RenderCompositor::EndFrame() r=nical

Comment 17

7 months ago
bugherder
https://hg.mozilla.org/mozilla-central/rev/52a35a1526e7
Status: NEW → RESOLVED
Last Resolved: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla64
You need to log in before you can comment on or make changes to this bug.