Kotlin/Native FreezingException
See original GitHub issueDescribe the bug I’m trying to run an app in Kotlin/Native targeted to macOs. And met an exception I can not fix:
Uncaught Kotlin exception: kotlin.native.concurrent.FreezingException: freezing of savrov.sdk.store.client.feature.product.di.ProductModule@d0414e08 has failed, first blocker is org.koin.core.scope.ScopeDefinition@cea8c1fa
this is my main.kt class where exception above appears:
// run console app
fun main(args: Array<String>) {
startKoin {
modules(ProductModule.di())
}
// run some command in console
MainNavigationCommand().main(args)
}
ProductModule.di()
is a Koin module def. Classes that are defined in it use Kotlin Coroutines v 1.4.2 (if this info is needed)
I just want to be sure, if Koin supports this scenario - to be used with Kotlin/Native
Koin project used and used version (please complete the following information): org.koin:koin-core:3.0.0-alpha-4
Issue Analytics
- State:
- Created 3 years ago
- Comments:5
Top Results From Across the Web
FreezingException - Kotlin Programming Language
FreezingException. Native. 1.3. class FreezingException : RuntimeException · (source). Exception thrown whenever freezing is not possible.
Read more >FreezingException not caught when switching context on native
Output: Start fetching Start fetching Caught with try/catch: kotlin.native.concurrent.FreezingException: freezing of kotlinx.coroutines.
Read more >freezing of InvokeOnCompletion has failed" using native-mt ...
"FreezingException: freezing of InvokeOnCompletion has failed" using native-mt coroutines · KTOR-497 kotlin.native.concurrent.InvalidMutabilityException with 1.3 ...
Read more >kotlin-native freeze() method crashing when freezing a function
Uncaught Kotlin exception: kotlin.native.concurrent.FreezingException: freezing of function performWork (Kotlin reflection is not available) ...
Read more >The weird and wonderful world of threading in Kotlin-Native
Even more confusing, sometimes you'll get this exception from a completely unrelated class — as Kotlin Native will deep freeze the entire ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Check this https://github.com/InsertKoinIO/koin/issues/997#event-4434783984
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.