[mythtv] Seg Fault in mediacodec

David Engel david at istwok.net
Tue Jul 3 01:38:26 UTC 2018


On Mon, Jul 02, 2018 at 05:14:52PM -0400, Aman Gupta wrote:
> On Mon, Jul 2, 2018 at 3:58 PM Peter Bennett <pb.mythtv at gmail.com> wrote:
> > Hi Aman
> >
> > Thank you for all your help so far.
> >
> > I upgraded my Shield to Android 8.0. Now I get a seg fault every time I
> > play 1080 interlaced recordings. Progressive recordings are fine, and
> > 480 interlaced are fine. Also 4K recordings are fine. With 1080
> > interlaced it gets a seg fault in avcodec_receive_frame. This happens at
> > about the fifth frame received in the video. It starts off fine, with
> > avcodec_receive_frame returning EAGAIN until some number of packets have
> > been sent, then it receives a few frames, then there is a seg fault in
> > memcpy. There are no null addresses being passed to memcpy, but
> > something must be invalid. This was working fine with Android 7. I am
> > using the default buffer allocation: AVCodecContext->get_buffer2 =
> > get_avf_buffer. avcodec_receive_frame should allocate the buffers using
> > that routine so they should be valid.
> >
> > [backtrace snipped]
> >
> You can try the mpv-android apk from GitHub to compare. I'm pretty sure it
> works fine on Oreo.

mpv-android almost always crashes for me after a split second on 1080i
content.  When it doesn't crash, it just exits playback, also after a
split second.  720p content works fine, just like with MythTV.

David
-- 
David Engel
david at istwok.net


More information about the mythtv-dev mailing list