Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-24638

Add sentry.io support for crashdumps and cashanalytics

    XMLWordPrintable

Details

    • User Story
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 4.13.0
    • All Other Issues
    • None
    • All

    Description

      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

       

      1. 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;
              }
      
      
      

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kkohne Kai Köhne
            kelteseth Elias Steurer
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes