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 = app

    SOURCES += main.cpp
    mainwindow.cpp
    openglwindow.cpp

    HEADERS += mainwindow.h
    openglwindow.h

    FORMS += 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 information

    This 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 3

    Furthermore 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 get the same problem with MS2010 compiler. any news?



  • I am now using Qt 5.0.1/Qt Creator 2.6.2 and still have problems minimizing the window.



  • 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



  • 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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.