Android Error (3009 (EGL_BAD_MATCH))



  • xI can not run well on Android A QML.

    I got the error.

    E / libEGL (8495) eglMakeCurrent: 534 error 3009 (EGL_BAD_MATCH)

    The example works fine when run on windows.

    This missing LIB?

    Does anyone have any idea?





  • Log build
    ….
    W/Qt ( 8495): scenegraph\coreapi\qsgmaterial.cpp:330 (virtual void QSGMaterialShader::compile()): QSGMaterialShader: Shader compilation failed:
    W/Qt ( 8495): scenegraph\coreapi\qsgmaterial.cpp:331 (virtual void QSGMaterialShader::compile()): “”
    W/Qt ( 8495): opengl\qopenglshaderprogram.cpp:1748 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( matrix ): shader program is not linked
    W/Qt ( 8495): opengl\qopenglshaderprogram.cpp:1748 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( opacity ): shader program is not linked
    W/Qt ( 8495): opengl\qopenglshaderprogram.cpp:1748 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( pixelSize ): shader program is not linked
    W/Qt ( 8495): opengl\qopenglfunctions.cpp:230 (QOpenGLFunctions::QOpenGLFunctions(QOpenGLContext*)): QOpenGLFunctions created with non-current context
    W/Qt ( 8495): scenegraph\coreapi\qsgmaterial.cpp:330 (virtual void QSGMaterialShader::compile()): QSGMaterialShader: Shader compilation failed:
    W/Qt ( 8495): scenegraph\coreapi\qsgmaterial.cpp:331 (virtual void QSGMaterialShader::compile()): “”
    W/Qt ( 8495): opengl\qopenglshaderprogram.cpp:1748 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( matrix ): shader program is not linked
    W/Qt ( 8495): opengl\qopenglshaderprogram.cpp:1748 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( textureScale ): shader program is not linked
    W/Qt ( 8495): opengl\qopenglshaderprogram.cpp:1748 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( color ): shader program is not linked
    W/Qt ( 8495): opengl\qopenglshaderprogram.cpp:1748 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( alphaMin ): shader program is not linked
    W/Qt ( 8495): opengl\qopenglshaderprogram.cpp:1748 (int QOpenGLShaderProgram::uniformLocation(const char*) const): QOpenGLShaderProgram::uniformLocation( alphaMax ): shader program is not linked
    E/libEGL ( 8495): eglMakeCurrent:534 error 3009 (EGL_BAD_MATCH)
    W/Qt ( 8495): eglconvenience\qeglplatformcontext.cpp:111 (virtual bool QEGLPlatformContext::makeCurrent(QPlatformSurface*)): QEGLPlatformContext::makeCurrent: eglError: 3009, this: 0×54de7908
    W/Qt ( 8495):
    F/libc ( 8495): Fatal signal 11 (SIGSEGV) at 0×00000004 (code=1), thread 8526 (QSGRenderThread)
    ‘org.qtproject.example.untitled2’ died.



  • The error occurs when you run:
    void MainWindow::on_pushButton_clicked()
    {
    QQuickView *view = new QQuickView;
    qDebug()<<“flavio”;
    view->setSource(QUrl(“qrc:/qml/pathview/pathview-example.qml”)); view->show();
    }


  • Lifetime Qt Champion

    Hi,

    Please don't post on multiple sub-forum

    "Duplicate":https://qt-project.org/forums/viewthread/29978/


Log in to reply
 

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