Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Maximum call stack size exceeded error will be thrown in a web worker. #13345

Open
jinleili opened this issue May 12, 2024 · 0 comments
Open
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

Comments

@jinleili
Copy link
Contributor

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:
截屏2024-05-13 06 28 06

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

@jinleili jinleili added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels May 12, 2024
@alice-i-cecile alice-i-cecile added A-Windowing Platform-agnostic interface layer to run your app in O-Web Specific to web (WASM) builds S-Needs-Investigation This issue requires detective work to figure out what's going wrong and removed S-Needs-Triage This issue needs to be labelled labels May 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

2 participants