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

Issue 627977 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner:
Closed: Nov 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug



Sign in to add a comment

audio_sync_reader and audio_input_sync_writer WARNING floods output

Project Member Reported by mcasas@chromium.org, Jul 13 2016

Issue description

I've seen it on my Chromium local builds, e.g.

 [10138:149023:0713/135551:WARNING:audio_sync_reader.cc(132)] AudioSyncReader::Read timed out, audio glitch count=1

 [10138:40963:0713/135552:WARNING:audio_input_sync_writer.cc(241)] AISW: No room in fifo.

and in bots e.g. [1].

repeated a large amount of times, including on experiments
not involving audio.

Please consider refactoring to log fewer times or 
changing it to DVLOG().



[1] https://build.chromium.org/p/chromium.webrtc/builders/Mac%20Tester/builds/56929/steps/browser_tests/logs/stdio/text

 

Comment 1 by mcasas@chromium.org, Jul 13 2016

Cc: grunell@chromium.org mcasas@chromium.org
Components: Internals>Media>Audio
Owner: servolk@chromium.org
Status: Assigned
Summary: audio_sync_reader and audio_input_sync_writer WARNING floods output (was: audio_sync_reader WARNING floods output)
git blame :)

servolk@ could you please take care of audio_sync_reader ?

grunell@ could you please take care of audio_input_sync_writer ?
In that log the audio_sync_reader messages are 2720 lines out of 23041 lines total, i.e. ~12%. I can see a few much worse offenders, e.g. ~10319 lines of 'Failed to reserve I420 output buffer' from video_capture_device_client.cc and 5366 lines of "Returning video-not-playing to test." from test_functions.js.
Having said that, I'm actually surprised to see those audio glitch messages. IIUC those shouldn't typically happen in most cases. Is the audio writer thread blocked by something in the renderer process in those tests?

Comment 3 by mcasas@chromium.org, Jul 15 2016

#2: 'Failed to reserve I420 Output Buffer' was already cleaned up
in https://codereview.chromium.org/2124073006/ (no bug, apparently).
The Js verboseness is also quite annoying and should be addressed.

About the root cause, I've seen it when I start using JS's
PeerConnection, that IIUC runs in main thread, hiccuping everything
that is supposed to run over there, could this be a reason?
Cc: dalecur...@chromium.org
No, I believe audio IPC is using a separate thread (see https://cs.chromium.org/chromium/src/media/audio/audio_device_thread.h?rcl=1468596139&l=25). So even if the main thread is kept busy by PeerConnection or something else, there should be no audio hiccups, as long as the audio thread is not blocked (since it runs at high priority, https://cs.chromium.org/chromium/src/media/audio/audio_device_thread.cc?rcl=0&l=51). TBH I'm not super familiar with this stuff, so +dalecurtis@.
I think logging glitches as warnings is good, since those typically indicate problems and should happen only very infrequently and we want them to be visible, to draw our attention to issues. But I'm not sure what could be causing audio glitches in this case.
"AISW: No room in fifo" lines are capped to 50. Is that not sufficient?
Cc: olka@chromium.org
These lines are still covering the logs 3500+ times and causing it to fail with excessive log output. Can somebody take a look if we cna filter them?
[12917:159499:1110/085429.891119:WARNING:audio_sync_reader.cc(189)] AudioSyncReader::Read timed out, audio glitch count=10
https://logs.chromium.org/v/?s=chromium%2Fbb%2Fchromium.webrtc.fyi%2FMac_Tester%2F44787%2F%2B%2Frecipes%2Fsteps%2Fbrowser_tests%2F0%2Fstdout
Owner: maxmorin@chromium.org
Status: Fixed (was: Assigned)
maxmorin@'s patch below just fixed it:
https://chromium.googlesource.com/chromium/src/+/7462d37a1dd834a99cf4c0bf6df60bbaa992fc2b 

Sign in to add a comment