Qt OpenGL window example crash and slow behavior.
-
wrote on 5 Feb 2013, 11:42 last edited by
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? -
wrote on 27 Feb 2013, 09:49 last edited by
I get the same problem with MS2010 compiler. any news?
-
wrote on 27 Feb 2013, 09:50 last edited by
I am now using Qt 5.0.1/Qt Creator 2.6.2 and still have problems minimizing the window.
-
wrote on 20 Mar 2013, 13:50 last edited by
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 -
wrote on 14 Sept 2013, 10:47 last edited by
Qt5.1.1 Windows MinGW & MSVC2010 32 compilers configured for OpenGL : there's no crash on minimizing but dragging the window is slow while QtQuick2 examples work fine