Closed Bug 1708540 Opened 4 years ago Closed 4 years ago

sw-wr: linear gradients with NaN stretch_size cause LinearGradientTemplate creation to crash

Categories

(Core :: Graphics: WebRender, defect)

defect

Tracking

()

VERIFIED FIXED
90 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox88 --- unaffected
firefox89 --- unaffected
firefox90 --- verified
firefox91 --- verified

People

(Reporter: bradwerth, Assigned: nical)

References

(Regression, )

Details

(Keywords: regression)

Attachments

(1 file)

Steps to Reproduce:

  1. Set pref gfx.software.webrender to true.
  2. Navigate to https://multcolib.bibliocommons.com/v2/search?query=McGuire%2C%20Seanan&searchType=author&pagination_page=3
  3. Click one of the "Check out" buttons.

Debugging shows that at the point of failure, task_size.height is NaN, which causes the to_i32() cast to crash.

Tried this again with patches for Bug 1706678 applied and the crash still occurs.

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

Somewhat similar to bug 1707744, in a way that type casting failed implicitly.
It's suspicious that the bug title has "sw-wr" in it. The failing code should be ran regardless of SW-WR.
Nicola - sorry to ping you on this one, just wanted to bring your attention here.

Severity: -- → S3
Flags: needinfo?(nical.bugzilla)
See Also: → 1707744
Assignee: nobody → nical.bugzilla
Status: NEW → ASSIGNED
Pushed by nsilva@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/ebb995da11f9 Handle and test various NaN situations with gradients. r=gfx-reviewers,bradwerth
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 90 Branch
Flags: needinfo?(nical.bugzilla)

Reproduced the issue on Firefox 90.0a1 (2021-04-29) under macOS 10.15.7 by following the info from Comment 0.

The issue is fixed on Firefox 90.0b5 and Firefox 91.0a1 (2021-06-08). Tests were performed on macOS 10.15.7, Windows 10 and Ubuntu 20.04.

Status: RESOLVED → VERIFIED
Has Regression Range: --- → yes
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: