QT/VisualStudio Assertion failed only when debug
-
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
-
@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.
-
@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
And into call stack this
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\
-
Hi,
Try forcing the backend to something else than angle.
-
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.
-
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