In win 10 I get error with popup, but programm don't crash
-
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?
-
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?
@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.
-
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?
@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? -