Closed Bug 1898650 Opened 1 year ago Closed 1 year ago

Re-remove sync wait in compositor thread of main thread canvas on Nightly

Categories

(Core :: Graphics, task)

task

Tracking

()

RESOLVED FIXED
128 Branch
Tracking Status
firefox128 --- fixed

People

(Reporter: sotaro, Assigned: sotaro)

References

Details

Attachments

(1 file)

With Bug 1898436, it seems ok to re-remove sync wait in compositor thread of main thread canvas on Nightly.

Depends on: 1898436
Blocks: 1863257

I tested the try build from bug 1898436.
On https://codepen.io/tsuhre/pen/RwGGrGx, if i slowly keep on resizing the code-pane (such that hte demo-pane resizes), intermittently the demo-pane gets stuck at some state.
https://share.firefox.dev/4bwrbev (with logging) / https://share.firefox.dev/44TPikG / https://share.firefox.dev/4bRBIkg

Thank you for the checking! I am going to check it.

I confirmed the problem with the following prefs.

  • gfx.direct2d.disabled = true
  • gfx.canvas.accelerated = true
  • gfx.canvas.remote.worker-threads = 0

When the problem happened, somehow canvas rendering was stopped.

There was a case that remote texture owner was destroyed even though its life time was extended by RemoteTextureTxnScheduler and calling RemoteTextureTxnScheduler::NotifyTxn() of main thread canvas is deferred to WebRenderAPI for waiting RemoteTextureOwner at WebRenderAPI by Bug 1863257.

Another testcase where this repros easily is : https://codepen.io/Mertl/pen/vYPXMao
I can repro with both gpu-canvas and d2d-canvas here.

Profiles with logging:
gpu-canvas: https://share.firefox.dev/4dRhk4r
d2d-canvas: https://share.firefox.dev/44SDJKJ

Depends on: 1899096

(In reply to Mayank Bansal from comment #6)

Another testcase where this repros easily is : https://codepen.io/Mertl/pen/vYPXMao
I can repro with both gpu-canvas and d2d-canvas here.

It also seemed to be addressed by Bug 1899096 for me.

Pushed by sikeda.birchill@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/115014551118 Re-remove sync wait in compositor thread of main thread canvas on Nightly r=gfx-reviewers,lsalzman
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch
Regressions: 1900105
Blocks: 1903447
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: