Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9554] Android : v8 , x86 - Attempting to launch the android x86 emulator from the command line fails to launch the emulator

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2012-06-25T09:34:12.000+0000
Affected Version/sRelease 2.0.2, Release 2.1.0
Fix Version/sRelease 2.1.0, Sprint 2012-13 Core
ComponentsAndroid
Labelscore, qe-and060112
ReporterMichael Pettiford
AssigneeStephen Tramer
Created2012-06-14T12:05:43.000+0000
Updated2012-06-25T11:21:50.000+0000

Description

*This is not a regression, it occurs in 2.0.2 as well* *Note* Pre-testing requirements: Make sure that you have both of the currently available x86 emulators installed (currently available for API r15 and r10). They can be retrieved through the android package management tool. For testing to provide the correct results you must install both currently available Intel x86 emulators. Steps to reproduce: 1. Create a default project in Ti Studio making sure Android is enabled 2. From the command line run the following, where $TITANIUM_SDK is the directory where your Titanium mobile SDK is installed, and $ANDROID_SDK is the directory where the Android SDK is installed
$TITANIUM_SDK/android/avd.py $ANDROID_SDK
3. Verify that you have and ABI value of [armeabi-v7a, x86] for the 4.0.3 SDK. If you do not, you haven't installed the x86 emulators. 4. Run the following command from the directory where you created your project $TITANIUM_SDK and $ANDROID_SDK are as above. $APP_NAME and $APP_ID are the name of your application and the ID of it (e.g. com.appcelerator.test) respectively. $EMU_ID should be the emulator ID which can be found from the output of the previous step in the 'id' field of the avd output
$TITANIUM_SDK/android/builder.py emulator $APP_NAME $ANDROID_SDK pwd $APP_ID $EMU_ID "HVGA" x86 ""
*See actual result* 5. Run the following command just as above except with armeabi-v7a
$TITANIUM_SDK/android/builder.py emulator $APP_NAME $ANDROID_SDK pwd $APP_ID $EMU_ID "HVGA" armeabi-v7a ""
*See actual result* Actual result: *Note* if adb returns 0 devices/emulators try launching the emulator in Studio first The following error is produced:
[INFO] logfile = /Users/mpettiford/Desktop/TiWorkspace/testx86/build.log
[DEBUG] /Users/mpettiford/Library/Application Support/Titanium/mobilesdk/osx/2.1.0.v20120612170248/android/builder.py emulator testx86 /Users/mpettiford/Documents/android-sdk-mac_x86 /Users/mpettiford/Desktop/TiWorkspace/testx86 com.appcelerator.testx86 27 HVGA armeabi-v7a 
[TRACE] app property, acs-oauth-secret-production : TKm4kiAV1OjTbNmZTx7JYqye0D2e46nc
[TRACE] app property, acs-oauth-key-production : t69uBDI2LEze2oVAIn8VLXcNttZZBiZi
[TRACE] app property, acs-api-key-production : TFAru13ImMZSmMPAsbjS6jZl431cA6GY
[TRACE] app property, acs-oauth-secret-development : WeCJIIWeAU6tymkKaY4KhRh6zOPMZlFy
[TRACE] app property, acs-oauth-key-development : DEPaY2DTv7WncvWhl3hiEiyTPxj8G7Rw
[TRACE] app property, acs-api-key-development : xFFD8y0mp5DE7WPKxVVob4WdslhoWW75
[TRACE] app property, ti.ui.defaultunit : system
[INFO] Launching Android emulator...one moment
[DEBUG] From: /Users/mpettiford/Documents/android-sdk-mac_x86/tools/emulator
[DEBUG] SDCard: /Users/mpettiford/.titanium/android2.sdcard
[DEBUG] AVD ID: 27
[DEBUG] AVD Skin: HVGA
[DEBUG] AVD ABI: armeabi-v7a
[DEBUG] SDK: /Users/mpettiford/Documents/android-sdk-mac_x86
[DEBUG] /Users/mpettiford/Documents/android-sdk-mac_x86/tools/emulator -avd titanium_27_HVGA_armeabi-v7a -port 5560 -sdcard /Users/mpettiford/.titanium/titanium_27_HVGA_armeabi-v7a.sdcard -logcat *:d,*,TiAPI:V -no-boot-anim -partition-size 128 
invalid command-line parameter: .
Hint: use '@foo' to launch a virtual device named 'foo'.
please use -help for more information
[DEBUG] signal caught: 3
[DEBUG] calling emulator kill on 5157
[ERROR] Exception occured while building Android project:
[ERROR] Traceback (most recent call last):
[ERROR]   File "/Users/mpettiford/Library/Application Support/Titanium/mobilesdk/osx/2.1.0.v20120612170248/android/builder.py", line 2197, in <module>
[ERROR]     s.run_emulator(avd_id, avd_skin, avd_name, avd_abi, add_args)
[ERROR]   File "/Users/mpettiford/Library/Application Support/Titanium/mobilesdk/osx/2.1.0.v20120612170248/android/builder.py", line 520, in run_emulator
[ERROR]     handler(3,None)
[ERROR]   File "/Users/mpettiford/Library/Application Support/Titanium/mobilesdk/osx/2.1.0.v20120612170248/android/builder.py", line 505, in handler
[ERROR]     os.kill(p.pid, signal.SIGTERM)
[ERROR] OSError: [Errno 3] No such process
Expected result: The x86 emulator launches the app successfully

Comments

  1. Tamila Smolich 2012-06-23

    Reopening issue. Tested on: Titanium Studio, build: 2.1.0.201206221045 Titanium SDK: 2.1.0.v20120622174154 Not able to run the Android x86 and armeabi-v7a emulators for 2.3.3 and 4.0.3 from the command line. Getting an error message: "emulator: Failed to open the hax module. HAX is not working and emulator runs in emulation mode 2012-06-23 14:38:44.373 emulator-x86[54916:1107] Warning once: This application, or a library it uses, is using NSQuickDrawView, which has been deprecated. Apps should cease use of QuickDraw and move to Quartz."
  2. Josh Roesslein 2012-06-23

    If you are testing on Windows you will need to install XAXM to run the x86 emulator image. See this [guide](http://developer.android.com/tools/devices/emulator.html#accel-vm) for details.
  3. Stephen Tramer 2012-06-25

    There are two issues here: 1. Command line MUST include the empty argument 2. See the original ticket TIMOB-9170 for information about how HAX does not work on machines which support it. There is no further issue to resolve. This is a testing problem or a misreport. These messages are printed with every run of the emulator. Note that only the *emulator* launches, *not the application*.
  4. Eric Merriman 2012-06-25

    Based on Stephen's comment, we will close this.

JSON Source