binaryen icon indicating copy to clipboard operation
binaryen copied to clipboard

UNREACHABLE executed at Precompute.cpp:838 on Windows

Open JSMonk opened this issue 1 year ago • 3 comments

Version: 117 Platform: Windows 11 (x64)

Using -O2 and higher on Windows produces UNREACHABLE executed at Precompute.cpp:838 error. I've attached the binary that helps to reproduce the behavior.

stardew-valley-designer-app-web-wasm-js.wasm.zip

To reproduce the failure, take the binary and run the following command:

wasm-opt.exe --all-features -O2 .\stardew-valley-designer-app-web-wasm-js.wasm -o output.wasm

To generate the binary by yourself:

  1. Clone repo: https://github.com/AzimMuradov/stardew-valley-designer
  2. Create local.properties file with the following content: kotlin.daemon.jvmargs=-Xmx2048m
  3. Run ./gradlew.bat :app-web:compileProductionExecutableKotlinWasmJs
  4. The binary is located in the following directory: app-web\build\compileSync\wasmJs\main\productionExecutable\kotlin

JSMonk avatar Jul 03 '24 08:07 JSMonk