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

eframe web: detect and report panics during startup #2992

Merged
merged 13 commits into from
May 16, 2023

Conversation

emilk
Copy link
Owner

@emilk emilk commented May 16, 2023

With this PR we now report panics during startup, e.g. due to a panic in wgpu or the app initialization code.

This lead to a very nice refactor of eframe::web

Another change is that the first paint is now delayed until the first requestAnimationFrame callback. This means the initialization is much faster, which is probably a good idea.

@emilk emilk added web Related to running Egui on the web eframe Relates to epi and eframe labels May 16, 2023
@emilk emilk merged commit ea71b7f into master May 16, 2023
@emilk emilk deleted the emilk/detect-panics-on-startup branch May 16, 2023 20:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
eframe Relates to epi and eframe web Related to running Egui on the web
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant