Qt OpenGL window example crash and slow behavior.
-
I am using the code from this OpenGL window example: http://qt-project.org/doc/qt-5.0/qtgui/openglwindow.html
The only thing I haven't changed is the default .pro file:
@#-------------------------------------------------Project created by QtCreator 2013-02-05T00:47:34
#-------------------------------------------------
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = untitled4
TEMPLATE = appSOURCES += main.cpp
mainwindow.cpp
openglwindow.cppHEADERS += mainwindow.h
openglwindow.hFORMS += mainwindow.ui
@
When I run the application, I see the spinning triangle.The problem is that minimizing the application crashes it with the message:
bq. Microsoft Visual C++ Runtime Library
This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more informationThis is the output:
bq. Starting D:\Documents\Code\nQt\untitled4-build-mingw32-Debug\debug\untitled4.exe...
Invalid parameter passed to C runtime function.
Invalid parameter passed to C runtime function.
Assertion failed!
Program: D:\Documents\Code\nQt\untitled4-build-mingw32-Debug\debug\untitled4.exe
File: ......\3rdparty\angle\src\libGLESv2\Framebuffer.cpp, Line 504
Expression: Framebuffer::completeness() == 0x8CD5
D:\Documents\Code\nQt\untitled4-build-mingw32-Debug\debug\untitled4.exe exited with code 3Furthermore when I drag the window or resize it, it happens incredibly slowly.
I am using the mingw version of Qt 5 in Qt Creator.
What should I do to solve these problems? -
I'm using Qt 5.0.1 / Creator 2.7.0 beta with MS2010 compiler - the same behaviour. The assertion box shows that the assert is thrown in the ANGLE portion of QT. A related issue to this is maybe
"This issue on the angle project page at Google-code":https://code.google.com/p/angleproject/issues/detail?id=388&q=completeness