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
@Omico, in any case, the reason you're seeing this is that some coroutines that in your codebase are throwing uncaught exceptions. Please read https://kotlinlang.org/docs/exception-handling.html . The issue on our side is that the error message you get is unhelpful for identifying the problem.
@dkhalanskyjb It works in a same way as in Kotlin/Js. Kotlin/Wasm 2.0.10 does not supports yet js exception info retrieving (now in WIP) so the only thing we can log now is JSException's message.
@igoriakovlev, I don't think it works the same way on JS. On JS,
`console.error` works and prints and error to the log, but on Wasm, it
crashes for some reason.
@dkhalanskyjb I do not see that it craches, for me it prints the error and stack for the place where console.error was called. The same way as KotlinJs do.
Activity
dkhalanskyjb commentedon Aug 14, 2024
@igoriakovlev, looking into this, I see the following stack trace:
Looks like
console.error
doesn't work for some reason. What could be the reason, and what can we use instead?dkhalanskyjb commentedon Aug 16, 2024
@Omico, in any case, the reason you're seeing this is that some coroutines that in your codebase are throwing uncaught exceptions. Please read https://kotlinlang.org/docs/exception-handling.html . The issue on our side is that the error message you get is unhelpful for identifying the problem.
igoriakovlev commentedon Aug 16, 2024
@dkhalanskyjb It works in a same way as in Kotlin/Js. Kotlin/Wasm 2.0.10 does not supports yet js exception info retrieving (now in WIP) so the only thing we can log now is
JSException
's message.dkhalanskyjb commentedon Aug 16, 2024
Omico commentedon Aug 16, 2024
I'm unfamiliar with web development, but based on what I know now, I highly suspect this issue is because the content I want to store exceeds the localstorage limit. https://developer.mozilla.org/en-US/docs/Web/API/Storage_API/Storage_quotas_and_eviction_criteria#web_storage
However, the Coroutines API cannot provide any helpful information for this error. I hope we can have a better debug experience in similar scenarios.
igoriakovlev commentedon Aug 16, 2024
@dkhalanskyjb I do not see that it craches, for me it prints the error and stack for the place where
console.error
was called. The same way as KotlinJs do.dosier commentedon Dec 29, 2024
I am having this issue too:
Using compose 1.8.0-alpha01 and kotlin 2.1.0
dkhalanskyjb commentedon Jul 28, 2025
Will be fixed in 6f0fb66