I was able to watch anime on plex up until last month. Now the play and app just restarts when I play any anime. I have tried it on my phone and on the TVs. The only thing that they work on is the web client.
logs uploaded, thank you for any help you can give.
Can you post the media info for a file that wont play? Also, since this seems to be an Android client issue logs from the client itself would be more helpful.
Remember the basics, too.
What is the client (hardware)? I saw a mention of a Shield in your logs.
What client version?
Edit:
Server is v1.23.2.4656, running on Ubuntu 20.04.2 LTS.
Client hardware (all at latest version of Plex app):
Samsung S8 Android Phone
Nvidia Shield
Sony Bravia TV
Server version: Version 1.23.2.4656
MEDIA INFO:
General
Complete name : [Golumpa] My Hero Academia S5E04 (Boku no Hero Academia) [FuniDub 1080p x264 AAC] [9B5A82B5].mkv
Format : Matroska
Format version : Version 4
File size : 985 MiB
Duration : 23 min 58 s
Overall bit rate : 5 744 kb/s
Writing application : [spam removed by moderator]
Writing library : [spam removed by moderator]
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Main@L4
Format settings : CABAC / 4 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 23 min 58 s
Bit rate : 5 486 kb/s
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 (24000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.110
Stream size : 941 MiB (96%)
Title : Funimation WEB-DL
Default : Yes
Forced : No
Color range : Limited
Matrix coefficients : BT.709
Audio
ID : 2
Format : AAC LC
Format/Info : Advanced Audio Codec Low Complexity
Codec ID : A_AAC-2
Duration : 23 min 58 s
Bit rate : 256 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 46.875 FPS (1024 SPF)
Compression mode : Lossy
Stream size : 43.9 MiB (4%)
Title : English Dub
Language : English
Default : Yes
Forced : No
Wow. This isn’t even really an “anime issue” at this point. I mean it’s plain 8-bit h264 (not Hi10P), there are no subs, and the audio is just low complexity AAC, not FLAC or OPUS.
The TV the Shield is on is in use right now, but I uninstalled the older version of the Plex app I had on my Fire Stick 4K and installed the latest available from Amazon (ver. 8.17.1.25326).
I can play the file fine.
It should be noted I’m running an older server version, though. But since the file should be direct playing on your device regardless, I don’t think that should really make much of a difference here.
I’ve also played it back on my Android smartphone (which has client 8.18.1.25719), and the file direct-played there as well.
To go any further here I would have to set up a second Plex server with the current version of the server software, but given this file is practically lowest-common-denominator as far as codecs go I doubt that would make much difference. If the current Plex server could not play back AVC with AAC audio you’d have 3/4 of the userbase posting about it.
Edit: I’m having trouble finding anything in the Android log in your last zip to suggest why this is failing to play. Are you having this issue with files by other release groups?
Edit2: Really Plex? The auto-linking isn’t needed in my post.
No, I do not have this issue with any other media.
I just tried turned off WIFI and used my mobile carrier network and the file played just fine.
Could this be my router? plex-log-majortom84 (1).zip (811.7 KB)
06-06 21:36:40.133 e: Fatal exception occurred.
06-06 21:36:40.134 e: An exception occurred: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
06-06 21:36:40.134 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:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:193)
at android.app.ActivityThread.main(ActivityThread.java:6721)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:858)
This looks to be where things are crashing.
Earlier I did see this:
06-06 21:36:38.856 i: [MediaDecisionEngine] Analyzing media: 1920x1080 8041kbps (Container: mkv, Video: h264, Audio: aac)
06-06 21:36:38.857 e: An exception occurred: java.lang.IllegalArgumentException: Invalid URL port: "0"
06-06 21:36:38.857 e: Stacktrace: java.lang.IllegalArgumentException: Invalid URL port: "0"
at okhttp3.HttpUrl$Builder.parse$okhttp(SourceFile:34)
at okhttp3.HttpUrl$Companion.get(SourceFile:1)
at okhttp3.Request$Builder.url(SourceFile:7)
at com.plexapp.plex.net.pms.sync.f.x(SourceFile:21)
at com.plexapp.plex.net.pms.sync.f.w(SourceFile:2)
at com.plexapp.plex.net.pms.sync.p.H(SourceFile:2)
at com.plexapp.plex.net.pms.sync.p.t(SourceFile:6)
at com.plexapp.plex.net.pms.sync.f.o(SourceFile:3)
at com.plexapp.plex.net.pms.g0.s(SourceFile:8)
at org.jboss.netty.channel.p0.d(SourceFile:2)
at org.jboss.netty.channel.DefaultChannelPipeline.u(SourceFile:1)
at org.jboss.netty.channel.DefaultChannelPipeline$a.a(SourceFile:2)
at h.a.a.c.c.d.d(SourceFile:7)
at org.jboss.netty.channel.DefaultChannelPipeline.u(SourceFile:1)
at org.jboss.netty.channel.DefaultChannelPipeline$a.a(SourceFile:2)
at h.a.a.c.a.a.g.s(SourceFile:16)
at org.jboss.netty.channel.p0.d(SourceFile:2)
at org.jboss.netty.channel.DefaultChannelPipeline.u(SourceFile:1)
at org.jboss.netty.channel.DefaultChannelPipeline$a.a(SourceFile:2)
at org.jboss.netty.channel.v.r(SourceFile:1)
at org.jboss.netty.handler.codec.replay.b.C(SourceFile:8)
at org.jboss.netty.handler.codec.replay.b.u(SourceFile:11)
at org.jboss.netty.handler.codec.replay.b.s(SourceFile:9)
at org.jboss.netty.channel.p0.d(SourceFile:2)
at org.jboss.netty.channel.DefaultChannelPipeline.u(SourceFile:1)
at org.jboss.netty.channel.DefaultChannelPipeline.a(SourceFile:3)
at org.jboss.netty.channel.v.q(SourceFile:1)
at org.jboss.netty.channel.v.p(SourceFile:1)
at org.jboss.netty.channel.u0.f.l.i(SourceFile:16)
at org.jboss.netty.channel.u0.f.l.g(SourceFile:5)
at org.jboss.netty.channel.u0.f.l.run(SourceFile:13)
at h.a.a.e.g.run(SourceFile:7)
at h.a.a.e.k.e$a.run(SourceFile:2)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:764)
But the app continues to run and try and play back the file after it.
Also
06-06 21:36:38.886 i: [MediaDecisionEngine] Selected subtitle (ssa) can be direct played (via Transcode? false)
I saw this back in the logs for the My Hero Academia playback as well and I’m not sure why this line is here. There was no subtitles in the MHA file, let alone SubStation Alpha format ones.
Going back to the earlier log you posted for the MHA playback and I can see the crash there now, too.
06-05 22:39:37.012 e: Fatal exception occurred.
06-05 22:39:37.020 e: An exception occurred: java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
06-05 22:39:37.021 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:873)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:214)
at android.app.ActivityThread.main(ActivityThread.java:7073)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:494)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:964)