Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-37096

Android: Toplevel QGLWidget crashes on startup

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.3.0 Beta1
    • 5.3.0 Alpha
    • GUI: OpenGL
    • None
    • Android
    • d30778538159498caad491ba1d74ed2f5bb10b0c

    Description

      Apps that consist of a toplevel QGLWidget (such as the cube example) crash on startup with 5.3.0. A QGLWidget child will work (such as the hellogl_es2 example).

      This is a minimal example that crashes with 5.3.0, but works in 5.2.1:

      #include <QApplication>
      #include <QGLWidget>

      int main(int argc, char *argv[])
      {
      QApplication a(argc, argv);
      QGLWidget w;
      w.show();

      return a.exec();
      }

      UPDATE:

      The crash is caused by QAndroidPlatformBackingStore::QAndroidPlatformBackingStore doing a static_cast<QAndroidPlatformRasterWindow *> on a QAndroidPlatformGLWindow.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tvete Paul Olav Tvete
            tvete Paul Olav Tvete
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes