squeevee / Addle

Pretty little drawing application and image utility
MIT License
3 stars 1 forks source link

Google Breakpad/Crashpad #8

Open squeevee opened 4 years ago

squeevee commented 4 years ago

Integrate Google Crashpad for fatal error messaging and future error-reporting features involving minidumps.

squeevee commented 4 years ago

Apparently Breakpad has been outmoded by Crashpad, which I think I knew from my research but got the terminology mixed up at some point in the meantime.

squeevee commented 4 years ago

Update: I will likely use KCrash for the moment. While Crashpad supports more platforms, and minidumps are absolutely something I would like to use in the future, these will not be priorities for a long time. Meanwhile, I am under the impression that I can use KCrash to do what I want for the time being, and it integrates much more easily with CMake. I have my eye on KDE Frameworks more than I did previously, so I could stand to get used to them anyhoo.

squeevee commented 4 years ago

Actually, Breakpad supports more platforms than Crashpad. In all, it looks like a bit of a mess and Addle's relationship to its crash handler might end up being more complicated than I had previously hoped.

squeevee commented 4 years ago

Another random note, the Breakpad documentation mentions that a minidump (read "stack trace") can be taken at any point during runtime, which could be super useful for smarter cross-thread exceptions.

squeevee commented 4 years ago

The latest: I'm pretty sure that, despite the Google's recommendation, Breakpad is probably what I want and not Crashpad. With the possible exception that Crashpad will work better on OS X, so I guess we'll cross that bridge when we get to it. I've found out that Breakpad packages are provided by Vcpkg, MSYS2, and AUR, which may make it about as easy to integrate as KCrash, so I might use it sooner than I thought