Closed Bug 1835986 Opened 3 years ago Closed 1 month ago

Firefox 113.2.0 at Android 13. Audio and video stutter when using bluetooth output.

Categories

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

All
Android
defect

Tracking

()

RESOLVED WORKSFORME
Performance Impact low

People

(Reporter: fallouter245, Assigned: kinetik)

References

(Blocks 3 open bugs)

Details

User Agent: Mozilla/5.0 (Android 13; Mobile; rv:109.0) Gecko/113.0 Firefox/113.0

Steps to reproduce:

Start play a video at any site with bluetooth audio output.

Actual results:

Audio and video stutter.

Expected results:

Audio ans video should run smoothly.

Hey Ilya! I'm running firefox 113.2.0 right now and I'm not getting any stutter on my videos / sound when using my bluetooth headphones. I tried both reddit and youtube videos. Would you mind expanding on a few details for me?

  1. Are you running any extensions? If so, which one?
  2. What phone are you using?
  3. If its not too much trouble, would you mind grabbing a profile for us? You could either do it with a USB cable or through the app itself.

Thanks!

  1. Normaly I use Ublock origin. But I tested without extensions – same result.
  2. Xiaomi Mi 10, MIUI 14.0.2(Android 13)

The severity field is not set for this bug.
:amejia, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(amejiamarmol)
Severity: -- → S4
Flags: needinfo?(amejiamarmol)
Priority: -- → P5
Performance Impact: --- → low

(In reply to Ilya from comment #2)

  1. Normaly I use Ublock origin. But I tested without extensions – same result.
  2. Xiaomi Mi 10, MIUI 14.0.2(Android 13)

Sorry, I could've sworn I answered this. Thanks for taking the time to answer me! I was just wondering, did you have the chance to try to grab a profile of the problem happening?

The Performance Impact Calculator has determined this bug's performance impact to be low. If you'd like to request re-triage, you can reset the Performance Impact flag to "?" or needinfo the triage sheriff.

Platforms: Android
Impact on site: Causes noticeable jank

I'm experiencing the same problem. Looking around internet, it seems something that affect only MIUI phone.

I'm using a Redmi Note 12 MIUI 14, Firefox 116.3.0

Viewing a video with jack headphone do not give problem, switching on Bluetooth audio and video
Using chrome, viewing the same video do not give problem.

Here follow a list of the test I made with firefox without result
different Bluetooth settings
firefox in anonymous session and all extensions disable
same clutter in firefox focus 116.3.0

Experiencing the same problem in MIUI 14 on Xiaomi 13 Pro with Liberty Air 2 Bluetooth headphones. Tried different Bluetooth settings in Android Developer Options to no avail. No audio crackling in Chrome, Spotify etc, so far just Firefox seems to be affected (both 116.3.0 and Nightly 118.0a1).

I have the same issue on any audio played on Firefox 120.0.1 (Android 13).
Tested also with Firefox Klar and Firefox Beta, same problem.
In latest nightly 122.20231123050305 the issue with audio ist better, but complete solved.

Blocks: perf-android
Blocks: 1894804

Jamie, do you have a phone like this that you can try to reproduce on?

Flags: needinfo?(jnicol)

I have a Redmi Note 13 Pro+ which I can kind of reproduce on. I don't get any audio stutter, but I do get the video freezing fairly frequently for sometimes up to a second in length.

However, I don't see this on builds as far back as when this bug was filed. For me I start getting the video stutter with this regression range. Bug 1846706 sticks out, and sure enough setting media.cubeb.sandbox to false fixes the issue. Weirdly though I only get the stutter in Fenix, not geckoview_example.

Clearly this cannot be the source of the original reporter's issue, as it landed 5 months later. But perhaps it could point us in the right direction. Matthew, do you have any ideas on why cubeb remoteing could be causing video to stutter? Here is a profile: https://share.firefox.dev/4fgRZBP Are there any useful logs or anything else I can provide?

Flags: needinfo?(jnicol) → needinfo?(kinetik)

same bug here ! since one year...
only on bluetooth
i have a xiaomi mi 10 on android 13 and with miui 14.0.5
and all version of firefox android do this to me since one year and after many test (normal version, nightly, and without any extension (all disabled and clean install of the app for trying)

i'm always on bluetooth it's so annoying ...

I believe I can reproduce this - NI myself to test

Flags: needinfo?(fdoty)
Severity: S4 → --
Priority: P5 → --

Update on comment 12 - I've attempted to reproduce this but am no longer running into this issue. If that changes I'll update this ticket.

Flags: needinfo?(fdoty)

I tried to repro on a Pixel 6a running Android 13 but had no stuttering/freezing. I tried both Fenix/Geckoview nightly and watched some YouTube videos at regular speed and 2x with no issues. :Iceberg, would you be able to give nightly a try and let us know if you're still having the same issues?

Flags: needinfo?(iceberg)

Redirect a needinfo that is pending on an inactive user to the triage owner.
:kaya, since the bug has recent activity, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(iceberg) → needinfo?(kkaya)

I also have the same issue on Firefox with bluetooth headphones pausing/stuttering the video playback.

I think this belongs to Core / Audio/Video. If you don't agree, please send it back to Android Performance.

Component: Performance → Audio/Video: Playback
Flags: needinfo?(kkaya)
Product: Fenix → Core
Version: Firefox 113 → unspecified

I was able to reproduce it on my pixel 9 fold / android 14 / v135. Here's my profile of it.

Happening on pixel buds 2 pro.

Also, I cannot reproduce this on a S23 ultra with samsung earbuds. I was able to reproduce it at 2x speed, I guess samsung wasn't noticeable at regular speed unlike my pixel.

Marc, can you get another profile with the Media preset, please?

Flags: needinfo?(mleclair)
Status: UNCONFIRMED → NEW
Ever confirmed: true

Paul, can you check if https://share.firefox.dev/4ifi7gR shows indications of audio popping?

Flags: needinfo?(padenot)

Marc, in that profile it looks like you increased the playback speed to 2x about 3 seconds into playback. Was it popping at 1x too? Can you get another profile of popping at 1x?

Flags: needinfo?(mleclair)

The popping at 1x does happen but a lot less frequently. It does happen at a regular 10-15 seconds interval. Also worth nothing that some of the sound distortion is a lot less noticeable than in a video with increased playback speed.

Profile

Flags: needinfo?(mleclair)

Andreas, I'll let you dupe as appropriate.

Flags: needinfo?(padenot)
Flags: needinfo?(kinetik)
Flags: needinfo?(apehrson)

The most recent reports are probably bug 1947917. That fix is releasing today. The issue as originally filed may be something else. Possibly bug 1931080 so marking as dependency. At least there's not much point in investigating this further until bug 1931080 is fixed.

Depends on: 1931080
Flags: needinfo?(apehrson)
Severity: -- → S3

Jim, it seems like this is still happening and would be pretty annoying. I think this could qualify as S2

Flags: needinfo?(jmathies)
Flags: needinfo?(jmathies)
Priority: -- → P2

It'd be good to know if this is still a problem in recent builds. We landed thread priority fixes in Firefox 143 (bug 1931080) and AAudio buffering adjustments in Firefox 151 (bug 2026000).

Assignee: nobody → kinetik
Status: NEW → ASSIGNED

I was unable to reproduce the stutter when playing videos on youtube.com, or when a video is skipped or when a new video starts.
Tested on 152.0.5 Firefox for Android with Neckband Energy 3 headphones and the following Xiaomi devices:

  • Xiaomi Redmi Note 8T (Android 11),
  • Xiaomi Poco X7 (Android 16),
  • Xiaomi Redmi Mi 8 Lite (Android 10).

Closing as WORKSFORME.

Status: ASSIGNED → RESOLVED
Closed: 1 month ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.