2023-12-30, 01:21 PM
(This post was last modified: 2023-12-30, 03:46 PM by Alliyance. Edited 1 time in total.)
Chromecast also, android 0.16.1
Code:
---
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.NullPointerException
at org.jellyfin.androidtv.ui.home.HomeFragmentHelper.loadResume(HomeFragmentHelper.kt:33)
at org.jellyfin.androidtv.ui.home.HomeFragmentHelper.loadResumeVideo(HomeFragmentHelper.kt:51)
at org.jellyfin.androidtv.ui.home.HomeRowsFragment$onCreate$1.invokeSuspend(HomeRowsFragment.kt:123)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@6ef7f59, Dispatchers.IO]
```
***Logcat***:
```log
12-28 20:20:40.371 E/DisplayPreferencesStore(20082): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6710)
12-28 20:20:40.371 E/DisplayPreferencesStore(20082): at android.app.ActivityThread.access$1500(ActivityThread.java:247)
12-28 20:20:40.371 E/DisplayPreferencesStore(20082): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2053)
12-28 20:20:40.371 E/DisplayPreferencesStore(20082): at android.os.Handler.dispatchMessage(Handler.java:106)
12-28 20:20:40.371 E/DisplayPreferencesStore(20082): at android.os.Looper.loopOnce(Looper.java:201)
12-28 20:20:40.371 E/DisplayPreferencesStore(20082): at android.os.Looper.loop(Looper.java:288)
12-28 20:20:40.371 E/DisplayPreferencesStore(20082): at android.app.ActivityThread.main(ActivityThread.java:7839)
12-28 20:20:40.371 E/DisplayPreferencesStore(20082): at java.lang.reflect.Method.invoke(Native Method)
12-28 20:20:40.371 E/DisplayPreferencesStore(20082): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
12-28 20:20:40.371 E/DisplayPreferencesStore(20082): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
12-28 20:20:40.371 I/DisplayPreferencesStore(20082): Creating an empty DisplayPreferencesDto for next commit.
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): Unable to retrieve displaypreferences. (displayPreferencesId=usersettings, app=emby)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): org.jellyfin.sdk.api.client.exception.MissingUserIdException: Required value userId is null. Provide it by setting ApiClient.userId or passing it in the function call.
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at org.jellyfin.sdk.api.operations.DisplayPreferencesApi.getDisplayPreferences$default(DisplayPreferencesApi.kt:32)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at org.jellyfin.androidtv.preference.store.DisplayPreferencesStore.update$suspendImpl(DisplayPreferencesStore.kt:59)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at org.jellyfin.androidtv.preference.store.DisplayPreferencesStore.update(Unknown Source:0)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at org.jellyfin.androidtv.preference.PreferencesRepository.onSessionChanged(PreferencesRepository.kt:32)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at org.jellyfin.androidtv.auth.repository.SessionRepositoryImpl.setCurrentSession(SessionRepository.kt:160)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at org.jellyfin.androidtv.auth.repository.SessionRepositoryImpl.access$setCurrentSession(SessionRepository.kt:49)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at org.jellyfin.androidtv.auth.repository.SessionRepositoryImpl$restoreSession$2.invokeSuspend(SessionRepository.kt:82)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at org.jellyfin.androidtv.auth.repository.SessionRepositoryImpl$restoreSession$2.invoke(Unknown Source:8)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at org.jellyfin.androidtv.auth.repository.SessionRepositoryImpl$restoreSession$2.invoke(Unknown Source:4)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:78)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:167)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at kotlinx.coroutines.BuildersKt.withContext(Unknown Source:1)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at org.jellyfin.androidtv.auth.repository.SessionRepositoryImpl.restoreSession(SessionRepository.kt:66)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at org.jellyfin.androidtv.SessionInitializer$create$1.invokeSuspend(SessionInitializer.kt:21)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at kotlinx.coroutines.internal.DispatchedContinuationKt.resumeCancellableWith(DispatchedContinuation.kt:367)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable(Cancellable.kt:30)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at kotlinx.coroutines.intrinsics.CancellableKt.startCoroutineCancellable$default(Cancellable.kt:25)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at kotlinx.coroutines.CoroutineStart.invoke(CoroutineStart.kt:110)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at kotlinx.coroutines.AbstractCoroutine.start(AbstractCoroutine.kt:126)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch(Builders.common.kt:56)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at kotlinx.coroutines.BuildersKt.launch(Unknown Source:1)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at kotlinx.coroutines.BuildersKt__Builders_commonKt.launch$default(Builders.common.kt:47)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at kotlinx.coroutines.BuildersKt.launch$default(Unknown Source:1)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at org.jellyfin.androidtv.SessionInitializer.create(SessionInitializer.kt:20)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at org.jellyfin.androidtv.SessionInitializer.create(SessionInitializer.kt:12)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at androidx.startup.AppInitializer.doInitialize(AppInitializer.java:180)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at androidx.startup.AppInitializer.discoverAndInitialize(AppInitializer.java:238)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at androidx.startup.AppInitializer.discoverAndInitialize(AppInitializer.java:206)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at androidx.startup.InitializationProvider.onCreate(InitializationProvider.java:45)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at android.content.ContentProvider.attachInfo(ContentProvider.java:2404)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at android.content.ContentProvider.attachInfo(ContentProvider.java:2374)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at android.app.ActivityThread.installProvider(ActivityThread.java:7422)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at android.app.ActivityThread.installContentProviders(ActivityThread.java:6939)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6710)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at android.app.ActivityThread.access$1500(ActivityThread.java:247)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2053)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at android.os.Handler.dispatchMessage(Handler.java:106)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at android.os.Looper.loopOnce(Looper.java:201)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at android.os.Looper.loop(Looper.java:288)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at android.app.ActivityThread.main(ActivityThread.java:7839)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at java.lang.reflect.Method.invoke(Native Method)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
12-28 20:20:40.373 E/DisplayPreferencesStore(20082): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
12-28 20:20:40.373 I/DisplayPreferencesStore(20082): Creating an empty DisplayPreferencesDto for next commit.
12-28 20:20:40.374 D/WM-WrkMgrInitializer(20082): Initializing WorkManager with default configuration.
12-28 20:20:40.378 D/WM-PackageManagerHelper(20082): Skipping component enablement for androidx.work.impl.background.systemjob.SystemJobService
12-28 20:20:40.378 D/WM-Schedulers(20082): Created SystemJobScheduler and enabled SystemJobService
12-28 20:20:40.399 D/ACRA (20082): ACRA processName='org.jellyfin.androidtv'
12-28 20:20:40.427 I/MigrationContext(20082): Requested migration from 7 to 7. Found 1 migrations in total.
12-28 20:20:40.429 I/ActivityThemeExtensionsKt(20082): Applying theme DARK
12-28 20:20:40.429 D/CompatibilityChangeReporter(20082): Compat change id reported: 160794467; UID 10068; state: ENABLED
12-28 20:20:40.447 D/ACRA (20082): onActivityCreated class org.jellyfin.androidtv.ui.browsing.MainActivity
12-28 20:20:40.461 W/LeanbackOverlayFragment(20082): PlaybackController is null, skipping initialization.
12-28 20:20:40.465 D/CompatibilityChangeReporter(20082): Compat change id reported: 147798919; UID 10068; state: ENABLED
12-28 20:20:40.487 D/NavigationRepositoryImpl(20082): Navigating to Fragment(fragment=class org.jellyfin.androidtv.ui.home.HomeFragment (Kotlin reflection is not available), arguments=Bundle[{}]) (via init)
12-28 20:20:40.488 D/NavigationRepositoryImpl(20082): Navigating to Fragment(fragment=class org.jellyfin.androidtv.ui.home.HomeFragment (Kotlin reflection is not available), arguments=Bundle[{}]) (via reset)
12-28 20:20:40.502 D/LegacyMediaManager(20082): Added event listener. Total listeners: 1
12-28 20:20:40.505 W/MainActivity(20082): Activity org.jellyfin.androidtv.ui.browsing.MainActivity started without a session, bouncing to StartupActivity
12-28 20:20:40.510 E/ACRA (20082): ACRA caught a NullPointerException for org.jellyfin.androidtv
12-28 20:20:40.510 E/ACRA (20082): java.lang.NullPointerException
12-28 20:20:40.510 E/ACRA (20082): at org.jellyfin.androidtv.ui.home.HomeFragmentHelper.loadResume(HomeFragmentHelper.kt:33)
12-28 20:20:40.510 E/ACRA (20082): at org.jellyfin.androidtv.ui.home.HomeFragmentHelper.loadResumeVideo(HomeFragmentHelper.kt:51)
12-28 20:20:40.510 E/ACRA (20082): at org.jellyfin.androidtv.ui.home.HomeRowsFragment$onCreate$1.invokeSuspend(HomeRowsFragment.kt:123)
12-28 20:20:40.510 E/ACRA (20082): at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
12-28 20:20:40.510 E/ACRA (20082): at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
12-28 20:20:40.510 E/ACRA (20082): at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:115)
12-28 20:20:40.510 E/ACRA (20082): at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:103)
12-28 20:20:40.510 E/ACRA (20082): at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
12-28 20:20:40.510 E/ACRA (20082): at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
12-28 20:20:40.510 E/ACRA (20082): at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
12-28 20:20:40.510 E/ACRA (20082): at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
12-28 20:20:40.510 E/ACRA (20082): Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@6ef7f59, Dispatchers.IO]
12-28 20:20:40.511 D/ACRA (20082): Building report
12-28 20:20:40.511 D/ACRA (20082): Starting collectors with priority FIRST
12-28 20:20:40.512 D/ACRA (20082): Calling collector org.acra.collector.DropBoxCollector
12-28 20:20:40.512 D/ACRA (20082): Collector org.acra.collector.DropBoxCollector completed
12-28 20:20:40.513 D/ACRA (20082): Calling collector org.acra.collector.LogCatCollector
12-28 20:20:40.513 D/ACRA (20082): Calling collector org.acra.collector.StacktraceCollector
12-28 20:20:40.513 D/ACRA (20082): Collector org.acra.collector.StacktraceCollector completed
12-28 20:20:40.526 D/ACRA (20082): Retrieving logcat output (buffer:default)...
12-28 20:20:40.560 D/ACRA (20082): SimplePluginLoader loading services from plugin classes : [Ljava.lang.Class;@db3b4a5
12-28 20:20:40.560 D/ACRA (20082): ServicePluginLoader loading services from ServiceLoader : java.util.ServiceLoader[org.acra.startup.StartupProcessor]
12-28 20:20:40.574 I/ActivityThemeExtensionsKt(20082): Applying theme DARK
12-28 20:20:40.574 D/ACRA (20082): Loaded StartupProcessor of type org.acra.startup.UnapprovedStartupProcessor
12-28 20:20:40.574 D/ACRA (20082): onActivityCreated class org.jellyfin.androidtv.ui.startup.StartupActivity
```
### App information
***App version***: `0.16.1` (`160199`)
***Package name***: `org.jellyfin.androidtv`
***Build***:
```json
{"BOARD":"sabrina","BOOTLOADER":"01.01.231012.083321","BRAND":"google","CPU_ABI":"armeabi-v7a","CPU_ABI2":"armeabi","DEVICE":"sabrina","DISPLAY":"STTE.230915.005.S1.10942527","FINGERPRINT":"google\/sabrina_prod_stable\/sabrina:12\/STTE.230915.005.S1\/10942527:user\/release-keys","HARDWARE":"amlogic","HOST":"abfarm-release-2004-0153","ID":"STTE.230915.005.S1","IS_DEBUGGABLE":false,"IS_EMULATOR":false,"MANUFACTURER":"Google","MODEL":"Chromecast","ODM_SKU":"CA","PERMISSIONS_REVIEW_REQUIRED":true,"PRODUCT":"sabrina_prod_stable","RADIO":"unknown","SKU":"CA","SOC_MANUFACTURER":"Amlogic","SOC_MODEL":"AMLS905D3","SUPPORTED_32_BIT_ABIS":["armeabi-v7a","armeabi"],"SUPPORTED_64_BIT_ABIS":[],"SUPPORTED_ABIS":["armeabi-v7a","armeabi"],"TAGS":"release-keys","TIME":1697143988000,"TYPE":"user","UNKNOWN":"unknown","USER":"android-build","VERSION":{"ACTIVE_CODENAMES":[],"BASE_OS":"","CODENAME":"REL","INCREMENTAL":"10942527","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-10-01"}}
```
***Build config***:
```json
{"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***: `sabrina_prod_stable`
***Device model***: `Chromecast`
### Crash information
***Start time***: `2023-12-28T20:20:40.314-05:00`
***Crash time***: `2023-12-28T20:20:40.799-05:00`