Closed krutburken closed 10 months ago
Do you by any chance have the option to always ask for credentials enabled in the preferences?
Nope. "Automatic sign in" is disabled however, as there are multiple users using this particular device.
Ah right, I think the issue only occurs when either automatic sign in is disabled or always ask for credentials is enabled. Which is not the case by default so this crash doesn't occur for most users (including myself). I'll have a look and see what I can find 👍
I'm unfortunately unable to reproduce the issue making it hard to fix. Can you explain with more detail how you're able to trigger this crash?
Tbh I can't reliably recreate it either, hence the "random" feeling of it. What generally seems to happen is that the app has been sitting idle for a while, and when you try to resume using the app, it crashes with this error. It is then followed by an instant crash with the same error when you try to open the app again from the homescreen. When you try to open the app a second time it works normally and you're directed to the screen where you select which user to switch to.
Not sure how helpful this is but I can see if I can get it to trigger more reliably.
Okay so I did manage to get it to trigger once, by letting the device idle and go into sleep mode. When I then woke the device and started the jellyfin app, it crashed immediately with this error. Annoyingly I still can't get it to trigger reliably.
According to logs this error has occurred 7 times today alone, so it's quite frequent
@nielsvanvelzen To reproduce: 1: Disable automatic sign-in in app settings 2: Start app and select a user in the "Who's watching?" screen (admin or normal user doesn't matter). There's three users added in the app I'm testing this on 3: When logged in and Jellyfin home is loaded, press the home button on your device 4: When on androidtv home screen, sleep the device 5: After the device has entered sleep mode, start device again. When now opening the Jellyfin app it will instantly crash with this error
The error gets triggered every single time I do this.
Edit: Can be reproduced the same way on a Google TV 4K
A fix for this will be included in 0.16.3. Unfortunately it doesn't fix all instances of the app crashing when re-opening it but most of them should be gone.
If, with 0.16.3, the app still crashes for you please verify if the crash log is the same as the one in this issue (look for this line specifically at org.jellyfin.androidtv.ui.home.HomeFragmentHelper.loadResume(HomeFragmentHelper.kt:33)
)) or not. You can create a new issue with the crash logs and as much information as you can give us (like did you change app preferences like auto-login, what steps did you take to open and close the app, etc.)
Describe the bug
Honestly seems pretty random when it occurs. Perhaps more common when the app has been left idle for a short time and you try to resume it (not playback, just using the app). It can crash multiple times in a row with the same error.
I don't use Android TV on a daily basis so I can't say if only the latest beta is affected.
Logs
Stack Trace:
Logcat:
App information
App version:
0.16.0-beta.2
(160002
)Package name:
org.jellyfin.androidtv
Build:
Build config:
Device information
Android version:
11
Device brand:
NVIDIA
Device product:
sif
Device model:
SHIELD Android TV
Crash information
Start time:
2023-08-07T09:47:11.310+02:00
Crash time:
2023-08-07T09:47:11.639+02:00
Application version
0.16.0-beta.2
Where did you install the app from?
Google Play
Device information
Shield TV
Android version
Android 11
Jellyfin server version
10.8.10