sentinelweb / cuer

Media queue manager
Apache License 2.0
2 stars 0 forks source link

Feature/457 remote playback cuer cast #476

Closed sentinelweb closed 1 month ago

sentinelweb commented 4 months ago

chromecast

cuercast

volume

notification

connection

sentinelweb commented 4 months ago
FATAL EXCEPTION: main
 Process: uk.co.sentinelweb.cuer.app.debug, PID: 6039
     android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. Expected: main Calling: DefaultDispatcher-worker-10
at android.view.ViewRootImpl.checkThread(ViewRootImpl.java:12137)
at android.widget.TextView.setText(TextView.java:7547)
at android.widget.TextView.setText(TextView.java:7334)
at android.widget.TextView.setText(TextView.java:7286)
at uk.co.sentinelweb.cuer.app.ui.play_control.CastPlayerFragment.setTitle(CastPlayerFragment.kt:229)
at uk.co.sentinelweb.cuer.app.ui.play_control.CastPlayerPresenter.reset(CastPlayerPresenter.kt:194)
at uk.co.sentinelweb.cuer.app.util.cuercast.CuerCastPlayerWatcher.cleanup(CuerCastPlayerWatcher.kt:160)
at uk.co.sentinelweb.cuer.app.util.cuercast.CuerCastPlayerWatcher$sendStop$2.invokeSuspend(CuerCastPlayerWatcher.kt:154)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
sentinelweb commented 3 months ago

FIXED FATAL EXCEPTION: main Process: uk.co.sentinelweb.cuer.app.debug, PID: 19944 java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:588) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)  Caused by: org.koin.core.error.InstanceCreationException: Could not create instance for [Factory:'uk.co.sentinelweb.cuer.app.ui.playlist_item_edit.PlaylistItemEditViewModel',scope:q:'uk.co.sentinelweb.cuer.app.ui.playlist_item_edit.PlaylistItemEditFragment'] at org.koin.core.instance.InstanceFactory.create(InstanceFactory.kt:60) at org.koin.core.instance.FactoryInstanceFactory.get(FactoryInstanceFactory.kt:38) at org.koin.core.registry.InstanceRegistry.resolveInstance$koin_core(InstanceRegistry.kt:110) at org.koin.core.scope.Scope.resolveValue(Scope.kt:254) at org.koin.core.scope.Scope.resolveInstance(Scope.kt:241) at org.koin.core.scope.Scope.get(Scope.kt:204) at uk.co.sentinelweb.cuer.app.ui.playlist_item_edit.PlaylistItemEditFragment$special$$inlined$inject$default$1.invoke(ComponentCallbackExt.kt:61) at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74) at uk.co.sentinelweb.cuer.app.ui.playlist_item_edit.PlaylistItemEditFragment.getViewModel(PlaylistItemEditFragment.kt:56) at uk.co.sentinelweb.cuer.app.ui.playlist_item_edit.PlaylistItemEditFragment.onAttach(PlaylistItemEditFragment.kt:229) at androidx.fragment.app.Fragment.performAttach(Fragment.java:3071) at androidx.fragment.app.FragmentStateManager.attach(FragmentStateManager.java:502) at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:271) at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2103) at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2004) at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1941) at androidx.fragment.app.FragmentManager$5.run(FragmentManager.java:661) at android.os.Handler.handleCallback(Handler.java:958) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:230) at android.os.Looper.loop(Looper.java:319) at android.app.ActivityThread.main(ActivityThread.java:8919) at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)  Caused by: org.koin.core.error.InstanceCreationException: Could not create instance for [Scoped:'uk.co.sentinelweb.cuer.app.usecase.PlayUseCase',scope:q:'uk.co.sentinelweb.cuer.app.ui.playlist_item_edit.PlaylistItemEditFragment'] at org.koin.core.instance.InstanceFactory.create(InstanceFactory.kt:60) at org.koin.core.instance.ScopedInstanceFactory.create(ScopedInstanceFactory.kt:44) at org.koin.core.instance.ScopedInstanceFactory$get$1.invoke(ScopedInstanceFactory.kt:54) at org.koin.core.instance.ScopedInstanceFactory$get$1.invoke(ScopedInstanceFactory.kt:52) at org.koin.mp.KoinPlatformTools.synchronized(PlatformToolsJVM.kt:20) at org.koin.core.instance.ScopedInstanceFactory.get(ScopedInstanceFactory.kt:52) at org.koin.core.registry.InstanceRegistry.resolveInstance$koin_core(InstanceRegistry.kt:110) at org.koin.core.scope.Scope.resolveValue(Scope.kt:254) at org.koin.core.scope.Scope.resolveInstance(Scope.kt:241) at org.koin.core.scope.Scope.get(Scope.kt:204) at uk.co.sentinelweb.cuer.app.ui.playlist_item_edit.PlaylistItemEditContract$Companion$fragmentModule$1$1$1.invoke(PlaylistItemEditContract.kt:195) at uk.co.sentinelweb.cuer.app.ui.playlist_item_edit.PlaylistItemEditContract$Companion$fragmentModule$1$1$1.invoke(PlaylistItemEditContract.kt:77) at org.koin.core.instance.InstanceFactory.create(InstanceFactory.kt:53) at org.koin.core.instance.FactoryInstanceFactory.get(FactoryInstanceFactory.kt:38)  at org.koin.core.registry.InstanceRegistry.resolveInstance$koin_core(InstanceRegistry.kt:110)  at org.koin.core.scope.Scope.resolveValue(Scope.kt:254)  at org.koin.core.scope.Scope.resolveInstance(Scope.kt:241)  at org.koin.core.scope.Scope.get(Scope.kt:204)  at uk.co.sentinelweb.cuer.app.ui.playlist_item_edit.PlaylistItemEditFragment$special$$inlined$inject$default$1.invoke(ComponentCallbackExt.kt:61)  at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74)  at uk.co.sentinelweb.cuer.app.ui.playlist_item_edit.PlaylistItemEditFragment.getViewModel(PlaylistItemEditFragment.kt:56)  at uk.co.sentinelweb.cuer.app.ui.playlist_item_edit.PlaylistItemEditFragment.onAttach(PlaylistItemEditFragment.kt:229)  at androidx.fragment.app.Fragment.performAttach(Fragment.java:3071)  at androidx.fragment.app.FragmentStateManager.attach(FragmentStateManager.java:502)  at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:271)  at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2103)  at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2004)  at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1941)  at androidx.fragment.app.FragmentManager$5.run(FragmentManager.java:661)  at android.os.Handler.handleCallback(Handler.java:958)  at android.os.Handler.dispatchMessage(Handler.java:99)  at android.os.Looper.loopOnce(Looper.java:230)  at android.os.Looper.loop(Looper.java:319)  at android.app.ActivityThread.main(ActivityThread.java:8919)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)  2024-08-01 13:14:58.434 19944-19944 AndroidRuntime uk.co.sentinelweb.cuer.app.debug E Caused by: org.koin.core.error.InstanceCreationException: Could not create instance for [Scoped:'uk.co.sentinelweb.cuer.app.usecase.PlayUseCase$Dialog',scope:q:'uk.co.sentinelweb.cuer.app.ui.playlist_item_edit.PlaylistItemEditFragment'] at org.koin.core.instance.InstanceFactory.create(InstanceFactory.kt:60) at org.koin.core.instance.ScopedInstanceFactory.create(ScopedInstanceFactory.kt:44) at org.koin.core.instance.ScopedInstanceFactory$get$1.invoke(ScopedInstanceFactory.kt:54) at org.koin.core.instance.ScopedInstanceFactory$get$1.invoke(ScopedInstanceFactory.kt:52) at org.koin.mp.KoinPlatformTools.synchronized(PlatformToolsJVM.kt:20) at org.koin.core.instance.ScopedInstanceFactory.get(ScopedInstanceFactory.kt:52) at org.koin.core.registry.InstanceRegistry.resolveInstance$koin_core(InstanceRegistry.kt:110) at org.koin.core.scope.Scope.resolveValue(Scope.kt:254) at org.koin.core.scope.Scope.resolveInstance(Scope.kt:241) at org.koin.core.scope.Scope.get(Scope.kt:204) at uk.co.sentinelweb.cuer.app.ui.playlist_item_edit.PlaylistItemEditContract$Companion$fragmentModule$1$1$10.invoke(PlaylistItemEditContract.kt:170) at uk.co.sentinelweb.cuer.app.ui.playlist_item_edit.PlaylistItemEditContract$Companion$fragmentModule$1$1$10.invoke(PlaylistItemEditContract.kt:107) at org.koin.core.instance.InstanceFactory.create(InstanceFactory.kt:53) ... 36 more Caused by: org.koin.core.error.NoBeanDefFoundException: |- No definition found for class:'uk.co.sentinelweb.cuer.app.util.chromecast.listener.ChromecastContract$DialogWrapper'. Check your definitions! at org.koin.core.scope.Scope.throwDefinitionNotFound(Scope.kt:304) at org.koin.core.scope.Scope.resolveValue(Scope.kt:274) at org.koin.core.scope.Scope.resolveInstance(Scope.kt:241) at org.koin.core.scope.Scope.get(Scope.kt:204) at uk.co.sentinelweb.cuer.app.ui.playlist_item_edit.PlaylistItemEditContract$Companion$fragmentModule$1$1$11.invoke(PlaylistItemEditContract.kt:165) at uk.co.sentinelweb.cuer.app.ui.playlist_item_edit.PlaylistItemEditContract$Companion$fragmentModule$1$1$11.invoke(PlaylistItemEditContract.kt:119) at org.koin.core.instance.InstanceFactory.create(InstanceFactory.kt:53) ... 48 more

sentinelweb commented 3 months ago

FIXED Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "uk.co.caprica.vlcj.media.InfoApi.duration()" because the return value of "uk.co.caprica.vlcj.player.base.MediaApi.info()" is null at uk.co.sentinelweb.cuer.hub.ui.player.vlc.VlcPlayerSwingWindow$createControls$9.mouseMoved(VlcPlayerSwingWindow.kt:304) at java.desktop/java.awt.AWTEventMulticaster.mouseMoved(AWTEventMulticaster.java:338) at java.desktop/java.awt.Component.processMouseMotionEvent(Component.java:6671) at java.desktop/javax.swing.JComponent.processMouseMotionEvent(JComponent.java:3407) at java.desktop/java.awt.Component.processEvent(Component.java:6395) at java.desktop/java.awt.Container.processEvent(Container.java:2266) at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5001) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833) at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948) at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4588) at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310) at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:746) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:744) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:743) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException: Cannot invoke "uk.co.caprica.vlcj.media.InfoApi.duration()" because the return value of "uk.co.caprica.vlcj.player.base.MediaApi.info()" is null at uk.co.sentinelweb.cuer.hub.ui.player.vlc.VlcPlayerSwingWindow$createControls$9.mouseMoved(VlcPlayerSwingWindow.kt:304) at java.desktop/java.awt.AWTEventMulticaster.mouseMoved(AWTEventMulticaster.java:338) at java.desktop/java.awt.Component.processMouseMotionEvent(Component.java:6671) at java.desktop/javax.swing.JComponent.processMouseMotionEvent(JComponent.java:3407) at java.desktop/java.awt.Component.processEvent(Component.java:6395) at java.desktop/java.awt.Container.processEvent(Container.java:2266) at java.desktop/java.awt.Component.dispatchEventImpl(Component.java:5001) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2324) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833) at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4948) at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Container.java:4588) at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Container.java:4516) at java.desktop/java.awt.Container.dispatchEventImpl(Container.java:2310) at java.desktop/java.awt.Window.dispatchEventImpl(Window.java:2780) at java.desktop/java.awt.Component.dispatchEvent(Component.java:4833) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:773) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:97) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:746) at java.desktop/java.awt.EventQueue$5.run(EventQueue.java:744) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:743) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

sentinelweb commented 3 months ago

Exception in thread "AWT-EventQueue-0" java.util.zip.ZipException: ZipFile invalid LOC header (bad signature) at java.base/java.util.zip.ZipFile$ZipFileInputStream.initDataOffset(ZipFile.java:920) at java.base/java.util.zip.ZipFile$ZipFileInputStream.read(ZipFile.java:931) at java.base/java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(ZipFile.java:448) at java.base/java.util.zip.InflaterInputStream.read(InflaterInputStream.java:158) at java.base/java.util.zip.InflaterInputStream.read(InflaterInputStream.java:122) at java.base/java.io.FilterInputStream.read(FilterInputStream.java:82) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLEntityManager$RewindableInputStream.readAndBuffer(XMLEntityManager.java:3025) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:705) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(XMLVersionDetector.java:150) at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:861) at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:825) at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1224) at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:637) at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(SAXDocumentFactory.java:453) at org.apache.batik.dom.util.SAXDocumentFactory.createDocument(SAXDocumentFactory.java:357) at org.apache.batik.anim.dom.SAXSVGDocumentFactory.createDocument(SAXSVGDocumentFactory.java:226) at ImageKt.loadSVG-bw27NRU(Image.kt:65) at uk.co.sentinelweb.cuer.hub.ui.player.vlc.VlcPlayerSwingWindow.createControls(VlcPlayerSwingWindow.kt:261) at uk.co.sentinelweb.cuer.hub.ui.player.vlc.VlcPlayerSwingWindow.assemble(VlcPlayerSwingWindow.kt:86) at uk.co.sentinelweb.cuer.hub.ui.player.vlc.VlcPlayerUiCoordinator.create(VlcPlayerUiCoordinator.kt:84) at uk.co.sentinelweb.cuer.hub.ui.player.vlc.VlcPlayerUiCoordinator$setupPlaylistAndItem$1.invokeSuspend(VlcPlayerUiCoordinator.kt:155) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:741) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@d2dda4, @3315f25d] Exception in thread "AWT-EventQueue-0" kotlin.UninitializedPropertyAccessException: lateinit property playerWindow has not been initialized at uk.co.sentinelweb.cuer.hub.ui.player.vlc.VlcPlayerUiCoordinator$renderer$lambda$11$$inlined$diff$default$1.render(Diff.kt:79) at uk.co.sentinelweb.cuer.hub.ui.player.vlc.VlcPlayerUiCoordinator$special$$inlined$diff$1.render(Diff.kt:34) at com.arkivanov.mvikotlin.core.view.BaseMviView.render(BaseMviView.kt:36) at com.arkivanov.mvikotlin.extensions.coroutines.BuilderBinder$bindTo$1.invokeSuspend(Binder.kt:92) at com.arkivanov.mvikotlin.extensions.coroutines.BuilderBinder$bindTo$1.invoke(Binder.kt) at com.arkivanov.mvikotlin.extensions.coroutines.BuilderBinder$bindTo$1.invoke(Binder.kt) at com.arkivanov.mvikotlin.extensions.coroutines.BuilderBinder$start$2$1.emit(Binder.kt:113) at uk.co.sentinelweb.cuer.app.ui.player.PlayerController$bindTheThings$lambda$2$$inlined$mapNotNull$1$2.emit(Emitters.kt:221) at kotlinx.coroutines.flow.FlowKtChannelsKt.emitAllImpl$FlowKtChannelsKt(Channels.kt:33) at kotlinx.coroutines.flow.FlowKtChannelsKt.access$emitAllImpl$FlowKtChannelsKt(Channels.kt:1) at kotlinx.coroutines.flow.FlowKt__ChannelsKt$emitAllImpl$1.invokeSuspend(Channels.kt) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104) at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318) at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:771) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:722) at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:716) at java.base/java.security.AccessController.doPrivileged(AccessController.java:399) at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86) at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:741) at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203) at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124) at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109) at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90) Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [StandaloneCoroutine{Cancelling}@685b4a1d, @5452234a]

sentinelweb commented 3 months ago

FIXED Playback had finished on hub

FATAL EXCEPTION: main Process: uk.co.sentinelweb.cuer.app.debug, PID: 29695 android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{4e217ed u0 uk.co.sentinelweb.cuer.app.debug/uk.co.sentinelweb.cuer.app.service.cast.YoutubeCastService} at android.app.ActivityThread.generateForegroundServiceDidNotStartInTimeException(ActivityThread.java:2315) at android.app.ActivityThread.throwRemoteServiceException(ActivityThread.java:2286) at android.app.ActivityThread.-$$Nest$mthrowRemoteServiceException(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2611) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:230) at android.os.Looper.loop(Looper.java:319) at android.app.ActivityThread.main(ActivityThread.java:8919) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103) Caused by: android.app.StackTrace: Last startServiceCommon() call for this service was made here at android.app.ContextImpl.startServiceCommon(ContextImpl.java:2023) at android.app.ContextImpl.startForegroundService(ContextImpl.java:1967) at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:847) at uk.co.sentinelweb.cuer.app.service.cast.YoutubeCastServiceManager.start(YoutubeCastServiceManager.kt:12) at uk.co.sentinelweb.cuer.app.ui.cast.CastController.switchToService(CastController.kt:68) at uk.co.sentinelweb.cuer.app.ui.main.MainPresenter.onStop(MainPresenter.kt:71) at uk.co.sentinelweb.cuer.app.ui.main.MainActivity.onStop(MainActivity.kt:245) at android.app.Instrumentation.callActivityOnStop(Instrumentation.java:1623) at android.app.Activity.performStop(Activity.java:9236) at android.app.ActivityThread.callActivityOnStop(ActivityThread.java:5898) at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:5872) at android.app.ActivityThread.handleStopActivity(ActivityThread.java:5943) at android.app.servertransaction.StopActivityItem.execute(StopActivityItem.java:43) at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45) at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:180) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:98) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2685) at android.os.Handler.dispatchMessage(Handler.java:106)  at android.os.Looper.loopOnce(Looper.java:230)  at android.os.Looper.loop(Looper.java:319)  at android.app.ActivityThread.main(ActivityThread.java:8919)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)  2024-08-08 17:25:12.917 29695-29695 Cuer uk.co.sentinelweb.cuer.app.debug E FATAL Global Exception android.app.RemoteServiceException$ForegroundServiceDidNotStartInTimeException: Context.startForegroundService() did not then call Service.startForeground(): ServiceRecord{4e217ed u0 uk.co.sentinelweb.cuer.app.debug/uk.co.sentinelweb.cuer.app.service.cast.YoutubeCastService} at android.app.ActivityThread.generateForegroundServiceDidNotStartInTimeException(ActivityThread.java:2315) at android.app.ActivityThread.throwRemoteServiceException(ActivityThread.java:2286) at android.app.ActivityThread.-$$Nest$mthrowRemoteServiceException(Unknown Source:0) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2611) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:230) at android.os.Looper.loop(Looper.java:319) at android.app.ActivityThread.main(ActivityThread.java:8919) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103) Caused by: android.app.StackTrace: Last startServiceCommon() call for this service was made here at android.app.ContextImpl.startServiceCommon(ContextImpl.java:2023) at android.app.ContextImpl.startForegroundService(ContextImpl.java:1967) at android.content.ContextWrapper.startForegroundService(ContextWrapper.java:847) at uk.co.sentinelweb.cuer.app.service.cast.YoutubeCastServiceManager.start(YoutubeCastServiceManager.kt:12) at uk.co.sentinelweb.cuer.app.ui.cast.CastController.switchToService(CastController.kt:68) at uk.co.sentinelweb.cuer.app.ui.main.MainPresenter.onStop(MainPresenter.kt:71) at uk.co.sentinelweb.cuer.app.ui.main.MainActivity.onStop(MainActivity.kt:245) at android.app.Instrumentation.callActivityOnStop(Instrumentation.java:1623) at android.app.Activity.performStop(Activity.java:9236) at android.app.ActivityThread.callActivityOnStop(ActivityThread.java:5898) at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:5872) at android.app.ActivityThread.handleStopActivity(ActivityThread.java:5943) at android.app.servertransaction.StopActivityItem.execute(StopActivityItem.java:43) at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45) at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:180) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:98) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2685) at android.os.Handler.dispatchMessage(Handler.java:106)  at android.os.Looper.loopOnce(Looper.java:230)  at android.os.Looper.loop(Looper.java:319)  at android.app.ActivityThread.main(ActivityThread.java:8919)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103) 

sentinelweb commented 3 months ago

FIXED check coroutine cancelling when switching from activity to service. and back too.

get java.util.concurrent.CancellationException: StandaloneCoroutine was cancelled at io.ktor.client.engine.UtilsKt$attachToUserJob$cleanupHandler$1.invoke(Utils.kt:97) at io.ktor.client.engine.UtilsKt$attachToUserJob$cleanupHandler$1.invoke(Utils.kt:95) at kotlinx.coroutines.InvokeOnCancelling.invoke(JobSupport.kt:1428) at kotlinx.coroutines.JobSupport.notifyCancelling(JobSupport.kt:1473) at kotlinx.coroutines.JobSupport.tryMakeCancelling(JobSupport.kt:796) at kotlinx.coroutines.JobSupport.makeCancelling(JobSupport.kt:756) at kotlinx.coroutines.JobSupport.cancelImpl$kotlinx_coroutines_core(JobSupport.kt:672) at kotlinx.coroutines.JobSupport.parentCancelled(JobSupport.kt:638) at kotlinx.coroutines.ChildHandleNode.invoke(JobSupport.kt:1436) at kotlinx.coroutines.JobSupport.notifyCancelling(JobSupport.kt:1473) at kotlinx.coroutines.JobSupport.tryMakeCancelling(JobSupport.kt:796) at kotlinx.coroutines.JobSupport.makeCancelling(JobSupport.kt:756) at kotlinx.coroutines.JobSupport.cancelImpl$kotlinx_coroutines_core(JobSupport.kt:672) at kotlinx.coroutines.JobSupport.cancelInternal(JobSupport.kt:633) at kotlinx.coroutines.JobSupport.cancel(JobSupport.kt:618) at kotlinx.coroutines.Job$DefaultImpls.cancel$default(Job.kt:195) at uk.co.sentinelweb.cuer.app.util.cuercast.CuerCastPlayerWatcher.setMainPlayerControls(CuerCastPlayerWatcher.kt:69) at uk.co.sentinelweb.cuer.app.ui.cast.CastController.switchToService(CastController.kt:75) at uk.co.sentinelweb.cuer.app.ui.main.MainPresenter.onStop(MainPresenter.kt:71) at uk.co.sentinelweb.cuer.app.ui.main.MainActivity.onStop(MainActivity.kt:245) at android.app.Instrumentation.callActivityOnStop(Instrumentation.java:1623) at android.app.Activity.performStop(Activity.java:9236) at android.app.ActivityThread.callActivityOnStop(ActivityThread.java:5898) at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:5872) at android.app.ActivityThread.handleStopActivity(ActivityThread.java:5943) at android.app.servertransaction.StopActivityItem.execute(StopActivityItem.java:43) at android.app.servertransaction.ActivityTransactionItem.execute(ActivityTransactionItem.java:45) at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:180) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:98) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2685) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:230) at android.os.Looper.loop(Looper.java:319) at android.app.ActivityThread.main(ActivityThread.java:8919) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)


get java.util.concurrent.CancellationException: StandaloneCoroutine was cancelled at io.ktor.client.engine.UtilsKt$attachToUserJob$cleanupHandler$1.invoke(Utils.kt:97) at io.ktor.client.engine.UtilsKt$attachToUserJob$cleanupHandler$1.invoke(Utils.kt:95) at kotlinx.coroutines.InvokeOnCancelling.invoke(JobSupport.kt:1428) at kotlinx.coroutines.JobSupport.notifyCancelling(JobSupport.kt:1473) at kotlinx.coroutines.JobSupport.tryMakeCancelling(JobSupport.kt:796) at kotlinx.coroutines.JobSupport.makeCancelling(JobSupport.kt:756) at kotlinx.coroutines.JobSupport.cancelImpl$kotlinx_coroutines_core(JobSupport.kt:672) at kotlinx.coroutines.JobSupport.parentCancelled(JobSupport.kt:638) at kotlinx.coroutines.ChildHandleNode.invoke(JobSupport.kt:1436) at kotlinx.coroutines.JobSupport.notifyCancelling(JobSupport.kt:1473) at kotlinx.coroutines.JobSupport.tryMakeCancelling(JobSupport.kt:796) at kotlinx.coroutines.JobSupport.makeCancelling(JobSupport.kt:756) at kotlinx.coroutines.JobSupport.cancelImpl$kotlinx_coroutines_core(JobSupport.kt:672) at kotlinx.coroutines.JobSupport.cancelInternal(JobSupport.kt:633) at kotlinx.coroutines.JobSupport.cancel(JobSupport.kt:618) at kotlinx.coroutines.Job$DefaultImpls.cancel$default(Job.kt:195) at uk.co.sentinelweb.cuer.app.util.cuercast.CuerCastPlayerWatcher.setMainPlayerControls(CuerCastPlayerWatcher.kt:69) at uk.co.sentinelweb.cuer.app.ui.cast.CastController.checkCastConnectionToActivity(CastController.kt:45) at uk.co.sentinelweb.cuer.app.ui.main.MainPresenter.onStart(MainPresenter.kt:60) at uk.co.sentinelweb.cuer.app.ui.main.MainActivity.onStart(MainActivity.kt:237) at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1582) at android.app.Activity.performStart(Activity.java:9008) at android.app.ActivityThread.handleStartActivity(ActivityThread.java:4198) at android.app.servertransaction.TransactionExecutor.performLifecycleSequence(TransactionExecutor.java:225) at android.app.servertransaction.TransactionExecutor.cycleToPath(TransactionExecutor.java:205) at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:177) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:98) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2685) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:230) at android.os.Looper.loop(Looper.java:319) at android.app.ActivityThread.main(ActivityThread.java:8919) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)

sentinelweb commented 3 months ago

put io.ktor.client.call.NoTransformationFoundException: No transformation found: class io.ktor.utils.io.ByteBufferChannel -> class uk.co.sentinelweb.cuer.domain.system.ResponseDomain with response from http://192.168.1.10:9843/player/launch?screenIndex=1: status: 200 OK response headers: Content-Length: 0

at io.ktor.client.call.HttpClientCall.bodyNullable(HttpClientCall.kt:93)
at uk.co.sentinelweb.cuer.net.client.ServiceExecutor.postResponse(ServiceExecutor.kt:317)
at uk.co.sentinelweb.cuer.net.client.ServiceExecutor$postResponse$1.invokeSuspend(Unknown Source:18)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138)
at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112)
at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14)
at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138)
at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112)
at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14)
at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138)
at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112)
at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14)
at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138)
at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112)
at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14)
at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138)
at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112)
at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14)
at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138)
at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112)
at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14)
at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at io.ktor.util.pipeline.SuspendFunctionGun.resumeRootWith(SuspendFunctionGun.kt:138)
at io.ktor.util.pipeline.SuspendFunctionGun.loop(SuspendFunctionGun.kt:112)
at io.ktor.util.pipeline.SuspendFunctionGun.access$loop(SuspendFunctionGun.kt:14)
at io.ktor.util.pipeline.SuspendFunctionGun$continuation$1.resumeWith(SuspendFunctionGun.kt:62)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104)
at kotlinx.coroutines.internal.LimitedDispatcher$Worker.run(LimitedDispatcher.kt:111)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:99)

2024-08-11 15:31:03.000 30919-7387 ServiceExecutor-REMOTE uk.co.sentinelweb.cuer.app.debug E
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:585) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:802) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:706) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:693)

sentinelweb commented 3 months ago

FATAL EXCEPTION: main Process: uk.co.sentinelweb.cuer.app.debug, PID: 7547 java.lang.RuntimeException: Unable to start activity ComponentInfo{uk.co.sentinelweb.cuer.app.debug/uk.co.sentinelweb.cuer.app.ui.main.MainActivity}: org.koin.core.error.InstanceCreationException: Could not create instance for [Scoped:'uk.co.sentinelweb.cuer.app.ui.remotes.RemotesController',scope:q:'uk.co.sentinelweb.cuer.app.ui.remotes.RemotesFragment'] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4164) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4322) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:139) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:96) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2685) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:230) at android.os.Looper.loop(Looper.java:319) at android.app.ActivityThread.main(ActivityThread.java:8919) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103) Caused by: org.koin.core.error.InstanceCreationException: Could not create instance for [Scoped:'uk.co.sentinelweb.cuer.app.ui.remotes.RemotesController',scope:q:'uk.co.sentinelweb.cuer.app.ui.remotes.RemotesFragment'] at org.koin.core.instance.InstanceFactory.create(InstanceFactory.kt:60) at org.koin.core.instance.ScopedInstanceFactory.create(ScopedInstanceFactory.kt:44) at org.koin.core.instance.ScopedInstanceFactory$get$1.invoke(ScopedInstanceFactory.kt:54) at org.koin.core.instance.ScopedInstanceFactory$get$1.invoke(ScopedInstanceFactory.kt:52) at org.koin.mp.KoinPlatformTools.synchronized(PlatformToolsJVM.kt:20) at org.koin.core.instance.ScopedInstanceFactory.get(ScopedInstanceFactory.kt:52) at org.koin.core.registry.InstanceRegistry.resolveInstance$koin_core(InstanceRegistry.kt:110) at org.koin.core.scope.Scope.resolveValue(Scope.kt:254) at org.koin.core.scope.Scope.resolveInstance(Scope.kt:241) at org.koin.core.scope.Scope.get(Scope.kt:204) at uk.co.sentinelweb.cuer.app.ui.remotes.RemotesFragment$special$$inlined$inject$default$1.invoke(ComponentCallbackExt.kt:61) at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74) at uk.co.sentinelweb.cuer.app.ui.remotes.RemotesFragment.getController(RemotesFragment.kt:49) at uk.co.sentinelweb.cuer.app.ui.remotes.RemotesFragment.onCreate(RemotesFragment.kt:80) at androidx.fragment.app.Fragment.performCreate(Fragment.java:3095) at androidx.fragment.app.FragmentStateManager.create(FragmentStateManager.java:516) at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:274) at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:122) at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1614) at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3198) at androidx.fragment.app.FragmentManager.dispatchCreate(FragmentManager.java:3105) at androidx.fragment.app.Fragment.restoreChildFragmentState(Fragment.java:1990) at androidx.fragment.app.Fragment.onCreate(Fragment.java:1968) at androidx.navigation.fragment.NavHostFragment.onCreate(NavHostFragment.kt:169) at androidx.fragment.app.Fragment.performCreate(Fragment.java:3095) at androidx.fragment.app.FragmentStateManager.create(FragmentStateManager.java:516) at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:274) at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:114) at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1614) 2024-08-15 18:21:02.384 7547-7547 Cuer uk.co.sentinelweb.cuer.app.debug E FATAL Global Exception java.lang.RuntimeException: Unable to start activity ComponentInfo{uk.co.sentinelweb.cuer.app.debug/uk.co.sentinelweb.cuer.app.ui.main.MainActivity}: org.koin.core.error.InstanceCreationException: Could not create instance for [Scoped:'uk.co.sentinelweb.cuer.app.ui.remotes.RemotesController',scope:q:'uk.co.sentinelweb.cuer.app.ui.remotes.RemotesFragment'] at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4164) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4322) at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103) at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:139) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:96) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2685) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loopOnce(Looper.java:230) at android.os.Looper.loop(Looper.java:319) at android.app.ActivityThread.main(ActivityThread.java:8919) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103) Caused by: org.koin.core.error.InstanceCreationException: Could not create instance for [Scoped:'uk.co.sentinelweb.cuer.app.ui.remotes.RemotesController',scope:q:'uk.co.sentinelweb.cuer.app.ui.remotes.RemotesFragment'] at org.koin.core.instance.InstanceFactory.create(InstanceFactory.kt:60) at org.koin.core.instance.ScopedInstanceFactory.create(ScopedInstanceFactory.kt:44) at org.koin.core.instance.ScopedInstanceFactory$get$1.invoke(ScopedInstanceFactory.kt:54) at org.koin.core.instance.ScopedInstanceFactory$get$1.invoke(ScopedInstanceFactory.kt:52) at org.koin.mp.KoinPlatformTools.synchronized(PlatformToolsJVM.kt:20) at org.koin.core.instance.ScopedInstanceFactory.get(ScopedInstanceFactory.kt:52) at org.koin.core.registry.InstanceRegistry.resolveInstance$koin_core(InstanceRegistry.kt:110) at org.koin.core.scope.Scope.resolveValue(Scope.kt:254) at org.koin.core.scope.Scope.resolveInstance(Scope.kt:241) at org.koin.core.scope.Scope.get(Scope.kt:204) at uk.co.sentinelweb.cuer.app.ui.remotes.RemotesFragment$special$$inlined$inject$default$1.invoke(ComponentCallbackExt.kt:61) at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74) at uk.co.sentinelweb.cuer.app.ui.remotes.RemotesFragment.getController(RemotesFragment.kt:49) at uk.co.sentinelweb.cuer.app.ui.remotes.RemotesFragment.onCreate(RemotesFragment.kt:80) at androidx.fragment.app.Fragment.performCreate(Fragment.java:3095) at androidx.fragment.app.FragmentStateManager.create(FragmentStateManager.java:516) at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:274) at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:122) at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1614) at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3198) at androidx.fragment.app.FragmentManager.dispatchCreate(FragmentManager.java:3105) at androidx.fragment.app.Fragment.restoreChildFragmentState(Fragment.java:1990) at androidx.fragment.app.Fragment.onCreate(Fragment.java:1968) at androidx.navigation.fragment.NavHostFragment.onCreate(NavHostFragment.kt:169) at androidx.fragment.app.Fragment.performCreate(Fragment.java:3095) at androidx.fragment.app.FragmentStateManager.create(FragmentStateManager.java:516) at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:274) at androidx.fragment.app.FragmentStore.moveToExpectedState(FragmentStore.java:114) at androidx.fragment.app.FragmentManager.moveToState(FragmentManager.java:1614) at androidx.fragment.app.FragmentManager.dispatchStateChange(FragmentManager.java:3198)

sentinelweb commented 2 months ago

FATAL EXCEPTION: main Process: uk.co.sentinelweb.cuer.app.debug, PID: 29671 com.bumptech.glide.load.engine.CallbackException: Unexpected exception thrown by non-Glide code at com.bumptech.glide.load.engine.EngineJob.callCallbackOnResourceReady(EngineJob.java:161) at com.bumptech.glide.load.engine.EngineJob$CallResourceReady.run(EngineJob.java:428) at android.os.Handler.handleCallback(Handler.java:958) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:230) at android.os.Looper.loop(Looper.java:319) at android.app.ActivityThread.main(ActivityThread.java:8919) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103) Caused by: java.lang.IllegalArgumentException: No media session ID allocated at uk.co.sentinelweb.cuer.app.service.cast.notification.player.PlayerControlsNotificationMedia.buildNotification(PlayerControlsNotificationMedia.kt:93) at uk.co.sentinelweb.cuer.app.service.cast.notification.player.PlayerControlsNotificationMedia.showNotification(PlayerControlsNotificationMedia.kt:52) at uk.co.sentinelweb.cuer.app.service.cast.notification.player.PlayerControlsNotificationViewProxy.showNotification(PlayerControlsNotificationViewProxy.kt:38) at uk.co.sentinelweb.cuer.app.service.cast.notification.player.PlayerControlsNotificationController.showNotification(PlayerControlsNotificationController.kt:139) at uk.co.sentinelweb.cuer.app.service.cast.notification.player.PlayerControlsNotificationController.access$showNotification(PlayerControlsNotificationController.kt:35) at uk.co.sentinelweb.cuer.app.service.cast.notification.player.PlayerControlsNotificationController$BitmapLoadTarget.onResourceReady(PlayerControlsNotificationController.kt:131) at uk.co.sentinelweb.cuer.app.service.cast.notification.player.PlayerControlsNotificationController$BitmapLoadTarget.onResourceReady(PlayerControlsNotificationController.kt:126) at com.bumptech.glide.request.SingleRequest.onResourceReady(SingleRequest.java:639) at com.bumptech.glide.request.SingleRequest.onResourceReady(SingleRequest.java:578) at com.bumptech.glide.load.engine.EngineJob.callCallbackOnResourceReady(EngineJob.java:159) at com.bumptech.glide.load.engine.EngineJob$CallResourceReady.run(EngineJob.java:428)  at android.os.Handler.handleCallback(Handler.java:958)  at android.os.Handler.dispatchMessage(Handler.java:99)  at android.os.Looper.loopOnce(Looper.java:230)  at android.os.Looper.loop(Looper.java:319)  at android.app.ActivityThread.main(ActivityThread.java:8919)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103) 

sentinelweb commented 2 months ago

FATAL EXCEPTION: main Process: uk.co.sentinelweb.cuer.app.debug, PID: 16656 java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:588) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103) Caused by: java.lang.reflect.InvocationTargetException at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)  Caused by: org.koin.core.error.NoBeanDefFoundException: |- No definition found for class:'uk.co.sentinelweb.cuer.app.util.wrapper.StatusBarColorWrapper'. Check your definitions! at org.koin.core.scope.Scope.throwDefinitionNotFound(Scope.kt:304) at org.koin.core.scope.Scope.resolveValue(Scope.kt:274) at org.koin.core.scope.Scope.resolveInstance(Scope.kt:241) at org.koin.core.scope.Scope.get(Scope.kt:204) at uk.co.sentinelweb.cuer.app.ui.settings.PrefBackupFragment$special$$inlined$inject$default$6.invoke(ComponentCallbackExt.kt:61) at kotlin.SynchronizedLazyImpl.getValue(LazyJVM.kt:74) at uk.co.sentinelweb.cuer.app.ui.settings.PrefBackupFragment.getStatusBarColor(PrefBackupFragment.kt:44) at uk.co.sentinelweb.cuer.app.ui.settings.PrefBackupFragment.onCreateView(PrefBackupFragment.kt:70) at androidx.fragment.app.Fragment.performCreateView(Fragment.java:3115) at androidx.fragment.app.FragmentStateManager.createView(FragmentStateManager.java:569) at androidx.fragment.app.FragmentStateManager.moveToExpectedState(FragmentStateManager.java:278) at androidx.fragment.app.FragmentManager.executeOpsTogether(FragmentManager.java:2103) at androidx.fragment.app.FragmentManager.removeRedundantOperationsAndExecute(FragmentManager.java:2004) at androidx.fragment.app.FragmentManager.execPendingActions(FragmentManager.java:1941) at androidx.fragment.app.FragmentManager$5.run(FragmentManager.java:661) at android.os.Handler.handleCallback(Handler.java:958) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:230) at android.os.Looper.loop(Looper.java:319) at android.app.ActivityThread.main(ActivityThread.java:8919) at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:578)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)