Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt OpenGL window example crash and slow behavior.

Qt OpenGL window example crash and slow behavior.

Scheduled Pinned Locked Moved General and Desktop
5 Posts 4 Posters 3.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    aPerfectMisterMan
    wrote on 5 Feb 2013, 11:42 last edited by
    #1

    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?

    1 Reply Last reply
    0
    • S Offline
      S Offline
      scubakid
      wrote on 27 Feb 2013, 09:49 last edited by
      #2

      I get the same problem with MS2010 compiler. any news?

      1 Reply Last reply
      0
      • S Offline
        S Offline
        scubakid
        wrote on 27 Feb 2013, 09:50 last edited by
        #3

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

        1 Reply Last reply
        0
        • B Offline
          B Offline
          bwilli
          wrote on 20 Mar 2013, 13:50 last edited by
          #4

          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

          1 Reply Last reply
          0
          • T Offline
            T Offline
            terenty
            wrote on 14 Sept 2013, 10:47 last edited by
            #5

            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

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved