You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 8, 2021. It is now read-only.
An example application that shows an error dialog with a backtrace and exits when a panic occurs within GUI code.
This is an issue I've been thinking about for some time and couldn't come up with an obvious solution for. It's unreasonable to forbid panics, but it's bad UX when the application inexplicably closes.
The problem is further complicated by the fact that the panic could occur in odd places such as GObject methods (constructed, etc.) and callbacks on another thread.
Since currently unwinding through C frames (GTK included) is undefined, an approach that comes to mind is to show a blocking dialog from within the panic hook and then abort once the dialog is closed. I'm not familiar enough with GTK to know if that can be done though. How do other languages handle critical errors in GTK applications?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
An example application that shows an error dialog with a backtrace and exits when a panic occurs within GUI code.
This is an issue I've been thinking about for some time and couldn't come up with an obvious solution for. It's unreasonable to forbid panics, but it's bad UX when the application inexplicably closes.
The problem is further complicated by the fact that the panic could occur in odd places such as GObject methods (
constructed
, etc.) and callbacks on another thread.Since currently unwinding through C frames (GTK included) is undefined, an approach that comes to mind is to show a blocking dialog from within the panic hook and then abort once the dialog is closed. I'm not familiar enough with GTK to know if that can be done though. How do other languages handle critical errors in GTK applications?
The text was updated successfully, but these errors were encountered: