Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot create platform OpenGL context

On my ubuntu 18.04, when I start android emulator:

$ANDROID_HOME/emulator/emulator -avd pixel
Warning: QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are 
enabled ((null):0, (null))
emulator: INFO: QtLogger.cpp:66: Warning: QXcbIntegration: Cannot create platform OpenGL 
context, neither GLX nor EGL are enabled ((null):0, (null))

Just standard Android workflow... I can't believe this is unic issue...

like image 974
Andrew Avatar asked Sep 25 '19 14:09

Andrew


2 Answers

After comparing the previous emulator version files and the latest version, turns out that the new update has added Qt5webengine to the emulator. that may be the root of this problem. submit a bug report from inside android studio and it will hopefully be fixed by the upcoming updates.

EDIT : The issue has been resolved with the latest Emulator update 29.2.11.

like image 154
lupin Avatar answered Oct 31 '22 20:10

lupin


Wiping device data solved it for me (Tools -> AVD Manager-> Actions column -> Wipe Data)

edit: on Ubuntu 18.04

like image 23
Filip Pranklin Avatar answered Oct 31 '22 20:10

Filip Pranklin