emscripten-core / emscripten

Emscripten: An LLVM-to-WebAssembly Compiler
Other
25.7k stars 3.3k forks source link

Log Display Issue: emscripten_log not functioning on Safari #19867

Open taemincho opened 1 year ago

taemincho commented 1 year ago

emscripten_log with the EM_LOG_CONSOLE flag does not output anything on Safari's console. However, it functions properly on Chrome and Firefox.

I am utilizing it within an AudioWorkletProcessor, and it appears to be related to the issue documented at https://bugs.webkit.org/show_bug.cgi?id=220039.

Please include the following in your bug report:

Version of emscripten/emsdk: Please include the output emcc -v here

emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.40-git
clang version 17.0.0 (https://github.com/llvm/llvm-project.git 2922e7cd9334797c24a317d41275f1258ef9ddd3)
Target: wasm32-unknown-emscripten
Thread model: posix
InstalledDir: /usr/local/Cellar/emscripten/3.1.40/libexec/llvm/bin
sbc100 commented 1 year ago

I assume emscripten_console_log and emscripten_console_error also fail to output in the auto worklet context?

I'm not sure there is anything we can do on the emscripten side of the JS console methods are broken..