jellyfin / jellyfin-androidtv

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

Constnat #3387

Closed cchance27 closed 4 months ago

cchance27 commented 8 months ago

Describe the bug

Watch TV like normal, Turn TV off, turn it back on (sometimes just coming back to the app i think also causes it.

Sometimes to get back into the app i have to actually uninstall the entire app and reinstall it and it'll work for a while, clearing the data/cache doesn't restore the app to working.

I'm wondering if this doesn't have something to do with the "Up Next" on Google TV trying to poll the jellyfin videos

Logs


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

Logs

Stack Trace:

java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.UUID org.jellyfin.androidtv.auth.repository.Session.getUserId()' on a null object reference
    at org.jellyfin.androidtv.util.apiclient.PlaybackHelper.retrieveAndPlay(PlaybackHelper.java:329)
    at org.jellyfin.androidtv.data.eventhandling.SocketHandler.onPlayMessage(SocketHandler.kt:130)
    at org.jellyfin.androidtv.data.eventhandling.SocketHandler.lambda$13$lambda$2(SocketHandler.kt:92)
    at org.jellyfin.androidtv.data.eventhandling.SocketHandler$$ExternalSyntheticLambda1.onReceive(Unknown Source:4)
    at org.jellyfin.androidtv.data.eventhandling.SocketHandler$_init_$lambda$13$$inlined$addListener$default$2.onReceive(ListenerRegistrationExtensions.kt:47)
    at org.jellyfin.sdk.api.sockets.helper.ListenerHelper.forwardMessage(ListenerHelper.kt:37)
    at org.jellyfin.sdk.api.sockets.SocketInstance.forwardMessage(SocketInstance.kt:283)
    at org.jellyfin.sdk.api.sockets.SocketInstance.access$forwardMessage(SocketInstance.kt:35)
    at org.jellyfin.sdk.api.sockets.SocketInstance$connectAndBind$2.invokeSuspend(SocketInstance.kt:220)
    at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
    at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
    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}@b7ac27e, Dispatchers.Default]

Logcat:

02-20 14:16:41.778 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Sending (raw) message {"MessageType":"KeepAlive","Data":{}}
02-20 14:16:41.783 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"KeepAlive","MessageId":"b9807f594dad4534ae978c16095747f2"}
02-20 14:16:48.657 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"LibraryChanged","MessageId":"5ee07f785cfe42b486c9928010507429","Data":{"FoldersAddedTo":["f0ee89807117300a568310cca5ca558d"],"FoldersRemovedFrom":["f0ee89807117300a568310cca5ca558d"],"ItemsAdded":["9207129221009dd849579d02f10a858b","14fbd4b7de5560b232f5edd9c15beabf","668e22f2890ef8aaa270f84516f1ebdb","ecd51521667086e6be90084fb7d3c5ce","4753f4f2fc65770a994ad2776edbae60","e814434816a8a4dbbd90fbf967d713d4","8b07a3890284c8c668d2906e9e47b1d6","dad764ba3afdec06dd4b6596647c105e","501b541a33118c2422090e4b628d242f","f12ccf571097fab1447152a8ac3d8906","b68d08f76b7adc098a99b007b4a07a60","d0301ec0b84b0a47d824b7f84b1e530d","8d9a551956239449eb71863813d91c18","f5a8b749e7e5069cb2a9c07e36e90592","5a4a9a861ae8f4db89e7d9ed394b30b0","7318a4b6eea3f76741bb3a82cb1eda2f","c1536171dbb4b258c96ba150a2b1d486","6f7935fe0b926901b0e0ca97209eb85e","76a013be1c646c607077e9e5dcf9fca3","366a6acd31178525b8b0e9b9fc2af2a7","523f88416f0aac59259047be756dc99e","813fbb97555ad8ba2a25d7515949adfd","b64c8e6591d7c827f08fcf2c3917b488","5308112d5ab5642724cbf1bb3b6b0a9d","3c1f3b60077e3accd687223c7e3c51d9","dc5d1469fff1ef3e8c6e94c5043d4f09","bdae66ec4f7564898c26052ff3a3f5d2","2bc4999dd7c48e4f2e11b63f32779025","fbbb7bde902f00ffb9180a777e4a950f","68358bffd49b05a4f0401b4525d9355c","c73c8b15abfcb391976e21a36d664d7c","90f18a664ba558a59faab0645d36ae1d","1b277726b76974c2712e97c90993125c","ad3642fa2a625fb14afb8caefd553706","511552c3e318d6472fb56e0a442f68b1","1515c933c278828725214251a161a487","5d48500356aefa6d48042cb27e4e3683","648c1471e5c1a396ebf44b7e5fb7b046","580fb2f048fd8e0f80216d51e5ae0aa9","9aaafeed136bdec99c3749307d8913dc","93a7a77a1f72f2d6c17a019b01e6954f","e00c3f5dfb7c0ff8cd79ae16a6f913e7","8c69715613473f4ee5d56b86e21c4220","0b12396c0ba9938f3ca26f4848b2ff44","d9c1d1ff1dd11722fb85c3fc65ffce98","d4669c4078dc02ce5486c70bbf118f42","1d66e8b91c24249934d956b106f6e0ef","fde0361efb63a045b30f18276db9a526","f61fc5861110e58c0a628896db8972ba","345d9aea1c7a9eeb5c89b77ea2d26308","8f5d4bcdb0dcb75350a6c4833b97255e","09586fa1b8db661f9f7c7c2b5525fd88","037fcb10f1b04e12caa26096b482f8ab"],"ItemsRemoved":["8f5d4bcdb0dcb75350a6c4833b97255e"],"ItemsUpdated":[],"CollectionFolders":["f137a2dd21bbc1b99aa5c0f6bf02a805","9d7ad6afe9afa2dab1a2f6e00ad28fa6","a656b907eb3a73532e40e44b968d0225"],"IsEmpty":false}}
02-20 14:16:48.678 D/SocketHandler(18136): Library changed.
02-20 14:16:48.678 D/SocketHandler(18136): Added 53 items
02-20 14:16:48.678 D/SocketHandler(18136): Removed 1 items
02-20 14:16:48.678 D/SocketHandler(18136): Updated 0 items
02-20 14:17:05.127 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"UserDataChanged","MessageId":"bc6815a1a033455487e01d8b8c2a5151","Data":{"UserId":"08ca909f6d1044aa9930be392943948f","UserDataList":[{"PlaybackPositionTicks":0,"PlayCount":19,"IsFavorite":false,"LastPlayedDate":"2024-02-20T19:17:06.9081762Z","Played":true,"Key":"0001theme","ItemId":"07775e919d51ae168816d50037a5aa81"},{"UnplayedItemCount":21,"PlaybackPositionTicks":0,"PlayCount":0,"IsFavorite":false,"Played":false,"Key":"349272","ItemId":"f0ee89807117300a568310cca5ca558d"}]}}
02-20 14:17:11.818 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Sending (raw) message {"MessageType":"KeepAlive","Data":{}}
02-20 14:17:11.826 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"KeepAlive","MessageId":"80ae8d2947754e1fbe18ae6715030e90"}
02-20 14:17:13.043 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"UserDataChanged","MessageId":"d82272cd891a436bac5333abae752634","Data":{"UserId":"08ca909f6d1044aa9930be392943948f","UserDataList":[{"PlaybackPositionTicks":0,"PlayCount":19,"IsFavorite":false,"LastPlayedDate":"2024-02-20T19:17:06.9081762Z","Played":true,"Key":"0001theme","ItemId":"07775e919d51ae168816d50037a5aa81"},{"UnplayedItemCount":21,"PlaybackPositionTicks":0,"PlayCount":0,"IsFavorite":false,"Played":false,"Key":"349272","ItemId":"f0ee89807117300a568310cca5ca558d"}]}}
02-20 14:17:16.503 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"UserDataChanged","MessageId":"5707df91332e4e0ea3f5884199c24a70","Data":{"UserId":"08ca909f6d1044aa9930be392943948f","UserDataList":[{"PlayedPercentage":68.97569421415905,"PlaybackPositionTicks":17784990000,"PlayCount":2,"IsFavorite":false,"LastPlayedDate":"2024-02-20T19:17:18.2883154Z","Played":false,"Key":"349272004015","ItemId":"501b541a33118c2422090e4b628d242f"},{"UnplayedItemCount":21,"PlaybackPositionTicks":0,"PlayCount":0,"IsFavorite":false,"Played":false,"Key":"349272","ItemId":"f0ee89807117300a568310cca5ca558d"}]}}
02-20 14:17:41.860 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Sending (raw) message {"MessageType":"KeepAlive","Data":{}}
02-20 14:17:41.864 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"KeepAlive","MessageId":"7e68b59af3d24487ad44f2c7cec418fb"}
02-20 14:17:49.295 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"UserDataChanged","MessageId":"fe4bca0c939c49beb8aab7b47181b22b","Data":{"UserId":"08ca909f6d1044aa9930be392943948f","UserDataList":[{"PlaybackPositionTicks":0,"PlayCount":20,"IsFavorite":false,"LastPlayedDate":"2024-02-20T19:17:50.9755161Z","Played":true,"Key":"0001theme","ItemId":"07775e919d51ae168816d50037a5aa81"},{"UnplayedItemCount":21,"PlaybackPositionTicks":0,"PlayCount":0,"IsFavorite":false,"Played":false,"Key":"349272","ItemId":"f0ee89807117300a568310cca5ca558d"}]}}
02-20 14:17:50.476 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"UserDataChanged","MessageId":"12dff48b3eaa407abeaaf07e115716fc","Data":{"UserId":"08ca909f6d1044aa9930be392943948f","UserDataList":[{"PlaybackPositionTicks":0,"PlayCount":20,"IsFavorite":false,"LastPlayedDate":"2024-02-20T19:17:50.9755161Z","Played":true,"Key":"0001theme","ItemId":"07775e919d51ae168816d50037a5aa81"},{"UnplayedItemCount":21,"PlaybackPositionTicks":0,"PlayCount":0,"IsFavorite":false,"Played":false,"Key":"349272","ItemId":"f0ee89807117300a568310cca5ca558d"},{"PlayedPercentage":70.08539802933183,"PlaybackPositionTicks":18071120810,"PlayCount":2,"IsFavorite":false,"LastPlayedDate":"2024-02-20T19:17:18.2883154Z","Played":false,"Key":"349272004015","ItemId":"501b541a33118c2422090e4b628d242f"}]}}
02-20 14:18:11.901 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Sending (raw) message {"MessageType":"KeepAlive","Data":{}}
02-20 14:18:11.907 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"KeepAlive","MessageId":"98f17275ace74c6fbefdcd8aa962d5f8"}
02-20 14:18:41.945 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Sending (raw) message {"MessageType":"KeepAlive","Data":{}}
02-20 14:18:41.947 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"KeepAlive","MessageId":"7915e44435f14958b89429f57f6a59bd"}
02-20 14:19:11.985 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Sending (raw) message {"MessageType":"KeepAlive","Data":{}}
02-20 14:19:11.987 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"KeepAlive","MessageId":"add928c7107249c0a306f06be01e73b2"}
02-20 14:19:42.023 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Sending (raw) message {"MessageType":"KeepAlive","Data":{}}
02-20 14:19:42.030 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"KeepAlive","MessageId":"35e7fa353eef4f0ca99382cc80ac5769"}
02-20 14:20:12.063 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Sending (raw) message {"MessageType":"KeepAlive","Data":{}}
02-20 14:20:12.071 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"KeepAlive","MessageId":"1717933aae2841a7aefaa89d5f319c2d"}
02-20 14:20:42.104 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Sending (raw) message {"MessageType":"KeepAlive","Data":{}}
02-20 14:20:42.107 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"KeepAlive","MessageId":"ec71bc2104ed49e68988ba8084ace03e"}
02-20 14:21:12.143 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Sending (raw) message {"MessageType":"KeepAlive","Data":{}}
02-20 14:21:12.146 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"KeepAlive","MessageId":"f0a6bd73e7094ab182cfeef4ad38eaf2"}
02-20 14:21:42.183 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Sending (raw) message {"MessageType":"KeepAlive","Data":{}}
02-20 14:21:42.192 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"KeepAlive","MessageId":"e422ed77890449c19d38d1bd17c101de"}
02-20 14:22:12.225 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Sending (raw) message {"MessageType":"KeepAlive","Data":{}}
02-20 14:22:12.227 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"KeepAlive","MessageId":"636b6efd33c34f41955f756904116b54"}
02-20 14:22:29.872 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"UserDataChanged","MessageId":"054b16ca882643fc88f8aa46b7243f42","Data":{"UserId":"08ca909f6d1044aa9930be392943948f","UserDataList":[{"PlaybackPositionTicks":0,"PlayCount":21,"IsFavorite":false,"LastPlayedDate":"2024-02-20T19:22:31.6655155Z","Played":true,"Key":"0001theme","ItemId":"07775e919d51ae168816d50037a5aa81"},{"UnplayedItemCount":21,"PlaybackPositionTicks":0,"PlayCount":0,"IsFavorite":false,"Played":false,"Key":"349272","ItemId":"f0ee89807117300a568310cca5ca558d"}]}}
02-20 14:22:37.004 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"UserDataChanged","MessageId":"0b805db135304308a31ff669f16b8ee7","Data":{"UserId":"08ca909f6d1044aa9930be392943948f","UserDataList":[{"PlaybackPositionTicks":0,"PlayCount":21,"IsFavorite":false,"LastPlayedDate":"2024-02-20T19:22:31.6655155Z","Played":true,"Key":"0001theme","ItemId":"07775e919d51ae168816d50037a5aa81"},{"UnplayedItemCount":21,"PlaybackPositionTicks":0,"PlayCount":0,"IsFavorite":false,"Played":false,"Key":"349272","ItemId":"f0ee89807117300a568310cca5ca558d"}]}}
02-20 14:22:42.261 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Sending (raw) message {"MessageType":"KeepAlive","Data":{}}
02-20 14:22:42.267 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"KeepAlive","MessageId":"14e00fd075eb4fc8b800809caee27f8e"}
02-20 14:22:43.391 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"UserDataChanged","MessageId":"76637e636728494fb7408010b198cd94","Data":{"UserId":"08ca909f6d1044aa9930be392943948f","UserDataList":[{"PlaybackPositionTicks":0,"PlayCount":6,"IsFavorite":false,"LastPlayedDate":"2024-02-20T19:22:45.1638414Z","Played":true,"Key":"theme","ItemId":"464ed2dbeeed347ad2b23cbe9e8b560c"},{"UnplayedItemCount":105,"PlaybackPositionTicks":0,"PlayCount":0,"IsFavorite":false,"Played":false,"Key":"79488","ItemId":"bf2eedc270d1af7e199235a2b1bed3d1"}]}}
02-20 14:22:57.029 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"UserDataChanged","MessageId":"5ea0bffb3d84462b8946c9446f935711","Data":{"UserId":"08ca909f6d1044aa9930be392943948f","UserDataList":[{"PlaybackPositionTicks":0,"PlayCount":6,"IsFavorite":false,"LastPlayedDate":"2024-02-20T19:22:45.1638414Z","Played":true,"Key":"theme","ItemId":"464ed2dbeeed347ad2b23cbe9e8b560c"},{"UnplayedItemCount":105,"PlaybackPositionTicks":0,"PlayCount":0,"IsFavorite":false,"Played":false,"Key":"79488","ItemId":"bf2eedc270d1af7e199235a2b1bed3d1"}]}}
02-20 14:23:12.302 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Sending (raw) message {"MessageType":"KeepAlive","Data":{}}
02-20 14:23:12.304 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"KeepAlive","MessageId":"097e8b6137b14f8b817f0415cfff897f"}
02-20 14:23:42.345 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Sending (raw) message {"MessageType":"KeepAlive","Data":{}}
02-20 14:23:42.350 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"KeepAlive","MessageId":"8ca647473a84460bb1ae32def29543c1"}
02-20 14:24:12.387 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Sending (raw) message {"MessageType":"KeepAlive","Data":{}}
02-20 14:24:12.396 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"KeepAlive","MessageId":"4b88b4a267dc4a6cb23006c4b37624b7"}
02-20 14:24:42.426 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Sending (raw) message {"MessageType":"KeepAlive","Data":{}}
02-20 14:24:42.431 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"KeepAlive","MessageId":"f74117e2afa344d5b524199533ed7e52"}
02-20 14:25:12.468 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Sending (raw) message {"MessageType":"KeepAlive","Data":{}}
02-20 14:25:12.475 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"KeepAlive","MessageId":"c14234902c6a48fcb6cd47d7758300a9"}
02-20 14:25:42.508 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Sending (raw) message {"MessageType":"KeepAlive","Data":{}}
02-20 14:25:42.521 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"KeepAlive","MessageId":"d50f33f1372f45c6a7c007dc6cceaa69"}
02-20 14:26:12.547 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Sending (raw) message {"MessageType":"KeepAlive","Data":{}}
02-20 14:26:12.555 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"KeepAlive","MessageId":"5931d64ba2f243ee965cbe4fb9f0db8a"}
02-20 14:26:39.349 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"UserDataChanged","MessageId":"ac7c1c35a5844699a42e60230bf335fa","Data":{"UserId":"08ca909f6d1044aa9930be392943948f","UserDataList":[{"PlaybackPositionTicks":0,"PlayCount":7,"IsFavorite":false,"LastPlayedDate":"2024-02-20T19:26:41.1362081Z","Played":true,"Key":"theme","ItemId":"464ed2dbeeed347ad2b23cbe9e8b560c"},{"UnplayedItemCount":105,"PlaybackPositionTicks":0,"PlayCount":0,"IsFavorite":false,"Played":false,"Key":"79488","ItemId":"bf2eedc270d1af7e199235a2b1bed3d1"}]}}
02-20 14:26:42.587 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Sending (raw) message {"MessageType":"KeepAlive","Data":{}}
02-20 14:26:42.590 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"KeepAlive","MessageId":"db8ead2f0a774e3c9deac7daafc5df99"}
02-20 14:26:55.113 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"UserDataChanged","MessageId":"27deffd1a2bb4d598c3c3b2ebb2b4aa1","Data":{"UserId":"08ca909f6d1044aa9930be392943948f","UserDataList":[{"PlaybackPositionTicks":0,"PlayCount":7,"IsFavorite":false,"LastPlayedDate":"2024-02-20T19:26:41.1362081Z","Played":true,"Key":"theme","ItemId":"464ed2dbeeed347ad2b23cbe9e8b560c"},{"UnplayedItemCount":105,"PlaybackPositionTicks":0,"PlayCount":0,"IsFavorite":false,"Played":false,"Key":"79488","ItemId":"bf2eedc270d1af7e199235a2b1bed3d1"}]}}
02-20 14:27:12.628 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Sending (raw) message {"MessageType":"KeepAlive","Data":{}}
02-20 14:27:12.631 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"KeepAlive","MessageId":"162c41135b134271b9f59e64207311cd"}
02-20 14:27:42.671 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Sending (raw) message {"MessageType":"KeepAlive","Data":{}}
02-20 14:27:42.675 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"KeepAlive","MessageId":"ca8713a6f5854bb6ba351d9ff6eeb9ff"}
02-20 14:27:43.271 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"UserDataChanged","MessageId":"1bb59f64ea1e41b490f63ab8b6aaa665","Data":{"UserId":"08ca909f6d1044aa9930be392943948f","UserDataList":[{"PlaybackPositionTicks":0,"PlayCount":8,"IsFavorite":false,"LastPlayedDate":"2024-02-20T19:27:45.0685215Z","Played":true,"Key":"theme","ItemId":"464ed2dbeeed347ad2b23cbe9e8b560c"},{"UnplayedItemCount":126,"PlaybackPositionTicks":0,"PlayCount":0,"IsFavorite":false,"Played":false,"Key":"79488","ItemId":"bf2eedc270d1af7e199235a2b1bed3d1"}]}}
02-20 14:27:59.121 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"UserDataChanged","MessageId":"9a12885f3e1a46a8967b9fc14011531d","Data":{"UserId":"08ca909f6d1044aa9930be392943948f","UserDataList":[{"PlaybackPositionTicks":0,"PlayCount":8,"IsFavorite":false,"LastPlayedDate":"2024-02-20T19:27:45.0685215Z","Played":true,"Key":"theme","ItemId":"464ed2dbeeed347ad2b23cbe9e8b560c"},{"UnplayedItemCount":126,"PlaybackPositionTicks":0,"PlayCount":0,"IsFavorite":false,"Played":false,"Key":"79488","ItemId":"bf2eedc270d1af7e199235a2b1bed3d1"}]}}
02-20 14:28:12.711 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Sending (raw) message {"MessageType":"KeepAlive","Data":{}}
02-20 14:28:12.714 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"KeepAlive","MessageId":"2b40a8146d724689a4b3b19c86bb5867"}
02-20 14:28:38.351 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"UserDataChanged","MessageId":"26e588cf1a844a709c15e78891b0743a","Data":{"UserId":"08ca909f6d1044aa9930be392943948f","UserDataList":[{"PlaybackPositionTicks":0,"PlayCount":22,"IsFavorite":false,"LastPlayedDate":"2024-02-20T19:28:40.1435084Z","Played":true,"Key":"0001theme","ItemId":"07775e919d51ae168816d50037a5aa81"},{"UnplayedItemCount":21,"PlaybackPositionTicks":0,"PlayCount":0,"IsFavorite":false,"Played":false,"Key":"349272","ItemId":"f0ee89807117300a568310cca5ca558d"}]}}
02-20 14:28:42.753 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Sending (raw) message {"MessageType":"KeepAlive","Data":{}}
02-20 14:28:42.755 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"KeepAlive","MessageId":"582e53a8c0c5480ca192efd662e73491"}
02-20 14:28:50.304 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"UserDataChanged","MessageId":"e4336f9d624649139891e023287b6897","Data":{"UserId":"08ca909f6d1044aa9930be392943948f","UserDataList":[{"PlaybackPositionTicks":0,"PlayCount":22,"IsFavorite":false,"LastPlayedDate":"2024-02-20T19:28:40.1435084Z","Played":true,"Key":"0001theme","ItemId":"07775e919d51ae168816d50037a5aa81"},{"UnplayedItemCount":21,"PlaybackPositionTicks":0,"PlayCount":0,"IsFavorite":false,"Played":false,"Key":"349272","ItemId":"f0ee89807117300a568310cca5ca558d"}]}}
02-20 14:28:53.391 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"UserDataChanged","MessageId":"77c3daedc2664255b209f901e5239a5b","Data":{"UserId":"08ca909f6d1044aa9930be392943948f","UserDataList":[{"PlayedPercentage":70.08539802933183,"PlaybackPositionTicks":18071120810,"PlayCount":3,"IsFavorite":false,"LastPlayedDate":"2024-02-20T19:28:55.1826705Z","Played":false,"Key":"349272004015","ItemId":"501b541a33118c2422090e4b628d242f"},{"UnplayedItemCount":21,"PlaybackPositionTicks":0,"PlayCount":0,"IsFavorite":false,"Played":false,"Key":"349272","ItemId":"f0ee89807117300a568310cca5ca558d"}]}}
02-20 14:29:02.715 I/org.jellyfin.sdk.api.sockets.OkHttpWebsocketSession(18136): Receiving (raw) message {"MessageType":"Play","MessageId":"8cdb9fb7cd2e4e019800e22ec7f28038","Data":{"ItemIds":["501b541a33118c2422090e4b628d242f","68358bffd49b05a4f0401b4525d9355c","5d48500356aefa6d48042cb27e4e3683","e00c3f5dfb7c0ff8cd79ae16a6f913e7","f61fc5861110e58c0a628896db8972ba","9aaafeed136bdec99c3749307d8913dc","fde0361efb63a045b30f18276db9a526","f5a8b749e7e5069cb2a9c07e36e90592","343d33b8c2dceae0e3332c783b064f88","d2e8aed775690a6f513dce9e590fd120","2771e53cd0278d5f0594c5c5f2c0dbb5","3c1f3b60077e3accd687223c7e3c51d9","fbbb7bde902f00ffb9180a777e4a950f","c1536171dbb4b258c96ba150a2b1d486","250aa51edf7a77ecb59bb4aa02228c65","b010f3c6de31edb989956e33bd3f5160","b64c8e6591d7c827f08fcf2c3917b488","4753f4f2fc65770a994ad2776edbae60","511552c3e318d6472fb56e0a442f68b1","179286d6114594e4cde8063a4b7733ac","0b12396c0ba9938f3ca26f4848b2ff44"],"StartPositionTicks":18147364890,"PlayCommand":"PlayNow","ControllingUserId":"08ca909f6d1044aa9930be392943948f","StartIndex":0}}
02-20 14:29:02.728 E/ACRA    (18136): ACRA caught a NullPointerException for org.jellyfin.androidtv
02-20 14:29:02.728 E/ACRA    (18136): java.lang.NullPointerException: Attempt to invoke virtual method 'java.util.UUID org.jellyfin.androidtv.auth.repository.Session.getUserId()' on a null object reference
02-20 14:29:02.728 E/ACRA    (18136):   at org.jellyfin.androidtv.util.apiclient.PlaybackHelper.retrieveAndPlay(PlaybackHelper.java:329)
02-20 14:29:02.728 E/ACRA    (18136):   at org.jellyfin.androidtv.data.eventhandling.SocketHandler.onPlayMessage(SocketHandler.kt:130)
02-20 14:29:02.728 E/ACRA    (18136):   at org.jellyfin.androidtv.data.eventhandling.SocketHandler.lambda$13$lambda$2(SocketHandler.kt:92)
02-20 14:29:02.728 E/ACRA    (18136):   at org.jellyfin.androidtv.data.eventhandling.SocketHandler$$ExternalSyntheticLambda1.onReceive(Unknown Source:4)
02-20 14:29:02.728 E/ACRA    (18136):   at org.jellyfin.androidtv.data.eventhandling.SocketHandler$_init_$lambda$13$$inlined$addListener$default$2.onReceive(ListenerRegistrationExtensions.kt:47)
02-20 14:29:02.728 E/ACRA    (18136):   at org.jellyfin.sdk.api.sockets.helper.ListenerHelper.forwardMessage(ListenerHelper.kt:37)
02-20 14:29:02.728 E/ACRA    (18136):   at org.jellyfin.sdk.api.sockets.SocketInstance.forwardMessage(SocketInstance.kt:283)
02-20 14:29:02.728 E/ACRA    (18136):   at org.jellyfin.sdk.api.sockets.SocketInstance.access$forwardMessage(SocketInstance.kt:35)
02-20 14:29:02.728 E/ACRA    (18136):   at org.jellyfin.sdk.api.sockets.SocketInstance$connectAndBind$2.invokeSuspend(SocketInstance.kt:220)
02-20 14:29:02.728 E/ACRA    (18136):   at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
02-20 14:29:02.728 E/ACRA    (18136):   at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:108)
02-20 14:29:02.728 E/ACRA    (18136):   at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:584)
02-20 14:29:02.728 E/ACRA    (18136):   at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:793)
02-20 14:29:02.728 E/ACRA    (18136):   at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:697)
02-20 14:29:02.728 E/ACRA    (18136):   at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:684)
02-20 14:29:02.728 E/ACRA    (18136):   Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@b7ac27e, Dispatchers.Default]
02-20 14:29:02.728 D/ACRA    (18136): Building report
02-20 14:29:02.729 D/ACRA    (18136): Starting collectors with priority FIRST
02-20 14:29:02.730 D/ACRA    (18136): Calling collector org.acra.collector.LogCatCollector
02-20 14:29:02.731 D/ACRA    (18136): Calling collector org.acra.collector.DropBoxCollector
02-20 14:29:02.731 D/ACRA    (18136): Collector org.acra.collector.DropBoxCollector completed
02-20 14:29:02.731 D/ACRA    (18136): Calling collector org.acra.collector.StacktraceCollector
02-20 14:29:02.732 D/ACRA    (18136): Collector org.acra.collector.StacktraceCollector completed
02-20 14:29:02.736 D/ACRA    (18136): Retrieving logcat output (buffer:default)...
02-20 14:29:02.750 E/libc    (20220): Access denied finding property "persist.vendor.system.svp.dbg.loglevel"

App information

App version: 0.16.5 (160599)
Package name: org.jellyfin.androidtv
Build:

{"BOARD":"mt5895","BOOTLOADER":"unknown","BRAND":"Sony","CPU_ABI":"armeabi-v7a","CPU_ABI2":"armeabi","DEVICE":"BRAVIA_VH1","DISPLAY":"BRAVIA_VH1_UC-user 10 QTG3.200305.006.S363 622101 release-keys","FINGERPRINT":"Sony\/BRAVIA_VH1_UC\/BRAVIA_VH1:10\/QTG3.200305.006.S363\/622101:user\/release-keys","HARDWARE":"mt5895","HOST":"BuildHost722","ID":"QTG3.200305.006.S363","IS_DEBUGGABLE":false,"IS_EMULATOR":false,"MANUFACTURER":"Sony","MODEL":"BRAVIA VH1","PERMISSIONS_REVIEW_REQUIRED":true,"PRODUCT":"BRAVIA_VH1_UC","RADIO":"unknown","SUPPORTED_32_BIT_ABIS":["armeabi-v7a","armeabi"],"SUPPORTED_64_BIT_ABIS":[],"SUPPORTED_ABIS":["armeabi-v7a","armeabi"],"TAGS":"release-keys","TIME":1698890108000,"TYPE":"user","UNKNOWN":"unknown","USER":"root","VERSION":{"ACTIVE_CODENAMES":[],"BASE_OS":"","CODENAME":"REL","FIRST_SDK_INT":28,"INCREMENTAL":"622101","PREVIEW_SDK_FINGERPRINT":"REL","PREVIEW_SDK_INT":0,"RELEASE":"10","RESOURCES_SDK_INT":29,"SDK":"29","SDK_INT":29,"SECURITY_PATCH":"2023-09-01"}}

Build config:

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

Device information

Android version: 10
Device brand: Sony
Device product: BRAVIA_VH1_UC
Device model: BRAVIA VH1

Crash information

Start time: 2024-02-20T13:38:07.936-05:00
Crash time: 2024-02-20T14:29:02.788-05:00

Application version

0.16.5

Where did you install the app from?

Google Play

Device information

Sony x900h Android TV

Android version

Google TV 10

Jellyfin server version

10.8.13

nielsvanvelzen commented 8 months ago

The crash logs indicate you're trying to use the remote control functionality of Jellyfin when the app is inactive or not signed in. I have a fix for that crash ready to go into the next release, but it doesn't really explain your description. This shouldn't happen when you start the app. Do you have more crash logs on the server with different exceptions?

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.