Repository navigation
Native crashes on Windows now come back as reports too.
Try it
dotnet add package Oopsling.Avalonia --version 1.3.0- Keep
CrashReports.StartandCrashReportWindow.ShowUnshownas they are: there's nothing new to call. - Crash your app in native code on Windows and start it again: the window shows the crash.
What's in it
- Native crashes: an access violation, a stack overflow or
Environment.FailFastleaves no managed exception, so at the next launch Oopsling reads Windows' record of it from the Application log. - What the report holds: the exception code with its name, the faulting module's name, version, offset and masked path, the app's version, and the .NET runtime's stack when the runtime logged one.
- Startup cost unchanged: the log is read only when the window asks for reports, newest first, in a few milliseconds.
Heads-up
- Windows only. On macOS and Linux nothing changes.
- An app run as
dotnet app.dllgets no native crash reports, since Windows records them underdotnet.exe. - The first launch on 1.3 looks back 7 days, so it can show a native crash from before the update.
- The reports folder now holds a
lookedfile beside the reports. - A stack overflow, or a native crash in a NativeAOT build, has no method name: look the offset up in your build's symbols.