Alex Styl
03/29/2025, 6:10 AMError code: 5
on Chrome when i run wasmBrowserProductionRun
works ok on Firefox and even Safari but Chrome is crashing without any stacktrace.
Normal wasmBrowserRun
works fine.
Any idea how to debug this?Alex Styl
03/29/2025, 6:14 AMWinson Chiu
03/29/2025, 7:16 AMAlex Styl
03/29/2025, 7:23 AMephemient
03/29/2025, 9:18 AMChrimaeon
03/29/2025, 9:26 AMAlex Styl
03/29/2025, 9:32 AMephemient
03/29/2025, 9:33 AMAlex Styl
03/29/2025, 10:49 AMAlex Styl
03/29/2025, 11:02 AMimplementation(libs.ktor.client.js)
on the wasm target. Fixed dev but still crash on productionAlex Styl
03/29/2025, 12:37 PMtasks.withType<org.jetbrains.kotlin.gradle.targets.js.binaryen.BinaryenExec> {
binaryenArgs = mutableListOf(
// Required flags:
"--enable-gc",
"--enable-reference-types",
"--enable-exception-handling",
"--enable-bulk-memory",
"--enable-nontrapping-float-to-int",
// Optional flags (can be removed):
"--inline-functions-with-loops",
"--traps-never-happen",
"--fast-math",
"--gufa",
// either -03 or -0z breaks my app
// "-O3",
// "-Oz",
// 02 is fine
"-O2",
)
}
Using flag -03 or -0z breaks my app. -02 works fine on chrome