Ubuntu 16.10 simulator failed to start

Keywords: simulator emulator SDK Android

Start Android's own simulator error message on Ubuntu 16.10 as follows:

/opt/androidsdk/tools/emulator -netdelay none -netspeed full -avd Android_TV1080_22
libGL error: unable to load driver: i965_dri.so

Note: The environment variable $ANDROID_SDK_HOME is set, and the emulator uses that variable to locate AVDs.
This may result in the emulator failing to start if it cannot find the AVDs in the folder pointed to by the
given environment variable.
ANDROID_SDK_HOME=/opt/androidsdk

libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  155 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  55
  Current serial number in output stream:  54
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request:  GLXBadContext
  Major opcode of failed request:  155 (GLX)
  Minor opcode of failed request:  6 (X_GLXIsDirect)
  Serial number of failed request:  55
  Current serial number in output stream:  54
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: i965_dri.so
libGL error: driver pointer missing
libGL error: failed to load driver: i965
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  155 (GLX)
  Minor opcode of failed request:  24 (X_GLXCreateNewContext)
  Value in failed request:  0x0
  Serial number of failed request:  39
  Current serial number in output stream:  40
QObject::~QObject: Timers cannot be stopped from another thread

Baidu literal translation as follows:

  • / Select / SDK / Tool / Simulator - netdelay non-netspeed full AVD android_tv1080_22 libgl error: unable to load driver: i965_dri.so Note: The environment variable $android_sdk_home setting and the simulator use variables to locate AVDs. This may cause the simulator to fail to start if it cannot find the AVDS pointed out in the folder Given environmental variables. android_sdk_home=/select/SDK libgl error: driver pointer missing libgl error: unable to load driver: i965 libgl error: unable to load driver: i965_dri.so libgl error: driver pointer missing libgl error: unable to load driver: i965 libgl error: unable to load driver: swrast_dri.so libgl error: unable to load driver: swrast Failed request X error: GLXBadContext Failed request size: 155 (GLX) Failed request code: 6 (x_glxisdirect) Sequence number of failed request: 55 The current serial number is in the output stream:54 libgl error: unable to load driver: i965_dri.so libgl error: driver pointer missing libgl error: unable to load driver: i965 libgl error: unable to load driver: i965_dri.so libgl error: driver pointer missing libgl error: unable to load driver: i965 libgl error: unable to load driver: swrast_dri.so libgl error: unable to load driver: swrast Failed request X error: GLXBadContext Failed request size: 155 (GLX) Failed request code: 6 (x_glxisdirect) Sequence number of failed request: 55 The current serial number is in the output stream:54 libgl error: unable to load driver: i965_dri.so libgl error: driver pointer missing libgl error: unable to load driver: i965 libgl error: unable to load driver: i965_dri.so libgl error: driver pointer missing libgl error: unable to load driver: i965 libgl error: unable to load driver: swrast_dri.so libgl error: unable to load driver: swrast Failed request X error: BadValue (run in integer parameter range) Failed request size: 155 (GLX) Failed request code: 24 (x_glxcreatenewcontext) Request value in failure: 0x0 Sequence number of failed request: 39 The current serial number is in the output stream:40 QObject:: ~ QObject: The timer cannot block another thread

 

 

 sudo apt-get install lib64stdc++6

Enter tools/lib64/libstdc++ folder

cd $ANDROID_SDK_HOME/tools/lib64/libstdc++

Back up existing libstdc++.so.6 files

mv libstdc++.so.6 libstdc++.so.6.bak

Create a soft connection to the newly loaded library file

ln -s /usr/lib64/libstdc++.so.6 $ANDROID_HOME/Sdk/tools/lib64/libstdc++

Finally, start the simulator ok.

Posted by Amgine on Sat, 06 Apr 2019 15:24:31 -0700