Skip to content

recover panics in fyne #4519

Closed Answered by Jacalz
mpkondrashin asked this question in Q&A
Jan 6, 2024 · 1 comments · 7 replies
Discussion options

You must be logged in to vote

We try rigorously to have our code not crash. If it does, it is a bug and something we should fix. Putting recover() everywhere is not the correct solution. Open a bug report using the bug report issue template if our code is crashing (one for each crash if there are multiple different panics).

If you own code is crashing, rewrite it to not crash. You should write code to avoid panicing and doing illegal operations. It is also worth noting that recovering from a panic is a slow operation as it has to rewind the stackframes etc.

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@Jacalz
Comment options

Jacalz Jan 6, 2024
Collaborator

@andydotxyz
Comment options

@Jacalz
Comment options

Jacalz Jan 6, 2024
Collaborator

@andydotxyz
Comment options

@mpkondrashin
Comment options

Answer selected by Jacalz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
not an issue This doesn't seem right
3 participants