The Maximum call stack size exceeded
error will be thrown in a web worker.
#13345
Labels
A-Windowing
Platform-agnostic interface layer to run your app in
C-Bug
An unexpected or incorrect behavior
O-Web
Specific to web (WASM) builds
S-Needs-Investigation
This issue requires detective work to figure out what's going wrong
Bevy version
main
branch[Optional] Relevant system information
macOS 14.4.1, M1 Max, Chrome 124 / Safari Technology Preview
What you did
I used OffscreenCanvas to create a window plugin that allows Bevy to run in a worker.
What went wrong
When running in debug mode within a web worker, if the time interval between frames in the first few frames is less than 1000ms, an 'Maximum call stack size exceeded' error will be thrown:
Additional information
Repo: https://github.com/jinleili/bevy-in-web-worker
Can run normally if the time interval in the first few frames is 1000ms: https://jinleili.github.io/bevy_in_web_worker/index.html
The text was updated successfully, but these errors were encountered: