Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. QT/VisualStudio Assertion failed only when debug
Forum Updated to NodeBB v4.3 + New Features

QT/VisualStudio Assertion failed only when debug

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
9 Posts 3 Posters 965 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.
  • elicatE Offline
    elicatE Offline
    elicat
    wrote on last edited by
    #1

    Hello in my project into Visual Studio 2019 I setting
    alt text

    And although apparently i have not done anything new but just recompiled the project, when i debug i get this error
    I specify that I have not used any assertions in the code created

    alt text

    For now, I'd be content to disable it to proceed with the work in debug mode but everything I've tried doesn't seem to work.
    I have put into file.PRO NDEBUG

    DEFINES += QT_DEPRECATED_WARNINGS NDEBUG  QT_DISABLE_DEPRECATED_BEFORE=0x051200
    

    And i Have try when compiled
    alt text

    Any ideas to solve the problem?
    Why does this happen?

    Thanks

    JonBJ 1 Reply Last reply
    0
    • elicatE elicat

      Hello in my project into Visual Studio 2019 I setting
      alt text

      And although apparently i have not done anything new but just recompiled the project, when i debug i get this error
      I specify that I have not used any assertions in the code created

      alt text

      For now, I'd be content to disable it to proceed with the work in debug mode but everything I've tried doesn't seem to work.
      I have put into file.PRO NDEBUG

      DEFINES += QT_DEPRECATED_WARNINGS NDEBUG  QT_DISABLE_DEPRECATED_BEFORE=0x051200
      

      And i Have try when compiled
      alt text

      Any ideas to solve the problem?
      Why does this happen?

      Thanks

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

      @elicat
      This is a runtime error, nothing compile-time. The assert() is in the mentioned mathutil.h file.

      Rebuild from clean/scratch/delete everything generated. Run from VS. Press the first button on that message box. Find the stack trace window in VS. Look at the call stack. See where the faulting code has been called from, diagnose the problem.

      elicatE 1 Reply Last reply
      0
      • elicatE Offline
        elicatE Offline
        elicat
        wrote on last edited by
        #3
        This post is deleted!
        1 Reply Last reply
        0
        • JonBJ JonB

          @elicat
          This is a runtime error, nothing compile-time. The assert() is in the mentioned mathutil.h file.

          Rebuild from clean/scratch/delete everything generated. Run from VS. Press the first button on that message box. Find the stack trace window in VS. Look at the call stack. See where the faulting code has been called from, diagnose the problem.

          elicatE Offline
          elicatE Offline
          elicat
          wrote on last edited by elicat
          #4

          @JonB
          I followed your advice but found nothing useful

          When I build program into debug i have this error in windows output

          Debug Error!
          Program: ...\OneDrive - ELICAT SRL - 03978700288\GrareGUI\GrareGUI_dc.exe
          abort() has been called
          

          And this in QT console

          . . .
          Assertion failed: bits != 0u, file C:\Users\qt\work\qt\qtbase\src\3rdparty\angle\src\common/mathutil.h, line 927
          

          And into call stack this
          alt text

          Under these conditions I have no reference to understand the problem to be solved

          The other strange thing is that there is no path

          C:\Users\qt\
          
          1 Reply Last reply
          0
          • elicatE Offline
            elicatE Offline
            elicat
            wrote on last edited by
            #5

            Can anyone help me?

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Hi,

              Try forcing the backend to something else than angle.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              elicatE 1 Reply Last reply
              0
              • SGaistS SGaist

                Hi,

                Try forcing the backend to something else than angle.

                elicatE Offline
                elicatE Offline
                elicat
                wrote on last edited by
                #7

                @SGaist said in QT/VisualStudio Assertion failed only when debug:

                Try forcing the backend to something else than angle.

                Hello, I'm sorry but I didn't understand what it means

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Check the Graphics Drivers part in the Windows platform documentation. It explains the various possible backends as well as how to force the selection in your application.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • elicatE Offline
                    elicatE Offline
                    elicat
                    wrote on last edited by
                    #9

                    Good morning
                    My project uses QtWebEngine.
                    I don't think it's a windows graphics setting.
                    Many forms are opened without errors even in debug but to some forms at the end of their loading the Assertion problem is issued.

                    A specific form, opens without problems and then clicking on a tabs that opens a section of the form (therefore a jquery / boostrap action) produces the assertiveness error.

                    The error reports the following library:
                    libGLESv2.dll Assertion Failed

                    I also tried to install a new version of Qt but I had other problems that led me to open another ticket
                    Setting up Visual Studio 2019 for creating QT6 projects

                    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