Closed Bug 1159119 Opened 9 years ago Closed 6 years ago

MSE playback crashed in GonkMediaDataDecoder - episode 2

Categories

(Core :: Audio/Video: Playback, defect, P2)

ARM
Gonk (Firefox OS)
defect

Tracking

()

RESOLVED WONTFIX

People

(Reporter: jwwang, Assigned: bwu)

References

Details

Attachments

(2 files)

1. apply the patch to Central
2. have a debug build of emulator-kk on Central
3. run tests with |./mach mochitest-remote dom/media/test/test_mse_playback.html|
4. open |adb logcat|
5. hit the assertion: Assertion failure: !mManager->HasQueuedSample(), at ../../../../../../mozilla-central2/dom/media/fmp4/gonk/GonkMediaDataDecoder.cpp:227
This is the sequel of bug 1147258.

Hi Blake,
Can you check this bug?
Assignee: nobody → bwu
Blocks: 1142899
Depends on: 1147258
(In reply to JW Wang [:jwwang] from comment #1)
> This is the sequel of bug 1147258.
> 
> Hi Blake,
> Can you check this bug?
Oops... The same assertion but in different place. 
Sure! I will check it.
Btw, I also hit the same assertion when running
|./mach mochitest-plain dom/media/test/test_bug495145.html| on emulator-kk.
Depends on: 1154512
I am finally able to add some logs and successfully repro this bug. 
The rootcause looks like MP4Reader calls drain() twice and the second drain() causes to input a null data (for EOS notification) again which makes the input queue not empty and causes the assertion.
I noticed bug 1161903 should be related to this bug as described in comment 4. 
After syncing my code base to the latest, I cannot repro this bug anymore. 
jwwang, 
Are you able to repro this bug now?
Flags: needinfo?(jwwang)
Although MP4Reader doesn't call drain twice now, we should make our PDM more robust.
No, I can't see the assertion anymore. test_bug495145.html didn't hit the assertion either. However, there is something wrong to test_mse_playback.html which hang the test.
Flags: needinfo?(jwwang)
Component: Audio/Video → Audio/Video: Playback
Rank: 15
Priority: -- → P2
Closing as we are not working on Firefox OS anymore.
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: