Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Android emulator blank screen and 0x502 error

Android emulator blank screen and 0x502 error

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
10 Posts 3 Posters 3.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MH2012
    wrote on 3 Jun 2024, 19:46 last edited by
    #1

    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

    1 Reply Last reply
    1
    • - Offline
      - Offline
      -_- name
      wrote on 5 Jun 2024, 15:26 last edited by -_- name 7 Jul 2024, 02:09
      #2

      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.Extras

      App 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
      .....

      1 Reply Last reply
      0
      • - Offline
        - Offline
        -_- name
        wrote on 5 Jun 2024, 15:43 last edited by -_- name 6 May 2024, 15:44
        #3

        ok (-_0)
        Problem solved by installing x86 compiler and installing x86 image for emulator

        M 1 Reply Last reply 7 Jun 2024, 18:43
        1
        • - -_- name
          5 Jun 2024, 15:43

          ok (-_0)
          Problem solved by installing x86 compiler and installing x86 image for emulator

          M Offline
          M Offline
          MH2012
          wrote on 7 Jun 2024, 18:43 last edited by MH2012 6 Jul 2024, 18:44
          #4

          @_-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.

          - 2 Replies Last reply 7 Jul 2024, 02:11
          0
          • M MH2012
            7 Jun 2024, 18:43

            @_-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.

            - Offline
            - Offline
            -_- name
            wrote on 7 Jul 2024, 02:11 last edited by
            #5

            @MH2012 e4db34e1-330f-4760-ae9d-c43e7ba435b4-image.png

            - 1 Reply Last reply 7 Jul 2024, 02:12
            0
            • - -_- name
              7 Jul 2024, 02:11

              @MH2012 e4db34e1-330f-4760-ae9d-c43e7ba435b4-image.png

              - Offline
              - Offline
              -_- name
              wrote on 7 Jul 2024, 02:12 last edited by
              #6

              @_-name said in Android emulator blank screen and 0x502 error:

              @MH2012 e4db34e1-330f-4760-ae9d-c43e7ba435b4-image.png
              eeee4502-9815-4aa0-90bd-efdaf07ad102-image.png

              1 Reply Last reply
              0
              • M MH2012
                7 Jun 2024, 18:43

                @_-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.

                - Offline
                - Offline
                -_- name
                wrote on 7 Jul 2024, 02:13 last edited by
                #7

                @MH2012 yes it sounds like lvl 9 will not working, but i ported app on samsung s24 14andr -> works

                1 Reply Last reply
                0
                • M Offline
                  M Offline
                  morte
                  wrote on 11 Jul 2024, 04:09 last edited by
                  #8

                  @MH2012 https://bugreports.qt.io/browse/QTBUG-127079

                  1 Reply Last reply
                  0
                  • M Offline
                    M Offline
                    MH2012
                    wrote on 31 Jul 2024, 18:54 last edited by MH2012
                    #9

                    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

                    1 Reply Last reply
                    0
                    • M Offline
                      M Offline
                      MH2012
                      wrote on 1 Oct 2024, 20:08 last edited by
                      #10

                      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.

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved