Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android emulator won't start on ubuntu 12.04 after when run from ssh

I built the android source code based on the http://source.android.com/source/building.html on Ubuntu 12.04 and when I run the emulator I'm getting the error and emulator won't start:

WARNING: Application calling GLX 1.3 function "glXCreatePbuffer" when GLX 1.3 
         is not supported!  This is an application bug!
X Error of failed request:  GLXUnsupportedPrivateRequest
  Major opcode of failed request:  146 (GLX)
  Minor opcode of failed request:  16 (X_GLXVendorPrivate)
  Serial number of failed request:  20
  Current serial number in output stream:  22

Any idea how can I fix that?

I need to mention that I connect to the machine with SSH. When I connect from an Ubuntu machine and run, it works fine but when I connect to it with my macbook machine through the SSH and try to run it gives me above error.

BR, Ramin

like image 514
Furniture Sell Avatar asked Jun 12 '12 13:06

Furniture Sell


2 Answers

Found out about a work around yesterday.

The issue seems to be with android-sdks/tools/emulator, while emulator-arm seems to work fine.

To test cd to the android-sdks/tools directory and type: emulator-arm -avd your_avd

Looks like this forces the emulator to use the software renderer instead of OpenGL, but for me (using NX) it worked.

I found the work around here: https://answers.launchpad.net/ubuntu/+source/xorg/+question/203681

like image 62
Kevin Avatar answered Oct 19 '22 19:10

Kevin


This error probably indicates the app requires direct access to the screen. Using nx rather than X over SSH may avoid the problem. Look if there is a run time option on the emulator too.

like image 21
poolie Avatar answered Oct 19 '22 19:10

poolie