compose-multiplatform
compose-multiplatform copied to clipboard
Binaryen error on Windows machine
Describe the bug I have an issue on the newest Kotlin + Compose:
I've moved to Kotlin 2.0.0 and Compose 1.6.10. I had no problems building the project (./gradlew build -Dorg.gradle.jvmargs=-Xmx2048m) locally (Linux), but when I pushed the changes to the remote, I had an issue with Binaryen when building the project on a Windows machine (CI, windows-latest). On Linux (CI, ubuntu-latest) everything works fine. Binaryen is used for Web (Wasm) target.
The problem occurs on the compileProductionExecutableKotlinWasmJsOptimize task.
Part of the error message: "UNREACHABLE executed at D:\a\binaryen\binaryen\src\passes\Precompute.cpp:838!"
Versions
- Libraries:
- Compose Multiplatform version: 1.6.10
- Kotlin version: 2.0.0
- OS version: Windows Server 2022
- OS architecture (x86 or arm64): x86-64
- JDK (for desktop issues): Adopt JDK 17
Windows Image:
JDK:
To Reproduce Steps to reproduce the behavior:
Currently, I have no small reproducible for the issue. I'll try to add one soon.
Expected behavior Should build fine.
Screenshots
Additional context
Link to CI job run: https://github.com/AzimMuradov/stardew-valley-designer/actions/runs/9225193475/job/25383277282
Logs: logs_24148234620.zip
Hello, @AzimMuradov! I'll pass it to the team, however, reproducer would be nice though. Could you please attach it once you've made it? It would be really helpful.
Could you please attach it once you've made it? It would be really helpful.
Currently, you can reproduce it on Windows using this branch https://github.com/AzimMuradov/stardew-valley-designer/tree/k2 of my project. Although this is quite a large project, I'll try create a smaller reproducible later.
P.S. Before this comment, I accidentally clicked "save" in my reply, thus sending an unfinished message, sorry :)
I also found related youtrack issue: https://youtrack.jetbrains.com/issue/KT-68088
Since the issue only happens on Windows AND with binaryen enabled, it's likely that the core cause is not in Compose.
Since the issue is already reported in Kotlin tracker, let's close this one.
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.