failed to build with SAFE_HEAP=1 #18470
Replies: 2 comments 4 replies
-
It looks like maybe wasm-opt is simply crashing. Is this a regression? (i.e. did it used to work with some previous version?) Is this a large project? (i.e. could wasm-opt simply be running out of memory?) If this is a binaryn (wasm-opt) bug then it would be really helpful if you could attach the input file ( |
Beta Was this translation helpful? Give feedback.
-
Removing the here is the wasm file: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Trying to build with SAFE_HEAP=1 is failed:
emcc version - 3.1.9
OS: Windows 11
Build command line:
C:\emsdk\upstream\emscripten\\emcc.bat Emscripten/Debug/TEApiWrapper80_for_emscripten.o Emscripten/Debug/Main.o -ljpeg.Emscripten -lxml2 -lprjplg.Emscripten -lproj -lgdal -lgeos -lgeos_c -l3ds.Emscripten -lTerraExplorerX.Emscripten -lCore.Emscripten -l7zip.Emscripten -llibzip.Emscripten -lgisplg.Emscripten -lMptDll.Emscripten -lOpenGL.Emscripten -lPlgShell.Emscripten -lSLLogger.Emscripten -lSLLoggerLib.Emscripten -lSLStrings.Emscripten -lTerraCommon.Emscripten -lTerra.Emscripten -lTESWQ.Emscripten -lWFSPlugin.Emscripten -lsl_png.Emscripten -ldraco.Emscripten -lOpenCTM.Emscripten -lwebp.Emscripten -lMPTPlg.Emscripten -s ALLOW_TABLE_GROWTH -s WASM_BIGINT -s EXPORTED_RUNTIME_METHODS=ccall,cwrap -s EXPORTED_FUNCTIONS=_main -g -gsplit-dwarf -gdwarf-5 -gpubnames --bind -s USE_PTHREADS -s ALLOW_MEMORY_GROWTH=1 -s EXIT_RUNTIME -s ASSERTIONS=2 -s FETCH -s NO_DISABLE_EXCEPTION_CATCHING -s TEXTDECODER=0 -lidbfs.js -s PTHREAD_POOL_SIZE=60 -s STACK_OVERFLOW_CHECK=1 -s SAFE_HEAP=1 -O0 --preload-file com.skyline.terraexplorer -o C:/Projects/TerraExplorer_v8_0_0_Dev/SLSource/Emscripten/Debug/TEW/TerraExplorerApp.Emscripten.js -LC:/Projects/TerraExplorer_v8_0_0_Dev/SLSource/Emscripten/Debug/ -LC:/Projects/TerraExplorer_v8_0_0_Dev/SLSource/Emscripten/TerraExplorerApp.Emscripten/libs
Result:
emcc: error: 'C:/emsdk/upstream\bin\wasm-opt --safe-heap --strip-producers C:/Projects/TerraExplorer_v8_0_0_Dev/SLSource/Emscripten/Debug/TEW/TerraExplorerApp.Emscripten.wasm -o C:/Projects/TerraExplorer_v8_0_0_Dev/SLSource/Emscripten/Debug/TEW/TerraExplorerApp.Emscripten.wasm -g --mvp-features --enable-threads --enable-mutable-globals --enable-bulk-memory --enable-sign-ext' failed (returned 3221226505)
Is anyone can tell what is the reason for that failing, and what is the solution ?
`
Beta Was this translation helpful? Give feedback.
All reactions