Details
-
Bug
-
Resolution: Invalid
-
P1: Critical
-
None
-
5.4.1
-
None
-
Android 4.4+
OpenGL ES 3
EGL 1.4
Description
QtQuick2 application fails to create EGL context on Android devices with OpenGL ES 3. The application works fine on several OpenGL ES 2 Android devices such as Samsung Galaxy Trend (and it also works on Windows OpenGL 2). However, it crashes on all OpenGL ES 3 devices that I have tested so far, e.g. Samsung Galaxy S4.
Error EGL_BAD_ATTRIBUTE is thrown during QEGLPlatformContext::init, as can be seen in the log data below:
I/Adreno-EGL(11370): <qeglDrvAPI_eglInitialize:381>: EGL 1.4 QUALCOMM build: (CL3869936)
I/Adreno-EGL(11370): OpenGL ES Shader Compiler Version: 17.01.11.SPL
I/Adreno-EGL(11370): Build Date: 01/17/14 Fri
I/Adreno-EGL(11370): Local Branch:
I/Adreno-EGL(11370): Remote Branch:
I/Adreno-EGL(11370): Local Patches:
I/Adreno-EGL(11370): Reconstruct Branch:
W/Adreno-EGL(11370): <qeglDrvAPI_eglCreateContext:2391>: EGL_BAD_ATTRIBUTE
W/TheTower2(11370): (null):0 ((null)): QEGLPlatformContext::init: eglError: 3004, this: 0x7c813a30
W/TheTower2(11370):
F/TheTower2(11370): (null):0 ((null)): Failed to create EGL context for format QSurfaceFormat(version 2.0, options QFlags(0x2), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize 8, stencilBufferSize 8, samples 0, swapBehavior 2, swapInterval 1, profile 0)
F/libc (11370): Fatal signal 6 (SIGABRT) at 0x00002c6a (code=-6), thread 11567 (rge.carbontower)