Just started noticing this issue after updating today. I start a movie and once it starts playing i hit seek forward and i get an error dialog that says “Playback has stopped because the connection to the Plex Media Server has been lost.”
I tried uninstalling the app and reinstalling and same issue. From the log it looks like a null pointer exception
11-01 10:54:05.341 i: [Exo2VideoPlayer] Seeking to 32577ms
11-01 10:54:05.369 i: [FF][MediaPeriod] Releasing.
11-01 10:54:05.370 e: [Exo2VideoPlayer] Player error detected
11-01 10:54:05.371 i: [FF] Releasing demuxer.
11-01 10:54:05.371 e: An exception occurred: com.google.android.exoplayer2.ExoPlaybackException
11-01 10:54:05.371 e: Stacktrace: com.google.android.exoplayer2.ExoPlaybackException
at com.google.android.exoplayer2.m.handleMessage(SourceFile:354)
at android.os.Handler.dispatchMessage(Handler.java:101)
at android.os.Looper.loop(Looper.java:164)
at android.os.HandlerThread.run(HandlerThread.java:65)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.exoplayer2.source.aq.i()' on a null object reference
at com.plexapp.plex.ff.source.FFMediaPeriod.seekToUs(SourceFile:316)
at com.google.android.exoplayer2.m.a(SourceFile:683)
at com.google.android.exoplayer2.m.a(SourceFile:648)
at com.google.android.exoplayer2.m.a(SourceFile:633)
at com.google.android.exoplayer2.m.handleMessage(SourceFile:304)
... 3 more
11-01 10:54:05.378 i: [video] Error detected during playback
Plex Player: NVidia SHield
Player Version: 7.7.1.7664
PMS Version: 1.13.9.5456
Digging into this a bit more, i found that when i remux the movie from an mp4 container to mkv, no more issues with seek. Here are the mediainfo exports for the m4v which causes exoplayer to crash and the mkv version that doesn’t have a problem with seek. If you want the media files let me know and i can PM a link to download them.
@anon18523487 Interesting. I’m generating mediainfo files for all my movies so i can easily grep and find other files that have abnormal frame rates. I’ll test those to see if this crash happens with those that have abnormal frame rates compared to those that don’t. I’ll report back what i find.
@anon18523487 The strange frame rates does not appear to be the issue. I found some files that had max frame rates of 3000fps and they don’t cause the error on fw seek. While testing i found files that caused the error every time and they have max frame rates of 24.975. Interestingly, most of the seek errors happen with mp4 containers but less so with m4v and never with mkv. Let me know if you want sample clips.
I don’t think it’s the frame rate, but the fact that the original says variable, but the remuxed one says constant. Frame rates don’t change like that so one of these is wrong.
I use Handbrake’s HQ preset for ripping my DVD/BD’s and that preset uses “Peak Framerate (VFR)”. So all of my mp4/m4v files have variable frame rates but this only seems to happen with certain files. So i don’t think it’s framerate. Again, if you want samples let me know.