App crashes and restarts when trying to play video

Server Version#: 1.22.2.4276
Player Version#: 8.16.0.24021
Phone: Pixel 3

This is only happening with one TV show that I’m currently watching, other series/movies seem to work fine. The problematic show works fine on my Android TV and in Chrome.

I can PM a dev with full network logs, but here some snippets:

e: Fatal exception occurred.
e: An exception occurred: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
e: Stacktrace: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
	at java.util.ArrayList.get(ArrayList.java:437)
	at com.plexapp.plex.player.engines.exoplayer.x.b(SourceFile:3)
	at com.plexapp.plex.player.engines.exoplayer.x.i(SourceFile:2)
	at com.plexapp.plex.player.engines.m1.q2(SourceFile:26)
	at com.plexapp.plex.player.engines.m1.F(SourceFile:13)
	at com.google.android.exoplayer2.n0.T(SourceFile:1)
	at com.google.android.exoplayer2.k.invoke(Unknown Source:6)
	at com.google.android.exoplayer2.util.r$c.a(SourceFile:4)
	at com.google.android.exoplayer2.util.r.f(SourceFile:2)
	at com.google.android.exoplayer2.util.a.run(Unknown Source:6)
	at com.google.android.exoplayer2.util.r.c(SourceFile:8)
	at com.google.android.exoplayer2.n0.t0(SourceFile:43)
	at com.google.android.exoplayer2.n0.K(SourceFile:19)
	at com.google.android.exoplayer2.n0.Q(SourceFile:1)
	at com.google.android.exoplayer2.n0.R(Unknown Source:0)
	at com.google.android.exoplayer2.o.run(Unknown Source:4)
	at android.os.Handler.handleCallback(Handler.java:938)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:223)
	at android.app.ActivityThread.main(ActivityThread.java:7660)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)

and

w: [Sync] Error occurred forwarding request http://127.0.0.1:32500/media/providers?includePreferences=1&includeStorage=1&X-Plex-Language=en-us to nano server: java.net.ConnectException: Failed to connect to /127.0.0.1:41915
e: Error fetching http://127.0.0.1:32500/media/providers?includePreferences=1&includeStorage=1:
Failure: 500 Internal Server Error

Here’s the media info for the file I’m trying to play:

Codec HEVC
Bitrate 2383 kbps
Bit Depth 10
Chroma Subsampling 4:2:0
Coded Height 1080
Coded Width 1920
Color Range tv
Frame Rate 23.976 fps
Height 1080
Level 4.0
Profile main 10
Ref Frames 1
Width 1920
Display Title 1080p (HEVC Main 10)
Extended Display Title 1080p (HEVC Main 10)
Codec EAC3
Channels 6
Bitrate 832 kbps
Language English
Audio Channel Layout 5.1(side)
Sampling Rate 48000 Hz
Title English (5.1) (E-AC3)
Display Title English (EAC3 5.1)
Extended Display Title English (5.1) (E-AC3) (EAC3)
Codec EAC3
Channels 2
Bitrate 320 kbps
Language 日本語
Audio Channel Layout stereo
Sampling Rate 48000 Hz
Title Japanese (Stereo) (E-AC3)
Display Title 日本語 (EAC3 Stereo)
Extended Display Title Japanese (Stereo) (E-AC3) (日本語 EAC3)
Codec VOBSUB
Bitrate 11 kbps
Language English
Header Compression true
Title English
Display Title English (VOBSUB)
Extended Display Title English (VOBSUB)
Codec VOBSUB
Bitrate 15 kbps
Language English
Header Compression true
Title English (SDH)
Display Title English (VOBSUB)
Extended Display Title English (SDH) (VOBSUB)
Codec VOBSUB
Bitrate 1 kbps
Language English
Header Compression true
Title Signs
Display Title English (VOBSUB)
Extended Display Title Signs (English VOBSUB)
Codec ASS
Language English
Title Songs/Sings [Judas]
Display Title English (ASS)
Extended Display Title Songs/Sings [Judas] (English ASS)
Codec ASS
Language English
Title Dialogue [Judas]
Display Title English (ASS)
Extended Display Title Dialogue [Judas] (English ASS)
Codec ASS
Bitrate 2 kbps
Language العربية
Title Arabic [Judas]
Display Title العربية (ASS)
Extended Display Title Arabic [Judas] (العربية ASS)
Codec ASS
Language Español
Title Spanish [Judas]
Display Title Español (ASS)
Extended Display Title Spanish [Judas] (Español ASS)
Codec ASS
Language Português
Title Portuguese [Judas]
Display Title Português (ASS)
Extended Display Title Portuguese [Judas] (Português ASS)

P.S.: (possible red herring ahead): I had the same problem on my Android TV but I fixed it by unchecking Optical passthrough (I used it in conjunction with disabling all supported audio codecs to force Plex to transcode 7.1 audio on HDR movies, which would otherwise cause weird video and audio problems). I double checked the same settings on the Pixel and passthrough is disabled.

Same here. Super frustrating since it will work (sometimes) after attempting to play the same episode 3 times.

Thanks for confirming I’m not alone :slight_smile: It never works in the end for me, no matter how many times I retry.

I finally figured out my issue so hopefully this helps you as well.
I turned on network logging for my plex client (fire tv stick):
https://support.plex.tv/articles/201573117-android-android-tv-fire-tv-logs/

I found some logs that pointed to exoplayer crashing with an out of bounds exception. Googled it and found this incredibly long thread:

TL;DR: The integrated video player for android based plex clients uses an older version of exoplayer. This version has a known bug where subtitles can sometimes cause it to crash randomly if they aren’t synced with the video correctly.

WORKAROUND:
Turn off subtitles when you try and play the episode. If you need subtitles then still turn them off, let the episode play for about 15 seconds, then turn them back on.

Hopefully this helps!

Thanks for the details! I can confirm that starting the episode without subtitles works, but unfortunately turning them on later still crashes the app for me.

I am having the same problem but, I am not using subtitles.
I changed the inhome streaming rate from Maximum to 20Mbps and the FireTV Plex App still crashes and restarts. I can only get it to work if I set the streaming rate to 10Mbps.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.