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

Web viewer: catch and show panic messages that happens at startup #2157

Merged
merged 5 commits into from
May 17, 2023

Conversation

emilk
Copy link
Member

@emilk emilk commented May 16, 2023

Closes #2151

What

While investigating #2032 I noticed that panics during startup (creating the renderer) went unreported to the user. They were logged, but the web page got stuck in a "Loading…" forever. With this PR we notice such panics and shows the panic message to the user.

This required a substantial refactor of eframe to fix:

This PR also improves re_web_viewer_server to make it easier to test locally. For instance:

cargo r -p re_web_viewer_server -- --bind 192.168.0.42 --port 1234 --open

This allows me to open up http://192.168.0.42:1234 on my iPhone to test my latest changes.

Checklist

PR Build Summary: https://build.rerun.io/pr/2157

@emilk emilk added 🪳 bug Something isn't working 🕸️ web regarding running the viewer in a browser 🧑‍💻 dev experience developer experience (excluding CI) labels May 16, 2023
@Wumpf Wumpf self-requested a review May 17, 2023 07:45
Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@emilk emilk merged commit 3b83afd into main May 17, 2023
17 checks passed
@emilk emilk deleted the emilk/web-erorr-reporting branch May 17, 2023 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪳 bug Something isn't working 🧑‍💻 dev experience developer experience (excluding CI) 🕸️ web regarding running the viewer in a browser
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Panics during startup of web-viewer are not reported to the user
2 participants