Intermittent dom/media/webrtc/tests/mochitests/test_getUserMedia_scarySources.html | single tracking bug
Categories
(Core :: WebRTC: Audio/Video, defect, P3)
Tracking
()
People
(Reporter: jmaher, Assigned: bwc, NeedInfo)
References
Details
(Keywords: intermittent-failure, intermittent-testcase, leave-open, Whiteboard: [stockwell disabled])
Attachments
(2 files)
Reporter | ||
Comment 1•3 years ago
|
||
Additional information about this bug failures and frequency patterns can be found by running: ./mach test-info failure-report --bug 1787039
Comment 3•3 years ago
|
||
First failure in this range of retriggers/backfills: https://treeherder.mozilla.org/jobs?repo=mozilla-central&searchStr=Windows%2C10%2Cx64%2C2004%2CWebRender%2Cdebug%2CMochitests%2Ctest-windows10-64-2004-qr%2Fdebug-mochitest-media%2Cmda&tochange=73963ff12f8b013f03cce7d1975659d076d562be&fromchange=c9c314795ae822a3034f4626feafe2a65968e461&group_state=expanded&selectedTaskRun=KHuTwoobQh6_h9E6oD2iVg.0
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Assignee | ||
Comment 54•2 years ago
|
||
I've dug into this some, we're seeing problems because the getUserMedia call is sometimes not giving us the browser window at all.
https://treeherder.mozilla.org/logviewer?job_id=437818274&repo=try&lineNumber=18381-18384
[task 2023-11-27T15:41:42.981Z] 15:41:42 INFO - Device: C:\Windows\system32\cmd.exe
[task 2023-11-27T15:41:42.981Z] 15:41:42 INFO - Device: Primary Monitor
[task 2023-11-27T15:41:42.982Z] 15:41:42 INFO - Buffered messages finished
[task 2023-11-27T15:41:42.983Z] 15:41:42 INFO - TEST-UNEXPECTED-FAIL | dom/media/webrtc/tests/mochitests/test_getUserMedia_scarySources.html | Found 0 of our own windows
Any ideas?
Comment hidden (Intermittent Failures Robot) |
Assignee | ||
Comment 56•1 years ago
|
||
Figured out the cause. getUserMedia is sometimes not giving us our own window because the OS thinks it it unresponsive:
https://treeherder.mozilla.org/jobs?repo=try&revision=00e8b3b4c734230eb1df29274c76900e623747d6
We're hitting this code, and bailing out:
I wonder why we're getting flagged as non-responsive. Maybe we're in the middle of a GC or something? I wonder what happens if we make an exactGC call at the beginnning of this test.
Assignee | ||
Comment 57•1 years ago
|
||
Updated•1 years ago
|
Assignee | ||
Comment 58•1 years ago
|
||
Patch looks really promising, but since this is a rare intermittent, might not completely do the trick. Marking leave-open for now.
https://treeherder.mozilla.org/jobs?repo=try&revision=6d44d627c14dee7290f3bd8d0b4e9d77e7af2671
https://treeherder.mozilla.org/jobs?repo=try&revision=e92be1c3f20a231ef119975314b59302155ef4ec
Assignee | ||
Comment 59•1 years ago
|
||
This is really weird. If I wait for an exactGC to finish, it makes the problem worse, but just calling exactGC and continuing with the test while it is running seems to work.
Assignee | ||
Comment 60•1 years ago
|
||
The core problem here is that this function is just not very reliable:
We could try to work around in the test-case, but I fear that this would just be randomly fiddling with it until the timing worked out. We could also try extending the timeout being used here, but that isn't ideal either. We could also try using IsHungAppWindow instead of this polling hack, but that has its own problems.
I still don't know why the UI event loop would take more than 50ms to notice that something was posted.
Comment hidden (Intermittent Failures Robot) |
Assignee | ||
Comment 62•1 years ago
|
||
Extending that timeout slightly seems to work ok (lots of failures for other bugs to pick through, unfortunately):
https://treeherder.mozilla.org/jobs?repo=try&revision=724045988aaf2ff2857fc3434e4a51656465e25e
Assignee | ||
Comment 63•1 years ago
|
||
Hmm, still seeing failures. Maybe extending it more might work, but I get the impression that the SendMessageTimeout method is fundamentally unreliable.
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment 82•1 year ago
|
||
There is an r+ patch which didn't land and no activity in this bug for 2 weeks.
:bwc, could you have a look please?
If you still have some work to do, you can add an action "Plan Changes" in Phabricator.
For more information, please visit BugBot documentation.
![]() |
||
Updated•1 year ago
|
![]() |
||
Updated•1 year ago
|
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment 110•6 months ago
|
||
There have been 48 total failures in the last 7 days.
There are:
- 28 failures on
Windows 11 x86 22H2 WebRender debug
- 20 failures on
Windows 11 x64 22H2 WebRender debug
Recent failure log.
Hi Byron! As the assignee of this bug, could you please take a look ? Thanks!
Assignee | ||
Comment 111•6 months ago
|
||
I know how to fix this, but it requires making a debatable modification to the third-party libwebrtc library. If we were to switch over to using IsHungAppWindow here, that would work:
However, IsHungAppWindow is not an officially supported API, despite existing in its current form since the WinXP days and being in widespread use.
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment 115•6 months ago
|
||
Byron, any updates on this one?
It still has 195 total failures in the last 30 days, all on windows debug 32&64 bits: https://treeherder.mozilla.org/intermittent-failures/bugdetails?startday=2024-11-29&endday=2024-12-29&tree=trunk&failurehash=all&bug=1787039
We should skip it until a fix is in place.
Comment 116•6 months ago
|
||
Comment hidden (Intermittent Failures Robot) |
Comment 118•6 months ago
|
||
Updated•6 months ago
|
Comment 119•6 months ago
|
||
bugherder |
Comment hidden (Intermittent Failures Robot) |
Assignee | ||
Updated•5 months ago
|
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Comment hidden (Intermittent Failures Robot) |
Description
•