New issue
Advanced search Search tips

Issue 731844 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Aug 2017
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

Sudden DEMUXER_ERROR_COULD_NOT_OPEN errors on metronome

Project Member Reported by dskiba@chromium.org, Jun 9 2017

Issue description

When BPM is changed repeatedly in Google's metronome widget (google for 'metronome'), sometimes there are MediaEvent errors logged on Android.

Note that metronome doesn't need to be playing for errors to appear (but if it was playing, the errors would cause it to stop).

I've added crude logging to ffmpeg_glue.cc and ffmpeg_demuxer.cc, and here is the the log:

06-09 12:23:19.178 26148 26214 E chromium: [ERROR:ffmpeg_glue.cc(144)] avformat_open_input returned 0
06-09 12:23:19.789 26148 26213 E chromium: [ERROR:ffmpeg_demuxer.cc(916)] data_source_size=9610965
06-09 12:23:19.791 26148 26214 E chromium: [ERROR:ffmpeg_glue.cc(144)] avformat_open_input returned 0
06-09 12:23:21.362 26148 26213 E chromium: [ERROR:ffmpeg_demuxer.cc(916)] data_source_size=9562520
06-09 12:23:21.363 26148 26214 E chromium: [ERROR:ffmpeg_glue.cc(144)] avformat_open_input returned 0
06-09 12:23:21.624 26148 26213 E chromium: [ERROR:ffmpeg_demuxer.cc(916)] data_source_size=9581340
06-09 12:23:21.625 26148 26214 E chromium: [ERROR:ffmpeg_glue.cc(144)] avformat_open_input returned 0
06-09 12:23:21.788 26148 26213 E chromium: [ERROR:ffmpeg_demuxer.cc(916)] data_source_size=9613534
06-09 12:23:21.790 26148 26214 E chromium: [ERROR:ffmpeg_glue.cc(144)] avformat_open_input returned 0
06-09 12:23:21.970 26148 26213 E chromium: [ERROR:ffmpeg_demuxer.cc(916)] data_source_size=9585025
06-09 12:23:21.971 26148 26214 E chromium: [ERROR:ffmpeg_glue.cc(144)] avformat_open_input returned 0
06-09 12:23:26.035 26148 26213 E chromium: [ERROR:ffmpeg_demuxer.cc(916)] data_source_size=9611615
06-09 12:23:26.036 26148 26214 E chromium: [ERROR:ffmpeg_glue.cc(144)] avformat_open_input returned 0
06-09 12:23:27.330 26148 26213 E chromium: [ERROR:ffmpeg_demuxer.cc(916)] data_source_size=9648390
06-09 12:23:27.331 26148 26214 E chromium: [ERROR:ffmpeg_glue.cc(144)] avformat_open_input returned 0
06-09 12:23:27.537 26148 26213 E chromium: [ERROR:ffmpeg_demuxer.cc(916)] data_source_size=9596132
06-09 12:23:27.538 26148 26214 E chromium: [ERROR:ffmpeg_glue.cc(144)] avformat_open_input returned 0
06-09 12:23:40.788 26148 26213 E chromium: [ERROR:ffmpeg_demuxer.cc(916)] data_source_size=0
06-09 12:23:40.789 26148 26214 E chromium: [ERROR:ffmpeg_glue.cc(144)] avformat_open_input returned -1094995529
06-09 12:23:40.789 26148 26214 E chromium: [ERROR:ffmpeg_glue.cc(150)] AVERROR_INVALIDDATA case
06-09 12:23:40.789 26148 26214 E chromium: [ERROR:ffmpeg_glue.cc(154)] AVIOSeekOperation returned 0
06-09 12:23:40.789 26148 26214 E chromium: [ERROR:ffmpeg_glue.cc(160)] AVIOReadOperation returned 0
06-09 12:23:40.789 26148 26213 E chromium: [ERROR:render_media_log.cc(30)] MediaEvent: MEDIA_ERROR_LOG_ENTRY {"error":"FFmpegDemuxer: open context failed"}
06-09 12:23:40.789 26148 26164 E chromium: [ERROR:render_media_log.cc(30)] MediaEvent: PIPELINE_ERROR DEMUXER_ERROR_COULD_NOT_OPEN
06-09 12:23:46.852 26148 26213 E chromium: [ERROR:ffmpeg_demuxer.cc(916)] data_source_size=9596160
06-09 12:23:46.853 26148 26214 E chromium: [ERROR:ffmpeg_glue.cc(144)] avformat_open_input returned 0
06-09 12:26:20.790 26148 26213 E chromium: [ERROR:ffmpeg_demuxer.cc(916)] data_source_size=9606298
06-09 12:26:20.791 26148 26214 E chromium: [ERROR:ffmpeg_glue.cc(144)] avformat_open_input returned 0
06-09 12:26:20.941 26148 26213 E chromium: [ERROR:ffmpeg_demuxer.cc(916)] data_source_size=9591400
06-09 12:26:20.942 26148 26214 E chromium: [ERROR:ffmpeg_glue.cc(144)] avformat_open_input returned 0
06-09 12:26:21.142 26148 26213 E chromium: [ERROR:ffmpeg_demuxer.cc(916)] data_source_size=9577026
06-09 12:26:21.142 26148 26214 E chromium: [ERROR:ffmpeg_glue.cc(144)] avformat_open_input returned 0

I.e. at some point FFmpegDemuxer::Initialize() was called with data_source_ of size 0, which caused FFmpegGlue::OpenContext() to fail (note that AVIOReadOperation returned 0, so data_source_ was still 0 at that point).


I suspect that this could be a manifestation of some larger issue (like data race).

 
Description: Show this description
Cc: -dalecur...@chromium.org
Owner: dalecur...@chromium.org
Status: Assigned (was: Untriaged)
I believe this might be WAI with rapid changes since tag teardown will abort the data source during FFmpegDemuxer::Stop(). This can trigger failures in ffmpeg. We might be able to suppress these better though. Will keep it in my queue to double check though.
Status: WontFix (was: Assigned)
These were due to setting a src of "null", but I can't repro anymore.

Sign in to add a comment