question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Kotlin/Native FreezingException

See original GitHub issue

Describe 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:closed
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

0reactions
stale[bot]commented, Mar 23, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found