You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm encountering similar issues on a multiplatform project. No problems on javascript or native, only jvm causes issues. I suspect a compiler issue.
Update: I refactored Result into my own normal class Result2 and the issue seemed to go away. Seems like I'm right that it's a kotlin compiler issue and not a coroutines issue. Try refactoring value classes into normal classes?
This is indeed a regression in Kotlin 1.5.0, unfortunately, we cannot workaround it on kotlinx.coroutines site.
The root cause of this issue is the compiler trying to optimize any boxing of value classes, but in some places coroutines code generation relies on it (e.g. resumeWith(Result)), so just replacing Result with the same handwritten type resolves the issue
I am seeing the following error reported by users. I cannot reproduce this personally. What can I do to investigate this error?
Related code: https://github.com/Mygod/VPNHotspot/blob/v2.11.6/mobile/src/main/java/be/mygod/librootkotlinx/RootServer.kt#L255
The text was updated successfully, but these errors were encountered: