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. Why will this debug error come out
Qt 6.11 is out! See what's new in the release blog

Why will this debug error come out

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 2 Posters 552 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.
  • L Offline
    L Offline
    lnyhcma
    wrote on last edited by
    #1

    22.jpg
    The program runs for a period of time may have this problem and the frequency is not high,why will this debug error come out?

    J.HilkJ 1 Reply Last reply
    0
    • L lnyhcma

      22.jpg
      The program runs for a period of time may have this problem and the frequency is not high,why will this debug error come out?

      J.HilkJ Online
      J.HilkJ Online
      J.Hilk
      Moderators
      wrote on last edited by
      #2

      @lnyhcma Apparently you have a QVector that you try to access outside it's actual size, you should fix that.

      PS:
      Posting screenshots of error messages or code is bad, posting a photo of a monitor that displays the error message is even worse!


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      L 2 Replies Last reply
      2
      • L Offline
        L Offline
        lnyhcma
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • J.HilkJ J.Hilk

          @lnyhcma Apparently you have a QVector that you try to access outside it's actual size, you should fix that.

          PS:
          Posting screenshots of error messages or code is bad, posting a photo of a monitor that displays the error message is even worse!

          L Offline
          L Offline
          lnyhcma
          wrote on last edited by
          #4

          @J-Hilk Thank you very much, l will pay attention to that next time.

          1 Reply Last reply
          1
          • J.HilkJ J.Hilk

            @lnyhcma Apparently you have a QVector that you try to access outside it's actual size, you should fix that.

            PS:
            Posting screenshots of error messages or code is bad, posting a photo of a monitor that displays the error message is even worse!

            L Offline
            L Offline
            lnyhcma
            wrote on last edited by
            #5

            @J-Hilk l cannot fix that ...The size of all mine QVector arrays has not been defined, and when l try to access them,l use like
            for (int i=0; i<QVec.size(); i++) .

            J.HilkJ 1 Reply Last reply
            0
            • L lnyhcma

              @J-Hilk l cannot fix that ...The size of all mine QVector arrays has not been defined, and when l try to access them,l use like
              for (int i=0; i<QVec.size(); i++) .

              J.HilkJ Online
              J.HilkJ Online
              J.Hilk
              Moderators
              wrote on last edited by
              #6

              @lnyhcma I suggest attaching a debugger and letting it crash and inspect the stack trace, should be possible, since the error message clearly states its a debug build.

              Should make identifying the issue easy enough


              Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


              Q: What's that?
              A: It's blue light.
              Q: What does it do?
              A: It turns blue.

              L 1 Reply Last reply
              1
              • J.HilkJ J.Hilk

                @lnyhcma I suggest attaching a debugger and letting it crash and inspect the stack trace, should be possible, since the error message clearly states its a debug build.

                Should make identifying the issue easy enough

                L Offline
                L Offline
                lnyhcma
                wrote on last edited by
                #7

                @J-Hilk OK.Thank you 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