Closed Bug 1694721 Opened 4 years ago Closed 4 years ago

SW-WR crashes if you enable some of the gfx.webrender.debug prefs

Categories

(Core :: Graphics: WebRender, defect)

defect

Tracking

()

RESOLVED FIXED
88 Branch
Tracking Status
firefox88 --- wontfix
firefox89 --- verified

People

(Reporter: mayankleoboy1, Assigned: lsalzman)

References

(Blocks 1 open bug)

Details

Crash Data

Attachments

(3 files)

STR1

  1. Enable sw-wr
  2. Open a couple of tabs
  3. set gfx.webrender.debug.obscure-images to true
    4 Switch tabs, or scroll a long page

AR: Crash

STR2:

  1. Enable sw-wr
    1.5Open about:config
  2. set gfx.webrender.debug.primitives to true
  3. Toggle it back to false

AR: Crash

STR3 :

  1. Enable sw-wr
  2. Open a couple of tabs
  3. set gfx.webrender.debug.capture-profiler to true
    4 Switch tabs, or scroll a long page

STR4:

  1. Enable sw-wr
    1.5Open about:config
  2. set gfx.webrender.debug.picture-caching to true
  3. Toggle it back to false
Crash Signature: [@ DrawElementsInstanced ] [@ draw_quad_spans<T> ]
Attached file about:support

On Linux SW-WR, some of these features are clearly broken, but none of the STR in comment 0 cause a crash.

Severity: -- → S3

There are some theoretical cases where the FB state might get a bit tortured
and we might encounter some invalid FB state while drawing. This adds some
extra validation just to be safe.

Assignee: nobody → lsalzman
Status: NEW → ASSIGNED
Pushed by lsalzman@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6dc5d2aa5b68 Check for valid FB before drawing in SWGL. r=jrmuizel
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 88 Branch

Hello! Managed to reproduce all crashes by following comment 0 str with Firefox 88.0a1 (2021-02-24) on mac M1 mini 11.2.3. The only thing that I did differently was restarting Firefox after setting sw-wr to true and following the next steps.

Unfortunately with Firefox 88.0b8 (20210406185740) on the same machine, I can still reproduce the crashes following STR 2,3,4 from comment 0. STR1 doesn't crash for me but while having gfx.webrender.debug.obscure-images:true and sw-wr displays some weird glitches on the browser and webpages. I don't know if this is expected tho.
Should we reopen this bug?

Flags: needinfo?(lsalzman)
Status: RESOLVED → REOPENED
Flags: needinfo?(lsalzman)
Resolution: FIXED → ---

When toggling debug state, we can sometimes queue debug renders, without
any debug overlay to send them to. This patch ensures we don't actually
draw anything in the debug renderer when there is no debug overlay.

Attachment #9214562 - Attachment description: Bug 1694721 - Don't do a debug render is there is no debug overlay. r?gw → Bug 1694721 - Don't do a debug render if there is no debug overlay. r?gw
Pushed by lsalzman@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d60a6ecfe134 Don't do a debug render if there is no debug overlay. r=gw
Status: REOPENED → RESOLVED
Closed: 4 years ago4 years ago
Resolution: --- → FIXED

Verified fixed with Firefox 89.0a1 (20210411210108) on Windows 10x64, macOS 11.2.3M1 mini and Ubuntu 20.04. No crashes occur when following the STR from comment 0. Removing the qe+ flag.

Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: