Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt
  • Unsolved
Collapse
qtws26_logo

The Qt Event of the Year: Qt World Summit 2026

Save Your Spot >
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Why is my QT Application breaking in disassembly code on debug start?
Qt 6.12 LTS is out! See what's new in the release blog

Why is my QT Application breaking in disassembly code on debug start?

Scheduled Pinned Locked Moved Unsolved General and Desktop
19 Posts 6 Posters 6.2k 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.
  • hskoglundH hskoglund

    If you have an anti-virus app running, try disable it.

    J Offline
    J Offline
    jabroni
    wrote on last edited by
    #6

    @hskoglund Unfortunately no luck. I only have standard windows anti virus protection. I disabled firewall and all settings under "Virus & Threat Protection Settings", amongst other security settings.

    1 Reply Last reply
    0
    • hskoglundH Online
      hskoglundH Online
      hskoglund
      wrote on last edited by
      #7

      And if you try another project, for example Application in Examples, I'm guessing you get the same crash?

      J 1 Reply Last reply
      0
      • hskoglundH hskoglund

        And if you try another project, for example Application in Examples, I'm guessing you get the same crash?

        J Offline
        J Offline
        jabroni
        wrote on last edited by
        #8

        @hskoglund Yep - Just tried with QT 5.14.1 and 5.15.2 and both crashed.

        C 1 Reply Last reply
        0
        • J jabroni

          @hskoglund Yep - Just tried with QT 5.14.1 and 5.15.2 and both crashed.

          C Offline
          C Offline
          ChrisW67
          wrote on last edited by
          #9

          @jabroni What is the stack backtrace when the failure occurs. The original error message is from attempting to access memory that does not belong to your process or accessing through a null pointer. In this case the address is in EAX and is 0xbaadf00c (which looks suspiciously like a common flag value 0xbaadf00d (bad food)).

          If you put a breakpoint on the first line inside main() does the program get that far?

          What non-Qt libraries, ActiveX controls etc are linked to your application?

          J 1 Reply Last reply
          0
          • C ChrisW67

            @jabroni What is the stack backtrace when the failure occurs. The original error message is from attempting to access memory that does not belong to your process or accessing through a null pointer. In this case the address is in EAX and is 0xbaadf00c (which looks suspiciously like a common flag value 0xbaadf00d (bad food)).

            If you put a breakpoint on the first line inside main() does the program get that far?

            What non-Qt libraries, ActiveX controls etc are linked to your application?

            J Offline
            J Offline
            jabroni
            wrote on last edited by jabroni
            #10

            @ChrisW67 I'll just focus on the main.ccp file in the Applications example project now as that should be what everyone else has.

            Just as my program, the "crash" occurrs once the .show() function is called. In this case it's mainWin.Show(). Stepping over/into that fails to disassembler:
            5fb60916-90e6-4546-aa35-e2f959be7cc3-image.png

            and this is the stack trace:
            e9f1b151-067b-4bdc-9b22-d85dd2daa4e8-image.png

            Also, in my main application I am developing, the only external library that is used is QWT 6.1.3 (as far as I am aware - please let me know if there's a way I can check this). However, even with the Application example project which is 80 lines of code the same error occurs.

            1 Reply Last reply
            0
            • hskoglundH Online
              hskoglundH Online
              hskoglund
              wrote on last edited by
              #11

              Just guessing, but are you using OneDrive for running Qt?

              J 1 Reply Last reply
              0
              • hskoglundH hskoglund

                Just guessing, but are you using OneDrive for running Qt?

                J Offline
                J Offline
                jabroni
                wrote on last edited by
                #12

                @hskoglund I do have OneDrive enabled, however my QT application runs out of my local git folder, and QT is installed in C:\Qt.

                1 Reply Last reply
                0
                • hskoglundH Online
                  hskoglundH Online
                  hskoglund
                  wrote on last edited by
                  #13

                  Ok. And just to clarify, if you rebuild the Application example in Release mode it does not crash, it only crashes in Debug mode?

                  J 1 Reply Last reply
                  0
                  • hskoglundH hskoglund

                    Ok. And just to clarify, if you rebuild the Application example in Release mode it does not crash, it only crashes in Debug mode?

                    J Offline
                    J Offline
                    jabroni
                    wrote on last edited by jabroni
                    #14

                    @hskoglund So:

                    Release Mode
                    Start with debugging = same crash
                    Start with no debugging = no crash

                    Debug mode
                    Same as above

                    So it looks like debug run is the issue here I think.

                    And these are the buttons I am referring to when I say "start with debugging":
                    65760f3c-cf7d-460e-b2ba-eea4d69ace7d-image.png

                    1 Reply Last reply
                    0
                    • hskoglundH Online
                      hskoglundH Online
                      hskoglund
                      wrote on last edited by
                      #15

                      Maybe you can just tick the checkbox to ignore those breakpoints:
                      Screenshot 2024-03-25 at 06.07.05.png

                      J 1 Reply Last reply
                      0
                      • hskoglundH hskoglund

                        Maybe you can just tick the checkbox to ignore those breakpoints:
                        Screenshot 2024-03-25 at 06.07.05.png

                        J Offline
                        J Offline
                        jabroni
                        wrote on last edited by
                        #16

                        @hskoglund well okay that omits that error from startup haha. Which solves that problem, however if I enter a breakpoint during debug runtime of my application it breaks into disassembler code:

                                ntdll!DbgBreakPoint:
                        0x772c8c00                   int     3
                        0x772c8c01  <+    1>         ret
                        0x772c8c02  <+    2>         int     3
                        
                        J 1 Reply Last reply
                        0
                        • J jabroni

                          @hskoglund well okay that omits that error from startup haha. Which solves that problem, however if I enter a breakpoint during debug runtime of my application it breaks into disassembler code:

                                  ntdll!DbgBreakPoint:
                          0x772c8c00                   int     3
                          0x772c8c01  <+    1>         ret
                          0x772c8c02  <+    2>         int     3
                          
                          J Offline
                          J Offline
                          jabroni
                          wrote on last edited by
                          #17

                          @jabroni anyone have anything extra on this? really not sure what my options are here :\

                          1 Reply Last reply
                          0
                          • N Offline
                            N Offline
                            ngocanhnu
                            wrote on last edited by
                            #18

                            @jabroni Hi, I've met same issue with you.
                            But not as your case, my code have a problem with "tr" function when using with static variable.
                            I fix that follow the guide here https://forum.qt.io/topic/33568/qt-tr-not-working-if-i-am-using-in-static-member
                            Hope it can help you.

                            J 1 Reply Last reply
                            0
                            • N ngocanhnu

                              @jabroni Hi, I've met same issue with you.
                              But not as your case, my code have a problem with "tr" function when using with static variable.
                              I fix that follow the guide here https://forum.qt.io/topic/33568/qt-tr-not-working-if-i-am-using-in-static-member
                              Hope it can help you.

                              J Offline
                              J Offline
                              jabroni
                              wrote on last edited by
                              #19

                              @ngocanhnu I don't think that's quite the same problem, but thank you.

                              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
                              • Unsolved