QT/VisualStudio Assertion failed only when debug
-
wrote on 8 Jul 2022, 14:21 last edited by
Hello in my project into Visual Studio 2019 I setting
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 createdFor 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 NDEBUGDEFINES += QT_DEPRECATED_WARNINGS NDEBUG QT_DISABLE_DEPRECATED_BEFORE=0x051200
Any ideas to solve the problem?
Why does this happen?Thanks
-
Hello in my project into Visual Studio 2019 I setting
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 createdFor 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 NDEBUGDEFINES += QT_DEPRECATED_WARNINGS NDEBUG QT_DISABLE_DEPRECATED_BEFORE=0x051200
And i Have try when compiled
Any ideas to solve the problem?
Why does this happen?Thanks
wrote on 8 Jul 2022, 14:35 last edited by@elicat
This is a runtime error, nothing compile-time. Theassert()
is in the mentionedmathutil.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.
-
wrote on 11 Jul 2022, 15:40 last edited byThis post is deleted!
-
@elicat
This is a runtime error, nothing compile-time. Theassert()
is in the mentionedmathutil.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.
wrote on 12 Jul 2022, 08:06 last edited by elicat 7 Dec 2022, 08:15@JonB
I followed your advice but found nothing usefulWhen 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
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\
-
wrote on 13 Jul 2022, 07:39 last edited by
Can anyone help me?
-
Hi,
Try forcing the backend to something else than angle.
-
wrote on 14 Jul 2022, 06:54 last edited by
@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
-
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.
-
wrote on 17 Aug 2022, 11:08 last edited by
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 FailedI 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