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

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

Merged
merged 9 commits into from
Jul 28, 2024

Conversation

TrueDoctor
Copy link
Member

@TrueDoctor TrueDoctor commented Jul 23, 2024

Closes #1552
This implements panic catching for native targets using the rust std catch_unwind function. As this does not work on wasm yet: rust-lang/rust#118168, I've implemented a hacky workaround which should give the user the ability to still save their work when the editor crashes and recover some of their work

@TrueDoctor
Copy link
Member Author

Note to test this you can enable the vello feature which currently just calls a panic, this will of course need to be removed before merging

@TrueDoctor TrueDoctor marked this pull request as draft July 23, 2024 12:29
@Keavon Keavon force-pushed the master branch 11 times, most recently from fceb3a6 to ab87486 Compare July 24, 2024 11:46
@TrueDoctor TrueDoctor changed the title Sandbox nodegraph executuon on native targets and attempt panic recovery on wasm Sandbox node graph execution on native targets and attempt panic recovery on wasm Jul 25, 2024
@TrueDoctor TrueDoctor marked this pull request as ready for review July 25, 2024 09:27
@Keavon Keavon changed the title Sandbox node graph execution on native targets and attempt panic recovery on wasm Sandbox node graph execution on native targets and attempt recovery from panics on Wasm Jul 26, 2024
@Keavon Keavon merged commit 5b1d3a0 into master Jul 28, 2024
2 checks passed
@Keavon Keavon deleted the sandbox_nodegraph branch July 28, 2024 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Node panics shouldn't bring down the editor
2 participants