Closed
Bug 920595
Opened 13 years ago
Closed 13 years ago
[MediaRecorder TEST] Add a test case to verify MediaRecorder state machine
Categories
(Core :: Audio/Video: Recording, defect)
Core
Audio/Video: Recording
Tracking
()
RESOLVED
FIXED
mozilla28
People
(Reporter: u459114, Assigned: jsmith)
References
(Blocks 1 open bug)
Details
(Whiteboard: [qa-])
Attachments
(1 file, 1 obsolete file)
|
6.27 KB,
patch
|
roc
:
review+
|
Details | Diff | Splinter Review |
For example,
Call requestData after stop/ pause should get DOM InvalidState error.
Call resume/ pause after stop should get DOM InvalidState error.
Call start after pause or stop should get DOM InvalidState error.
Call stop after stop should get DOM InvalidState error.
I can't find a test case which is dedicate on this verification.
Paul, do you have time to work on this?
Flags: needinfo?(pyang)
| Assignee | ||
Comment 2•13 years ago
|
||
(In reply to C.J. Ku[:CJKu] from comment #1)
> I can't find a test case which is dedicate on this verification.
> Paul, do you have time to work on this?
I think you are looking for me in this case - I own the testing of this API. Paul handles Web Audio, music player use cases, and Audio Channels.
This is a good idea for a mochitest. I'm slammed with some 1.2 work right now, but I can look into this when I get some free time.
| Assignee | ||
Updated•13 years ago
|
Flags: needinfo?(pyang)
| Assignee | ||
Comment 3•13 years ago
|
||
Started this, WIP patch coming shortly.
Assignee: nobody → jsmith
Status: NEW → ASSIGNED
| Assignee | ||
Comment 4•13 years ago
|
||
| Assignee | ||
Updated•13 years ago
|
Attachment #814443 -
Attachment is obsolete: true
| Assignee | ||
Comment 5•13 years ago
|
||
| Assignee | ||
Comment 6•13 years ago
|
||
Comment on attachment 814534 [details] [diff] [review]
Patch v2
The mochitest seen here is passing locally and try when running through the ok statements. However, the mochitest appears to hang on shutdown locally and on try right now.
Roc - Any ideas why?
Attachment #814534 -
Flags: feedback?(roc)
Comment 7•13 years ago
|
||
I will have a check for this test script.
BTW, what's the hang on shutdown means? Fail to destroy the process when close the browser?
Comment 8•13 years ago
|
||
Call stack shows stuck on:
#0 0x00007f940642ad84 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1 0x00007f94050de600 in PR_WaitCondVar (cvar=0x7f93d3e8e1c0, timeout=4294967295) at /media/ssd/B2G/gecko/nsprpub/pr/src/pthreads/ptsynch.c:385
#2 0x00007f94050dee0d in PR_Wait (mon=0x7f93d70f2350, timeout=4294967295) at /media/ssd/B2G/gecko/nsprpub/pr/src/pthreads/ptsynch.c:582
#3 0x00007f940076d8d6 in mozilla::ReentrantMonitor::Wait (this=0x7f93d3e3bec8, interval=4294967295) at /media/ssd/B2G/gecko/xpcom/glue/BlockingResourceBase.cpp:309
#4 0x00007f93fefd2eed in mozilla::OpusTrackEncoder::GetEncodedTrack (this=0x7f93d3e3beb0, aOutput=0x7f93d17fdbe0, aOutputDuration=@0x7f93d17fdbf0: 0)
at /media/ssd/B2G/gecko/content/media/encoder/OpusTrackEncoder.cpp:242
#5 0x00007f93fefd16c1 in mozilla::MediaEncoder::GetEncodedData (this=0x7f93d3e8e200, aOutputBufs=0x7f93d17fdc50, aMIMEType=...) at /media/ssd/B2G/gecko/content/media/encoder/MediaEncoder.cpp:199
#6 0x00007f93fef9c423 in mozilla::dom::MediaRecorder::Session::Extract (this=0x7f93d3e8e140) at /media/ssd/B2G/gecko/content/media/MediaRecorder.cpp:255
#7 0x00007f93fef9bb01 in mozilla::dom::MediaRecorder::Session::ExtractRunnable::Run (this=0x7f93d4d37560) at /media/ssd/B2G/gecko/content/media/MediaRecorder.cpp:104
#8 0x00007f94007fd31a in nsThread::ProcessNextEvent (this=0x7f93d7232760, mayWait=true, result=0x7f93d17fdddf) at /media/ssd/B2G/gecko/xpcom/threads/nsThread.cpp:622
#9 0x00007f940077daa2 in NS_ProcessNextEvent (thread=0x7f93d7232760, mayWait=true) at /media/ssd/B2G/gecko/xpcom/glue/nsThreadUtils.cpp:238
#10 0x00007f94007fc196 in nsThread::ThreadFunc (arg=0x7f93d7232760) at /media/ssd/B2G/gecko/xpcom/threads/nsThread.cpp:250
#11 0x00007f94050e5d91 in _pt_root (arg=0x7f93d4adc890) at /media/ssd/B2G/gecko/nsprpub/pr/src/pthreads/ptthread.c:204
It seems Media Encoder thread can't exit on this test case. Please fire a bug.
| Assignee | ||
Comment 9•13 years ago
|
||
Comment on attachment 814534 [details] [diff] [review]
Patch v2
Thanks for the help Randy. I filed bug 924724 in regards to the problem here.
Clearing review for now - I'll wait for bug 924724 to have a patch before requesting review again.
Attachment #814534 -
Flags: feedback?(roc)
| Assignee | ||
Comment 10•13 years ago
|
||
Comment on attachment 814534 [details] [diff] [review]
Patch v2
Review of attachment 814534 [details] [diff] [review]:
-----------------------------------------------------------------
Dependency now has a confirmed working patch with the test passing & shutting down cleanly, so this is ready for review.
Attachment #814534 -
Flags: review?(roc)
Attachment #814534 -
Flags: review?(roc) → review+
| Assignee | ||
Updated•13 years ago
|
Keywords: checkin-needed
| Assignee | ||
Comment 11•13 years ago
|
||
Actually, let me get a try run with the dependency patch included before I flag checkin-needed.
Keywords: checkin-needed
| Assignee | ||
Comment 12•13 years ago
|
||
| Assignee | ||
Comment 13•13 years ago
|
||
(In reply to Jason Smith [:jsmith] from comment #12)
> https://tbpl.mozilla.org/?tree=Try&rev=d305e8cd3905
Hmm...maybe I didn't patch this right - this looks like Firefox is failing to shutdown again. I'll just wait for the dependency to land on central and I'll try again.
Comment 14•13 years ago
|
||
You may include my patch for this try run to verify the fix.
Comment 15•13 years ago
|
||
(In reply to Randy Lin [:rlin] from comment #14)
> You may include my patch for this try run to verify the fix.
Ignore this comment, I saw you has patched my fix.
| Assignee | ||
Comment 16•13 years ago
|
||
Let's find out if the patch in bug 924724 fixes the issue. Try run below.
https://tbpl.mozilla.org/?tree=Try&rev=f4ea8141ed5f
| Assignee | ||
Comment 17•13 years ago
|
||
Try run is green - this is ready to land.
Keywords: checkin-needed
Comment 18•13 years ago
|
||
Flags: in-testsuite+
Keywords: checkin-needed
Comment 19•13 years ago
|
||
status-b2g-v1.2:
--- → fixed
status-firefox26:
--- → wontfix
status-firefox27:
--- → wontfix
status-firefox28:
--- → fixed
Summary: [MedaiRecorder TEST] Add a test case to verify MediaRecorder state machine → [MediaRecorder TEST] Add a test case to verify MediaRecorder state machine
| Assignee | ||
Comment 20•13 years ago
|
||
(In reply to Ryan VanderMeulen [:RyanVM UTC-5] from comment #19)
> https://hg.mozilla.org/releases/mozilla-b2g26_v1_2/rev/9054fd176f74
Hmm...this probably shouldn't have landed on 1.2 yet, because the dependency here hasn't landed on 1.2 right now. This needs to be backed out of 1.2 until the dependency lands on 1.2. Otherwise, the tree will likely turn red on 1.2.
Flags: needinfo?(ryanvm)
Comment 21•13 years ago
|
||
*sigh* don't know what I was thinking.
https://hg.mozilla.org/releases/mozilla-b2g26_v1_2/rev/3113fc75b466
Flags: needinfo?(ryanvm)
Comment 22•13 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Comment 23•12 years ago
|
||
Comment 24•12 years ago
|
||
Updated•12 years ago
|
Updated•12 years ago
|
Whiteboard: [qa-]
Updated•12 years ago
|
Component: Video/Audio → Video/Audio: Recording
You need to log in
before you can comment on or make changes to this bug.
Description
•