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

Crashed on resume Android application with QML and OpenGL

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.2.0
    • QPA
    • None
    • Windows 7 64 bit, QtSDK 5.2.0, Qt Creator 3.0.0, GCC 4.6, Nexus 4, Android 4.3, build for armeabi (not armv7)
    • Android

      Hello! I am creating a QtQuick 1.1 application for Android, it is very laggy by default, so I had an idea to use openGL, I created a QGLWidget and used it as a viewport for QApplicationViewer
      QGLFormat format = QGLFormat(QGL::DirectRendering); // I tried also DoubleBuffer and SimpleBuffer, the same result
      format.setSampleBuffers(false);
      QGLWidget *glWidget = new QGLWidget(format);
      glWidget->setAutoFillBackground(true);
      viewer.setViewport(glWidget);
      Ok, now no lags, but now, when I hide my application (go to homescreen) and restore - it crashes with SIGSERV (11).
      I got a log:
      W/Qt (26450): ..\src\androidjnimain.cpp:687 (void updateWindow(JNIEnv*, jobject)): updateWindow: Dirty screen not implemented yet on OpenGL
      W/Adreno200-EGL(26450): <qeglDrvAPI_eglGetConfigAttrib:461>: EGL_BAD_CONFIG
      W/Adreno200-EGL(26450): <qeglDrvAPI_eglCreateWindowSurface:918>: EGL_BAD_CONFIG
      F/Qt (26450): ..\..\eglfs\qeglfswindow.cpp:185 (virtual void QEglFSWindow::resetSurface()): EGL Error : Could not create the egl surface: error = 0x3005

      It seems updateWindow is not implemented for OpenGL
      Screenshot of call stack, disassembler view and the example in the attachment

        1. 2014-01-10_000117.png
          94 kB
          Nickolay Usanov-Kornilov
        2. ogl-test.zip
          20 kB
          Nickolay Usanov-Kornilov
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            esabraha Eskil Abrahamsen Blomfeldt
            kolayuk Nickolay Usanov-Kornilov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes