Eric Martori
11/02/2021, 1:20 PMCaused by java.util.NoSuchElementException
ArrayDeque is empty.
org.koin.core.scope.Scope.resolveInstance (Scope.kt:213)
org.koin.core.scope.Scope.get (Scope.kt:193)
org.koin.androidx.viewmodel.factory.DefaultViewModelFactory.create (DefaultViewModelFactory.kt:11)
androidx.lifecycle.ViewModelProvider.get (ViewModelProvider.java:187)
androidx.lifecycle.ViewModelProvider.get (ViewModelProvider.java:150)
org.koin.androidx.viewmodel.ViewModelResolverKt.get (ViewModelResolver.kt:23)
org.koin.androidx.viewmodel.ViewModelResolverKt.resolveInstance (ViewModelResolver.kt:12)
org.koin.androidx.viewmodel.scope.ScopeExtKt.getViewModel (ScopeExt.kt:86)
org.koin.androidx.viewmodel.scope.ScopeExtKt.getViewModel (ScopeExt.kt:72)
org.koin.androidx.viewmodel.ext.android.ViewModelStoreOwnerExtKt.getViewModel (ViewModelStoreOwnerExt.kt:68)
But we are unable to reproduce the issue and haven't seen it in over 2 weeks of testing.
I've seen that there is an open issue that seems related to this: https://github.com/InsertKoinIO/koin/issues/1149
But we are no using the getOrNull
method that the tickets seems to imply is the cause of the issue.
Is there anything (besides downgrading or waiting for a fix) that we can do? Does anyone know a way we could try and reproduce the issue in a consistent manner or why is it so hard to reproduce the issue?arnaud.giuliani
11/02/2021, 1:41 PMEric Martori
11/02/2021, 2:31 PM