Sandbox node graph execution on native targets and attempt recovery from panics on Wasm (#1846)

* Test out wasm unwinding

* Implement panic catching for native targets

* Hack in support for recovering panics in wasm

* Keep debug info in release builds

* Check for DynAnyNode in Backtrace because that can't be inlined as well

* Improve error dialog

* Use a mutex for storing the frontend state instead of a RefCell

* Code review

* Update crash text

---------

Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
Dennis Kobert
2024-07-29 01:46:44 +02:00
committed by GitHub
parent 06177597ae
commit 5b1d3a0ae4
8 changed files with 110 additions and 46 deletions

View File

@@ -61,6 +61,10 @@ web-sys = { workspace = true, features = [
"TextMetrics",
] }
# Required dependencies
async-mutex = "1.4.0"
spin = "0.9.8"
# Optional local dependencies
wgpu-executor = { path = "../node-graph/wgpu-executor", optional = true }
gpu-executor = { path = "../node-graph/gpu-executor", optional = true }
@@ -68,7 +72,6 @@ gpu-executor = { path = "../node-graph/gpu-executor", optional = true }
# Optional workspace dependencies
wasm-bindgen = { workspace = true, optional = true }
wasm-bindgen-futures = { workspace = true, optional = true }
async-mutex = "1.4.0"
[dev-dependencies]
# Workspace dependencies