Bug #3010

Raspberry Pi 2 Crash

Added by Nanya Business almost 4 years ago. Updated almost 4 years ago.

Status:FixedStart date:02/28/2016
Priority:NormalDue date:
Assignee:Andreas Smas% Done:

100%

Category:Video playback
Target version:5.0
Found in version:4.99.743.g53cd6.dirty Platform:RPi

Description

Movian crashes to homescreen when starting to play videos in about 25% of cases.

Sometimes the crash happens and sometimes it doesn't, even on the same video file(both local drive and stream).

Attached you find a 2 log files:
1: Local video
2: stream from liveleak

The last lines from logs are pretty simular:
00:01:46.920: GLW [DEBUG]:Screensaver inhibited
00:01:46.923: audio [DEBUG]:Codec changed to aac (0x15002)
00:01:46.928: RPI [DEBUG]:Opening audio output hdmi
00:01:46.935: VideoCore [DEBUG]:Video decoder output port settings changed to h264 1280x720p (VideoCore) (SAR: 1:1)
00:01:46.947: Audio [DEBUG]:Converting from [stereo 22050Hz fltp] to [stereo 22050Hz fltp]
00:01:47.200: PANIC [EMERG]:OMX_SetParameter(d->d_mixer->oc_handle, OMX_IndexParamAudioPcm, &pcm): OMX Error (line:322) 0x80001005
00:01:47.200: PANIC [EMERG]:STACKTRACE (3 frames)
00:01:47.226: PANIC [EMERG]:panic+0x1c
00:01:47.227: PANIC [EMERG]:rpi_audio_port_settings_changed+0x204
00:01:47.227: PANIC [EMERG]:oc_event_handler+0xb4

Kind regards

Local file.log (36 KB) Nanya Business, 02/28/2016 12:20 PM

Liveleak.log (37.8 KB) Nanya Business, 02/28/2016 12:20 PM

Associated revisions

Revision 24fe54ae
Added by Andreas Smas almost 4 years ago

omx: Wait for OMX_CommandPortDisable

Fixes #3010

Change included in version 4.99.754

History

#1 Updated by Andreas Smas almost 4 years ago

  • Status changed from New to Accepted
  • Target version set to 5.0

Hm. I've seen this happen as well. I'll try to figure out what's going on.

#2 Updated by Andreas Smas almost 4 years ago

  • Status changed from Accepted to Fixed
  • % Done changed from 0 to 100

#3 Updated by Andreas Smas almost 4 years ago

I think this fixes the problem. I've not been able to reproduce it since i fixed what i think was wrong, but i could not reproduce it with 100% certainty so i'm not sure yet. Please test.

#4 Updated by Dean Kasabow almost 4 years ago

It seems to fix my problem, too (mpeg2 live video / VideoCore).

Usually it will give the errors 9 of 10 times, but now I tried 50 times to play the live video stream and got 3 unsuccessful attempts with OMX Error. And this time only one error 0x80001005 and not 2 + 0x80001017.

As a side note: when you play a live stream, ONLY the first time you see: "Checking.... Bitrate: XXXX". Each next time it doesn't show the "Bitrate: ..." line at the bottom.

00:00:03.776: navigator [INFO ]:Opening http://192.168.100.201:64080
00:00:04.586: probe [DEBUG]:http://192.168.100.201:64080: Probed as mpegts
00:00:09.000: Probe [DEBUG]: Stream #0: Audio: mp2 [[3][0][0][0] / 0x0003]
00:00:09.000: 48000 Hz, 2 channels, s16p, 192 kb/s
00:00:09.000: Probe [DEBUG]: Stream #1: Video: mpeg2video (Main) [[2][0][0][0] / 0x0002]
00:00:09.000: yuv420p, tv, 704x576 [PAR 16:11 DAR 16:9], 15000 kb/s
00:00:09.024: vp [DEBUG]:Waiting for event
00:00:09.025: vp [DEBUG]:Playing 'http://192.168.100.201:64080', primary, resume:yes (overridden)
00:00:09.026: media [DEBUG]:Settings initialized for URL http://192.168.100.201:64080 in folder: <unset> [<unset>]
00:00:09.038: SVSYNC [DEBUG]:Set to 0s
00:00:09.042: AVSYNC [DEBUG]:Set to 0 ms
00:00:09.043: RPI [DEBUG]:Supported audio formats AC3:YES EAC3:NO DTS:YES MLP:NO AAC:NO 8ChPCM:NO
00:00:09.150: Video [DEBUG]:Unable to compute opensub hash, stream probably not seekable
00:00:09.158: probe [DEBUG]:http://192.168.100.201:64080: Probed as mpegts
00:00:09.184: Freetype [DEBUG]:Loaded font family='ubuntu mono' fullname='ubuntu mono regular' style='Regular' from dataroot://res/fonts/UbuntuMono-Regular.ttf domain:11
00:00:14.217: Video [DEBUG]:Starting playback of http://192.168.100.201:64080 (mpegts)
00:00:14.218: Probe [DEBUG]: Stream #0: Audio: mp2 [[3][0][0][0] / 0x0003]
00:00:14.218: 48000 Hz, 2 channels, s16p, 192 kb/s
00:00:14.218: Probe [DEBUG]: Stream #1: Video: mpeg2video (Main) [[2][0][0][0] / 0x0002]
00:00:14.218: yuv420p, tv, 704x576 [PAR 16:11 DAR 16:9], 15000 kb/s
00:00:14.218: media [DEBUG]:Selecting track libav:0, score -1
00:00:14.219: Media [DEBUG]:Switching to audio track libav:0
00:00:14.219: Video [DEBUG]: Stream #0: Audio: mp2 [[3][0][0][0] / 0x0003]
00:00:14.219: 48000 Hz, 2 channels, s16p, 192 kb/s
00:00:14.221: Video [DEBUG]: Stream #0: Codec created
00:00:14.221: Video [DEBUG]: Stream #1: Video: mpeg2video (Main) [[2][0][0][0] / 0x0002]
00:00:14.221: yuv420p, tv, 704x576 [PAR 16:11 DAR 16:9], 15000 kb/s
00:00:14.225: OMX [DEBUG]:Frame rate set to 24.833
00:00:14.236: Video [DEBUG]: Stream #1: Codec created
00:00:14.237: CEC [INFO ]:>> source activated: Recorder 1 (1)
00:00:14.237: CEC [INFO ]:Logical address 1 is active
00:00:14.238: CEC [INFO ]:<< powering on 'TV' (0)
00:00:14.257: GLW [DEBUG]:Screensaver inhibited
00:00:14.280: audio [DEBUG]:Codec changed to mp2 (0x15000)
00:00:14.294: RPI [DEBUG]:Opening audio output hdmi
00:00:14.298: CEC [INFO ]:<< Recorder 1 (1) -> broadcast (F): active source (1000)
00:00:14.299: VideoCore [DEBUG]:Interlaced picture top-field-first
00:00:14.300: VideoCore [DEBUG]:Video decoder output port settings changed to MPEG2 704x576i (VideoCore) (SAR: 16:11)
00:00:14.316: Audio [DEBUG]:Converting from [stereo 48000Hz s16p] to [stereo 48000Hz s16]
00:00:14.568: OMX [ERROR]:OMX.broadcom.image_fx: ERROR 0x80001005
00:00:17.629: Video [DEBUG]:Stopped playback of http://192.168.100.201:64080
00:00:17.887: GLW [DEBUG]:Screensaver allowed

Also available in: Atom PDF