Closed Bug 1873588 Opened 1 year ago Closed 1 year ago

Canvas demo (https://sketchtoy.com/66043688) doesnt draw anything after scrolling out of view

Categories

(Core :: Graphics: Canvas2D, defect)

defect

Tracking

()

RESOLVED DUPLICATE of bug 1872705
Tracking Status
firefox-esr115 --- unaffected
firefox121 --- unaffected
firefox122 --- affected
firefox123 --- fixed

People

(Reporter: mayankleoboy1, Unassigned)

References

(Regression, )

Details

(Keywords: regression)

Attachments

(2 files)

Disable any adblocking/ tracking protection (Or use a new profile as we need some fb comments to load)
Go to https://sketchtoy.com/66043688
Drag teh slider all the way to the right
Scroll down on the page. Some fb comments will load
Click on "load more comments" button. Scroll further down
Now scroll up back to the demo

AR: Demo disappears and nothing is drawn on the screen (sometimes the demo will reappear after few seconds)
ER: Not so

Good : https://share.firefox.dev/48IJlI0 (terrible jank on scrolling up but atleast the demo is displayed)
Bad: https://share.firefox.dev/48p3CTn (no jank and no demo)

Regressed by :
Bug 1863914: Use multiple shmem buffers for remote canvas recording. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D193207

Bonus points for fixing the performance of the demo with D2d-canvas. (skia-canvas and gpu-canvas work great here)

Flags: needinfo?(bobowencode)
Attached file about:support

Set release status flags based on info from the regressing bug 1863914

Could you only reproduce this with D2D canvas?

Flags: needinfo?(mayankleoboy1)

Also the "good" profile didn't symbolicate properly. Would you mind collecting it again? Thanks!

(In reply to Andrew Osmond [:aosmond] (he/him) from comment #3)

Could you only reproduce this with D2D canvas?

Yes. skia-canvas and gpu-canvas dont repro this.

(In reply to Andrew Osmond [:aosmond] (he/him) from comment #4)

Also the "good" profile didn't symbolicate properly. Would you mind collecting it again? Thanks!

https://share.firefox.dev/48IJlI0 (WIll also update comment #0 with this profile)

Flags: needinfo?(mayankleoboy1)
Flags: needinfo?(aosmond)

Okay, great. So if I am understanding this correctly:

Flags: needinfo?(aosmond) → needinfo?(lsalzman)

I don't think we are in a position to uplift the remote texture to beta, plus whatever fix we have yet to prepare for the display in 123 nightly, so I'm not sure entirely what to do about 122 beta.

This seems like it is probably a dup of bug 1872705.

Severity: -- → S3
Flags: needinfo?(lsalzman)
See Also: → 1872705

(In reply to Andrew Osmond [:aosmond] (he/him) from comment #6)

Okay, great. So if I am understanding this correctly:

Er no. My baseline to test was from Oct2023 (before teh shmem stuff landed). I saw jank there, and assumed the demo is janky.
After bug 1863914 , I see the rendering bug. I dont see anything specific with bug 1871467 (not sure where you got that from :) )

No comments appear for me, I've turned off tracking protection with a new profile, is there anything else I might need to do?

Flags: needinfo?(bobowencode) → needinfo?(mayankleoboy1)

(In reply to Bob Owen (:bobowen) from comment #10)

No comments appear for me, I've turned off tracking protection with a new profile, is there anything else I might need to do?

No idea. For me, just turning off ublock on my regular profile worked. Maybe try reducing the vertical height of the browser window and retrying?

Flags: needinfo?(mayankleoboy1) → needinfo?(bobowencode)
See Also: → 1873668

(In reply to Mayank Bansal from comment #11)

(In reply to Bob Owen (:bobowen) from comment #10)

No comments appear for me, I've turned off tracking protection with a new profile, is there anything else I might need to do?

No idea. For me, just turning off ublock on my regular profile worked. Maybe try reducing the vertical height of the browser window and retrying?

OK, I think I can kind of reproduce by making the window very short.
It takes a while for the demo image to reappear, when I scroll back up.
My WIP patch on bug 1872705 does seem to help.
Would you mind trying one of the try builds with that, to see if it helps:
https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/JV0szVMkR6-g008Ewcrydg/runs/0/artifacts/public/build/install/sea/target.installer.exe

Flags: needinfo?(bobowencode) → needinfo?(mayankleoboy1)

(In reply to Bob Owen (:bobowen) from comment #12)

(In reply to Mayank Bansal from comment #11)

(In reply to Bob Owen (:bobowen) from comment #10)

No comments appear for me, I've turned off tracking protection with a new profile, is there anything else I might need to do?

No idea. For me, just turning off ublock on my regular profile worked. Maybe try reducing the vertical height of the browser window and retrying?

OK, I think I can kind of reproduce by making the window very short.
It takes a while for the demo image to reappear, when I scroll back up.
My WIP patch on bug 1872705 does seem to help.
Would you mind trying one of the try builds with that, to see if it helps:

I used the build from here : https://treeherder.mozilla.org/jobs?repo=try&selectedTaskRun=JV0szVMkR6-g008Ewcrydg.0&revision=95568777446e24d0d875a6f2f20d3cbc95e78241 https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/JV0szVMkR6-g008Ewcrydg/runs/0/artifacts/public/build/target.zip

Profile: https://share.firefox.dev/3tKGOhK
It is certainly better. Now when i scroll up, the demo is drawn after about 1-2 second of delay.

Flags: needinfo?(mayankleoboy1) → needinfo?(bobowencode)

Video for comment #13

Thanks

Flags: needinfo?(bobowencode)

Profile from the latest Nightly: https://share.firefox.dev/47pVArW

(In reply to Lee Salzman [:lsalzman] from comment #8)

This seems like it is probably a dup of bug 1872705.

:bobowen do you think it's safe to resolve this as a duplicate, or are you planning anything else here?

Flags: needinfo?(bobowencode)

(In reply to Donal Meehan [:dmeehan] from comment #17)

(In reply to Lee Salzman [:lsalzman] from comment #8)

This seems like it is probably a dup of bug 1872705.

:bobowen do you think it's safe to resolve this as a duplicate, or are you planning anything else here?

I think we should defer to Mayank - do you still think there is a problem here?

Flags: needinfo?(bobowencode) → needinfo?(mayankleoboy1)

(In reply to Bob Owen (:bobowen) from comment #18)

(In reply to Donal Meehan [:dmeehan] from comment #17)

(In reply to Lee Salzman [:lsalzman] from comment #8)

This seems like it is probably a dup of bug 1872705.

:bobowen do you think it's safe to resolve this as a duplicate, or are you planning anything else here?

I think we should defer to Mayank - do you still think there is a problem here?

My original issue was a regression - "Subjectively nothing is drawn on the screen for eternity and that is very noticeable" . That is fixed. IMO, this bug can be duped.

Status: NEW → RESOLVED
Closed: 1 year ago
Duplicate of bug: 1872705
Flags: needinfo?(mayankleoboy1)
Resolution: --- → DUPLICATE
See Also: 1872705
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: