Closed Bug 1780702 Opened 2 years ago Closed 2 years ago

Canvas element sometimes invisible

Categories

(Core :: Graphics: Canvas2D, defect)

Firefox 104
Unspecified
Linux
defect

Tracking

()

RESOLVED DUPLICATE of bug 1782443
Tracking Status
firefox-esr91 --- unaffected
firefox-esr102 --- disabled
firefox103 --- disabled
firefox104 --- disabled
firefox105 --- affected

People

(Reporter: jonrandy, Unassigned)

References

(Blocks 1 open bug, Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Attached video canvas.mp4

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:104.0) Gecko/20100101 Firefox/104.0

Steps to reproduce:

Load a page with a dynamically created canvas. See https://codepen.io/jonrandy/full/ExQpZMy for an example

Actual results:

Sometimes the canvas does not appear, although previews of the canvas (when dragging a tab or hovering over the canvas in the inspector) indicate that the canvas is working. Duplicating the problematic tab seems to resolve the issue every time

Expected results:

The canvas should work as expected every time - like it does in the main Firefox release and in other browsers

The Bugbug bot thinks this bug should belong to the 'DevTools::Inspector' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Inspector
Product: Firefox → DevTools
Component: Inspector → General
OS: Unspecified → Linux
Product: DevTools → Firefox
Component: General → Graphics: Canvas2D
Product: Firefox → Core

Confirmed with mozregression to be caused by bug 1770088.

Thanks for the bug report, Jon. This appears to be due to switching on our new experimental GPU-accelerated canvas renderer in nightly. While we work on a fix, you can switch back to the old canvas renderer by setting gfx.canvas.accelerated to false in about:config.

Blocks: gpu-canvas
Severity: -- → S3
Flags: needinfo?(lsalzman)
Regressed by: 1770088

Thanks for the workaround. It's been making development somewhat awkward for me. Looking forward to a fix

Attached patch patch_tmp_canvasSplinter Review

With the temporal patch, the problem was addressed for me.
From it, DrawTargetWebgl::mWebglValid might not be updated as expected.

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

The bug has a release status flag that shows some version of Firefox is affected, thus it will be considered confirmed.

Status: UNCONFIRMED → NEW
Ever confirmed: true

Can you please attach your "about:support" information? I am having trouble reproducing this.

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

Okay, I figured out why I was having trouble reproducing this, because I already fixed it locally... :)

Duping this to bug 1782443 which will fix it.

Status: NEW → RESOLVED
Closed: 2 years ago
Flags: needinfo?(jonrandy)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: