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

Issue 852090 link

Starred by 5 users

Issue metadata

Status: Verified
Owner:
Closed: Aug 22
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 1
Type: Bug-Regression



Sign in to add a comment

Audio keeps playing for 5-7s after pause

Reported by jonat...@titanous.com, Jun 12 2018

Issue description

UserAgent: Mozilla/5.0 (X11; CrOS x86_64 10718.13.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.15 Safari/537.36
Platform: (Official Build) dev-channel eve

Example URL:

Steps to reproduce the problem:
1. Play audio or video for a minute or two (for example, YouTube, Spotify, etc.)
2. Press pause.

What is the expected behavior?
The video and the audio stop immediately.

What went wrong?
In many cases, the audio keeps playing for 5-7s after the pause button is pressed and then stops. The video always stops immediately. If the content has only been playing for a few seconds, the audio usually stops immediately.

Did this work before? Yes This started happening in the past few weeks, not sure what version worked.

Is it a problem with Flash or HTML5? HTML5

Does this work in other browsers? Yes

Chrome version: 68.0.3440.15  Channel: dev
OS Version: 10718.13.0
Flash Version: 

Contents of chrome://gpu:
 

Comment 1 by xhw...@chromium.org, Jun 12 2018

Cc: dalecur...@chromium.org maxmorin@chromium.org
Components: -Internals>Media Internals>Media>Audio
Owner: olka@chromium.org
Status: Available (was: Unconfirmed)
Add audio owners for triaging.

jonathan@titanous.com: Does this happen on any other platforms, e.g. Win/Mac/Linux? Thanks!

Comment 2 by olka@chromium.org, Jun 13 2018

Cc: marinaciocea@chromium.org
Status: Assigned (was: Available)
+Marina could you try to repro it with AudioServiceAudioStreams feature enabled?
Cc: vasanthakumar@chromium.org phoglund@chromium.org
+Vasan, do you maybe have a ChromeOS setup with AudioServiceAudioStreams feature enabled? Can you please help us with this and try to repro this bug?
Hi all,

I could not reproduce the issue with and without the flag in Falco (68.0.3440.15). This issue could be device specific with Eve. 

In our lab we are waiting for Eve chromebook to be delivered. Hopefully in couple of days we will get a device. 

P.S: Tried both youtube and Spotify. Meanwhile will try if reproducible in other chromebooks. 

Comment 5 by olka@chromium.org, Jun 13 2018

Thanks Vasan.

jonathan@ could you please:
1) Close all the tabs except the one to play media from.
2) Start a playback, wait for a minute.
3) Start trace recording with media and audio categories only. [https://www.chromium.org/developers/how-tos/trace-event-profiling-tool/recording-tracing-runs]
4) Right after that press pause.
5) As soon as audio is paused stop trace recording.

And upload the trace recording to this bug.
Thank you!

It was a bit harder than I expected to reproduce, but after leaving Spotify playing for around 10 minutes I managed to grab a trace.
trace_spotify_pause_lag.json.gz
851 KB Download

Comment 7 by olka@chromium.org, Jun 14 2018

Thanks jonathan@. Unfortunately, There are no controls events in the trace for some reason.
Have you started tracing before hitting the pause? (please do so)
Were you recording traces "until full" or "continuously"? (please use "until full" mode)
Have you checked both "audio" and "media" categories?
Could you try to repro again?

---
For the record: basing on trace info, AudioServiceStreams experiment is enabled

Comment 8 by olka@chromium.org, Jun 14 2018

Cc: sande...@chromium.org chcunningham@chromium.org
+ some more media folks in case it's a pipeline problem.
Components: OS>Kernel>Audio
The reported delay of AudioOutputDevice::FireRenderCallback is 6 seconds. Maybe the delay was somehow accumulated during playback and cras has 6 seconds of audio buffered up internally that it flushes?
Cc: ka...@chromium.org
Owner: ka...@chromium.org
+Kalin,

Hi Kalin, could test team try to reproduce this issue and grab audio_diagnostics logs when issue happens ? If we can get audio_diagnostics during that 6 seconds, that will be very helpful.

Thanks!
olka@:

> Have you started tracing before hitting the pause? (please do so)

Yes, for 1-2 seconds.

> Were you recording traces "until full" or "continuously"? (please use "until full" mode)

until full

> Have you checked both "audio" and "media" categories?

Yes.

> Could you try to repro again?

Sure is there anything I should do differently?
Here's another trace. Recording started a few seconds before pause, and stopped a few seconds after the audio stopped playing. Spotify had played for about six minutes across two songs before I paused.
trace_spotify_pause_lag2.json.gz
1.0 MB Download
And another trace with about the same timings as the last one. I also attached the audio_diagnostics log collected a little bit after the trace ended, I'm not sure if it covers the period of time in question though as I'm not sure how the timestamps/rolling log buffer works. Let me know if there's a better way to grab the log than opening chrome://system right after the trace ends.
trace_spotify_pause_lag3.json.gz
933 KB Download
audio_diagnostics_spotify_pause_lag3.txt
557 KB View Download
> The reported delay of AudioOutputDevice::FireRenderCallback is 6 seconds.

Very suspicious (and matches reporter's keeps playing). If we can get a repro this is the place to start IMO.
Seems like OS level issue if that's the delay value. OS is accumulating audio faster than it can play it out.
It would be good to know the effective CL in M69 and merge it to M68. WebRTC and Chromebox for Meetings (CfM) may also be suffering from it, see
https://buganizer.corp.google.com/issues/110719839
and
https://b.corp.google.com/issues/111543423
respectively.
Cc: minyue@chromium.org
Cc: jayhlee@google.com
Labels: -Pri-2 Hotlist-Enterprise M-68 ReleaseBlock-Stable Pri-1
We suspect this issue is the root cause of b/112451744 which is currently P1 and is holding up 68 stable push for Chrome OS so marking this bug accordingly.
FYI, my team was able to repro this and we have submitted a feedback (googler krystineo@) on Aug 17 - the feedback should include system logs etc. HTH. 
Cc: vsu...@chromium.org avkodipelli@chromium.org
Status: Fixed (was: Assigned)
This is believed to be fixed by https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/1183660 which is now merged to 68, if this is still seen please feel free to reopen.
Labels: Merge-TBD
[Auto-generated comment by a script] We noticed that this issue is targeted for M-68; it appears the fix may have landed after branch point, meaning a merge might be required. Please confirm if a merge is required here - if so add Merge-Request-68 label, otherwise remove Merge-TBD label. Thanks.
Project Member

Comment 25 by sheriffbot@chromium.org, Oct 3

Labels: -Merge-TBD
Status: Verified (was: Fixed)
Closing as verified. 

Sign in to add a comment