Skip to content
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 working issue #321

Open
phansier opened this issue Nov 28, 2024 · 2 comments
Open

WASM working issue #321

phansier opened this issue Nov 28, 2024 · 2 comments

Comments

@phansier
Copy link
Owner

phansier commented Nov 28, 2024

Site not working. Initially because of skiko.js 404

@phansier
Copy link
Owner Author

phansier commented Dec 19, 2024

skiko.js usage from index.html was deprecated

Next problem was with Material3 usage:

unreachable
RuntimeError: unreachable
    at <Coffeegram:cmp-common>.kotlin.wasm.internal.throwLinkageError (http://localhost:8080/6593a0ac54dd2f613fb8.wasm:wasm-function[12942]:0x3a6f85)
    at <Coffeegram:cmp-common>.androidx.compose.material3.MinimumInteractiveModifierNode.measure (http://localhost:8080/6593a0ac54dd2f613fb8.wasm:wasm-function[61752]:0x7ee2c3)
    at <Coffeegram:cmp-common>.androidx.compose.ui.node.LayoutModifierNodeCoordinator.measure (http://localhost:8080/6593a0ac54dd2f613fb8.wasm:wasm-function[43515]:0x65d5cb)

To see this log I've added to module's build.gradle.kts

tasks.withType<KotlinJsCompile>().configureEach {
    kotlinOptions.freeCompilerArgs += listOf("-Xwasm-use-traps-instead-of-exceptions")
}

@phansier
Copy link
Owner Author

unreachable
RuntimeError: unreachable
    at <Coffeegram:cmp-common>.androidx.compose.runtime.$withFrameNanosCOROUTINE$0.doResume (http://localhost:8080/ad49d0d2903c2b772360.wasm:wasm-function[26356]:0x4b32f2)
    at <Coffeegram:cmp-common>.kotlin.coroutines.CoroutineImpl.resumeWith (http://localhost:8080/ad49d0d2903c2b772360.wasm:wasm-function[13482]:0x3bb169)
    at <Coffeegram:cmp-common>.kotlinx.coroutines.DispatchedTask.run (http://localhost:8080/ad49d0d2903c2b772360.wasm:wasm-function[15485]:0x3ecd93)
    at <Coffeegram:cmp-common>.androidx.compose.ui.platform.FlushCoroutineDispatcher$dispatch$slambda$lambda.invoke (http://localhost:8080/ad49d0d2903c2b772360.wasm:wasm-function[45944]:0x66c652)
    at <Coffeegram:cmp-common>.androidx.compose.ui.platform.FlushCoroutineDispatcher$dispatch$slambda$lambda.invoke (http://localhost:8080/ad49d0d2903c2b772360.wasm:wasm-function[45945]:0x66c65d)
    at <Coffeegram:cmp-common>.androidx.compose.ui.platform.FlushCoroutineDispatcher.performRun (http://localhost:8080/ad49d0d2903c2b772360.wasm:wasm-function[45983]:0x66d138)
    at <Coffeegram:cmp-common>.androidx.compose.ui.platform.FlushCoroutineDispatcher$dispatch$slambda.doResume (http://localhost:8080/ad49d0d2903c2b772360.wasm:wasm-function[45952]:0x66c877)
    at <Coffeegram:cmp-common>.androidx.compose.ui.platform.FlushCoroutineDispatcher$dispatch$slambda.invoke (http://localhost:8080/ad49d0d2903c2b772360.wasm:wasm-function[45950]:0x66c7d2)
    at <Coffeegram:cmp-common>.androidx.compose.ui.platform.FlushCoroutineDispatcher$dispatch$slambda.invoke (http://localhost:8080/ad49d0d2903c2b772360.wasm:wasm-function[45951]:0x66c81c)
    at <Coffeegram:cmp-common>.kotlin.coroutines.intrinsics.<no name provided>.doResume (http://localhost:8080/ad49d0d2903c2b772360.wasm:wasm-function[13505]:0x3bb72f)

jetbrainsCompose = "1.7.1" && 1.8.0-alpha01

@phansier phansier mentioned this issue Dec 19, 2024
@phansier phansier changed the title WASM skiko 404 WASM working issue Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant