[BUG] Plex crashes when exiting Photos Library on Nvidia Shield after Video playback

Server Version#: 1.20.1.3252
Player Version#: 8.7.0.20631

After playing one of my CCTV videos in the photo library on my nvidia shield, if you then click the back button on the remote to return to the Plex menu, the application crashes and you are returned to the android TV home screen. This happens every single time, obviously easily repeatable and occurs with the three photo libraries I have setup, each storing videos from 3 of my CCTV cameras.

The problem occurs on the nvidia shield 2019 model (cylinder version) and my older nvidia shield 2017 version.

Even navigating the photo library on Android TV is a buggy affair, clicking on the timeline option locks the UI and you have to click back button to get out.
Plenty for the developers to fix.

I’ve attached log file, the key issue snippet pasted below:
09-22 20:24:46.100 e: Fatal exception occurred.
09-22 20:24:46.101 e: An exception occurred: java.lang.RuntimeException: Unable to destroy activity {com.plexapp.android/com.plexapp.plex.activities.tv17.PhotoViewerActivity}: java.lang.NullPointerException: Attempt to invoke virtual method ‘void com.plexapp.plex.utilities.view.SynchronizedSeekBar.a()’ on a null object reference
09-22 20:24:46.102 e: Stacktrace: java.lang.RuntimeException: Unable to destroy activity {com.plexapp.android/com.plexapp.plex.activities.tv17.PhotoViewerActivity}: java.lang.NullPointerException: Attempt to invoke virtual method ‘void com.plexapp.plex.utilities.view.SynchronizedSeekBar.a()’ on a null object reference
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4509)
at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4527)
at android.app.servertransaction.DestroyActivityItem.execute(DestroyActivityItem.java:39)
at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:145)
at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:70)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1809)
at android.os.Handler.dispatchMessage(Handler.java:106)
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)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method ‘void com.plexapp.plex.utilities.view.SynchronizedSeekBar.a()’ on a null object reference
at com.plexapp.plex.fragments.photo.VideoFragment.onDestroy(SourceFile:4)
at androidx.fragment.app.Fragment.performDestroy(SourceFile:6)
at androidx.fragment.app.FragmentStateManager.destroy(SourceFile:11)
at androidx.fragment.app.FragmentManager.moveToState(SourceFile:63)
at androidx.fragment.app.FragmentManager.moveToState(SourceFile:69)
at androidx.fragment.app.FragmentManager.moveFragmentToExpectedState(SourceFile:4)
at androidx.fragment.app.FragmentManager.moveToState(SourceFile:75)
at androidx.fragment.app.FragmentManager.dispatchStateChange(SourceFile:3)
at androidx.fragment.app.FragmentManager.dispatchDestroy(SourceFile:4)
at androidx.fragment.app.FragmentController.dispatchDestroy(SourceFile:1)
at androidx.fragment.app.FragmentActivity.onDestroy(SourceFile:2)
at com.plexapp.plex.activities.r.onDestroy(SourceFile:1)
at com.plexapp.plex.activities.y.onDestroy(SourceFile:6)
at android.app.Activity.performDestroy(Activity.java:7438)
at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1306)
at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4494)
… 11 more

AndroidTV Logs.txt (1.1 MB)
Plex Media Server.log (222.2 KB)
Video Details in my Photo Library.txt (5.6 KB)

I don’t have the crashing problem after playing a video, but I do see the Timeline issue. After selecting the Timeline tab, no control on the remote does anything except Back.
Once you’ve hit Back, however, which opens the sidebar, you can move back into the photo timeline and navigate normally. But it shouldn’t lose functionality when you first select the tab.

I have a 2017 Shield TV.

Hi, thanks for confirming at least one of the issues isn’t unique to me.

I suspected the crashing issue might be specific to the type of file I was playing or had played (4k). I can watch these files play one after the other automatically in the timeline, it always plays newest to oldest order, and it doesn’t matter whether I press back button during playback of a video file or when it is stopped, Plex still application faults.

I don’t have any issues moving around or playing the same files in Plex Web.

I’ve attached one of my CCTV files, would you mind adding it into one of your photo libraries or a new one to see if you can replicate the issue for me please?

Thanks.Garage-043523-043538.zip (12.1 MB)

As another update I’ve managed to replicate the exact same issue on my Android Phone (Pixel 4 - Android 11) Plex app too.

Steps to replicate:

  1. navigate to photo library containing video files
  2. play any video file in the library
  3. While video playing, press the cross button on top right of screen
  4. Plex will return to previous screen and then the application will completely crash taking you back to your phones home screen.

Some times I get the Android standard Application Error box appears after Plex crashes, so I’ve filled that in a couple of times now and clicked send report.

Bump! I’m still needing a fix, would be good for plex support to acknowledge issue, so it can be put in the backlog.

It appears latest plex update to android tv/android phone has resolved the problem.

Thank You!

Which newer version did you try? 8.7.2 or 8.8.0?

I can reproduce the issue with 8.7.2 on:
S20 with Android 10
Shield TV with Android TV 9
Sony TV with some old Android TV version

EDIT installing version 8.8.0 manually fixed it (wasn’t available through the stores yet)

My Android TV and Phone is Version 8.9.0.21334 but I’ve had at least one update since the fix arrived and same for the sever version.

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