Issue metadata
Sign in to add a comment
|
Audio keeps playing for 5-7s after pause
Reported by
jonat...@titanous.com,
Jun 12 2018
|
||||||||||||||||||||||
Issue descriptionUserAgent: 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:
,
Jun 13 2018
+Marina could you try to repro it with AudioServiceAudioStreams feature enabled?
,
Jun 13 2018
+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?
,
Jun 13 2018
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.
,
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!
,
Jun 13 2018
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.
,
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
,
Jun 14 2018
+ some more media folks in case it's a pipeline problem.
,
Jun 14 2018
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?
,
Jun 14 2018
+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!
,
Jun 14 2018
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?
,
Jun 14 2018
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.
,
Jun 14 2018
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.
,
Jun 15 2018
> 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.
,
Jun 18 2018
Seems like OS level issue if that's the delay value. OS is accumulating audio faster than it can play it out.
,
Jul 19
,
Jul 24
#16: those stats are recovering in M69: https://uma.googleplex.com/p/chrome/timeline_v2/?sid=0156b2d57301b0726d41b58522533800
,
Jul 31
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.
,
Jul 31
,
Aug 20
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.
,
Aug 20
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.
,
Aug 20
,
Aug 22
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.
,
Aug 22
[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.
,
Oct 3
,
Nov 21
Closing as verified. |
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by xhw...@chromium.org
, Jun 12 2018Components: -Internals>Media Internals>Media>Audio
Owner: olka@chromium.org
Status: Available (was: Unconfirmed)