Closed Bug 1853012 Opened 1 years ago Closed 1 years ago

On Firefox 119 Nightly and 118 beta 8 and 9 for Android, video playback occasionally stops while audio continues, then both resume from where video had stopped

Categories

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

Firefox 119
ARM64
Android
defect

Tracking

()

RESOLVED FIXED
119 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox-esr115 --- unaffected
firefox117 --- unaffected
firefox118 + fixed
firefox119 --- fixed

People

(Reporter: yannis, Assigned: padenot)

References

(Regression)

Details

(Keywords: regression)

Attachments

(4 files)

Device information: Fairphone 3, arm64, with Android 11, software version 8901.4.A.0025.0.

Steps to reproduce:

  • Visit youtube.com on Firefox Nightly for Android.
  • Watch any video of, say, at least 10 minutes.

Problem:

Every 60 to 120 seconds, the video playback stops and shows a spinning wheel. Meanwhile, audio continues. About 20 seconds later, video playback and audio both resume from the point where video playback had stopped.

Last known good build: Firefox Nightly 119.0.a1 2023-09-08-17-12-18 built from 3396ae36832c1e444d7373ab021be20072d57e89.
First known bad build: Firefox Nightly 119.0.a1 2023-09-09-04-03-11 built from eb062b89c03adc9b41355ee054d8582fda6b482d.
Regression range: here.

I'm tempted to say this could be regressed by bug 1848518 (which has just been uplifted to beta)?

I will attach extra information in the next comments.

Paul, kinetik,
This seems a cubeb regression, do y'all have any time to check this issue?
Thanks!

Severity: -- → S3
Component: Audio/Video: Playback → Audio/Video: cubeb
Flags: needinfo?(padenot)
Flags: needinfo?(kinetik)
Priority: -- → P2
Attached file logcat.txt

Here is a logcat of ~30 seconds, where the issue should be happening more or less during the last ~20 seconds.

Attached file aboutsupport.json

Here is my about:support.

DailyMotion seems to behave a bit differently: video stops and shows continuously the last video frame without a spinning wheel, audio continues, video occasionally updates to a single more recent frame, then after ~1 minute audio and video resume without going back to the original point of desynchronisation.

Setting Bug 1848518 as the regressor, please correct if needed after the investigation in Comment 1

Keywords: regression
Regressed by: 1848518

Set release status flags based on info from the regressing bug 1848518

I should probably mention why I'm pointing to bug 1848518 in particular. While I was using mozgression with GeckoViewExample, it turned out that "bad" builds of GVE had audio playback (together with the problem described here), whereas "good" builds of GVE had no audio playback (but didn't have the problem described here). That helped me reach the last known good build quicker ("do I have audio playback in GVE?"), then I confirmed in Firefox Nightly that this was indeed the last known good build for the problem described here.

The bug is marked as tracked for firefox118 (beta). We have limited time to fix this, the soft freeze is in 7 days. However, the bug still isn't assigned and has low severity.

:jimm, could you please find an assignee and increase the severity for this tracked bug? Given that it is a regression and we know the cause, we could also simply backout the regressor. If you disagree with the tracking decision, please talk with the release managers.

For more information, please visit BugBot documentation.

Flags: needinfo?(jmathies)
Duplicate of this bug: 1853014
Regressions: 1853014
See Also: → 1853014
No longer regressions: 1853014
See Also: 1853014

(In reply to Yannis Juglaret [:yannis] from comment #0)

I'm tempted to say this could be regressed by bug 1848518 (which has just been uplifted to beta)?

I confirm that I can now reproduce the issue in Firefox 118 beta 8.

Summary: On Firefox Nightly for Android, video playback occasionally stops while audio continues, then both resume from where video had stopped → On Firefox 119 Nightly and 118 beta 8 for Android, video playback occasionally stops while audio continues, then both resume from where video had stopped

After some testing:

I found that https://github.com/mozilla/cubeb/commit/4dfcbd32fd854872040c7b9ff8a839b33f336f8f?diff=unified#diff-481be8adcfca43a9a80fe319f0991d6deefd89501017a4e56c442b1a690affeaL1724-R1726 this line is the cause of bug.

change back from uin32_t to uint64_t fix the bug.

Some guess:
Uin32_MAX ( 4,294,967,295 ) / Sample_rate (48000) / 1000 -> 89.47s about 1min30s.

Yes, this is going through our CI currently, thanks for double-checking.

Flags: needinfo?(padenot)
Flags: needinfo?(kinetik)
Assignee: nobody → padenot
Status: NEW → ASSIGNED

Can uin64_t be used in armv7a 32bits

Pushed by cchang@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d5a0ac5140d8 Update libcubeb to revision f9c118d. r=cubeb-reviewers,chunmin https://hg.mozilla.org/integration/autoland/rev/39b3e5649496 Reapply patch on top of libcubeb. r=cubeb-reviewers,chunmin
Status: ASSIGNED → RESOLVED
Closed: 1 years ago
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch

Please nominate this for Beta approval.

Flags: needinfo?(jmathies) → needinfo?(padenot)

The latest Nightly build works like a charm, thanks!

(In reply to f38382014-buzilla from comment #16)

Can uin64_t be used in armv7a 32bits

Yes. You can install Firefox Nightly from the Play Store right now to make sure that the issue is fixed for you too, or wait until the fix reaches Firefox Beta.

Comment on attachment 9353416 [details]
Bug 1853012 - Update libcubeb to revision f9c118d. r?#cubeb-reviewers

Beta/Release Uplift Approval Request

  • User impact if declined: Video can can only play for 1:34 and then appears to be buffering (but audio continues), and then a/v sync is off when video starts again on Android version 10 and below.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: Yes
  • If yes, steps to reproduce: Play a video that is longer than 1:34, it should work
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Patch found independently by two people, simple fix reverting to a previous version of a single line.
  • String changes made/needed:
  • Is Android affected?: Yes
Flags: needinfo?(padenot)
Attachment #9353416 - Flags: approval-mozilla-beta?
Attachment #9353417 - Flags: approval-mozilla-beta?

1:24 actually but it doesn't matter.

Comment on attachment 9353416 [details]
Bug 1853012 - Update libcubeb to revision f9c118d. r?#cubeb-reviewers

Approved for landing on mozilla-beta before the merge, will be in the 118.0 release candidate, thanks.

Attachment #9353416 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Attachment #9353417 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Summary: On Firefox 119 Nightly and 118 beta 8 for Android, video playback occasionally stops while audio continues, then both resume from where video had stopped → On Firefox 119 Nightly and 118 beta 8 and 9 for Android, video playback occasionally stops while audio continues, then both resume from where video had stopped
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: