Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running the emulator often hangs when run without "--no-snapshot" #747

Closed
donv opened this issue Jul 14, 2015 · 3 comments
Closed

Running the emulator often hangs when run without "--no-snapshot" #747

donv opened this issue Jul 14, 2015 · 3 comments
Assignees
Labels
Milestone

Comments

@donv
Copy link
Member

donv commented Jul 14, 2015

When running

ruboto emulator

it always works the first time. On subsequent times, the emulator most often freezes for me. When I run with the --no-snapshot option, it works every time.

There must be something we do wrong when setting the configuration for the emulator that makes snapshots freeze. (or there may be a bug in the Android emulator/tooling)

@donv donv added the bug label Jul 14, 2015
@donv donv added this to the 1.3.1 milestone Jul 14, 2015
@donv donv added the contribution wanted Can you contribute to resolving this issue? Please join in! label Jul 14, 2015
@gfowley
Copy link
Member

gfowley commented Aug 11, 2015

I think the problem is with the Android emulator, not the Ruboto emulator command. I have tried many AVD device/configuration combinations and have had similar issues with emulator snapshots. They seem to be a regular source of trouble for Android SDK users:

https://code.google.com/p/android/issues/list?q=emulator+snapshot

This combo of not starting and freezing was the last straw for me:

https://code.google.com/p/android/issues/detail?id=182435

Just a couple of days ago I tried an x86 based AVD for the first time. Wow!.. it zooms.

The x86 emulator will use QEMU+KVM for x86 CPU acceleration and OpenGL GPU acceleration. I am not using snapshots because of the issue above, but with only ~20 seconds from command to working home I don't have a need for them.

I had no trouble getting CPU and GPU acceleration to work - OpenGL and QEMU are just an apt-get install away on Linux (Ubuntu 14.04). Experiences on OS-X or Windows may be more difficult.

Until now, the ARM emulator performance and snapshot problems caused me to use an actual device for development despite the long rake clean debug reinstall cycle and rake update_scripts not working. I will try the x86 AVD for a while and see how it works out.

@gfowley
Copy link
Member

gfowley commented Sep 4, 2015

BTW: Ignore the bit about rake update_scripts not working. It was working fine, me using require_relative 'some-file' in the uploaded script was the problem. (Can't load a file from the scripts directory that isn't there).

@donv donv modified the milestones: 1.3.2, 1.3.1 Oct 9, 2015
@donv donv removed the contribution wanted Can you contribute to resolving this issue? Please join in! label Dec 22, 2015
@donv donv self-assigned this Dec 22, 2015
@donv
Copy link
Member Author

donv commented Dec 22, 2015

This seems to have improved when starting the emulator without a skin and using newer Android tooling.

@donv donv closed this as completed Dec 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants