Open ghost opened 2 years ago
Most likely --proxy-to-worker
doesn't work with surface/canvas like this. We have OFFSCREENCANVAS_SUPPORT
and OFFSCREEN_FRAMEBUFFER
that are worth looking into but I don't know if they work with --proxy-to-worker
.
@juj would know more.
We should probably give a more useful error..
Sorry, I never worked with the SDL 1.4 JS library, except to submit some bugfixes. When I wrote OffscreenCanvas support and the Offscreen Framebuffer support, neither of those were developed with this SDL 1.4 library in mind.
Neither the OffscreenCanvas or Offscreen Framebuffer features can work with --proxy-to-worker
, because they both require bootstrapping wasm code to execute on the main browser thread. (with OffscreenCanvas one could create a manual shim on the main browser thread to do the passing of the canvas over to the worker, if someone is interested in developing that)
Please include the following in your bug report:
Version of emscripten/emsdk: emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.1-git (e325125379a98b0bc2988a6de8ad7f54191ade34) clang version 14.0.0 (https://github.com/llvm/llvm-project 1a929525e86a20d0b3455a400d0dbed40b325a13) Target: wasm32-unknown-emscripten Thread model: posix InstalledDir: /Users/pro21/emsdk/upstream/bin
Failing command line in full: no failing command line
Full link command and output with
-v
appended: no failing command linewhen i run the sdl test ,say "sdl_canvas.c", I run this command :
and i get this error from the browser' console when i open hello.html:
this is the screen snapshot,