Reftest 243519-6.html, print-previewed under certain page sizes, triggers "ASSERTION: invalid shrink-to-fit ratio: 'ratio >= 0.0 && ratio < 1.0', file nsPageContentFrame.cpp, line 86"
Categories
(Core :: Printing: Output, task)
Tracking
()
People
(Reporter: dholbert, Unassigned)
References
Details
Attachments
(1 file)
|
1.14 KB,
patch
|
Details | Diff | Splinter Review |
STR:
- Load this testcase in a debug build:
https://searchfox.org/mozilla-central/rev/c6676771df58c6e0098574bc6b11517acbf264cf/layout/reftests/bugs/243519-6.html - Print-preview, using a 5in by 5in custom paper size* and with (default) shrink-to-fit enabled.
- you can create a custom paper size using the "page setup" button in Print Preview
ACTUAL RESULTS:
###!!! ASSERTION: invalid shrink-to-fit ratio: 'ratio >= 0.0 && ratio < 1.0', file layout/generic/nsPageContentFrame.cpp, line 86
###!!! ASSERTION: Computed overflow area must contain frame bounds: 'aNewSize.width == 0 || aNewSize.height == 0 || r->width == nscoord_MAX || r->height == nscoord_MAX || (mState & NS_FRAME_SVG_LAYOUT) || r->Contains(nsRect(nsPoint(0, 0), aNewSize))', file layout/generic/nsIFrame.cpp, line 9243
EXPECTED RESULTS:
No assertions.
I intend to land a patch in bug 1655608 that happens to make this assertion fire at the standard reftest-paged page-size; I'm filing this bug to give me a bug number that I can use for the reftest.list annotation that I'll need to add over there. (And I'm also filing to document the fact that this fires even without my changes over there, under slightly different page-size conditions -- and to document those conditions.)
| Reporter | ||
Updated•6 years ago
|
| Reporter | ||
Comment 1•6 years ago
|
||
(Note: bug 620161 comment 2 indicates another case that failed these same assertions around 5 years ago. So, this probably isn't a recent issue; I've just uncovered another scenario where we trigger these same assertions that bug 620161 comment 2 already indicated we could trigger. That bug is focused on a different assertion, though; hence, I'm filing this separately.)
Comment 2•5 years ago
|
||
Daniel, here is a recent appearance of this issue:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=316078922&repo=autoland&lineNumber=3293
Should we modify this bug to include more tests and mark it as intermittent?
| Reporter | ||
Comment 3•5 years ago
|
||
Let's file dedicated new bugs for cases where this causes treeherder orange in a given test; and we can land annotations to mitigate those intermitents in those bugs, while leaving this bug tracking the assertion itself.
(Would you mind filing a bug for the log that you noted?)
| Comment hidden (Intermittent Failures Robot) |
Comment 6•5 years ago
|
||
I came across these asserts when I was working on bug 1640197.
The assertion
###!!! ASSERTION: Computed overflow area must contain frame bounds: 'aNewSize.width == 0 || aNewSize.height == 0 || r->width == nscoord_MAX || r->height == nscoord_MAX || (mState & NS_FRAME_SVG_LAYOUT) || r->Contains(nsRect(nsPoint(0, 0), aNewSize))', file /Users/miko/Code/mozilla-unified/layout/generic/nsIFrame.cpp:9452
seems to be caused by empty canvas frames not getting their bounds or overflow areas set, and I had written a patch that fixes this. Based on the review comments (when it was part of patch set for bug 1640197), some additional checks might be needed before assigning the width and height.
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
Comment 10•5 years ago
|
||
Bug 1683126 should fix the "ASSERTION: Computed overflow area must contain frame bounds:..." part at least.
Description
•