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

QT Application breaking in disassembly code on debug start

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Not Evaluated
    • None
    • Qt Creator 4.11.0, Qt Creator 12.0.2
    • Debugger
    • None
    • Windows 11
    • Windows

    Description

      My QT application has been running fine on my Windows 11 machine for almost two years since I took over development for it. Recently what's happened is that when I start the program in debug mode, it first breaks in disassembly code with the following exception trigger pop up message:

       

      The inferior stopped because it triggered an exception.
      Stopped in thread 0 by: Exception at 0x772a1fdf, code: 0xc0000005: read access violation at: 0xbaadf00c, flags=0x0 (first chance).

      The disassembler stops here:

       

      Running the code after this exception is triggered launches the program, but the program will occasionally break in disassembler again and crash.

       

      This error occurs when the `.show()` member function is called. If I place a breakpoint at the start of main, it will continue fine until the `.show()` is called.

       

      I am compiling with MSVC and I've tried a number of different compilers and have tried QT versions 5.2.0, 5.14.1, and 5.15.2 and all produce the same error on Windows 11. I have also tried different combinations of Windows SDK packages, and all produce the same result.  I have tried VS Build tools 2015, 2017, and 2019 with no change. 

      I ended up installing Windows 10 on another machine and ran the setup with QT 5.14.1, MSVC compiler 15.9.28307.2094, and Windows 10 SDK 10.0.17763.132 where it runs as expected with no problems.

      This one has really confused me. 

      QT Setup on my Win 11 machine:

       

       

      As a sanity check, I created a new QT test desktop application, and even running the base code that is provided by default the exact same error occurs:

      #include "mainwindow.h"
      
      #include <QApplication>
      
      int main(int argc, char *argv[])
      {
          QApplication a(argc, argv);
          MainWindow w;
          w.show();
          return a.exec();
      }

      This is the "About" window in my QT Creator 5.14.1 setup:

       

      and my QT 5.15.2 setup:

       

      Attachments

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

        Activity

          People

            davschul David Schulz
            cameronk Cameron Kordy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes