Closed
Bug 1364691
Opened 9 years ago
Closed 9 years ago
Crash in SkScan::AAAFillPath
Categories
(Core :: Graphics, defect, P1)
Tracking
()
RESOLVED
FIXED
mozilla55
| Tracking | Status | |
|---|---|---|
| firefox-esr52 | --- | unaffected |
| firefox53 | --- | unaffected |
| firefox54 | --- | unaffected |
| firefox55 | + | fixed |
People
(Reporter: calixte, Assigned: lsalzman, NeedInfo)
References
(Blocks 1 open bug)
Details
(4 keywords, Whiteboard: [clouseau] [gfx-noted])
Crash Data
Attachments
(3 files)
|
3.48 KB,
patch
|
jrmuizel
:
review+
|
Details | Diff | Splinter Review |
|
242 bytes,
text/html
|
Details | |
|
2.38 KB,
patch
|
mchang
:
review+
|
Details | Diff | Splinter Review |
This bug was filed from the Socorro interface and is
report bp-ab08dcde-ed7d-4baa-9de6-864bd0170513.
=============================================================
There are 3 crashes (from the same installation) in nightly 55 with buildid 20170512030203. In analyzing the backtrace, the regression may have been introduced by patch [1] to fix bug 1340627.
[1] https://hg.mozilla.org/mozilla-central/rev?node=af6f19870b2a00759ac1d83dedc3db57213abfee
Flags: needinfo?(lsalzman)
Updated•9 years ago
|
status-firefox53:
--- → unaffected
status-firefox54:
--- → unaffected
status-firefox-esr52:
--- → unaffected
Comment 2•9 years ago
|
||
Hi Vincent,
Are you able to reproduce the crash with the test https://bugzilla.mozilla.org/attachment.cgi?id=8867562 ?
Flags: needinfo?(vliu)
Priority: -- → P1
See Also: → 1364778
Whiteboard: [clouseau] → [clouseau][gfx-note]
Updated•9 years ago
|
Whiteboard: [clouseau][gfx-note] → [clouseau] [gfx-note]
Updated•9 years ago
|
Whiteboard: [clouseau] [gfx-note] → [clouseau] [gfx-noted]
Comment 3•9 years ago
|
||
(In reply to Jerry Shih[:jerry] (UTC+8) from comment #1)
> Hi Vincent,
> Are you able to reproduce the crash with the test
> https://bugzilla.mozilla.org/attachment.cgi?id=8867562 ?
The crash I hit showed below. But I am not sure I see the same compared with bug reported.
/Volumes/firefoxos/gecko-dev/gfx/skia/skia/src/core/SkScan_AAAPath.cpp:1675: fatal error: "assert(count >= 2)"
Abort from sk_abort
Hit MOZ_CRASH() at /Volumes/firefoxos/gecko-dev/memory/mozalloc/mozalloc_abort.cpp:33
Flags: needinfo?(vliu)
Updated•9 years ago
|
Crash Signature: [@ SkScan::AAAFillPath] → [@ SkScan::AAAFillPath]
[@ aaa_walk_convex_edges]
| Assignee | ||
Comment 4•9 years ago
|
||
So the rough source of the regression is that Skia added analytic AA code for their path rendering. As a big sledgehammer fix for this, we can define SK_NO_ANALYTIC_AA in the user config. But I fear if we do that, without finding the source of the problem, that this issue will go unfixed in Skia indefinitely. So if someone is both able to reproduce the crash and track it down, that would probably be the best outcome.
Flags: needinfo?(lsalzman)
Keywords: steps-wanted,
testcase-wanted
OS: Mac OS X → All
Hardware: Unspecified → All
Comment 5•9 years ago
|
||
This is the #2 Mac topcrash in Nightly 20170519030205.
Comment 6•9 years ago
|
||
Tracking 55+ for this crash since it is #4 top overall Mac crash.
tracking-firefox55:
--- → +
Updated•9 years ago
|
Flags: needinfo?(milan)
Comment 7•9 years ago
|
||
| Assignee | ||
Comment 8•9 years ago
|
||
(In reply to Marcia Knous [:marcia - use ni] from comment #7)
> Some URLs:
>
> https://manuals.co/desktop/images/infobox/303.jpg
> http://codepen.io/search/pens?q=dom&limit=all&type=type-pens
> http://doctorwhoworld.net/Images/timelords-et.jpg
> https://cloud.digitalocean.com/droplets?i=2815ea
I tried viewing all of those links and messing around in the pages, and I was not able to reproduce the crash at all.
| Assignee | ||
Comment 9•9 years ago
|
||
Upstream bug report: https://bugs.chromium.org/p/skia/issues/detail?id=6684
Hoping Skia people might have some insight. But without a reliable and reproducible testcase, I am not very hopeful on this one. Random sites that may only sometimes trigger it makes it especially hard for them to investigate since they generally do not get involved with building Firefox to inspect Skia bugs. :/
... So it would be really really helpful if we could start narrowing this down to a minimal testcase somehow.
| Assignee | ||
Comment 10•9 years ago
|
||
Per the recommendations of the Skia developer here: https://bugs.chromium.org/p/skia/issues/detail?id=6684#c3
Adds some assertions to check if either both conditions fail, or one or the other, plus a plea for users who trigger the crash to report to us where it occurred to help us out.
Attachment #8871308 -
Flags: review?(jmuizelaar)
Updated•9 years ago
|
Attachment #8871308 -
Flags: review?(jmuizelaar) → review+
Comment 11•9 years ago
|
||
Pushed by lsalzman@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/44fbcc3d084a
add assertions to help figure out why Skia's AAA is crashing. r=jrmuizel
| Assignee | ||
Updated•9 years ago
|
Keywords: leave-open
Comment 12•9 years ago
|
||
I did crash in this stack once today - https://crash-stats.mozilla.com/report/index/f8883e85-a33d-401c-8c09-f1ffb0170525 - but I don't know which site triggered the crash. I may have had the sites in Comment 7 loaded in various tabs.
Comment 13•9 years ago
|
||
Adding test case from bug 1364778
Comment 14•9 years ago
|
||
| bugherder | ||
| Assignee | ||
Comment 15•9 years ago
|
||
For certain paths that are subsequently clipped, SkEdgeBuilder returns not enough edges for the convex path rendering code to actually work, which leads to the crash.
Skia upstream is working on a more involved fix for this here: https://skia-review.googlesource.com/c/17983/
I've distilled that fix down to the simplest-fix-that-could-possibly-work for our purposes, which is just to punt to the non-convex path when there are not >= 2 edges. Their patch also does this, but they're doing other drive-by cleanups in it we don't need for now.
Updated•9 years ago
|
Attachment #8871789 -
Flags: review?(mchang) → review+
Comment 16•9 years ago
|
||
Pushed by lsalzman@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/4787ff70ae13
don't use walk_convex_edges in Skia path rendering unless edge count is at least 2. r=mchang
| Assignee | ||
Updated•9 years ago
|
Keywords: leave-open
Comment 17•9 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla55
You need to log in
before you can comment on or make changes to this bug.
Description
•