• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Emulator Headaches In Ubuntu

Hi,
I'm a developer who recently got a new Adroid-based phone and I want to build apps for it. I've got the whole SDK, etc. set up and running but I can't keep the emulator from crashing. The console reports this error:

[2011-03-19 10:59:57 - Emulator] emulator: ../../src/xcb_io.c:249: process_responses: Assertion `(((long) (dpy->last_request_read) - (long) (dpy->request)) <= 0)' failed.

This happens ONLY when I roll the mouse over the emulator or change focus to another window. My system config is this:
Unbuntu 10.10 VM running under VirtualBox (Win7 host Machine) with guest additions installed.
Latest Sun JDK and the whole Android SDK installed.
Eclipse 3.6.2.


Just as a sanity check I also installed everything on a separate (non-VM) laptop machine running Windows 7 and this doesn't happen (but the laptop is rather slow and I'd rather develop the apps under a linux environment anyway).

Anyone have any ideas what's going on here? Could it be just because it's already running under VM or could the guest additions be interfering with it?

Thanks for any help.
 
I'm have the same problem.
[2011-03-29 23:32:06 - Emulator] emulator: ../../src/xcb_io.c:249: process_responses: Assertion `(((long) (dpy->last_request_read) - (long) (dpy->request)) <= 0)' failed.

When I start the AVD within the Android SDK and AVD Manager, I get the same error message:
emulator: ../../src/xcb_io.c:249: process_responses: Assertion `(((long) (dpy->last_request_read) - (long) (dpy->request)) <= 0)' failed.

Ubuntu 10.10
Intel i7-2600 3.4GHz
android-sdk_r10-linux_x86.tgz
eclipse-SDK-3.6.2-linux-gtk-x86_64.tar.gz
java version "1.6.0_20"
OpenJDK Runtime Environment (IcedTea6 1.9.7) (6b20-1.9.7-0ubuntu1)
OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode
 
Mine isn't running 100% yet... but try this:

chmod +x ddms
ddms should be located here: /android-sdk-linux_x86/tools
 
After I did the above, I killed the "emulator" in the System Monitor (Ubuntu) , then ran HelloAndroid again and it works!!

I don't know why I have to kill the emulator first to get it to run, but at this point, it's something I'm willing to live with. Hope this helps anyone having the same problem.
 
Back
Top Bottom