Qt6.3.x/6.4.x run Example openglseries under debug mode assert trigged.
-
in Qt Creator, click left button "Welcome", search example "opengl chart", you can find the example
just open this example and run debug version, when close the window, it should be shown.
and if change code from "series->setUseOpenGL(true);" to "series->setUseOpenGL(false); ", the assertion is not shown when application closed.
21:08:30: Starting D:/Qt/Examples/Qt-6.3.1/charts/build-openglseries-Desktop_Qt_6_3_1_MSVC2019_64bit-Debug/debug/openglseries.exe...
ASSERT failure in GLWidget: "Called object is not of the correct type (class destructor may have already run)", file C:\Users\qt\work\install\include\QtCore/qobjectdefs_impl.h, line 156
21:14:35: D:/Qt/Examples/Qt-6.3.1/charts/build-openglseries-Desktop_Qt_6_3_1_MSVC2019_64bit-Debug/debug/openglseries.exe exited with code 3 -
@Zorg said in Qt6.3.x/6.4.x run Example openglseries under debug mode assert trigged.:
know how to solve?
Upgrade to a newer version.
This is due to a missing disconnect() somehwere for a pmf-style connect when the receiver already got destroyed / dtor was already run. -
@Christian-Ehrlicher I still have the same problem on qt 6.6 so I guess it hasn't been fixed yet. Any other workaround?
-
@p_Each said in Qt6.3.x/6.4.x run Example openglseries under debug mode assert trigged.:
Any other workaround?
Fix it by yourself and create a bug report.