New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 700959 link

Starred by 4 users

Issue metadata

Status: Assigned
Owner:
Last visit > 30 days ago
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug



Sign in to add a comment

Bluetooth audio stutters in audio playback when opening Bluetooth settings in system tray or in web-ui

Project Member Reported by varkha@chromium.org, Mar 13 2017

Issue description

Chrome Version: 58.0.3029.
OS: Chrome OS - 9334.2.0
Firmware: Google_Samus.6300.174.0

What steps will reproduce the problem?
(1) Play video (internal corp Google drive).
(2) Use Bluetooth audio (headphones). Playback is fine.
(3) Open system tray and navigate to Bluetooth page.

What is the expected result?
Video and audio playback unaffected.

What happens instead?
Audio playback stutters badly.

Please use labels and text to provide additional information.
Possibly related to Bluetooth discovery.

If this is hard to reproduce - please request logs / recording.
 
Hi Varkha@,

I tried playing a youtube video , local video file and a video file in google drive in samus on 9334.5.0 build , open the the status tray and navigate to Bluetooth page and listen to music over BT headset.

I didn't see any bad audio. Can you please attach any recording and logs of the machine?

Comment 2 by varkha@chromium.org, Mar 16 2017

Yes, I can still repro this with arbitrary YT video as well with the same Sennheiser Momentum 2 BT headset (https://goo.gl/8JdGPY available from https://goo.gl/TLsGXR). See https://goo.gl/photos/C6aLTMyMKdRyaJVx6 for how it sounds.
I'll attach net logs in a bit.

Comment 3 by varkha@chromium.org, Mar 16 2017

Attaching a log. The recording should be about 30 seconds and I have opened and closed the Bluetooth details page twice while playing a YT video.
net-internals-log-bt-audio-stutter.json
2.9 MB View Download
Labels: -Pri-2 Proj-MaterialDesign-CrOS Pri-1
Owner: fukino@chromium.org
Status: Assigned (was: Untriaged)

Comment 5 by varkha@chromium.org, Mar 16 2017

Labels: -M-58 M-56
I can also reproduce this with another samus I have in M-56 using an old test dev build (56.0.2924.109 / 9000.89.0) both with ash-md flag enabled or disabled. So this is not a regression, at least not a recent one and is not specific to MD UI.

Comment 6 by fukino@chromium.org, Mar 17 2017

Hi varkha@,
Can you reproduce the issue when you discover the devices from Settings?
(e.g. chrome://md-settings/bluetoothDevices on ToT)

If it occurs only on system menu, it might be caused by inefficient algorithm to refresh the device list.
It re-creates the whole list on every refresh, and I saw that the list refresh occurs 5 times in one second on samus.

Comment 7 by varkha@chromium.org, Mar 17 2017

Yes, it seems same in chrome://md-settings/bluetoothDevices. The cycle seems to be about 16 seconds during which there is about 10 seconds of stuttering and then 5-6 seconds of clear audio; then the cycle repeats until you close the BT settings page or navigate away from the details page in the menu.
It is also reproducible for audio-only playback (Play Music).
It sounds like this is probably related to Bluetooth scanning which we do when either the system tray or the Settings UI is open.

Comment 9 by r...@chromium.org, Mar 17 2017

Cc: r...@chromium.org
Is this a regression or always happened?

#9, I have only noticed this recently (in M-58) but I went as far back as M-56 and it is reproducible there.
Summary: Bluetooth audio stutters in audio playback when opening Bluetooth settings in system tray or in web-ui (was: Bluetooth audio stutters in video playback when opening Bluetooth settings in system tray)
Additionally (possibly a separate bug as of 58.0.3029.18):
After opening a browser window and navigating to chrome://md-settings, the Bluetooth gets immediately disabled system-wide (seems like the page load currently forces BT off). After re-enabling BT and closing this page the stutter does not stop. Could it be that the BT scanning is not stopped when the page is navigated away from? There is probably some way to stop scanning but I could not find a way other than restarting the OS.
varkha@ - That would definitely be a bug, would you mind confirming that and filing a separate issue for the MD Settings behavior? There is code that is intended to ensure that scanning is stopped regardless of how the window is closed, but it is certainly possible that is broken? We certainly should not be forcing Bluetooth to off!

Cc: hychao@chromium.org
Cc: fukino@chromium.org
Owner: mcchou@chromium.org
Hi Miao,
According to the bug description and comment #7, it seems BT audio playback stutters while the Bluetooth adapter is discovering devices on samus.
Could you take a look at this issue?
#12, filed bugs:
 bug 703694  (initial state on chrome://md-settings)
 bug 703698  (scanning does not stop when closing chrome://md-settings)
Labels: -Proj-MaterialDesign-CrOS

Comment 17 by ingen...@gmail.com, Jul 21 2017

I have this exact same issue on a Toshiba Chromebook 2. Once I opened the Bluetooth settings after pairing my headphones (Bose QC35), it started stuttering and won't stop. I've rebooted and unpaired and repaired the headphones. It causes the video to visibly stutter with it. I can attach any logs that would be useful.
#17, tried with 61.0.3159.8. Stuttering (constant and quite bad) is there while BT discovery is active (this bug) but it goes away after closing the BT details page in system menu or chrome://settings ( bug 703698  that I can see was fixed in M-59) with no need for reboot or re-pairing.

Sign in to add a comment