You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Version of emscripten/emsdk:
clang version 19.0.0git (https:/github.com/llvm/llvm-project 7cfffe74eeb68fbb3fb9706ac7071f8caeeb6520)
Target: wasm32-unknown-emscripten
Thread model: posix
Failing command line in full:
NA
Full link command and output with -v appended:
emcc fs.cpp -o fs.html -sWASMFS -g -sASYNCIFY=1 -O3
I am trying to compile below code with ASYNCIFY=1. But, I am getting the error shown below. With JSPI (ASYNCIFY=2), the same code works perfectly. The same code works perfectly with -pthread -sPROXY_TO_PTHREAD option as well. It doesn't work only with ASYNCIFY=1
fs.js:50 Uncaught RuntimeError: unreachable
at fs.wasm.(anonymous namespace)::OPFSDirectory::getChild(std::__2::basic_string<char, std::__2::char_traits<char>, std::__2::allocator<char>> const&) (http://localhost:2502/fs.wasm:wasm-function[1878]:0x51b36)
at fs.wasm.wasmfs::Directory::Handle::getChild(std::__2::basic_string<char, std::__2::char_traits<char>, std::__2::allocator<char>> const&) (http://localhost:2502/fs.wasm:wasm-function[1986]:0x57a06)
at fs.wasm.doOpen(wasmfs::path::ParsedParent, int, unsigned int, wasmfs::Backend*, OpenReturnMode) (http://localhost:2502/fs.wasm:wasm-function[2032]:0x60f8b)
at fs.wasm.__syscall_openat (http://localhost:2502/fs.wasm:wasm-function[2038]:0x626f8)
at fs.wasm.fopen (http://localhost:2502/fs.wasm:wasm-function[93]:0x622d)
at fs.wasm.std::__2::basic_filebuf<char, std::__2::char_traits<char>>::open(char const*, unsigned int) (http://localhost:2502/fs.wasm:wasm-function[281]:0xbe26)
at fs.wasm.__original_main (http://localhost:2502/fs.wasm:wasm-function[43]:0x1a33)
at fs.wasm.main (http://localhost:2502/fs.wasm:wasm-function[49]:0x2a00)
at ret.<computed> (http://localhost:2502/fs.js:1994:24)
at Module._main (http://localhost:2502/fs.js:2275:90)
Please include the following in your bug report:
Version of emscripten/emsdk:
clang version 19.0.0git (https:/github.com/llvm/llvm-project 7cfffe74eeb68fbb3fb9706ac7071f8caeeb6520)
Target: wasm32-unknown-emscripten
Thread model: posix
Failing command line in full:
NA
Full link command and output with
-v
appended:emcc fs.cpp -o fs.html -sWASMFS -g -sASYNCIFY=1 -O3
I am trying to compile below code with ASYNCIFY=1. But, I am getting the error shown below. With JSPI (ASYNCIFY=2), the same code works perfectly. The same code works perfectly with
-pthread -sPROXY_TO_PTHREAD
option as well. It doesn't work only with ASYNCIFY=1The text was updated successfully, but these errors were encountered: