title: Android emulator not starting in ubuntu
body: <p>Android emulator not starting with Ubuntu,Below is the error log obtained when running the emulator, the emulator starts and closes immediately.
  I m using ubuntu 16.10, and android studio version 2.3.1</p>
  
  <pre><code>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:  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
  [1]    13209 segmentation fault  ./emulator -avd Nexus_5X_API_26
  </code></pre>