Android emulator blank screen and 0x502 error
-
wrote on 3 Jun 2024, 19:46 last edited by
Hi
I have made a QML/QtQuick application that ran fine on the emulator until recently, where I have experienced some annoying issues.
When running the app in Android Emulator x86_64 the screen is blank with the following application output:
I example.DartApp: Late-enabling -Xcheck:jni I example.DartApp: Using CollectorTypeCC GC. W example.DartApp: Unexpected CPU variant for x86: x86_64. W example.DartApp: Known variants: atom, sandybridge, silvermont, goldmont, goldmont-plus, tremont, kabylake, default D CompatibilityChangeReporter: Compat change id reported: 171979766; UID 10190; state: ENABLED D CompatibilityChangeReporter: Compat change id reported: 242716250; UID 10190; state: ENABLED W ziparchive: Unable to open '/data/app/~~zcOdc8M6Np7kQCj1gu1zrQ==/org.qtproject.example.DartApp-uBN0uSbORWzeZkpUnTTwVw==/base.dm': No such file or directory W ziparchive: Unable to open '/data/app/~~zcOdc8M6Np7kQCj1gu1zrQ==/org.qtproject.example.DartApp-uBN0uSbORWzeZkpUnTTwVw==/base.dm': No such file or directory D nativeloader: Configuring clns-6 for other apk /data/app/~~zcOdc8M6Np7kQCj1gu1zrQ==/org.qtproject.example.DartApp-uBN0uSbORWzeZkpUnTTwVw==/base.apk. target_sdk_version=34, uses_libraries=, library_path=/data/app/~~zcOdc8M6Np7kQCj1gu1zrQ==/org.qtproject.example.DartApp-uBN0uSbORWzeZkpUnTTwVw==/lib/x86_64:/data/app/~~zcOdc8M6Np7kQCj1gu1zrQ==/org.qtproject.example.DartApp-uBN0uSbORWzeZkpUnTTwVw==/base.apk!/lib/x86_64, permitted_path=/data:/mnt/expand:/data/user/0/org.qtproject.example.DartApp V GraphicsEnvironment: Currently set values for: V GraphicsEnvironment: angle_gl_driver_selection_pkgs=[] V GraphicsEnvironment: angle_gl_driver_selection_values=[] V GraphicsEnvironment: ANGLE GameManagerService for org.qtproject.example.DartApp: false V GraphicsEnvironment: org.qtproject.example.DartApp is not listed in per-application setting V GraphicsEnvironment: Neither updatable production driver nor prerelease driver is supported. D libEGL : loaded /vendor/lib64/egl/libEGL_emulation.so D libEGL : loaded /vendor/lib64/egl/libGLESv1_CM_emulation.so D libEGL : loaded /vendor/lib64/egl/libGLESv2_emulation.so D CompatibilityChangeReporter: Compat change id reported: 247079863; UID 10190; state: ENABLED W ziparchive: Unable to open '/data/app/~~zcOdc8M6Np7kQCj1gu1zrQ==/org.qtproject.example.DartApp-uBN0uSbORWzeZkpUnTTwVw==/base.dm': No such file or directory W ziparchive: Unable to open '/data/app/~~zcOdc8M6Np7kQCj1gu1zrQ==/org.qtproject.example.DartApp-uBN0uSbORWzeZkpUnTTwVw==/base.dm': No such file or directory D QtLoader: Class org.qtproject.qt.android.multimedia.QtAudioDeviceManager does not implement setActivity method I QtLoader: Sleeping for 3000ms, helping the native debugger to settle. Use the env QT_ANDROID_DEBUGGER_MAIN_THREAD_SLEEP_MS variable to change this value. I QtCore : Start I Qt : qt started D CompatibilityChangeReporter: Compat change id reported: 210923482; UID 10190; state: ENABLED D CompatibilityChangeReporter: Compat change id reported: 237531167; UID 10190; state: DISABLED W OpenGLRenderer: Unknown dataspace 0 W OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without... W OpenGLRenderer: Failed to initialize 101010-2 format, error = EGL_SUCCESS I Gralloc4: mapper 4.x is not supported E OpenGLRenderer: Unable to match the desired swap behavior. E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502 E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502
My OS is Debian 12, but I have the same errors on Windows 10 and up until recently also Arch. My graphics card is a Nvidia GTX 780 running on Tesla 470 drivers (on Arch linux I used legacy drivers, which I suppose is also the case on Debian).
I can succesfully deploy the APK release packet on my Android phone.
Some wise guys in here that can help me to solve this issue?
Martin Hansen
-
wrote on 5 Jun 2024, 15:26 last edited by -_- name 7 Jul 2024, 02:09
same issue but on windows when starting qml/c++ android app
compiler output warnings:
Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.Windows
Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.macOS
Warning: QML import could not be resolved in any of the import paths: QtQuick.Controls.iOS
Warning: QML import could not be resolved in any of the import paths: TransitionItem
Warning: QML import could not be resolved in any of the import paths: EventList
Warning: QML import could not be resolved in any of the import paths: QtQuickUltralite.ExtrasApp output:
Unexpected CPU variant for x86: x86_64.
Known variants: atom, sandybridge, silvermont, goldmont, goldmont-plus, tremont, kabylake, default
W ziparchive: Unable to open '/data/app/~~NdE-lOGvg4LbsL0MvWpjcA==/org.qtproject.example.iSecAppApp-MAXwyjlaI0EtQ50fEWez5Q==/base.dm': No such file or directory
ClassLoader referenced unknown path:
W OpenGLRenderer: Unknown dataspace 0
W OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
W OpenGLRenderer: Failed to initialize 101010-2 format, error = EGL_SUCCESS
E OpenGLRenderer: Unable to match the desired swap behavior.
E emuglGLESv2_enc: device/generic/goldfish-opengl/system/GLESv2_enc/GL2Encoder.cpp:s_glGetUniformLocation:2206 GL error 0x502
..... -
wrote on 5 Jun 2024, 15:43 last edited by -_- name 6 May 2024, 15:44
ok (-_0)
Problem solved by installing x86 compiler and installing x86 image for emulator -
@_-name
What api Level did you download? The only one I can find in Android Studio is for Android 9 and earlier. I need for android 14 and there is only x86_64 images available. -
wrote on 7 Jul 2024, 02:12 last edited by
-
@_-name
What api Level did you download? The only one I can find in Android Studio is for Android 9 and earlier. I need for android 14 and there is only x86_64 images available. -
wrote on 11 Jul 2024, 04:09 last edited by
-
wrote on 31 Jul 2024, 18:54 last edited by MH2012
Thanks for the replies. I will try to figure it out. Alternatively, I will continuing developing my application targeting X86 and build an APK for X86_64
-
wrote on 1 Oct 2024, 20:08 last edited by
I don't know whats happened. But after trying today, the problem perished. Maybe an sdk update did it. Don't hope it will get back. Problem solved for now.