Closed
Bug 1229250
Opened 10 years ago
Closed 10 years ago
Intermittent async-scrollbar-1-vh-rtl.html,async-scrollbar-1-vh-ref.html,async-scrollbar-1-v-rtl.html,async-scrollbar-1-h.html | load failed: timed out waiting for pending paint count to reach zero (waiting for MozAfterPaint), load failed: null
Categories
(Core :: Panning and Zooming, defect)
Core
Panning and Zooming
Tracking
()
RESOLVED
FIXED
mozilla47
| Tracking | Status | |
|---|---|---|
| firefox47 | --- | fixed |
People
(Reporter: philor, Assigned: eflores)
References
Details
(Keywords: intermittent-failure, Whiteboard: [gfx-noted])
Attachments
(1 file, 1 obsolete file)
|
2.08 KB,
patch
|
kats
:
review+
|
Details | Diff | Splinter Review |
Updated•10 years ago
|
Component: Graphics: Layers → Panning and Zooming
| Reporter | ||
Updated•10 years ago
|
Summary: Intermittent async-scrollbar-1-vh-rtl.html,async-scrollbar-1-vh-ref.html | load failed: timed out waiting for pending paint count to reach zero (waiting for MozAfterPaint), load failed: null → Intermittent async-scrollbar-1-vh-rtl.html,async-scrollbar-1-vh-ref.html,async-scrollbar-1-v-rtl.html | load failed: timed out waiting for pending paint count to reach zero (waiting for MozAfterPaint), load failed: null
| Comment hidden (Intermittent Failures Robot) |
| Reporter | ||
Updated•10 years ago
|
Summary: Intermittent async-scrollbar-1-vh-rtl.html,async-scrollbar-1-vh-ref.html,async-scrollbar-1-v-rtl.html | load failed: timed out waiting for pending paint count to reach zero (waiting for MozAfterPaint), load failed: null → Intermittent async-scrollbar-1-vh-rtl.html,async-scrollbar-1-vh-ref.html,async-scrollbar-1-v-rtl.html,async-scrollbar-1-h.html | load failed: timed out waiting for pending paint count to reach zero (waiting for MozAfterPaint), load failed: null
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
| Comment hidden (Intermittent Failures Robot) |
Comment 5•10 years ago
|
||
Blanket gfx-noted on APZ intermittent failures so they can be found more easily on https://brasstacks.mozilla.com/orangefactor/
Whiteboard: [gfx-noted]
| Comment hidden (Intermittent Failures Robot) |
| Assignee | ||
Updated•10 years ago
|
Assignee: nobody → edwin
| Assignee | ||
Comment 7•10 years ago
|
||
These timeouts are happening way too early. I'm fairly confident that's due to the |chaos-mode| annotation on these tests.
Chaos mode changes timers' durations randomly in order to test timers finishing out of their expected order. Sadly, chaos mode also affects the duration of the reftest timeout timer, causing these random timeouts to happen despite the test itself not actually taking all that long.
| Comment hidden (Intermittent Failures Robot) |
| Assignee | ||
Comment 9•10 years ago
|
||
This patch adds a ONE_SHOT_PRECISE nsITimer type for use in tests, so that we don't get random spurious timeouts.
We could hack around this in the reftest harness by simply calling setTimeout again in the callback if the expected time hasn't elapsed (and in fact, the mochitest harness does this), but on average that would mean that timeouts would take _longer_ than specified. This seems the nicest way to do it.
Attachment #8711859 -
Flags: feedback?(nfroyd)
Comment 10•10 years ago
|
||
Comment on attachment 8711859 [details] [diff] [review]
1229250.patch
Review of attachment 8711859 [details] [diff] [review]:
-----------------------------------------------------------------
I'm not super-excited about this, but maybe it's just the naming: it's not really TYPE_ONE_SHOT_PRECISE, it's TYPE_ONE_SHOT_AT_LEAST_THIS_LONG_EVEN_WITH_CHAOS. (Although that kind of makes me wonder if we should only adjust the timeout for repeating timers?)
Why do you think subbing in a different implementation of setTimeout would be less nice? I think for this purpose, the timeouts taking slightly longer (probably less than a second or two overall) than expected wouldn't be a bad thing (this is the timeout timer anyway, right?). I suppose a combination of chaos mode and a sometimes-slightly-too-long test might result in intermittent failures, but that seems unlikely... Handling it at the setTimeout level also means our test suites are a little closer together than they would be otherwise.
::: xpcom/threads/nsITimer.idl
@@ +78,5 @@
> /* Timer types */
>
> + const short TYPE_FLAG_REPEATING = 1 << 2;
> + const short TYPE_FLAG_PRECISE = 1 << 1;
> + const short TYPE_FLAG_CAN_SKIP = 1 << 0;
Did you do this with flags rather than with numeric values to work around static_asserts elsewhere?
Attachment #8711859 -
Flags: feedback?(nfroyd)
| Comment hidden (Intermittent Failures Robot) |
| Assignee | ||
Comment 12•10 years ago
|
||
(In reply to Nathan Froyd [:froydnj] from comment #10)
> I'm not super-excited about this, but maybe it's just the naming: it's not
> really TYPE_ONE_SHOT_PRECISE, it's
> TYPE_ONE_SHOT_AT_LEAST_THIS_LONG_EVEN_WITH_CHAOS. (Although that kind of
> makes me wonder if we should only adjust the timeout for repeating timers?)
Heh, my first go at this patch added a |setChaosResistantTimer| function, whose name I quite liked. Would ONE_SHOT_CHAOS_RESISTANT be better?
> Why do you think subbing in a different implementation of setTimeout would
> be less nice? I think for this purpose, the timeouts taking slightly longer
> (probably less than a second or two overall) than expected wouldn't be a bad
> thing (this is the timeout timer anyway, right?). I suppose a combination
> of chaos mode and a sometimes-slightly-too-long test might result in
> intermittent failures, but that seems unlikely... Handling it at the
> setTimeout level also means our test suites are a little closer together
> than they would be otherwise.
I'm not sure exactly what you mean by "subbing in" a different implementation. Do you mean at the JS level? or adding a new function to the webidl? As above, I did add a new version of setTimeout at first to the Window webidl, but it seemed like a lot of unnecessary plumbing just for this.
We could work around it in the test harness JS, but it's a bit hacky. If I'm reading the TimerThread code correctly, the timer in chaos mode can take up to 2.75x as long as it should (so ~8 minutes for the reftest timeout). We could just shorten the timeout and have a wrapper callback call the actual callback only once the clock has advanced enough (otherwise setting another timeout (or just using setInterval)), but it seems a bit messy and could converge weirdly if we're unlucky.
> ::: xpcom/threads/nsITimer.idl
> @@ +78,5 @@
> > /* Timer types */
> >
> > + const short TYPE_FLAG_REPEATING = 1 << 2;
> > + const short TYPE_FLAG_PRECISE = 1 << 1;
> > + const short TYPE_FLAG_CAN_SKIP = 1 << 0;
>
> Did you do this with flags rather than with numeric values to work around
> static_asserts elsewhere?
Mostly aesthetics, to be honest...
| Comment hidden (Intermittent Failures Robot) |
Comment 14•10 years ago
|
||
Edwin, are you still working on this? I'm inclined to just remove the chaos-mode annotations, because there's about 6 different bugs on file which are probably caused by this same issue.
Flags: needinfo?(edwin)
| Reporter | ||
Comment 15•10 years ago
|
||
Seven, not counting duplicates, but that's just because my colleagues have mostly started ignoring all failures in Android R48 and leaving them for me to star as one of the existing ones instead of filing more.
Comment 16•10 years ago
|
||
I disabled chaos mode on these tests in bug 1229624. I'll leave this bug open for adding a chaos-resistant timer or otherwise finding a better solution.
Flags: needinfo?(edwin)
| Comment hidden (Intermittent Failures Robot) |
| Assignee | ||
Comment 18•10 years ago
|
||
This patch just works around the problem in the test harness JS.
Attachment #8711859 -
Attachment is obsolete: true
Attachment #8719504 -
Flags: review?(bugmail.mozilla)
Comment 19•10 years ago
|
||
Comment on attachment 8719504 [details] [diff] [review]
1229250-js.patch
Review of attachment 8719504 [details] [diff] [review]:
-----------------------------------------------------------------
r+ with the recursive call fixed
::: layout/tools/reftest/reftest-content.js
@@ +127,5 @@
> + // Timeouts can fire prematurely in some cases (e.g. in chaos mode). If this
> + // happens, set another timeout for the remaining time.
> + let remainingMs = targetTime - Date.now();
> + if (remainingMs > 0) {
> + SetFailureTimeout(cb, targetTime);
s/targetTime/remainingMs/
Attachment #8719504 -
Flags: review?(bugmail.mozilla) → review+
Comment 20•10 years ago
|
||
Comment 21•10 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox47:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
You need to log in
before you can comment on or make changes to this bug.
Description
•