Closed
Bug 1140675
Opened 10 years ago
Closed 9 years ago
HTMLMediaElement::UpdateReadyStateForData remains stuck at HAVE_METADATA because GetImageContainer()->HasCurrentImage() is false
Categories
(Core :: Audio/Video: Playback, defect, P2)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: bholley, Assigned: ctai)
References
Details
Attachments
(2 files)
|
5.74 KB,
patch
|
Details | Diff | Splinter Review | |
|
58 bytes,
text/x-review-board-request
|
jwwang
:
review+
|
Details |
I've been doing some investigation, and I think this is the cause of the timeouts in the three tests we've been seeing (test_eme_stream_capture_blocked.html, test_eme_canvas_blocked.html, and test_bug879717.html). I managed to get some logging out of test_bug879717.html to form my theory, and the eme test hangs seem readyState-related, so I'm guessing it's the same issue.
The problem is that sometimes, for one of the videos in these tests, we get stuck here:
https://hg.mozilla.org/mozilla-central/annotate/7d85ac833cff/dom/html/HTMLMediaElement.cpp#l3407
I can certainly see how this might happen in the current code, because nothing guarantees that we'll invoke UpdateReadyState after the RenderVideoFrame call in MediaDecoderStateMachine::FinishDecodeFirstFrame. However, even when I fix that, the orange still appears, so that can't be the whole story.
These tests are failing frequently enough that I'm going to disable them on win7 opt while we sort this out. I'll also upload my patch that doesn't seem to fully fix the problem.
| Reporter | ||
Comment 1•10 years ago
|
||
This doesn't appear to fully fix the problem. Whatever eventual solution we
land, we should also land the logging in this patch.
| Reporter | ||
Comment 2•10 years ago
|
||
Tests disabled while we sort this out: https://hg.mozilla.org/integration/mozilla-inbound/rev/826e9c97526b
Flagging edwin to continue his investigation.
Flags: needinfo?(edwin)
Comment 3•10 years ago
|
||
Assignee: nobody → bobbyholley
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
| Reporter | ||
Comment 4•10 years ago
|
||
Meant to leave this open.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
We're bailing out here: https://dxr.mozilla.org/mozilla-central/source/dom/media/VideoFrameContainer.cpp#36
Need to figure out why. aImage isn't null.
Comment 6•10 years ago
|
||
Almost certainly another regression from bug 1131638. I'll back that out today until I figure out a better solution.
Comment 7•10 years ago
|
||
Will need to uplift I suspect if I uplift other changes...
Blocks: EME, eme-platform-uplift
Flags: needinfo?(cpearce)
Flags: needinfo?(edwin)
Comment 8•10 years ago
|
||
(In reply to Matt Woodrow (:mattwoodrow) from comment #6)
> Almost certainly another regression from bug 1131638. I'll back that out
> today until I figure out a better solution.
Makes sense. See bug 1123469 comment 37 for the first Windows failure (used to be some occasional b2g desktop only failures) on that bug. Happened a couple of hours after bug 1131638 reached inbound.
| Reporter | ||
Comment 10•10 years ago
|
||
(In reply to Sheila Mooney from comment #9)
> Bobby should we uplift this into 37?
Uplift what? We don't have a patch for this bug other than matt's backout in comment 6.
As noted in comment 1, the attached patch didn't fix the problem, which makes sense because it sounds like matt's patch the source of the oranges we were seeing. The attached patch does fix some theoretical races, but I wouldn't uplift it on spec, and may not even land it at all, since I'd rather fix this on a deeper level with some refactoring.
Flags: needinfo?(bobbyholley)
Updated•10 years ago
|
Priority: -- → P2
Updated•10 years ago
|
Flags: needinfo?(cpearce)
Comment 11•10 years ago
|
||
Bobby, what's the status here? Do you still think fixing something here would improve our orange on EME mochitests?
Flags: needinfo?(bobbyholley)
| Reporter | ||
Comment 12•10 years ago
|
||
Spoke about this in the meeting - short answer is that somebody needs to look into the eme test failures, and that the patch in this bug (a theoretical bug that was never confirmed in practice) might be a good place to start. At the very least, the logging in that patch might be useful.
Flags: needinfo?(bobbyholley)
Comment 13•10 years ago
|
||
EME test failures have disappeared. Dropping this from the EME blockers.
No longer blocks: EME
Updated•10 years ago
|
Component: Audio/Video → Audio/Video: Playback
Comment 14•10 years ago
|
||
Pretty sure this bug is now not necessary. The EME mochitests are green now and I'll enable them today.
Status: REOPENED → RESOLVED
Closed: 10 years ago → 10 years ago
Resolution: --- → WORKSFORME
| Comment hidden (mozreview-request) |
| Assignee | ||
Comment 16•9 years ago
|
||
Try looks good to me: https://treeherder.mozilla.org/#/jobs?repo=try&revision=e91eaa09aa0c
Enable the test on Windows Opt.
Assignee: bobbyholley → ctai
Comment 17•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8781367 [details]
Bug 1140675 - Enable test_bug879717.html on windows. .
https://reviewboard.mozilla.org/r/71808/#review69330
Attachment #8781367 -
Flags: review?(jwwang) → review+
| Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Updated•9 years ago
|
Status: RESOLVED → REOPENED
status-firefox39:
fixed → ---
Resolution: WORKSFORME → ---
Target Milestone: mozilla39 → ---
Updated•9 years ago
|
Status: REOPENED → RESOLVED
Closed: 10 years ago → 9 years ago
Resolution: --- → WORKSFORME
Comment 18•9 years ago
|
||
Pushed by ryanvm@gmail.com:
https://hg.mozilla.org/integration/autoland/rev/14974aa2862f
Enable test_bug879717.html on windows. r=jwwang.
Keywords: checkin-needed
Comment 19•9 years ago
|
||
| bugherder | ||
You need to log in
before you can comment on or make changes to this bug.
Description
•