6.16.0.4240 - Constant server disconnect errors

While watching movies, every few minutes playback stops and an error pops up that says

Playback has stopped because the connection to the Plex Media Server has been lost. Please ensure the server is available and retry.

I’ll hit retry, the movie will then begin playing but a few minutes later stops again with the same issue. Very frustrating as it’s impossible to actually use the Android client to watch movies.

This is only happening on the Android client. All other devices in my home (Roku, iOS, AppleTV, PMP) stream the movies fine with no issues.

In the log i see this every time it happens

04-07 11:41:31.337  e: [Exo2VideoPlayer] Player error detected
04-07 11:41:31.337  i: [FF][MediaPeriod] Releasing.
04-07 11:41:31.337  e: An exception occurred: com.google.android.exoplayer2.ExoPlaybackException
04-07 11:41:31.337  e: Stacktrace: com.google.android.exoplayer2.ExoPlaybackException
        at com.google.android.exoplayer2.j.handleMessage(SourceFile:360)
        at android.os.Handler.dispatchMessage(Handler.java:98)
        at android.os.Looper.loop(Looper.java:154)
        at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.google.android.exoplayer2.source.x.a(long, boolean, boolean)' on a null object reference
        at com.plexapp.plex.ff.source.FFMediaPeriod.discardBuffer(SourceFile:360)
        at com.google.android.exoplayer2.j.h(SourceFile:552)
        at com.google.android.exoplayer2.j.handleMessage(SourceFile:306)
        ... 3 more

04-07 11:41:31.337  i: [FF] Releasing demuxer.
04-07 11:41:31.344  i: [video] Error detected during playback

Its almost the exact same error that i posted about in another thread where the new exoplayer fails to direct play MP4 containers.

Logs attached.

Thanks for the report, this is being investigated

It appears that the fixes in 6.16.0.4266 for the muxer crashing has resolved this issue as well. Thanks.

Thanks for the update!