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. In win 10 I get error with popup, but programm don't crash
Forum Updated to NodeBB v4.3 + New Features

In win 10 I get error with popup, but programm don't crash

Scheduled Pinned Locked Moved Solved QML and Qt Quick
4 Posts 3 Posters 158 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.
  • M Offline
    M Offline
    Mihaill
    wrote last edited by
    #1

    Hi.
    I use win 10. I move project from Qt5 to Qt6. And in program make error:

    ASSERT: "!(max < min)" in file C:\Users\qt\work\install\include\QtCore/qminmax.h, line 25 C:\Users\qt\work\install\include\QtCore/qminmax.h: 25
    

    I see this error in system popup windows. But program don't crashed. Debuger don't stopet on this error.
    In qmake I add this:

    QT_QML_DEBUG=1
    QML_IMPORT_TRACE=1
    

    How I can find this bug?

    Christian EhrlicherC JonBJ 2 Replies Last reply
    0
    • M Offline
      M Offline
      Mihaill
      wrote last edited by
      #4

      I find error only with help analize code

      1 Reply Last reply
      0
      • M Mihaill

        Hi.
        I use win 10. I move project from Qt5 to Qt6. And in program make error:

        ASSERT: "!(max < min)" in file C:\Users\qt\work\install\include\QtCore/qminmax.h, line 25 C:\Users\qt\work\install\include\QtCore/qminmax.h: 25
        

        I see this error in system popup windows. But program don't crashed. Debuger don't stopet on this error.
        In qmake I add this:

        QT_QML_DEBUG=1
        QML_IMPORT_TRACE=1
        

        How I can find this bug?

        Christian EhrlicherC Offline
        Christian EhrlicherC Offline
        Christian Ehrlicher
        Lifetime Qt Champion
        wrote last edited by
        #2

        @Mihaill said in In win 10 I get error with popup, but programm don't crash:

        How I can find this bug?

        By using a debugger like every developer who wants to debug what's going on with his program.

        Qt Online Installer direct download: https://download.qt.io/official_releases/online_installers/
        Visit the Qt Academy at https://academy.qt.io/catalog

        1 Reply Last reply
        1
        • M Mihaill

          Hi.
          I use win 10. I move project from Qt5 to Qt6. And in program make error:

          ASSERT: "!(max < min)" in file C:\Users\qt\work\install\include\QtCore/qminmax.h, line 25 C:\Users\qt\work\install\include\QtCore/qminmax.h: 25
          

          I see this error in system popup windows. But program don't crashed. Debuger don't stopet on this error.
          In qmake I add this:

          QT_QML_DEBUG=1
          QML_IMPORT_TRACE=1
          

          How I can find this bug?

          JonBJ Offline
          JonBJ Offline
          JonB
          wrote last edited by
          #3

          @Mihaill
          As @Christian-Ehrlicher says. Assuming this comes from some call to Qt in your code, rather than it happening during internal Qt code....

          You can see the code at https://codebrowser.dev/qt6/qtbase/src/corelib/global/qminmax.h.html#25

          constexpr inline const T &qBound(const T &min, const T &val, const T &max)
          {
              Q_ASSERT(!(max < min));
              return qMax(min, qMin(max, val));
          }
          

          I do not know why you get this in Win 10 (probably not relevant), maybe they added the Q_ASSERT at Qt6?

          But program don't crashed. Debuger don't stopet on this error.

          Don't know why these do not happen on the Q_ASSERT. Maybe this, or however it gets called from QML which I do not know, is compiled not for debug and the macro is a NOOP there?

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Mihaill
            wrote last edited by
            #4

            I find error only with help analize code

            1 Reply Last reply
            0
            • M Mihaill has marked this topic as solved

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved