-
User Story
-
Resolution: Fixed
-
Not Evaluated
-
Qt Creator 4.13.0
-
None
There is currently no (automated) way to give you guys feedback on how often QtCreator is crashing. For this the FOSS sentry.io would be ideal because it offers a nice way to view crashes (also crashdumps to download), events and release management. It also possible to self host it for free.
A integration into QtCreator (with vcpkg) is really easy:
https://gitlab.com/kelteseth/ScreenPlay/-/commit/582c6af744e98e0b552b074b9ca07bafcc475e58
- vcpkg install sentry-native
sentry_options_t* options = sentry_options_new();
sentry_options_set_dsn(options, "https://YOUR_ID_HERE@o428218.ingest.sentry.io/5373419");
QString executableSuffix;
#ifdef Q_OS_WIN
executableSuffix = ".exe";
#endif
const QString appPath = QGuiApplication::applicationDirPath();
sentry_options_set_handler_path(options, QString(appPath + "/crashpad_handler" + executableSuffix).toStdString().c_str());
sentry_options_set_database_path(options, appPath.toStdString().c_str());
const int sentryInitStatus = sentry_init(options);
if (sentryInitStatus != 0) {
qWarning() << "Unable to inti sentry crashhandler with statuscode: " << sentryInitStatus;
}