-
Bug
-
Resolution: Fixed
-
Major
-
None
-
openSuse 11.2 headless
Running on headless openSuse 11.2 with xvnc plugin. From hudson logs vncserver starts successfully:
Starting xvnc
[workspace] $ env HOME=/home/hudson env USER=$USER vncserver :3 -geometry 800x600
note: I had to feed the vnc plugin the two env variables otherwise it lso doesn't start.
Anyway the emulator can't detect the display:
[android] Starting Android emulator
$ /opt/android-sdk-linux_86/tools/emulator -ports 46440,56478 -no-boot-anim -avd 1.6test
SDL init failure, reason is: No available video deviceNew 'X' desktop is hudsonsrv:3
Not sure what he reasons are. Is the plugin starting before the xvnc is ready (I see the message about the desktop displayed just after the emulator failed to start) or does it simply not use wrong display?
Yes, I believe this happens if the VNC server isn't yet ready when the Android Emulator process starts.
I've seen this behaviour myself, but it's not consistent. I imagine it has a lot to do with the speed and current load of a machine.
Attached is an update to the 1.2 plugin that introduces a 10 second delay before starting the emulator process.
Try that out and let us know whether you get any further.
In a next release I'll either need to allow for a configurable delay before starting the emulator, or possibly find some way of detecting that a VNC server has been started and wait for it to be ready...