compose-multiplatform icon indicating copy to clipboard operation
compose-multiplatform copied to clipboard

Binaryen error on Windows machine

Open AzimMuradov opened this issue 1 year ago • 1 comments

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: image

JDK: image

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

image

Additional context

Link to CI job run: https://github.com/AzimMuradov/stardew-valley-designer/actions/runs/9225193475/job/25383277282

AzimMuradov avatar May 24 '24 14:05 AzimMuradov

Logs: logs_24148234620.zip

AzimMuradov avatar May 25 '24 09:05 AzimMuradov

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.

mazunin-v-jb avatar May 27 '24 11:05 mazunin-v-jb

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 :)

AzimMuradov avatar May 27 '24 11:05 AzimMuradov

I also found related youtrack issue: https://youtrack.jetbrains.com/issue/KT-68088

AzimMuradov avatar May 27 '24 12:05 AzimMuradov

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.

eymar avatar May 27 '24 13:05 eymar

Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.

okushnikov avatar Aug 26 '24 13:08 okushnikov