[mythtv] 20180705 Android Observations

Peter Bennett pb.mythtv at gmail.com
Wed Jul 11 18:33:13 UTC 2018



On 07/08/2018 03:15 PM, David Engel wrote:
> I hate it when results aren't consistent.  I never got the "Video
> frame buffering failed too many times" error when I was trying to
> catch it.  I only got it when I wasn't logging.  Ugh!
>
> I did catch some probably related errors, though.  Here they are.  All
> of these were done with the unmodified, 0705 patch and audio
> buffereing set to 300ms.
>
> One quick sidenote is that I captured the logs with "adb logcat
> org.mythtv.mythfrontend".  What's strange is that the logcat would
> exit when something happened for reasons that I don't understand.
> First error?  I don't know.  Should I be running logcat differently?
>
> ffrew-timeout1: I got this when rewinding a 1 hour program at 20x.
> Log 1 captured when the rewind hung.  Eventually, the screen went all
> black, the position OSD came up and the current position time started
> increasing as if the recording was playing back normally.  I think
> mythfrontend thought it hit the beginning of the program and started
> playing it back normally, but there wasn't any video.
>
> ffrew-timeout2: This is just like case 1 above except I was fast
> forwarding and have more logs.  Log 2 is when the hang occurred.  Logs
> 2a, 2b and 2c are when the fast forward was hung and the video was
> still visible.  Log 2d if from when the video went all black and
> position OSD was increasingly normally.  Eventually playback exited to
> the watch recording screen without any error popup.
>
> rapid-skip3: I got this when rapidly skipping forward 10s at a time.
> Log 3 is from when the hang occurred.  Logs 3a, 3b and 3c are from
> when playback was hung.  Eventually, the end of recording menu popped
> up, but it was totally unresponsive.  I had to force stop
> mythfrontend.
>
> The jellyfish issue was also incosistent.  It did eventually crash
> form me under gdb.  Everytime, it was due to a SIGKILL, presumably
> because the system was out of memory.  Log 1 is from one of them.
>
By the way, I did get the logs in the email, so you didn't need to do 
the google share.

Jury duty over - there was no case so we got sent home after hanging 
around for 3 hours.

The timeouts are all the same original issue - IllegalStateException.

I tried all manner of ways to avoid the error in our code, but it seems 
to fire randomly during fast forward or skip.

My latest patch (yesterday) fixes it with a sledge hammer and is 
certainly not optimal.

I suppose I need to dig into the FFmpeg source code and figure out the  
IllegalStateException and find the correct FFmpeg fix.

Peter


More information about the mythtv-dev mailing list