Closed Bug 1379895 Opened 7 years ago Closed 7 years ago

stylo: Crash in mozalloc_abort | abort | core::result::unwrap_failed<T> | style::properties::longhands::system_font::{{impl}}::to_computed_value

Categories

(Core :: CSS Parsing and Computation, defect, P1)

54 Branch
Unspecified
Linux
defect

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox-esr52 --- unaffected
firefox54 --- unaffected
firefox55 --- unaffected
firefox56 --- fixed

People

(Reporter: cpeterson, Assigned: manishearth)

References

(Blocks 1 open bug)

Details

(Keywords: crash)

Crash Data

This bug was filed from the Socorro interface and is report bp-6bf9bef3-8cb6-448f-85ca-bf4940170709. ============================================================= 1 crash in Nightly 56
unwrap_failed from system_font::to_computed_value? That's fun... I don't see any Result type inside that function directly. It is annoying that there is no crash message. My first guess would be that system.weight ends up being a number which isn't a multiple of 100, which triggers the unwrap-ish in font_weight::computed_value::T::from_gecko_weight. We may want to remove that .expect or round it to a multiple of 100 for now.
(In reply to Xidorn Quan [:xidorn] UTC+10 from comment #1) > unwrap_failed from system_font::to_computed_value? That's fun... I don't see > any Result type inside that function directly. It is annoying that there is > no crash message. My first guess would be that system.weight ends up being a > number which isn't a multiple of 100, which triggers the unwrap-ish in > font_weight::computed_value::T::from_gecko_weight. > > We may want to remove that .expect or round it to a multiple of 100 for now. That's an expect() though, right? That shouldn't have this crash signature...
There were 9 crashes in the past month on a single install, and only on 20170709100223. Given that nothing actionable here... let's close it?
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
Yeah, someone reported this on Reddit too. I'm going to look into this today.
Assignee: nobody → manishearth
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
The MOZ_CRASH Reason field shows "from_gecko_weight: called with invalid weight: ()", which matches my guess in comment 1. So I think the issue here is that the system font has a weird font weight. Also, all of this crash happens on Linux, which could be a good side evidence because Linux users tend to have unusual system settings. I guess we can fix this via not requiring font weight to be multiple of 100 at some places. We would need to remove that restriction eventually, so I guess it isn't a big deal.
Looks like on linux Pango has font-weight values ultraheavy (1000), semilight (350), and book (380). Any of these can trigger the assert. I'm going to allow weird positive font weight values to exist but not be specifiable.
Status: REOPENED → RESOLVED
Closed: 7 years ago7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
You need to log in before you can comment on or make changes to this bug.