wails icon indicating copy to clipboard operation
wails copied to clipboard

Global recovery option

Open matt9mg opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe.

There are situations where the app may work running wails dev but once compiled the app may crash for whatever reason maybe someone forgot to embed a file system or something else.

Describe the solution you'd like

The ability to add recovery middleware to the run section of wails.Run perhaps as the &options.App{ that is passed this would allow additional crash logs to be added or sent to third part systems.

Describe alternatives you've considered

No response

Additional context

No response

matt9mg avatar Jul 20 '22 09:07 matt9mg

Thanks for opening a ticket! Great idea. Happy to accept a PR for this 👍

leaanthony avatar Jul 20 '22 10:07 leaanthony

I have used panicwrap in combination with Wails in one project.

There are panics which one might not recover from, e.g. if the panic happens in some go routine that get spanned outside of the control e.g. in a 3rd party lib. Or there might be segfaults wich lead to panics that occur in native syscall, which can't always be recovered. Panicwrap allows to identify also these panics regardless where they happen.

stffabi avatar Jul 22 '22 08:07 stffabi

Closing this due to inactivity. There's a solution here for v2 and we are supporting it natively in v3 👍

leaanthony avatar Jul 09 '23 22:07 leaanthony