[Android-development] Qt QML not running in Android Emulator: eglSurfaceAttrib not implemented

stefanbn at t-online.de stefanbn at t-online.de
Thu Aug 18 22:50:23 CEST 2016


Hello all,

I have to bring this issue up again :-( On my newly set up windows PC the Android emulator problem with Qt QML applications remains and I searched all the Internet without coming any further.  

I'm developing on Windows 10, Intel i7, Qt 5.7 and a ATI Radeon HD 7700. I use the most recent versions for Ant, Android NDK and SDK. I use Android Arm7 and x86 with Intel HXVA (but also tried different versions), also I tried different SDK Levels: 19, 21, 22 ... all result in the same errors for all Qt QML Examples that come with Qt (here for the QML Caluclator example in Genymotion):
 
[..]
/libEGL  ( 2474): loaded /system/lib/egl/libEGL_emulation.so
D/libEGL  ( 2474): loaded /system/lib/egl/libGLESv1_CM_emulation.so
D/libEGL  ( 2474): loaded /system/lib/egl/libGLESv2_emulation.so
D/        ( 2474): HostConnection::get() New Host Connection established 0xe1916120, tid 2492
I/OpenGLRenderer( 2474): Initialized EGL, version 1.4
D/OpenGLRenderer( 2474): Enabling debug mode 0
W/EGL_emulation( 2474): eglSurfaceAttrib not implemented
W/OpenGLRenderer( 2474): Failed to set EGL_SWAP_BEHAVIOR on surface 0xe1919220, error=EGL_SUCCESS
D/        ( 2474): HostConnection::get() New Host Connection established 0xe0ff8340, tid 2495
W/EGL_emulation( 2474): eglSurfaceAttrib not implemented
W/OpenGLRenderer( 2474): Failed to set EGL_SWAP_BEHAVIOR on surface 0xe1919220, error=EGL_SUCCESS
D/        ( 2474): HostConnection::get() New Host Connection established 0xeb9aa9a0, tid 2498
W/libcalqlatr( 2474): (null):0 ((null)): QOpenGLShader::compile(Vertex): Vertex shader failed to compile with the following errors:
W/libcalqlatr( 2474): ERROR: 0:2: error(#101) Macro redefined: lowp
W/libcalqlatr( 2474): ERROR: 0:3: error(#101) Macro redefined: mediump
W/libcalqlatr( 2474): ERROR: 0:4: error(#101) Macro redefined: highp
[..]
 
The apps always show just a white screen on the emulator on both the Android Studio Emulator as well as Genymotion!
(The apps work in the LeapDroid emulator, but this one only supports tablet emulation)
 
I googled a lot for the eglSurfaceAttrib error and there are several posts without any good solution. On the web there are suggestions to disable the "Use Host GPU" setting in the AVD Manager but the problem with the white screen remains.
 
I assume my PC configuration with Radeon HD 7700 isn't so exotic regarding OpenGL etc?! 

Is there anything I can do about this to debug and dig any deeper into this issue?

Someone else had the same problem and there is already a bug report for this:
https://bugreports.qt.io/browse/QTBUG-44697

Thanks!
Stefan




More information about the Android-development mailing list