Crash when copying QOpenGLFunctions Core objects
-
A colleague of mine here at LKEB (LUMC) encountered an access violation when destructing objects of a class, derived from an QOpenGLFunctions Core class, in Qt 5.5.1. Now it appears that even the following simple code crashes, as I tested in Qt 5.11.1:
#include <QOpenGLFunctions_4_5_Core> void CopyCoreObjects() { { QOpenGLFunctions_4_5_Core coreObject1; { QOpenGLFunctions_4_5_Core coreObject2 = coreObject1; } // OK, calls ~QOpenGLFunctions_4_5_Core(). } // Crash! }Is this a known issue? We would suggest preventing accidental copying QOpenGLFunctions Core objects by marking the copy-constructor and the assignment-operator with C++11 "= delete".
-
I would say you're right. Please create a bug report so it can be fixed.
-
@Christian-Ehrlicher said in Crash when copying QOpenGLFunctions Core objects:
I would say you're right. Please create a bug report so it can be fixed.
Thanks Christian! I just submitted the bug report: https://bugreports.qt.io/browse/QTBUG-71422