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. Unexpected CDB Exit
Forum Updated to NodeBB v4.3 + New Features

Unexpected CDB Exit

Scheduled Pinned Locked Moved Unsolved General and Desktop
msvc2015qtcreatorqt 5.764bitcdb
30 Posts 22 Posters 37.6k Views 2 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.
  • BlacktempelB Offline
    BlacktempelB Offline
    Blacktempel
    wrote on last edited by
    #1

    Hello,

    a little ago I've deinstalled Qt 5.6, removed possible leftover directories and installed the newest version 5.7 (Version: Visual Studio 2015 - 64bit)
    Expecting to hit a few difficulties, I had an issue right away, which I got fixed after deleting the toolchains.xml file as suggested in this post.

    Now my problem is, that when trying to execute the code in debug mode - debug it (default hotkey F5) - I get instantly a very descriptive error.
    "Unexpected CDB Exit"
    "The CDB process terminated."
    Running it works fine, debugging not at all.

    I have a totally empty project (default files) without changes - Qt Widgets.

    I went through previous posts and google and can't seem to figure out a solution for this error.

    alt text

    Settings - Options:
    Kits - Desktop Qt 5.7.0 MSVC2015_64bit

    Qt Versions - VS'15 - 64bit

    Compilers Auto-detected from 12.0 and 14.0

    (x86)
    (amd64)
    (x86_amd64)
    (x86_arm)
    (amd_64_arm)
    

    Debuggers Auto-detected:

    C:\Program Files (x86)\Windows Kits\8.1\Debuggers\x86\cdb.exe - and x64
    C:\Program Files (x86)\Windows Kits\10\Debuggers\x86\cdb.exe - and x64
    

    CMake Auto-detected @Default installation path

    I hope someone's able to help me with this issue.

    1 Reply Last reply
    2
    • D Offline
      D Offline
      dannox
      wrote on last edited by
      #2

      Hi,
      I have the same error. Did you get a solution for that?

      Daniele Giunchi
      Framework Architect
      Software Developer

      BlacktempelB 1 Reply Last reply
      -1
      • M Offline
        M Offline
        mcleary
        wrote on last edited by
        #3

        I was getting this error yesterday. I found the the CDB version didn't match with the linked UCRT.

        I'm using Qt 5.6 to develop my application I found that I need to manually link against ucrt like this

        INCLUDEPATH += "C:/Program Files (x86)/Windows Kits/10/Include/10.0.10586.0/ucrt"
        LIBS += -L"C:/Program Files (x86)/Windows Kits/10/Lib/10.0.10586.0/ucrt/x64"
        

        And I found that the CDB version need to match the ucrt version. So I am using CDB 10.0.10586.0 now and it is working.

        DiracsbracketD 1 Reply Last reply
        0
        • D dannox

          Hi,
          I have the same error. Did you get a solution for that?

          BlacktempelB Offline
          BlacktempelB Offline
          Blacktempel
          wrote on last edited by
          #4

          @dannox I did not find a fix for it yet, but I'm going to try @mcleary 's solution and reply if it worked.

          1 Reply Last reply
          0
          • HashTagJFH Offline
            HashTagJFH Offline
            HashTagJF
            wrote on last edited by
            #5

            I have the same problem. I tried @mcleary 's solution but unfortunately it didn't work for me.

            1 Reply Last reply
            0
            • B Offline
              B Offline
              bitlixi
              wrote on last edited by
              #6

              I got the same error form. Finally found that some DLL needed is missing. You could click the exe file in DEBUG to find which DLL is missing.

              A N 2 Replies Last reply
              6
              • B bitlixi

                I got the same error form. Finally found that some DLL needed is missing. You could click the exe file in DEBUG to find which DLL is missing.

                A Offline
                A Offline
                amfasis
                wrote on last edited by
                #7

                @bitlixi thanks for the hint, I indeed checked the .exe in debug folder. Turned out my Qt/bin folder had magically forgot Qt5OpenGLd.dll

                1 Reply Last reply
                0
                • N Offline
                  N Offline
                  Narada
                  wrote on last edited by
                  #8

                  I had the same problem. I had incorrectly picked the x86 cdb version instead of the x64 version in configuring the kit.

                  DiracsbracketD 1 Reply Last reply
                  0
                  • M mcleary

                    I was getting this error yesterday. I found the the CDB version didn't match with the linked UCRT.

                    I'm using Qt 5.6 to develop my application I found that I need to manually link against ucrt like this

                    INCLUDEPATH += "C:/Program Files (x86)/Windows Kits/10/Include/10.0.10586.0/ucrt"
                    LIBS += -L"C:/Program Files (x86)/Windows Kits/10/Lib/10.0.10586.0/ucrt/x64"
                    

                    And I found that the CDB version need to match the ucrt version. So I am using CDB 10.0.10586.0 now and it is working.

                    DiracsbracketD Offline
                    DiracsbracketD Offline
                    Diracsbracket
                    wrote on last edited by
                    #9

                    @mcleary
                    Just for info: using -L before the library path string is wrong on my Windows 7 system with Qt 5.9.1.

                    1 Reply Last reply
                    0
                    • N Narada

                      I had the same problem. I had incorrectly picked the x86 cdb version instead of the x64 version in configuring the kit.

                      DiracsbracketD Offline
                      DiracsbracketD Offline
                      Diracsbracket
                      wrote on last edited by Diracsbracket
                      #10
                      This post is deleted!
                      1 Reply Last reply
                      0
                      • Christoph SchaeferC Offline
                        Christoph SchaeferC Offline
                        Christoph Schaefer
                        wrote on last edited by
                        #11

                        I had the same unexpected CDB Exit since Qt Creator version 4.3. In Qt Creator 4.2.2 CDB works just fine.
                        The solution for me was uninstalling Python 2.7. It is still a work around for me, because I need Python 2.7 for compiling Qt WebEngine from source. Does somebody have a working solution for having Python 2.7 and Qt Creator 4.5 and CDB installed in parallel?

                        1 Reply Last reply
                        0
                        • L Offline
                          L Offline
                          Lio2609
                          wrote on last edited by
                          #12

                          I have the same problem since the big windows 10 update this week.
                          I have not find a solution yet.
                          If someone have, it would be great to share. Thanks.

                          1 Reply Last reply
                          0
                          • mrjjM Offline
                            mrjjM Offline
                            mrjj
                            Lifetime Qt Champion
                            wrote on last edited by
                            #13

                            Hi
                            Just noticed i have same issue
                            alt text

                            Thank you windows update \o/

                            1 Reply Last reply
                            0
                            • S Offline
                              S Offline
                              Sriep
                              wrote on last edited by Sriep
                              #14

                              Yes me too.

                              I switched from 4.5.0-rc1 to 4.5.0 and it went away. Not sure if that was a coincidence.

                              mrjjM 1 Reply Last reply
                              0
                              • S Sriep

                                Yes me too.

                                I switched from 4.5.0-rc1 to 4.5.0 and it went away. Not sure if that was a coincidence.

                                mrjjM Offline
                                mrjjM Offline
                                mrjj
                                Lifetime Qt Champion
                                wrote on last edited by
                                #15

                                @Sriep
                                I reinstalled Qt and it also worked again.

                                L 1 Reply Last reply
                                0
                                • mrjjM mrjj

                                  @Sriep
                                  I reinstalled Qt and it also worked again.

                                  L Offline
                                  L Offline
                                  Lio2609
                                  wrote on last edited by
                                  #16

                                  @mrjj
                                  i just ran the " repare " function of Visual studio 2017 installer and it worked again too.

                                  1 Reply Last reply
                                  2
                                  • D Offline
                                    D Offline
                                    Destructor
                                    wrote on last edited by
                                    #17

                                    My solution of this issue:
                                    I've check my exe by Depends, and... I miss some dll, linked by .lib!
                                    Then I put this DLL into System32 - et voila! CDB work now.

                                    jsulmJ 1 Reply Last reply
                                    0
                                    • D Destructor

                                      My solution of this issue:
                                      I've check my exe by Depends, and... I miss some dll, linked by .lib!
                                      Then I put this DLL into System32 - et voila! CDB work now.

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

                                      @Destructor You should not put them into system32 directory - put them in the same directory where you exe is.

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

                                      1 Reply Last reply
                                      3
                                      • W Offline
                                        W Offline
                                        WriterBloke
                                        wrote on last edited by
                                        #19

                                        @bitlixi's advice worked for me

                                        1 Reply Last reply
                                        1
                                        • xenovasX Offline
                                          xenovasX Offline
                                          xenovas
                                          wrote on last edited by
                                          #20

                                          same problem.. could someone provide the steps in order to overcome this issue ?

                                          @xen0vas

                                          mrjjM 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