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. Application crashes when built in debug mode. Runs fine under release and profile

Application crashes when built in debug mode. Runs fine under release and profile

Scheduled Pinned Locked Moved Unsolved General and Desktop
15 Posts 3 Posters 2.1k Views
  • 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.
  • S saa_

    When I run the program under debugger, I get an error dialog saying
    "The CDB process terminated"
    I use MSVC 32-bit compiler and debugger is auto detected under kits

    JonBJ Offline
    JonBJ Offline
    JonB
    wrote on last edited by JonB
    #4

    @saa_
    I know nothing about debugging Qt apps under Windows. From what you write, I would probably start by trying to compile & debug a standalone, simple Qt program to verify that debugging with CDB works at all.

    Also probably put a qDebug() statement as the very first line in your faulting application's main() to see whether you get as far as executing the first line or whether the issue/crash comes before you even get going.

    S 1 Reply Last reply
    0
    • JonBJ JonB

      @saa_
      I know nothing about debugging Qt apps under Windows. From what you write, I would probably start by trying to compile & debug a standalone, simple Qt program to verify that debugging with CDB works at all.

      Also probably put a qDebug() statement as the very first line in your faulting application's main() to see whether you get as far as executing the first line or whether the issue/crash comes before you even get going.

      S Offline
      S Offline
      saa_
      wrote on last edited by
      #5

      @JonB thanks for the suggestions

      I put a qDebug statement at the first line and the program crahses before the first line. I tested CDB on another application where it worked fine

      JonBJ 1 Reply Last reply
      0
      • S saa_

        @JonB thanks for the suggestions

        I put a qDebug statement at the first line and the program crahses before the first line. I tested CDB on another application where it worked fine

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by JonB
        #6

        @saa_ said in Application crashes when built in debug mode. Runs fine under release and profile:

        I put a qDebug statement at the first line and the program crahses before the first line.

        Then I'm not sure debugging is going to tell you much. Since you are 32-bit I believe you compiled all Qt yourself, I would look at that, maybe try to resolve that warning. See if you can see any difference between the machine where it works and the one where it does not, e.g. does one of them have another version of Qt on it/from the past? Message sounds potentially as though it's not picking up the right thing from the right place, possibly. If you can in your faulting application, comment out any & all stuff to do with Qt5Ax temporarily and see if it works OK (or at least gets into main() correctly) without, then you know that is somehow the issue.

        S 1 Reply Last reply
        0
        • JonBJ JonB

          @saa_ said in Application crashes when built in debug mode. Runs fine under release and profile:

          I put a qDebug statement at the first line and the program crahses before the first line.

          Then I'm not sure debugging is going to tell you much. Since you are 32-bit I believe you compiled all Qt yourself, I would look at that, maybe try to resolve that warning. See if you can see any difference between the machine where it works and the one where it does not, e.g. does one of them have another version of Qt on it/from the past? Message sounds potentially as though it's not picking up the right thing from the right place, possibly. If you can in your faulting application, comment out any & all stuff to do with Qt5Ax temporarily and see if it works OK (or at least gets into main() correctly) without, then you know that is somehow the issue.

          S Offline
          S Offline
          saa_
          wrote on last edited by
          #7

          @JonB
          Thanks for the help. I will try and comment out the stuff with Qt5Ax and see what that leads to.
          I did not compile QT myself, I was just using 32-bit compiler.

          JonBJ 1 Reply Last reply
          0
          • S saa_

            @JonB
            Thanks for the help. I will try and comment out the stuff with Qt5Ax and see what that leads to.
            I did not compile QT myself, I was just using 32-bit compiler.

            JonBJ Offline
            JonBJ Offline
            JonB
            wrote on last edited by
            #8

            @saa_ said in Application crashes when built in debug mode. Runs fine under release and profile:

            I did not compile QT myself, I was just using 32-bit compiler.

            ? I don't use Qt under Windows, but I looked around and found references stating that Qt do not release Windows 32-bit built versions...? I refer, for example, to @jsulm's https://forum.qt.io/topic/95823/qt5-32-bit-msvc-2017/2

            There are no official Qt MSVC 32bit builds. If you really need one you will need to build Qt by yourself.

            Maybe you're using MSVC 2015 and that works, I don't know.

            S 1 Reply Last reply
            0
            • JonBJ JonB

              @saa_ said in Application crashes when built in debug mode. Runs fine under release and profile:

              I did not compile QT myself, I was just using 32-bit compiler.

              ? I don't use Qt under Windows, but I looked around and found references stating that Qt do not release Windows 32-bit built versions...? I refer, for example, to @jsulm's https://forum.qt.io/topic/95823/qt5-32-bit-msvc-2017/2

              There are no official Qt MSVC 32bit builds. If you really need one you will need to build Qt by yourself.

              Maybe you're using MSVC 2015 and that works, I don't know.

              S Offline
              S Offline
              saa_
              wrote on last edited by
              #9

              @JonB
              I should clarify, my machine is 64-bit, I just installed QT IDE and selected MSVC 32-bit and 64-bit compiler. I have just been working with 32-bit compiler. I have now tried the 64-bit compiler crashes regardless of being in debug or profile mode.

              jsulmJ 1 Reply Last reply
              0
              • S saa_

                @JonB
                I should clarify, my machine is 64-bit, I just installed QT IDE and selected MSVC 32-bit and 64-bit compiler. I have just been working with 32-bit compiler. I have now tried the 64-bit compiler crashes regardless of being in debug or profile mode.

                jsulmJ Offline
                jsulmJ Offline
                jsulm
                Lifetime Qt Champion
                wrote on last edited by
                #10

                @saa_ What Qt version did you install? Qt Company does not provide official 32bit builds for recent Qt versions. So, I guess you have an old Qt version.

                https://forum.qt.io/topic/113070/qt-code-of-conduct

                S 1 Reply Last reply
                1
                • jsulmJ jsulm

                  @saa_ What Qt version did you install? Qt Company does not provide official 32bit builds for recent Qt versions. So, I guess you have an old Qt version.

                  S Offline
                  S Offline
                  saa_
                  wrote on last edited by
                  #11

                  @jsulm
                  I have version 5.15.2

                  jsulmJ 1 Reply Last reply
                  0
                  • S saa_

                    @jsulm
                    I have version 5.15.2

                    jsulmJ Offline
                    jsulmJ Offline
                    jsulm
                    Lifetime Qt Champion
                    wrote on last edited by
                    #12

                    @saa_ Then you installed 64bit version

                    https://forum.qt.io/topic/113070/qt-code-of-conduct

                    S 1 Reply Last reply
                    1
                    • jsulmJ jsulm

                      @saa_ Then you installed 64bit version

                      S Offline
                      S Offline
                      saa_
                      wrote on last edited by
                      #13

                      @jsulm
                      So I should install an earlier version if I want support for 32 bit. But do you think this relates to the problem 32-bit compiler profile and release mode works and using 64-bit compiler no build version works?

                      jsulmJ 1 Reply Last reply
                      0
                      • S saa_

                        @jsulm
                        So I should install an earlier version if I want support for 32 bit. But do you think this relates to the problem 32-bit compiler profile and release mode works and using 64-bit compiler no build version works?

                        jsulmJ Offline
                        jsulmJ Offline
                        jsulm
                        Lifetime Qt Champion
                        wrote on last edited by
                        #14

                        @saa_ Actually I was wrong: using online installer you can still install 32bit Qt builds of Qt5. There are no 32bit builds for Qt6 anymore.

                        https://forum.qt.io/topic/113070/qt-code-of-conduct

                        S 1 Reply Last reply
                        0
                        • jsulmJ jsulm

                          @saa_ Actually I was wrong: using online installer you can still install 32bit Qt builds of Qt5. There are no 32bit builds for Qt6 anymore.

                          S Offline
                          S Offline
                          saa_
                          wrote on last edited by
                          #15

                          @jsulm
                          Ah ok, but thanks for the help. I think I will try and reinstall everything, maybe even restore my machine and try again

                          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