Closed
Bug 518274
Opened 17 years ago
Closed 14 years ago
reftest: dynamic--inline-resize-window-width.xhtml intermittently fails
Categories
(Core :: SVG, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: MatsPalmgren_bugz, Unassigned)
References
()
Details
(Keywords: intermittent-failure)
Bug 509274 fixed this, but added 5 second timeouts for each test.
Bug 517744 removed the timeouts, but kept the "MozReftestInvalidate"
handlers. Unfortunately, that brought back the original problem
with intermittent failures. See URL.
We could backout bug 517744, but I would prefer a solution that
doesn't add 35 seconds to the reftest run.
| Reporter | ||
Updated•17 years ago
|
Whiteboard: [orange]
Comment 1•17 years ago
|
||
Relying on the setTimeout(..., 0) could be the issue here. The re-layout due to restoring the window size and the removal or the 'class' attribute both happen off events that are both in the event loop at the same time, but there's no guarantee which order these will be evaluated in.
Pushed http://hg.mozilla.org/mozilla-central/rev/a99faa2257da to see if that fixes.
Comment 2•17 years ago
|
||
I wonder if we should be using mozAfterPaint rather than mozReftestInvalidate the second time?
Comment 3•17 years ago
|
||
I'm not sure. Maybe roc knows.
We shouldn't put the removal of reftest-wait in a setTimeout. That should not be needed and just adds nondeterminism.
After reftest-wait is removed, reftest.js automatically flushes reflows and then waits for all invalidates to be notified via MozAfterPaint before it stops the test. So I don't know why this isn't working.
(In reply to comment #1)
> Pushed http://hg.mozilla.org/mozilla-central/rev/a99faa2257da to see if that
> fixes.
How does this work? It seems the test won't complete until we get two MozReftestInvalidate events, which won't happen.
Comment 5•17 years ago
|
||
(In reply to comment #4)
> How does this work? It seems the test won't complete until we get two
> MozReftestInvalidate events, which won't happen.
I wondered about that, but the test passed rather than timing out when I did a test run with that change so I assumed we get repeated MozReftestInvalidate events. :-/ Weird. Dunno how it would pass if we only get one.
On taking another look, it looks like the real race was coming from the fact that the body has an onload calling resize_height (as well as having the MozReftestInvalidate addEventListener call it). The onload call would have caused the setTimeout(..., 0) to be called to finish the test before MozReftestInvalidate had been fired. Pushed:
http://hg.mozilla.org/mozilla-central/rev/be16bcab1786
Comment 6•17 years ago
|
||
Actually I think these 'window' tests are bogus. Setting innerWidth/Height silently fails for non-privileged content IIRC. Filed bug 518311 about that.
wouldn't these tests work just as well if the <svg> was in a block element that we resize with CSS?
Comment 8•17 years ago
|
||
There are already other tests that do exactly that, and tests using iframe. I added these 'window' tests because we were failing specifically in that case at one point.
Comment 9•17 years ago
|
||
The test failed again:
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1253747631.1253755588.12126.gz
Linux mozilla-central unit test on 2009/09/23 16:13:51
Comment 10•17 years ago
|
||
Linux mozilla-central unit test on 2009/09/23 18:54:22
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox/1253757262.1253764682.14660.gz
Comment 11•17 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox-Unittest/1253830360.1253832774.32522.gz
Linux mozilla-central test opt everythingelse on 2009/09/24 15:12:40
Comment 12•17 years ago
|
||
This test has been orange on the "Linux mozilla-central test opt everythingelse" tinderbox for the last 9 cycles or so.
Comment 13•17 years ago
|
||
I pushed http://hg.mozilla.org/mozilla-central/rev/12c59fca275b to disable this test for now.
Comment 14•17 years ago
|
||
Good call, thanks. I would have done it myself but I was on a long haul flight and missed the orange madness.
I probably won't get to investigating this properly until after the SVG WG F2F and SVG Open conf, and I've not managed to reproduce the failure locally.
Comment 15•16 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox3.5-Unittest/1259015732.1259017545.16410.gz
Linux mozilla-1.9.1 test everythingelse on 2009/11/23 14:35:32
Comment 16•16 years ago
|
||
http://tinderbox.mozilla.org/showlog.cgi?log=Firefox3.5/1261179730.1261181707.6968.gz
Linux mozilla-1.9.1 test everythingelse on 2009/12/18 15:42:10
| Comment hidden (Legacy TBPL/Treeherder Robot) |
Updated•14 years ago
|
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → WORKSFORME
| Assignee | ||
Updated•13 years ago
|
Keywords: intermittent-failure
| Assignee | ||
Updated•13 years ago
|
Whiteboard: [orange]
You need to log in
before you can comment on or make changes to this bug.
Description
•