title: Android Emulator crashes with SIGSEGV on Ubuntu 18.04
body: <p>Android Studio version:</p>
  
  <p>Android Studio 3.1.2</p>
  
  <p>Build #AI-173.4720617, built on April 14, 2018</p>
  
  <p>It's installed from Ubuntu's snap store.
  I installed the kvm using <a href="https://github.com/uw-it-aca/spacescout-android/wiki/1.-Setting-Up-Android-Studio-on-Ubuntu" rel="noreferrer">1. Setting Up Android Studio on Ubuntu · uw-it-aca/spacescout-android Wiki</a>.
  I tried what <a href="https://cialu.net/solve-android-studio-avd-issue-with-ubuntu-16-10/" rel="noreferrer">Solve Android Studio AVD issue with Ubuntu distros - cialu.net</a> suggested, but now the <code>lib64</code> folder doesn't contain <code>libstdc++</code>. The closest I could find is <code>libc++.so.1</code>, and I tried to install it using </p>
  
  <pre><code>sudo apt install libc++1
  </code></pre>
  
  <p>and link it similarly, but it just got my pc stuck.
  I also looked at the threads linked by <a href="https://stackoverflow.com/a/21437956/1346426">Android emulator segmentation fault's answer</a> but they look old..</p>
  
  <p>I also tried <a href="https://cialu.net/android-studio-how-to-solve-emulator-libgl-error-on-ubuntu-systems/" rel="noreferrer">How to solve Android Studio Emulator: libGL error on Ubuntu systems - cialu.net</a>, but it didn't help.</p>
  
  <p>I tried <a href="https://stackoverflow.com/a/22712342/1346426">Android Emulator is not starting in Ubuntu's answer</a>, using <a href="https://linuxconfig.org/how-to-install-the-nvidia-drivers-on-ubuntu-18-04-bionic-beaver-linux" rel="noreferrer">How to install the NVIDIA drivers on Ubuntu 18.04 Bionic Beaver Linux - LinuxConfig.org</a> to install the Nvidia drivers, but still not working. This is the output from <code>ubuntu-drivers devices</code>:</p>
  
  <pre><code>== /sys/devices/pci0000:00/0000:00:03.0/0000:01:00.0 ==
  modalias : pci:v000010DEd00001401sv00001043sd0000854Dbc03sc00i00
  vendor   : NVIDIA Corporation
  model    : GM206 [GeForce GTX 960]
  driver   : nvidia-driver-390 - distro non-free recommended
  driver   : xserver-xorg-video-nouveau - distro free builtin
  </code></pre>
  
  <p>The only thing that worked is <a href="https://stackoverflow.com/a/45417478/1346426">Android virtual device manager crashes with “double free or corruption”'s answer</a>, but I want the hardware acceleration..</p>
  
  <p>Can you please help me?</p>