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

Workaround winit bug with executing events immediately #3

Merged
merged 1 commit into from
May 17, 2024

Conversation

ddfisher
Copy link

Winit on web has a bug where the EventLoopProxy will immediately call handlers for a custom event in send_event instead of scheduling it for the next event tick. This causes double-borrows of our MutableAppContext, which hard crashes the app. This is a bandaid fix which pushes those calls on the microtask queue instead.

@ddfisher ddfisher merged commit 765c69c into warpdotdev:warpdotdev/v0.30.x May 17, 2024
36 of 52 checks passed
@ddfisher ddfisher deleted the day/fix-wasm-crash branch May 17, 2024 23:03
@ddfisher ddfisher restored the day/fix-wasm-crash branch May 17, 2024 23:07
@ddfisher
Copy link
Author

(accidentally created merge commit)

@ddfisher ddfisher deleted the day/fix-wasm-crash branch May 17, 2024 23:15
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.

2 participants