Andriod Runtime-Error: E/OpenGLRenderer: Unable to match the desired swap behavior.
Solved
Mobile and Embedded
-
wrote 9 days ago last edited by Andy314 5 Sept 2025, 12:33
Hello I begin with Andriod developement, an have starting problems.
I use Qt 6.7.3 Clang x86_64 NKD 16.1.10900125 on an emulator Andriod 34 Api-Playstore
Its a simple QWidget-App without QML and the the error:E/OpenGLRenderer: Unable to match the desired swap behavior.
The is more around the error log:
D/CompatibilityChangeReporter: Compat change id reported: 247079863; UID 10190; state: ENABLED W/ziparchive: Unable to open '/data/app/~~1mol6Kt-db-Zj2szPVNqLw==/org.qtproject.example.TestCMake-Lz2tyeU76T8PuJZUxDvArA==/base.dm': No such file or directory W/ziparchive: Unable to open '/data/app/~~1mol6Kt-db-Zj2szPVNqLw==/org.qtproject.example.TestCMake-Lz2tyeU76T8PuJZUxDvArA==/base.dm': No such file or directory 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 I/Choreographer: Skipped 71 frames! The application may be doing too much work on its main thread. 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. I/OpenGLRenderer: Davey! duration=1413ms; Flags=1, FrameTimelineVsyncId=7680, IntendedVsync=52158535106, Vsync=53341868392, InputEventId=0, HandleInputStart=53358532000, AnimationStart=53358550400, PerformTraversalsStart=53358926200, DrawStart=53541187700, FrameDeadline=52175201772, FrameInterval=53357629100, FrameStartTime=16666666, SyncQueued=53545415400, SyncStart=53565600900, IssueDrawCommandsStart=53567644800, SwapBuffers=53585051900, FrameCompleted=53592203900, DequeueBufferDuration=19500, QueueBufferDuration=187600, GpuCompleted=53592203900, SwapBuffersCompleted=53586173400, DisplayPresentTime=0, CommandSubmissionCompleted=53585051900, W/WindowOnBackDispatcher: sendCancelIfRunning: isInProgress=falsecallback=android.view.ViewRootImpl$$ExternalSyntheticLambda17@401470a Art: App Profiles kompiliert. I/ample.TestCMake: System.exit called, status: 0 I/AndroidRuntime: VM exiting with result code 0, cleanup skipped. 14:24:26: Android-Ziel "org.qtproject.example.TestCMake" wurde unerwartet beended.
Is tryed
hw.gpu.enabled = yes
hw.gpu.mode = host
without effect.Whats the problem ?
-
wrote 9 days ago last edited by
I found a solution for me
hw.gpu.enabled = yes
hw.gpu.mode = angle
... what ever it means -
1/2