-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WASM] JsException: Exception was thrown while running JavaScript code kotlinx.coroutines.error_$external_fun #4213
Comments
@igoriakovlev, looking into this, I see the following stack trace:
Looks like |
@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 |
@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.
…On Fri, Aug 16, 2024, 2:49 PM igoriakovlev ***@***.***> wrote:
@dkhalanskyjb <https://github.com/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.
—
Reply to this email directly, view it on GitHub
<#4213 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AMT73TOIPGEYY4WUV2TESSTZRXYNBAVCNFSM6AAAAABMOSKBJSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJTGQ2TCMBUGY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
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. |
@dkhalanskyjb I do not see that it craches, for me it prints the error and stack for the place where |
Describe the bug
The webview is blocked.
Provide a Reproducer
git clone https://github.com/OmicoDev/wwm/tree/optimize-loading-font-on-wasm
Run
wwm.web.run
run configuration.See the browser console.
The text was updated successfully, but these errors were encountered: