Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Capture crash reports
Forum Updated to NodeBB v4.3 + New Features

Capture crash reports

Scheduled Pinned Locked Moved General and Desktop
11 Posts 2 Posters 9.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    grastvei
    wrote on last edited by
    #1

    Is there a good library or tool to use with qt development that can capture screenshoots and stacktrace when a software crash. Then this crash report can be sent to developers as a bug report. It is useful to when debug problem that is done by other users of a software. I would like to integrate something like that in my application.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      grastvei
      wrote on last edited by
      #2

      Bugtrap is one example but it seems to integrate with visual studio and not qcreator.

      1 Reply Last reply
      0
      • raven-worxR Offline
        raven-worxR Offline
        raven-worx
        Moderators
        wrote on last edited by
        #3

        "google-breakpad":http://code.google.com/p/google-breakpad/ is a cross-platform solution (used by Mozilla products)

        --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
        If you have a question please use the forum so others can benefit from the solution in the future

        1 Reply Last reply
        0
        • G Offline
          G Offline
          grastvei
          wrote on last edited by
          #4

          I found that it is a problem to use breakpad with mingw.
          Is it true?

          1 Reply Last reply
          0
          • raven-worxR Offline
            raven-worxR Offline
            raven-worx
            Moderators
            wrote on last edited by
            #5

            "seems":http://code.google.com/p/google-breakpad/issues/detail?id=436 so... i wasn't aware of it.

            --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
            If you have a question please use the forum so others can benefit from the solution in the future

            1 Reply Last reply
            0
            • raven-worxR Offline
              raven-worxR Offline
              raven-worx
              Moderators
              wrote on last edited by
              #6

              you may also want to try "this":https://github.com/AlekSi/breakpad-qt, maybe it compiles with mingw already.

              --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
              If you have a question please use the forum so others can benefit from the solution in the future

              1 Reply Last reply
              0
              • G Offline
                G Offline
                grastvei
                wrote on last edited by
                #7

                I've tried that but it doesn't work.

                http://stackoverflow.com/questions/5225579/crash-reporting-for-mingw-applications

                I think it is going to be difficult to find a library that works with mingw.

                1 Reply Last reply
                0
                • raven-worxR Offline
                  raven-worxR Offline
                  raven-worx
                  Moderators
                  wrote on last edited by
                  #8

                  the only way i see now is, to use MSVC-Express compilers with QtCreator

                  --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
                  If you have a question please use the forum so others can benefit from the solution in the future

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    grastvei
                    wrote on last edited by
                    #9

                    http://spin.atomicobject.com/2013/01/13/exceptions-stack-traces-c/

                    I think I've to try and write a function that capture the stack myself.

                    1 Reply Last reply
                    0
                    • G Offline
                      G Offline
                      grastvei
                      wrote on last edited by
                      #10

                      When i write this test.
                      @
                      LONG WINAPI windows_exception_handler(EXCEPTION_POINTERS * ExceptionInfo)
                      {
                      fputs("Error: EXCEPTION_ACCESS_VIOLATION\n", stderr);
                      }

                      int main(int argc, char * argv[])
                      {
                      SetUnhandledExceptionFilter(windows_exception_handler);
                      }
                      @

                      It works inside qcreator that runs gdb, but not from the command line. I want the last part to work since I want to log the error that couse the program to crash.

                      1 Reply Last reply
                      0
                      • G Offline
                        G Offline
                        grastvei
                        wrote on last edited by
                        #11

                        I'm finally able to write out the addresses when a program crash (seg.fault). The last part is to generate a symbol file to be able to see where it crashed. Is there an easy way to generate that file with qmake?

                        1 Reply Last reply
                        0

                        • Login

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Users
                        • Groups
                        • Search
                        • Get Qt Extensions
                        • Unsolved