Dragging video progress bar to end, and drag it again to middle renders Video app unable to play videos until killed and relaunched

RESOLVED FIXED in Firefox 44



Audio/Video: Playback
3 years ago
3 years ago


(Reporter: piwei, Assigned: jolin)



Gonk (Firefox OS)
Dependency tree / graph

Firefox Tracking Flags

(blocking-b2g:2.5+, firefox44 fixed, b2g-v2.2 unaffected, b2g-master affected)


(Whiteboard: [2.5-Daily-Testing], [spark])


(2 attachments, 1 obsolete attachment)



3 years ago
Created attachment 8668170 [details]
logcat of issue

In Video app if dragging on progress bar to end of video, release finger, and drag it again to anywhere in the middle will render the app unable to play any video. If user returns Home at this state and go back to Video app, a crash dialog comes up that's basically the same as bug 1203737 comment 8 but with precise STR.

There are many different ways of getting bug 1203737 to occur, however for this bug I want to focus on this particular set of actions should not render the app into a state where videos can no longer be played. User can avoid getting the app crashed by killing the app and relaunch Video app.

1) Go to Camera app and record two ~10 seconds videos
2) Go to Video app and tap to play the video on the top
3) While video is actively playing, drag the progress bar to the end, release finger, drag it again to the middle, release finger, and tap on play button

Expected: Video can be played

Actual: Video doesn't play. The Video app can't play any more video in this state until the app is killed and relaunched.

Repro rate: 5/6. It seems somehow dependent on video length as well as number of videos available in the app.

Video demonstrating step 3:

Device: Aries 2.5
BuildID: 20150930115400
Gaia: 14a64f1ebd353bccc3f1c0399e1a01a03327749e
Gecko: 97e537f85183ef31481602ab9e5587a6e7d16b4d
Gonk: 2916e2368074b5383c80bf5a0fba3fc83ba310bd
Version: 44.0a1 (2.5) 
Firmware Version: D5803_23.1.A.1.28_NCB.ftf
User Agent: Mozilla/5.0 (Mobile; rv:44.0) Gecko/44.0 Firefox/44.0

Device: Flame 2.5
BuildID: 20150930030225
Gaia: 1bc0b19527777ffee494962b48db4be857b07d64
Gecko: 891ee0d0ba3ec42b6484cf0205b3c95e21c58f74
Gonk: c4779d6da0f85894b1f78f0351b43f2949e8decd
Version: 44.0a1 (2.5) 
Firmware Version: v18Dv4
User Agent: Mozilla/5.0 (Mobile; rv:44.0) Gecko/44.0 Firefox/44.0

Comment 1

3 years ago
Unable to repro this on Flame 2.2. Video starts to play from the beginning after doing step 3.

Device: Flame 2.2
BuildID: 20150930032502
Gaia: 5dd95cfb9f1d6501ce0e34414596ef3dd9c2f583
Gecko: 65ddad73ad6b
Gonk: bd9cb3af2a0354577a6903917bc826489050b40d
Version: 37.0 (2.2) 
Firmware Version: v18Dv4
User Agent: Mozilla/5.0 (Mobile; rv:37.0) Gecko/37.0 Firefox/37.0
QA Whiteboard: [QAnalyst-Triage?]
status-b2g-v2.2: --- → unaffected
status-b2g-master: --- → affected
Flags: needinfo?(jmercado)
Keywords: regression
Whiteboard: [2.5-Daily-Testing], [spark]
[Blocking Requested - why for this release]:
Major regression in the video app.  Let's get a window here.
blocking-b2g: --- → 2.5?
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+]
Flags: needinfo?(jmercado)
Keywords: regressionwindow-wanted


3 years ago
QA Contact: jthomas


3 years ago
QA Whiteboard: [QAnalyst-Triage+]
QA Contact: jthomas → pcheng

Comment 3

3 years ago
mozilla-inbound regression window:

Last Working
Device: Aries 2.5
BuildID: 20150702205436
Gaia: 4b7ad0dde990bdc44e166818c0bb09a35cd1207f
Gecko: 54bf2c8de576
Version: 42.0a1 (2.5) 
Firmware Version: D5803_23.1.A.1.28_NCB.ftf
User Agent: Mozilla/5.0 (Mobile; rv:42.0) Gecko/42.0 Firefox/42.0

First Broken
Device: Aries 2.5 
BuildID: 20150702212201
Gaia: 4b7ad0dde990bdc44e166818c0bb09a35cd1207f
Gecko: 4272c902d349
Version: 42.0a1 (2.5) 
Firmware Version: D5803_23.1.A.1.28_NCB.ftf
User Agent: Mozilla/5.0 (Mobile; rv:42.0) Gecko/42.0 Firefox/42.0

Gaia is the same so it's a Gecko issue.

Gecko pushlog:

This issue appears to be caused by changes made in Bug 1178938.
Blocks: 1178938
QA Whiteboard: [QAnalyst-Triage?]
Flags: needinfo?(jmercado)
Keywords: regressionwindow-wanted


3 years ago
blocking-b2g: 2.5? → 2.5+
Component: Gaia::Video → Audio/Video
Product: Firefox OS → Core
Bobby the changes for bug 1178938 seem to have caused this issue.  Can you please take a look?
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+]
Flags: needinfo?(jmercado) → needinfo?(bobbyholley)
I'm not working on media anymore. Maybe sotaro can have a look?
Flags: needinfo?(bobbyholley) → needinfo?(sotaro.ikeda.g)
Sotaro is on PTO. Blake knows who can take this bug.
Flags: needinfo?(sotaro.ikeda.g) → needinfo?(bwu)

Comment 7

3 years ago
ni John to comment similar issue in video seeking (bug 1159343). Thanks.
Flags: needinfo?(jolin)


3 years ago
Priority: -- → P2
Thanks for Bobby's help.
Flags: needinfo?(bwu)
Component: Audio/Video → Audio/Video: Playback

Comment 9

3 years ago
MP4Decoder did't accept 3GPP file and OmxDecoder took over. This is a pregression caused by bug 1211339 part 2 patch (Attachment 8669528 [details] [diff]).  Will create a patch to make MP4Decoder handle 3GPP file again.
Assignee: nobody → jolin
Flags: needinfo?(jolin)

Comment 10

3 years ago
Created attachment 8671166 [details] [diff] [review]
Let MP4Decoder handle 3GPP files on B2G.

Do bug 1186845 again. :)
Attachment #8671166 - Flags: review?(cpearce)

Comment 11

3 years ago
Gonk PDM had similar problem which was fixed in bug 1198664.
Depends on: 1198664
Comment on attachment 8671166 [details] [diff] [review]
Let MP4Decoder handle 3GPP files on B2G.

Review of attachment 8671166 [details] [diff] [review]:

r+ with change below.

::: dom/media/fmp4/MP4Decoder.cpp
@@ +105,5 @@
> +  // On B2G, treat 3GPP as MP4 when Gonk PDM is available.
> +  isMP4Video |= aMIMETypeExcludingCodecs.EqualsASCII(VIDEO_3GPP) &&
> +             Preferences::GetBool("media.fragmented-mp4.gonk.enabled", false);
> +#endif

We only build MP4Decoder if MOZ_FMP4 is defined:

And media.fragmented-mp4.gonk.enabled is true whenever MOZ_FMP4  is defined:


So you shouldn't (now) need the media.fragmented-mp4.gonk.enabled pref check?

So I would prefer:

const bool isMP4Video =
  aMIMETypeExcludingCodecs.EqualsASCII(VIDEO_3GPP) ||
  aMIMETypeExcludingCodecs.EqualsASCII("video/mp4") ||

To keep the "const" on the bool.
Attachment #8671166 - Flags: review?(cpearce) → review+

Comment 13

3 years ago
Created attachment 8672462 [details] [diff] [review]
Let MP4Decoder handle 3GPP files on B2G.

Address review comments and carry r+ from cpearce.
Attachment #8671166 - Attachment is obsolete: true
Attachment #8672462 - Flags: review+

Comment 16

3 years ago
Last Resolved: 3 years ago
status-firefox44: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla44


3 years ago
Depends on: 1217220
You need to log in before you can comment on or make changes to this bug.