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

Log warning instead of error when failing to decode RON in storage #2961

Merged
merged 7 commits into from
Apr 27, 2023

Conversation

emilk
Copy link
Owner

@emilk emilk commented Apr 27, 2023

I'm not sure why, but using console.error causes a hard crash.

image

But this PR fixes it. I don't understand why.

@emilk emilk added bug Something is broken web Related to running Egui on the web labels Apr 27, 2023
Copy link
Collaborator

@teh-cmc teh-cmc left a comment

Choose a reason for hiding this comment

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

Can confirm this works.

To reproduce/test, manually introduce a typo in one of the keys stored in local storage.

Firefox Linux, using egui.rs:
image

Firefox Linux: using this branch:
image

@emilk emilk added the eframe Relates to epi and eframe label Apr 27, 2023
emilk added a commit to rerun-io/rerun that referenced this pull request Apr 27, 2023
Because it can apparaently cause crashes:
emilk/egui#2961
@emilk emilk merged commit 3d6a15f into master Apr 27, 2023
@emilk emilk deleted the emilk/fix-decode-crash branch April 27, 2023 07:45
emilk added a commit to rerun-io/rerun that referenced this pull request Apr 27, 2023
Because it can apparaently cause crashes:
emilk/egui#2961
jleibs pushed a commit to rerun-io/rerun that referenced this pull request May 2, 2023
Because it can apparaently cause crashes:
emilk/egui#2961
jleibs pushed a commit to rerun-io/rerun that referenced this pull request May 2, 2023
Because it can apparaently cause crashes:
emilk/egui#2961
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken 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.

2 participants