jellyfin / jellyfin-androidtv

Android TV Client for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
2.87k stars 489 forks source link

Crash after wakeup #2703

Closed lenisko closed 4 months ago

lenisko commented 1 year ago

Describe the bug

After waking up ATV I tried to open application from a list and got a crash. Attached complete crash report.

Logs


client: Jellyfin for Android TV client_version: 0.15.7 client_repository: https://github.com/jellyfin/jellyfin-androidtv type: crash_report format: markdown

Logs

Stack Trace:

java.lang.RuntimeException: Unable to start activity ComponentInfo{org.jellyfin.androidtv/org.jellyfin.androidtv.ui.browsing.MainActivity}: java.lang.NullPointerException
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3432)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3596)
    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2067)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:223)
    at android.app.ActivityThread.main(ActivityThread.java:7668)
    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)
Caused by: java.lang.NullPointerException
    at org.jellyfin.androidtv.data.querying.StdItemQuery.<init>(StdItemQuery.kt:23)
    at org.jellyfin.androidtv.ui.browsing.BrowseGridFragment.setupQueries(BrowseGridFragment.java:547)
    at org.jellyfin.androidtv.ui.browsing.BrowseGridFragment.onCreate(BrowseGridFragment.java:177)
    at androidx.fragment.app.Fragment.performCreate(Fragment.java:3090)
    at androidx.fragment.app.FragmentStateManager.create(FragmentStateManager.java:475)
    at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:257)
    at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:121)
    at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1433)
    at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:2977)
    at androidx.fragment.app.FragmentManager.dispatchCreate(FragmentManager.java:2884)
    at androidx.fragment.app.FragmentController.dispatchCreate(FragmentController.java:252)
    at androidx.fragment.app.FragmentActivity.onCreate(FragmentActivity.java:220)
    at org.jellyfin.androidtv.ui.browsing.MainActivity.onCreate(MainActivity.kt:40)
    at android.app.Activity.performCreate(Activity.java:8000)
    at android.app.Activity.performCreate(Activity.java:7984)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3405)
    ... 11 more

Logcat:

04-26 01:14:09.909 E/DisplayPreferencesStore( 5685):    at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:2977)
04-26 01:14:09.909 E/DisplayPreferencesStore( 5685):    at androidx.fragment.app.FragmentManager.dispatchCreate(FragmentManager.java:2884)
04-26 01:14:09.909 E/DisplayPreferencesStore( 5685):    at androidx.fragment.app.FragmentController.dispatchCreate(FragmentController.java:252)
04-26 01:14:09.909 E/DisplayPreferencesStore( 5685):    at androidx.fragment.app.FragmentActivity.onCreate(FragmentActivity.java:220)
04-26 01:14:09.909 E/DisplayPreferencesStore( 5685):    at org.jellyfin.androidtv.ui.browsing.MainActivity.onCreate(MainActivity.kt:40)
04-26 01:14:09.909 E/DisplayPreferencesStore( 5685):    at android.app.Activity.performCreate(Activity.java:8000)
04-26 01:14:09.909 E/DisplayPreferencesStore( 5685):    at android.app.Activity.performCreate(Activity.java:7984)
04-26 01:14:09.909 E/DisplayPreferencesStore( 5685):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
04-26 01:14:09.909 E/DisplayPreferencesStore( 5685):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3405)
04-26 01:14:09.909 E/DisplayPreferencesStore( 5685):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3596)
04-26 01:14:09.909 E/DisplayPreferencesStore( 5685):    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
04-26 01:14:09.909 E/DisplayPreferencesStore( 5685):    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
04-26 01:14:09.909 E/DisplayPreferencesStore( 5685):    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
04-26 01:14:09.909 E/DisplayPreferencesStore( 5685):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2067)
04-26 01:14:09.909 E/DisplayPreferencesStore( 5685):    at android.os.Handler.dispatchMessage(Handler.java:106)
04-26 01:14:09.909 E/DisplayPreferencesStore( 5685):    at android.os.Looper.loop(Looper.java:223)
04-26 01:14:09.909 E/DisplayPreferencesStore( 5685):    at android.app.ActivityThread.main(ActivityThread.java:7668)
04-26 01:14:09.909 E/DisplayPreferencesStore( 5685):    at java.lang.reflect.Method.invoke(Native Method)
04-26 01:14:09.909 E/DisplayPreferencesStore( 5685):    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
04-26 01:14:09.909 E/DisplayPreferencesStore( 5685):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
04-26 01:14:09.910 I/DisplayPreferencesStore( 5685): Creating an empty DisplayPreferencesDto for next commit.
04-26 01:14:09.913 D/BrowseGridFragment( 5685): numCardsScreen <0>
04-26 01:14:09.915 D/AndroidRuntime( 5685): Shutting down VM
--------- beginning of crash
04-26 01:14:09.916 E/AndroidRuntime( 5685): FATAL EXCEPTION: main
04-26 01:14:09.916 E/AndroidRuntime( 5685): Process: org.jellyfin.androidtv, PID: 5685
04-26 01:14:09.916 E/AndroidRuntime( 5685): java.lang.RuntimeException: Unable to start activity ComponentInfo{org.jellyfin.androidtv/org.jellyfin.androidtv.ui.browsing.MainActivity}: java.lang.NullPointerException
04-26 01:14:09.916 E/AndroidRuntime( 5685):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3432)
04-26 01:14:09.916 E/AndroidRuntime( 5685):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3596)
04-26 01:14:09.916 E/AndroidRuntime( 5685):     at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
04-26 01:14:09.916 E/AndroidRuntime( 5685):     at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
04-26 01:14:09.916 E/AndroidRuntime( 5685):     at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
04-26 01:14:09.916 E/AndroidRuntime( 5685):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2067)
04-26 01:14:09.916 E/AndroidRuntime( 5685):     at android.os.Handler.dispatchMessage(Handler.java:106)
04-26 01:14:09.916 E/AndroidRuntime( 5685):     at android.os.Looper.loop(Looper.java:223)
04-26 01:14:09.916 E/AndroidRuntime( 5685):     at android.app.ActivityThread.main(ActivityThread.java:7668)
04-26 01:14:09.916 E/AndroidRuntime( 5685):     at java.lang.reflect.Method.invoke(Native Method)
04-26 01:14:09.916 E/AndroidRuntime( 5685):     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
04-26 01:14:09.916 E/AndroidRuntime( 5685):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
04-26 01:14:09.916 E/AndroidRuntime( 5685): Caused by: java.lang.NullPointerException
04-26 01:14:09.916 E/AndroidRuntime( 5685):     at org.jellyfin.androidtv.data.querying.StdItemQuery.<init>(StdItemQuery.kt:23)
04-26 01:14:09.916 E/AndroidRuntime( 5685):     at org.jellyfin.androidtv.ui.browsing.BrowseGridFragment.setupQueries(BrowseGridFragment.java:547)
04-26 01:14:09.916 E/AndroidRuntime( 5685):     at org.jellyfin.androidtv.ui.browsing.BrowseGridFragment.onCreate(BrowseGridFragment.java:177)
04-26 01:14:09.916 E/AndroidRuntime( 5685):     at androidx.fragment.app.Fragment.performCreate(Fragment.java:3090)
04-26 01:14:09.916 E/AndroidRuntime( 5685):     at androidx.fragment.app.FragmentStateManager.create(FragmentStateManager.java:475)
04-26 01:14:09.916 E/AndroidRuntime( 5685):     at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:257)
04-26 01:14:09.916 E/AndroidRuntime( 5685):     at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:121)
04-26 01:14:09.916 E/AndroidRuntime( 5685):     at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1433)
04-26 01:14:09.916 E/AndroidRuntime( 5685):     at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:2977)
04-26 01:14:09.916 E/AndroidRuntime( 5685):     at androidx.fragment.app.FragmentManager.dispatchCreate(FragmentManager.java:2884)
04-26 01:14:09.916 E/AndroidRuntime( 5685):     at androidx.fragment.app.FragmentController.dispatchCreate(FragmentController.java:252)
04-26 01:14:09.916 E/AndroidRuntime( 5685):     at androidx.fragment.app.FragmentActivity.onCreate(FragmentActivity.java:220)
04-26 01:14:09.916 E/AndroidRuntime( 5685):     at org.jellyfin.androidtv.ui.browsing.MainActivity.onCreate(MainActivity.kt:40)
04-26 01:14:09.916 E/AndroidRuntime( 5685):     at android.app.Activity.performCreate(Activity.java:8000)
04-26 01:14:09.916 E/AndroidRuntime( 5685):     at android.app.Activity.performCreate(Activity.java:7984)
04-26 01:14:09.916 E/AndroidRuntime( 5685):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
04-26 01:14:09.916 E/AndroidRuntime( 5685):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3405)
04-26 01:14:09.916 E/AndroidRuntime( 5685):     ... 11 more
04-26 01:14:09.916 E/ACRA    ( 5685): ACRA caught a RuntimeException for org.jellyfin.androidtv
04-26 01:14:09.916 E/ACRA    ( 5685): java.lang.RuntimeException: Unable to start activity ComponentInfo{org.jellyfin.androidtv/org.jellyfin.androidtv.ui.browsing.MainActivity}: java.lang.NullPointerException
04-26 01:14:09.916 E/ACRA    ( 5685):   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3432)
04-26 01:14:09.916 E/ACRA    ( 5685):   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3596)
04-26 01:14:09.916 E/ACRA    ( 5685):   at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
04-26 01:14:09.916 E/ACRA    ( 5685):   at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
04-26 01:14:09.916 E/ACRA    ( 5685):   at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
04-26 01:14:09.916 E/ACRA    ( 5685):   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2067)
04-26 01:14:09.916 E/ACRA    ( 5685):   at android.os.Handler.dispatchMessage(Handler.java:106)
04-26 01:14:09.916 E/ACRA    ( 5685):   at android.os.Looper.loop(Looper.java:223)
04-26 01:14:09.916 E/ACRA    ( 5685):   at android.app.ActivityThread.main(ActivityThread.java:7668)
04-26 01:14:09.916 E/ACRA    ( 5685):   at java.lang.reflect.Method.invoke(Native Method)
04-26 01:14:09.916 E/ACRA    ( 5685):   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
04-26 01:14:09.916 E/ACRA    ( 5685):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
04-26 01:14:09.916 E/ACRA    ( 5685): Caused by: java.lang.NullPointerException
04-26 01:14:09.916 E/ACRA    ( 5685):   at org.jellyfin.androidtv.data.querying.StdItemQuery.<init>(StdItemQuery.kt:23)
04-26 01:14:09.916 E/ACRA    ( 5685):   at org.jellyfin.androidtv.ui.browsing.BrowseGridFragment.setupQueries(BrowseGridFragment.java:547)
04-26 01:14:09.916 E/ACRA    ( 5685):   at org.jellyfin.androidtv.ui.browsing.BrowseGridFragment.onCreate(BrowseGridFragment.java:177)
04-26 01:14:09.916 E/ACRA    ( 5685):   at androidx.fragment.app.Fragment.performCreate(Fragment.java:3090)
04-26 01:14:09.916 E/ACRA    ( 5685):   at androidx.fragment.app.FragmentStateManager.create(FragmentStateManager.java:475)
04-26 01:14:09.916 E/ACRA    ( 5685):   at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:257)
04-26 01:14:09.916 E/ACRA    ( 5685):   at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:121)
04-26 01:14:09.916 E/ACRA    ( 5685):   at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1433)
04-26 01:14:09.916 E/ACRA    ( 5685):   at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:2977)
04-26 01:14:09.916 E/ACRA    ( 5685):   at androidx.fragment.app.FragmentManager.dispatchCreate(FragmentManager.java:2884)
04-26 01:14:09.916 E/ACRA    ( 5685):   at androidx.fragment.app.FragmentController.dispatchCreate(FragmentController.java:252)
04-26 01:14:09.916 E/ACRA    ( 5685):   at androidx.fragment.app.FragmentActivity.onCreate(FragmentActivity.java:220)
04-26 01:14:09.916 E/ACRA    ( 5685):   at org.jellyfin.androidtv.ui.browsing.MainActivity.onCreate(MainActivity.kt:40)
04-26 01:14:09.916 E/ACRA    ( 5685):   at android.app.Activity.performCreate(Activity.java:8000)
04-26 01:14:09.916 E/ACRA    ( 5685):   at android.app.Activity.performCreate(Activity.java:7984)
04-26 01:14:09.916 E/ACRA    ( 5685):   at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
04-26 01:14:09.916 E/ACRA    ( 5685):   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3405)
04-26 01:14:09.916 E/ACRA    ( 5685):   ... 11 more
04-26 01:14:09.916 D/ACRA    ( 5685): Building report
04-26 01:14:09.917 D/ACRA    ( 5685): Starting collectors with priority FIRST
04-26 01:14:09.917 D/ACRA    ( 5685): Calling collector org.acra.collector.DropBoxCollector
04-26 01:14:09.917 D/ACRA    ( 5685): Collector org.acra.collector.DropBoxCollector completed
04-26 01:14:09.917 D/ACRA    ( 5685): Calling collector org.acra.collector.LogCatCollector
04-26 01:14:09.917 D/ACRA    ( 5685): Calling collector org.acra.collector.StacktraceCollector
04-26 01:14:09.918 D/ACRA    ( 5685): Collector org.acra.collector.StacktraceCollector completed
04-26 01:14:09.919 D/ACRA    ( 5685): Retrieving logcat output (buffer:default)...

App information

App version: 0.15.7 (150799)
Package name: org.jellyfin.androidtv
Build:

{"BOARD":"darcy","BOOTLOADER":"32.00.2019.50-t210-69ebfcbe","BRAND":"NVIDIA","CPU_ABI":"arm64-v8a","CPU_ABI2":"","DEVICE":"mdarcy","DISPLAY":"RQ1A.210105.003.7825230_3167.5736","FINGERPRINT":"NVIDIA\/mdarcy\/mdarcy:11\/RQ1A.210105.003\/7825230_3167.5736:user\/release-keys","HARDWARE":"darcy","HOST":"mobile-u64-5308-d7000","ID":"RQ1A.210105.003","IS_DEBUGGABLE":false,"IS_EMULATOR":false,"MANUFACTURER":"NVIDIA","MODEL":"SHIELD Android TV","PERMISSIONS_REVIEW_REQUIRED":true,"PRODUCT":"mdarcy","RADIO":"unknown","SUPPORTED_32_BIT_ABIS":["armeabi-v7a","armeabi"],"SUPPORTED_64_BIT_ABIS":["arm64-v8a"],"SUPPORTED_ABIS":["arm64-v8a","armeabi-v7a","armeabi"],"TAGS":"release-keys","TIME":1665975826000,"TYPE":"user","UNKNOWN":"unknown","USER":"NVIDIA","VERSION":{"ACTIVE_CODENAMES":[],"BASE_OS":"","CODENAME":"REL","INCREMENTAL":"7825230_3167.5736","PREVIEW_SDK_FINGERPRINT":"REL","PREVIEW_SDK_INT":0,"RELEASE":"11","RELEASE_OR_CODENAME":"11","SDK":"30","SDK_INT":30,"SECURITY_PATCH":"2022-04-05"}}

Build config:

{"APPLICATION_ID":"org.jellyfin.androidtv","BUILD_TYPE":"release","DEBUG":false,"DEVELOPMENT":false,"VERSION_CODE":150799,"VERSION_NAME":"0.15.7"}

Device information

Android version: 11
Device brand: NVIDIA
Device product: mdarcy
Device model: SHIELD Android TV

Crash information

Start time: 2023-04-26T01:14:09.772+02:00
Crash time: 2023-04-26T01:14:09.937+02:00

Application version

0.15.7

Where did you install the app from?

Google Play

Device information

NVIDIA Shield Pro

Android version

Android TV 11

Jellyfin server version

10.8.10

fedesenmartin commented 1 year ago

StdItemQuery class uses !! at init

userId = get<UserRepository>().currentUser.value!!.id.toString()

maybe trying with ? operator fixes this crash? @nielsvanvelzen

nielsvanvelzen commented 1 year ago

We can check for a null value in that place but what will we do if the value is null? The query needs a user id so we need a fallback. And maybe we can get that query to work but the app will need the user id in another place, so we're just moving the crash.

The underlying problem here is that the app resumes from a paused state but the user is not authenticated or the authentication state is still initializing. This is a big issue in the app that I've been slowly fixing for a few years now. Only recently I've finally managed to merge the different activities and those issues are much less common now. There's still some more cleanup to do though.

lenisko commented 1 year ago

Not sure about underlying structure, but if that's the case, I guess a simple spinner/loading screen would do. It's still prettier than crashing an app. So when user.id is missing, show a spinner, do a needful and retry a query?

nielsvanvelzen commented 1 year ago

If it was that simple I'd already done that.

thornbill commented 1 year ago

If it were really simple I would have done it. 🙃

jellyfin-bot commented 1 year ago

This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.

If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or master branch, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.

This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.

gacrestani commented 1 year ago

Faced the same problem while starting to play a movie (not related to a paused state)

teo0781 commented 10 months ago

Apologies to reviving an old issue;

This is still reproducible on a Chromecast with Google TV FHD

Downloaded from Google Play

---
client: Jellyfin for Android TV
client_version: 0.16.1
client_repository: https://github.com/jellyfin/jellyfin-androidtv
type: crash_report
format: markdown
---
### Logs

***Stack Trace***: 
```log
java.lang.RuntimeException: Unable to pause activity {org.jellyfin.androidtv/org.jellyfin.androidtv.ui.browsing.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.UUID org.jellyfin.sdk.model.api.UserDto.getId()' on a null object reference
    at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:5042)
    at android.app.ActivityThread.performPauseActivity(ActivityThread.java:4993)
    at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:4945)
    at android.app.servertransaction.PauseActivityItem.execute(PauseActivityItem.java:47)
    at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
    at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2210)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loopOnce(Looper.java:201)
    at android.os.Looper.loop(Looper.java:288)
    at android.app.ActivityThread.main(ActivityThread.java:7839)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.UUID org.jellyfin.sdk.model.api.UserDto.getId()' on a null object reference
    at org.jellyfin.androidtv.ui.itemdetail.FullDetailsFragment.loadItem(FullDetailsFragment.java:408)
    at org.jellyfin.androidtv.ui.itemdetail.FullDetailsFragment.onCreateView(FullDetailsFragment.java:233)
    at androidx.fragment.app.Fragment.performCreateView(Fragment.java:3114)
    at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:557)
    at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:272)
    at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:1934)
    at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1839)
    at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1782)
    at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3042)
    at androidx.fragment.app.FragmentManager.dispatchPause(FragmentManager.java:2970)
    at androidx.fragment.app.FragmentController.dispatchPause(FragmentController.java:296)
    at androidx.fragment.app.FragmentActivity.onPause(FragmentActivity.java:284)
    at org.jellyfin.androidtv.ui.browsing.MainActivity.onPause(MainActivity.kt:110)
    at android.app.Activity.performPause(Activity.java:8235)
    at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1530)
    at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:5032)
    ... 14 more

Logcat:

12-31 11:00:47.884 E/libEGL  (15654): eglCreateWindowSurface: native_window_api_connect (win=0xadb30ce8) failed (0xffffffed) (already connected to another API?)
12-31 11:00:47.884 E/libEGL  (15654): eglCreateWindowSurfaceTmpl:676 error 3003 (EGL_BAD_ALLOC)
12-31 11:00:47.887 E/VLC     (15654): [ada56ba0/2ef0] libvlc gl: cannot create EGL window surface
12-31 11:00:47.926 D/AudioTrack(15654): stop(359): called with 0 frames delivered
12-31 11:00:47.953 I/ExoPlayerImpl(15654): Release fb1e615 [ExoPlayerLib/2.19.1] [boreal, Chromecast HD, Google, 31] [goog.exo.core, goog.exo.ui, goog.exo.exoplayer, goog.exo.decoder]
12-31 11:00:48.005 D/MainActivity$onStop(15654): MainActivity stopped
12-31 11:00:48.009 I/SessionRepositoryImpl$restoreSession(15654): Restoring session
12-31 11:00:48.009 I/SessionRepositoryImpl(15654): Destroying current session
12-31 11:00:48.010 D/ACRA    (15654): onActivitySaveInstanceState class org.jellyfin.androidtv.ui.browsing.MainActivity
12-31 11:00:49.553 I/jellyfin-apiclient(15654): Response received from: http://192.168.1.249:8096/Sessions/Playing/Stopped
12-31 11:00:52.837 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(15654): Sending (raw) message {"MessageType":"KeepAlive","Data":{}}
12-31 11:00:52.845 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(15654): Receiving (raw) message {"MessageType":"KeepAlive","MessageId":"74e98d6c08534b6eaa3f31681aa169e5"}
12-31 11:01:08.994 D/ACRA    (15654): onActivityStarted class org.jellyfin.androidtv.ui.browsing.MainActivity
12-31 11:01:08.996 D/ACRA    (15654): onActivityResumed class org.jellyfin.androidtv.ui.browsing.MainActivity
12-31 11:01:08.996 W/MainActivity(15654): Activity org.jellyfin.androidtv.ui.browsing.MainActivity started without a session, bouncing to StartupActivity
12-31 11:01:09.015 D/NavigationRepositoryImpl(15654): Navigating back
12-31 11:01:09.062 D/ACRA    (15654): onActivityPaused class org.jellyfin.androidtv.ui.browsing.MainActivity
12-31 11:01:09.068 D/CustomPlaybackOverlayFragment(15654): Stopping!
12-31 11:01:09.087 D/AndroidRuntime(15654): Shutting down VM
--------- beginning of crash
12-31 11:01:09.096 E/AndroidRuntime(15654): FATAL EXCEPTION: main
12-31 11:01:09.096 E/AndroidRuntime(15654): Process: org.jellyfin.androidtv, PID: 15654
12-31 11:01:09.096 E/AndroidRuntime(15654): java.lang.RuntimeException: Unable to pause activity {org.jellyfin.androidtv/org.jellyfin.androidtv.ui.browsing.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.UUID org.jellyfin.sdk.model.api.UserDto.getId()' on a null object reference
12-31 11:01:09.096 E/AndroidRuntime(15654):     at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:5042)
12-31 11:01:09.096 E/AndroidRuntime(15654):     at android.app.ActivityThread.performPauseActivity(ActivityThread.java:4993)
12-31 11:01:09.096 E/AndroidRuntime(15654):     at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:4945)
12-31 11:01:09.096 E/AndroidRuntime(15654):     at android.app.servertransaction.PauseActivityItem.execute(PauseActivityItem.java:47)
12-31 11:01:09.096 E/AndroidRuntime(15654):     at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
12-31 11:01:09.096 E/AndroidRuntime(15654):     at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
12-31 11:01:09.096 E/AndroidRuntime(15654):     at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
12-31 11:01:09.096 E/AndroidRuntime(15654):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2210)
12-31 11:01:09.096 E/AndroidRuntime(15654):     at android.os.Handler.dispatchMessage(Handler.java:106)
12-31 11:01:09.096 E/AndroidRuntime(15654):     at android.os.Looper.loopOnce(Looper.java:201)
12-31 11:01:09.096 E/AndroidRuntime(15654):     at android.os.Looper.loop(Looper.java:288)
12-31 11:01:09.096 E/AndroidRuntime(15654):     at android.app.ActivityThread.main(ActivityThread.java:7839)
12-31 11:01:09.096 E/AndroidRuntime(15654):     at java.lang.reflect.Method.invoke(Native Method)
12-31 11:01:09.096 E/AndroidRuntime(15654):     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
12-31 11:01:09.096 E/AndroidRuntime(15654):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
12-31 11:01:09.096 E/AndroidRuntime(15654): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.UUID org.jellyfin.sdk.model.api.UserDto.getId()' on a null object reference
12-31 11:01:09.096 E/AndroidRuntime(15654):     at org.jellyfin.androidtv.ui.itemdetail.FullDetailsFragment.loadItem(FullDetailsFragment.java:408)
12-31 11:01:09.096 E/AndroidRuntime(15654):     at org.jellyfin.androidtv.ui.itemdetail.FullDetailsFragment.onCreateView(FullDetailsFragment.java:233)
12-31 11:01:09.096 E/AndroidRuntime(15654):     at androidx.fragment.app.Fragment.performCreateView(Fragment.java:3114)
12-31 11:01:09.096 E/AndroidRuntime(15654):     at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:557)
12-31 11:01:09.096 E/AndroidRuntime(15654):     at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:272)
12-31 11:01:09.096 E/AndroidRuntime(15654):     at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:1934)
12-31 11:01:09.096 E/AndroidRuntime(15654):     at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1839)
12-31 11:01:09.096 E/AndroidRuntime(15654):     at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1782)
12-31 11:01:09.096 E/AndroidRuntime(15654):     at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3042)
12-31 11:01:09.096 E/AndroidRuntime(15654):     at androidx.fragment.app.FragmentManager.dispatchPause(FragmentManager.java:2970)
12-31 11:01:09.096 E/AndroidRuntime(15654):     at androidx.fragment.app.FragmentController.dispatchPause(FragmentController.java:296)
12-31 11:01:09.096 E/AndroidRuntime(15654):     at androidx.fragment.app.FragmentActivity.onPause(FragmentActivity.java:284)
12-31 11:01:09.096 E/AndroidRuntime(15654):     at org.jellyfin.androidtv.ui.browsing.MainActivity.onPause(MainActivity.kt:110)
12-31 11:01:09.096 E/AndroidRuntime(15654):     at android.app.Activity.performPause(Activity.java:8235)
12-31 11:01:09.096 E/AndroidRuntime(15654):     at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1530)
12-31 11:01:09.096 E/AndroidRuntime(15654):     at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:5032)
12-31 11:01:09.096 E/AndroidRuntime(15654):     ... 14 more
12-31 11:01:09.102 E/ACRA    (15654): ACRA caught a RuntimeException for org.jellyfin.androidtv
12-31 11:01:09.102 E/ACRA    (15654): java.lang.RuntimeException: Unable to pause activity {org.jellyfin.androidtv/org.jellyfin.androidtv.ui.browsing.MainActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.UUID org.jellyfin.sdk.model.api.UserDto.getId()' on a null object reference
12-31 11:01:09.102 E/ACRA    (15654):   at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:5042)
12-31 11:01:09.102 E/ACRA    (15654):   at android.app.ActivityThread.performPauseActivity(ActivityThread.java:4993)
12-31 11:01:09.102 E/ACRA    (15654):   at android.app.ActivityThread.handlePauseActivity(ActivityThread.java:4945)
12-31 11:01:09.102 E/ACRA    (15654):   at android.app.servertransaction.PauseActivityItem.execute(PauseActivityItem.java:47)
12-31 11:01:09.102 E/ACRA    (15654):   at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45)
12-31 11:01:09.102 E/ACRA    (15654):   at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)
12-31 11:01:09.102 E/ACRA    (15654):   at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)
12-31 11:01:09.102 E/ACRA    (15654):   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2210)
12-31 11:01:09.102 E/ACRA    (15654):   at android.os.Handler.dispatchMessage(Handler.java:106)
12-31 11:01:09.102 E/ACRA    (15654):   at android.os.Looper.loopOnce(Looper.java:201)
12-31 11:01:09.102 E/ACRA    (15654):   at android.os.Looper.loop(Looper.java:288)
12-31 11:01:09.102 E/ACRA    (15654):   at android.app.ActivityThread.main(ActivityThread.java:7839)
12-31 11:01:09.102 E/ACRA    (15654):   at java.lang.reflect.Method.invoke(Native Method)
12-31 11:01:09.102 E/ACRA    (15654):   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
12-31 11:01:09.102 E/ACRA    (15654):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
12-31 11:01:09.102 E/ACRA    (15654): Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.UUID org.jellyfin.sdk.model.api.UserDto.getId()' on a null object reference
12-31 11:01:09.102 E/ACRA    (15654):   at org.jellyfin.androidtv.ui.itemdetail.FullDetailsFragment.loadItem(FullDetailsFragment.java:408)
12-31 11:01:09.102 E/ACRA    (15654):   at org.jellyfin.androidtv.ui.itemdetail.FullDetailsFragment.onCreateView(FullDetailsFragment.java:233)
12-31 11:01:09.102 E/ACRA    (15654):   at androidx.fragment.app.Fragment.performCreateView(Fragment.java:3114)
12-31 11:01:09.102 E/ACRA    (15654):   at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:557)
12-31 11:01:09.102 E/ACRA    (15654):   at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:272)
12-31 11:01:09.102 E/ACRA    (15654):   at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:1934)
12-31 11:01:09.102 E/ACRA    (15654):   at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:1839)
12-31 11:01:09.102 E/ACRA    (15654):   at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1782)
12-31 11:01:09.102 E/ACRA    (15654):   at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3042)
12-31 11:01:09.102 E/ACRA    (15654):   at androidx.fragment.app.FragmentManager.dispatchPause(FragmentManager.java:2970)
12-31 11:01:09.102 E/ACRA    (15654):   at androidx.fragment.app.FragmentController.dispatchPause(FragmentController.java:296)
12-31 11:01:09.102 E/ACRA    (15654):   at androidx.fragment.app.FragmentActivity.onPause(FragmentActivity.java:284)
12-31 11:01:09.102 E/ACRA    (15654):   at org.jellyfin.androidtv.ui.browsing.MainActivity.onPause(MainActivity.kt:110)
12-31 11:01:09.102 E/ACRA    (15654):   at android.app.Activity.performPause(Activity.java:8235)
12-31 11:01:09.102 E/ACRA    (15654):   at android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1530)
12-31 11:01:09.102 E/ACRA    (15654):   at android.app.ActivityThread.performPauseActivityIfNeeded(ActivityThread.java:5032)
12-31 11:01:09.102 E/ACRA    (15654):   ... 14 more
12-31 11:01:09.102 D/ACRA    (15654): Building report
12-31 11:01:09.112 D/ACRA    (15654): Starting collectors with priority FIRST
12-31 11:01:09.113 D/ACRA    (15654): Calling collector org.acra.collector.DropBoxCollector
12-31 11:01:09.114 D/ACRA    (15654): Collector org.acra.collector.DropBoxCollector completed
12-31 11:01:09.114 D/ACRA    (15654): Calling collector org.acra.collector.LogCatCollector
12-31 11:01:09.116 D/ACRA    (15654): Calling collector org.acra.collector.StacktraceCollector
12-31 11:01:09.123 D/ACRA    (15654): Collector org.acra.collector.StacktraceCollector completed
12-31 11:01:09.131 D/ACRA    (15654): Retrieving logcat output (buffer:default)...

App information

App version: 0.16.1 (160199)
Package name: org.jellyfin.androidtv
Build:

{"BOARD":"boreal","BOOTLOADER":"01.01.230615.104351","BRAND":"google","CPU_ABI":"armeabi-v7a","CPU_ABI2":"armeabi","DEVICE":"boreal","DISPLAY":"STTK.230808.004","FINGERPRINT":"google\/boreal\/boreal:12\/STTK.230808.004\/10714782:user\/release-keys","HARDWARE":"amlogic","HOST":"abfarm-2004-4097","ID":"STTK.230808.004","IS_DEBUGGABLE":false,"IS_EMULATOR":false,"MANUFACTURER":"Google","MODEL":"Chromecast HD","ODM_SKU":"unknown","PERMISSIONS_REVIEW_REQUIRED":true,"PRODUCT":"boreal","RADIO":"unknown","SKU":"DE","SOC_MANUFACTURER":"Amlogic","SOC_MODEL":"AMLS805X2","SUPPORTED_32_BIT_ABIS":["armeabi-v7a","armeabi"],"SUPPORTED_64_BIT_ABIS":[],"SUPPORTED_ABIS":["armeabi-v7a","armeabi"],"TAGS":"release-keys","TIME":1692975634000,"TYPE":"user","UNKNOWN":"unknown","USER":"android-build","VERSION":{"ACTIVE_CODENAMES":[],"BASE_OS":"","CODENAME":"REL","INCREMENTAL":"10714782","MEDIA_PERFORMANCE_CLASS":0,"PREVIEW_SDK_FINGERPRINT":"REL","PREVIEW_SDK_INT":0,"RELEASE":"12","RELEASE_OR_CODENAME":"12","SDK":"31","SDK_INT":31,"SECURITY_PATCH":"2023-09-01"}}

Build config:

{"APPLICATION_ID":"org.jellyfin.androidtv","BUILD_TYPE":"release","DEBUG":false,"DEVELOPMENT":false,"VERSION_CODE":160199,"VERSION_NAME":"0.16.1"}

Device information

Android version: 12
Device brand: google
Device product: boreal
Device model: Chromecast HD

Crash information

Start time: 2023-12-28T21:54:26.642+01:00
Crash time: 2023-12-31T11:01:09.356+01:00

AhiyaHiya commented 9 months ago

I'm seeing this exact same issue on my NVIDIA Shield:


client: Jellyfin for Android TV client_version: 0.16.4 client_repository: https://github.com/jellyfin/jellyfin-androidtv type: crash_report format: markdown

Logs

Stack Trace:

java.lang.RuntimeException: Unable to start activity ComponentInfo{org.jellyfin.androidtv/org.jellyfin.androidtv.ui.browsing.MainActivity}: java.lang.NullPointerException
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3432)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3596)
    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2067)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loop(Looper.java:223)
    at android.app.ActivityThread.main(ActivityThread.java:7668)
    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)
Caused by: java.lang.NullPointerException
    at org.jellyfin.androidtv.data.querying.StdItemQuery.<init>(StdItemQuery.kt:23)
    at org.jellyfin.androidtv.ui.browsing.BrowseGridFragment.setupQueries(BrowseGridFragment.java:545)
    at org.jellyfin.androidtv.ui.browsing.BrowseGridFragment.onCreate(BrowseGridFragment.java:177)
    at androidx.fragment.app.Fragment.performCreate(Fragment.java:3094)
    at androidx.fragment.app.FragmentStateManager.create(FragmentStateManager.java:504)
    at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:268)
    at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:122)
    at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1455)
    at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3034)
    at androidx.fragment.app.FragmentManager.dispatchCreate(FragmentManager.java:2941)
    at androidx.fragment.app.FragmentController.dispatchCreate(FragmentController.java:252)
    at androidx.fragment.app.FragmentActivity.onCreate(FragmentActivity.java:219)
    at org.jellyfin.androidtv.ui.browsing.MainActivity.onCreate(MainActivity.kt:55)
    at android.app.Activity.performCreate(Activity.java:8000)
    at android.app.Activity.performCreate(Activity.java:7984)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3405)
    ... 11 more

Logcat:

01-31 19:09:44.843 E/DisplayPreferencesStore(32466):    at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3034)
01-31 19:09:44.843 E/DisplayPreferencesStore(32466):    at androidx.fragment.app.FragmentManager.dispatchCreate(FragmentManager.java:2941)
01-31 19:09:44.843 E/DisplayPreferencesStore(32466):    at androidx.fragment.app.FragmentController.dispatchCreate(FragmentController.java:252)
01-31 19:09:44.843 E/DisplayPreferencesStore(32466):    at androidx.fragment.app.FragmentActivity.onCreate(FragmentActivity.java:219)
01-31 19:09:44.843 E/DisplayPreferencesStore(32466):    at org.jellyfin.androidtv.ui.browsing.MainActivity.onCreate(MainActivity.kt:55)
01-31 19:09:44.843 E/DisplayPreferencesStore(32466):    at android.app.Activity.performCreate(Activity.java:8000)
01-31 19:09:44.843 E/DisplayPreferencesStore(32466):    at android.app.Activity.performCreate(Activity.java:7984)
01-31 19:09:44.843 E/DisplayPreferencesStore(32466):    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
01-31 19:09:44.843 E/DisplayPreferencesStore(32466):    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3405)
01-31 19:09:44.843 E/DisplayPreferencesStore(32466):    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3596)
01-31 19:09:44.843 E/DisplayPreferencesStore(32466):    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
01-31 19:09:44.843 E/DisplayPreferencesStore(32466):    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
01-31 19:09:44.843 E/DisplayPreferencesStore(32466):    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
01-31 19:09:44.843 E/DisplayPreferencesStore(32466):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2067)
01-31 19:09:44.843 E/DisplayPreferencesStore(32466):    at android.os.Handler.dispatchMessage(Handler.java:106)
01-31 19:09:44.843 E/DisplayPreferencesStore(32466):    at android.os.Looper.loop(Looper.java:223)
01-31 19:09:44.843 E/DisplayPreferencesStore(32466):    at android.app.ActivityThread.main(ActivityThread.java:7668)
01-31 19:09:44.843 E/DisplayPreferencesStore(32466):    at java.lang.reflect.Method.invoke(Native Method)
01-31 19:09:44.843 E/DisplayPreferencesStore(32466):    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
01-31 19:09:44.843 E/DisplayPreferencesStore(32466):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
01-31 19:09:44.844 I/DisplayPreferencesStore(32466): Creating an empty DisplayPreferencesDto for next commit.
01-31 19:09:44.845 D/BrowseGridFragment(32466): numCardsScreen <0>
01-31 19:09:44.846 D/AndroidRuntime(32466): Shutting down VM
--------- beginning of crash
01-31 19:09:44.846 E/AndroidRuntime(32466): FATAL EXCEPTION: main
01-31 19:09:44.846 E/AndroidRuntime(32466): Process: org.jellyfin.androidtv, PID: 32466
01-31 19:09:44.846 E/AndroidRuntime(32466): java.lang.RuntimeException: Unable to start activity ComponentInfo{org.jellyfin.androidtv/org.jellyfin.androidtv.ui.browsing.MainActivity}: java.lang.NullPointerException
01-31 19:09:44.846 E/AndroidRuntime(32466):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3432)
01-31 19:09:44.846 E/AndroidRuntime(32466):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3596)
01-31 19:09:44.846 E/AndroidRuntime(32466):     at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
01-31 19:09:44.846 E/AndroidRuntime(32466):     at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
01-31 19:09:44.846 E/AndroidRuntime(32466):     at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
01-31 19:09:44.846 E/AndroidRuntime(32466):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2067)
01-31 19:09:44.846 E/AndroidRuntime(32466):     at android.os.Handler.dispatchMessage(Handler.java:106)
01-31 19:09:44.846 E/AndroidRuntime(32466):     at android.os.Looper.loop(Looper.java:223)
01-31 19:09:44.846 E/AndroidRuntime(32466):     at android.app.ActivityThread.main(ActivityThread.java:7668)
01-31 19:09:44.846 E/AndroidRuntime(32466):     at java.lang.reflect.Method.invoke(Native Method)
01-31 19:09:44.846 E/AndroidRuntime(32466):     at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
01-31 19:09:44.846 E/AndroidRuntime(32466):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
01-31 19:09:44.846 E/AndroidRuntime(32466): Caused by: java.lang.NullPointerException
01-31 19:09:44.846 E/AndroidRuntime(32466):     at org.jellyfin.androidtv.data.querying.StdItemQuery.<init>(StdItemQuery.kt:23)
01-31 19:09:44.846 E/AndroidRuntime(32466):     at org.jellyfin.androidtv.ui.browsing.BrowseGridFragment.setupQueries(BrowseGridFragment.java:545)
01-31 19:09:44.846 E/AndroidRuntime(32466):     at org.jellyfin.androidtv.ui.browsing.BrowseGridFragment.onCreate(BrowseGridFragment.java:177)
01-31 19:09:44.846 E/AndroidRuntime(32466):     at androidx.fragment.app.Fragment.performCreate(Fragment.java:3094)
01-31 19:09:44.846 E/AndroidRuntime(32466):     at androidx.fragment.app.FragmentStateManager.create(FragmentStateManager.java:504)
01-31 19:09:44.846 E/AndroidRuntime(32466):     at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:268)
01-31 19:09:44.846 E/AndroidRuntime(32466):     at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:122)
01-31 19:09:44.846 E/AndroidRuntime(32466):     at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1455)
01-31 19:09:44.846 E/AndroidRuntime(32466):     at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3034)
01-31 19:09:44.846 E/AndroidRuntime(32466):     at androidx.fragment.app.FragmentManager.dispatchCreate(FragmentManager.java:2941)
01-31 19:09:44.846 E/AndroidRuntime(32466):     at androidx.fragment.app.FragmentController.dispatchCreate(FragmentController.java:252)
01-31 19:09:44.846 E/AndroidRuntime(32466):     at androidx.fragment.app.FragmentActivity.onCreate(FragmentActivity.java:219)
01-31 19:09:44.846 E/AndroidRuntime(32466):     at org.jellyfin.androidtv.ui.browsing.MainActivity.onCreate(MainActivity.kt:55)
01-31 19:09:44.846 E/AndroidRuntime(32466):     at android.app.Activity.performCreate(Activity.java:8000)
01-31 19:09:44.846 E/AndroidRuntime(32466):     at android.app.Activity.performCreate(Activity.java:7984)
01-31 19:09:44.846 E/AndroidRuntime(32466):     at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
01-31 19:09:44.846 E/AndroidRuntime(32466):     at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3405)
01-31 19:09:44.846 E/AndroidRuntime(32466):     ... 11 more
01-31 19:09:44.846 E/ACRA    (32466): ACRA caught a RuntimeException for org.jellyfin.androidtv
01-31 19:09:44.846 E/ACRA    (32466): java.lang.RuntimeException: Unable to start activity ComponentInfo{org.jellyfin.androidtv/org.jellyfin.androidtv.ui.browsing.MainActivity}: java.lang.NullPointerException
01-31 19:09:44.846 E/ACRA    (32466):   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3432)
01-31 19:09:44.846 E/ACRA    (32466):   at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3596)
01-31 19:09:44.846 E/ACRA    (32466):   at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:85)
01-31 19:09:44.846 E/ACRA    (32466):   at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
01-31 19:09:44.846 E/ACRA    (32466):   at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
01-31 19:09:44.846 E/ACRA    (32466):   at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2067)
01-31 19:09:44.846 E/ACRA    (32466):   at android.os.Handler.dispatchMessage(Handler.java:106)
01-31 19:09:44.846 E/ACRA    (32466):   at android.os.Looper.loop(Looper.java:223)
01-31 19:09:44.846 E/ACRA    (32466):   at android.app.ActivityThread.main(ActivityThread.java:7668)
01-31 19:09:44.846 E/ACRA    (32466):   at java.lang.reflect.Method.invoke(Native Method)
01-31 19:09:44.846 E/ACRA    (32466):   at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592)
01-31 19:09:44.846 E/ACRA    (32466):   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
01-31 19:09:44.846 E/ACRA    (32466): Caused by: java.lang.NullPointerException
01-31 19:09:44.846 E/ACRA    (32466):   at org.jellyfin.androidtv.data.querying.StdItemQuery.<init>(StdItemQuery.kt:23)
01-31 19:09:44.846 E/ACRA    (32466):   at org.jellyfin.androidtv.ui.browsing.BrowseGridFragment.setupQueries(BrowseGridFragment.java:545)
01-31 19:09:44.846 E/ACRA    (32466):   at org.jellyfin.androidtv.ui.browsing.BrowseGridFragment.onCreate(BrowseGridFragment.java:177)
01-31 19:09:44.846 E/ACRA    (32466):   at androidx.fragment.app.Fragment.performCreate(Fragment.java:3094)
01-31 19:09:44.846 E/ACRA    (32466):   at androidx.fragment.app.FragmentStateManager.create(FragmentStateManager.java:504)
01-31 19:09:44.846 E/ACRA    (32466):   at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:268)
01-31 19:09:44.846 E/ACRA    (32466):   at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:122)
01-31 19:09:44.846 E/ACRA    (32466):   at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1455)
01-31 19:09:44.846 E/ACRA    (32466):   at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3034)
01-31 19:09:44.846 E/ACRA    (32466):   at androidx.fragment.app.FragmentManager.dispatchCreate(FragmentManager.java:2941)
01-31 19:09:44.846 E/ACRA    (32466):   at androidx.fragment.app.FragmentController.dispatchCreate(FragmentController.java:252)
01-31 19:09:44.846 E/ACRA    (32466):   at androidx.fragment.app.FragmentActivity.onCreate(FragmentActivity.java:219)
01-31 19:09:44.846 E/ACRA    (32466):   at org.jellyfin.androidtv.ui.browsing.MainActivity.onCreate(MainActivity.kt:55)
01-31 19:09:44.846 E/ACRA    (32466):   at android.app.Activity.performCreate(Activity.java:8000)
01-31 19:09:44.846 E/ACRA    (32466):   at android.app.Activity.performCreate(Activity.java:7984)
01-31 19:09:44.846 E/ACRA    (32466):   at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1309)
01-31 19:09:44.846 E/ACRA    (32466):   at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3405)
01-31 19:09:44.846 E/ACRA    (32466):   ... 11 more
01-31 19:09:44.846 D/ACRA    (32466): Building report
01-31 19:09:44.847 D/ACRA    (32466): Starting collectors with priority FIRST
01-31 19:09:44.847 D/ACRA    (32466): Calling collector org.acra.collector.DropBoxCollector
01-31 19:09:44.847 D/ACRA    (32466): Collector org.acra.collector.DropBoxCollector completed
01-31 19:09:44.848 D/ACRA    (32466): Calling collector org.acra.collector.StacktraceCollector
01-31 19:09:44.848 D/ACRA    (32466): Collector org.acra.collector.StacktraceCollector completed
01-31 19:09:44.848 D/ACRA    (32466): Calling collector org.acra.collector.LogCatCollector
01-31 19:09:44.865 D/ACRA    (32466): Retrieving logcat output (buffer:default)...

App information

App version: 0.16.4 (160499)
Package name: org.jellyfin.androidtv
Build:

{"BOARD":"darcy","BOOTLOADER":"32.00.2019.50-t210-69ebfcbe","BRAND":"NVIDIA","CPU_ABI":"arm64-v8a","CPU_ABI2":"","DEVICE":"mdarcy","DISPLAY":"RQ1A.210105.003.7825230_3167.5736","FINGERPRINT":"NVIDIA\/mdarcy\/mdarcy:11\/RQ1A.210105.003\/7825230_3167.5736:user\/release-keys","HARDWARE":"darcy","HOST":"mobile-u64-5308-d7000","ID":"RQ1A.210105.003","IS_DEBUGGABLE":false,"IS_EMULATOR":false,"MANUFACTURER":"NVIDIA","MODEL":"SHIELD Android TV","PERMISSIONS_REVIEW_REQUIRED":true,"PRODUCT":"mdarcy","RADIO":"unknown","SUPPORTED_32_BIT_ABIS":["armeabi-v7a","armeabi"],"SUPPORTED_64_BIT_ABIS":["arm64-v8a"],"SUPPORTED_ABIS":["arm64-v8a","armeabi-v7a","armeabi"],"TAGS":"release-keys","TIME":1665975826000,"TYPE":"user","UNKNOWN":"unknown","USER":"NVIDIA","VERSION":{"ACTIVE_CODENAMES":[],"BASE_OS":"","CODENAME":"REL","INCREMENTAL":"7825230_3167.5736","PREVIEW_SDK_FINGERPRINT":"REL","PREVIEW_SDK_INT":0,"RELEASE":"11","RELEASE_OR_CODENAME":"11","SDK":"30","SDK_INT":30,"SECURITY_PATCH":"2022-04-05"}}

Build config:

{"APPLICATION_ID":"org.jellyfin.androidtv","BUILD_TYPE":"release","DEBUG":false,"DEVELOPMENT":false,"VERSION_CODE":160499,"VERSION_NAME":"0.16.4"}

Device information

Android version: 11
Device brand: NVIDIA
Device product: mdarcy
Device model: SHIELD Android TV

Crash information

Start time: 2024-01-31T19:09:44.630-07:00
Crash time: 2024-01-31T19:09:44.901-07:00

cchance27 commented 9 months ago

I'm having this same issue constnatly with my Sony x900h ... almost every time my TV wakes up from being off, and sometimes just randomly.

The only way i can get the app to work again is to uninstall it and reinstall it! Clearing all the data doesn't even seem to fix it oddly.

jellyfin-bot commented 4 months ago

This issue has gone 120 days without comment. To avoid abandoned issues, it will be closed in 21 days if there are no new comments.

If you're the original submitter of this issue, please comment confirming if this issue still affects you in the latest release or master branch, or close the issue if it has been fixed. If you're another user also affected by this bug, please comment confirming so. Either action will remove the stale label.

This bot exists to prevent issues from becoming stale and forgotten. Jellyfin is always moving forward, and bugs are often fixed as side effects of other changes. We therefore ask that bug report authors remain vigilant about their issues to ensure they are closed if fixed, or re-confirmed - perhaps with fresh logs or reproduction examples - regularly. If you have any questions you can reach us on Matrix or Social Media.