{ "id": "93255", "key": "TIMOB-9554", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13418", "description": "Sprint 2012-13 Core", "name": "Sprint 2012-13 Core", "archived": true, "released": true, "releaseDate": "2012-07-01" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-06-25T09:34:12.000+0000", "created": "2012-06-14T12:05:43.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "qe-and060112" ], "versions": [ { "id": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" }, { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "17805", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "91981", "key": "TIMOB-9170", "fields": { "summary": "Android: run V8 against x86 emulator", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-06-25T11:21:50.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" } ], "description": "*This is not a regression, it occurs in 2.0.2 as well*\r\n\r\n*Note* Pre-testing requirements:\r\nMake 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.\r\n\r\nSteps to reproduce:\r\n1. Create a default project in Ti Studio making sure Android is enabled\r\n2. 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\r\n{code}\r\n$TITANIUM_SDK/android/avd.py $ANDROID_SDK\r\n{code}\r\n3. 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.\r\n4. 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\r\n{code}\r\n$TITANIUM_SDK/android/builder.py emulator $APP_NAME $ANDROID_SDK `pwd` $APP_ID $EMU_ID \"HVGA\" x86 \"\"\r\n{code}\r\n\r\n*See actual result*\r\n\r\n5. Run the following command just as above except with armeabi-v7a\r\n{code}\r\n$TITANIUM_SDK/android/builder.py emulator $APP_NAME $ANDROID_SDK `pwd` $APP_ID $EMU_ID \"HVGA\" armeabi-v7a \"\"\r\n{code}\r\n\r\n*See actual result*\r\n\r\nActual result:\r\n\r\n*Note* if adb returns 0 devices/emulators try launching the emulator in Studio first\r\n\r\nThe following error is produced:\r\n{code}\r\n[INFO] logfile = /Users/mpettiford/Desktop/TiWorkspace/testx86/build.log\r\n[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 \r\n[TRACE] app property, acs-oauth-secret-production : TKm4kiAV1OjTbNmZTx7JYqye0D2e46nc\r\n[TRACE] app property, acs-oauth-key-production : t69uBDI2LEze2oVAIn8VLXcNttZZBiZi\r\n[TRACE] app property, acs-api-key-production : TFAru13ImMZSmMPAsbjS6jZl431cA6GY\r\n[TRACE] app property, acs-oauth-secret-development : WeCJIIWeAU6tymkKaY4KhRh6zOPMZlFy\r\n[TRACE] app property, acs-oauth-key-development : DEPaY2DTv7WncvWhl3hiEiyTPxj8G7Rw\r\n[TRACE] app property, acs-api-key-development : xFFD8y0mp5DE7WPKxVVob4WdslhoWW75\r\n[TRACE] app property, ti.ui.defaultunit : system\r\n[INFO] Launching Android emulator...one moment\r\n[DEBUG] From: /Users/mpettiford/Documents/android-sdk-mac_x86/tools/emulator\r\n[DEBUG] SDCard: /Users/mpettiford/.titanium/android2.sdcard\r\n[DEBUG] AVD ID: 27\r\n[DEBUG] AVD Skin: HVGA\r\n[DEBUG] AVD ABI: armeabi-v7a\r\n[DEBUG] SDK: /Users/mpettiford/Documents/android-sdk-mac_x86\r\n[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 \r\ninvalid command-line parameter: .\r\nHint: use '@foo' to launch a virtual device named 'foo'.\r\nplease use -help for more information\r\n[DEBUG] signal caught: 3\r\n[DEBUG] calling emulator kill on 5157\r\n[ERROR] Exception occured while building Android project:\r\n[ERROR] Traceback (most recent call last):\r\n[ERROR] File \"/Users/mpettiford/Library/Application Support/Titanium/mobilesdk/osx/2.1.0.v20120612170248/android/builder.py\", line 2197, in \r\n[ERROR] s.run_emulator(avd_id, avd_skin, avd_name, avd_abi, add_args)\r\n[ERROR] File \"/Users/mpettiford/Library/Application Support/Titanium/mobilesdk/osx/2.1.0.v20120612170248/android/builder.py\", line 520, in run_emulator\r\n[ERROR] handler(3,None)\r\n[ERROR] File \"/Users/mpettiford/Library/Application Support/Titanium/mobilesdk/osx/2.1.0.v20120612170248/android/builder.py\", line 505, in handler\r\n[ERROR] os.kill(p.pid, signal.SIGTERM)\r\n[ERROR] OSError: [Errno 3] No such process\r\n{code}\r\n\r\nExpected result:\r\nThe x86 emulator launches the app successfully ", "attachment": [], "flagged": false, "summary": "Android : v8 , x86 - Attempting to launch the android x86 emulator from the command line fails to launch the emulator", "creator": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Tested with Ti Studio build 2.1.0.201206131907\r\nTi Mobile SDK 2.1.0.v20120613210250 hash rc8ddb29e\r\nOSX Lion 10.7.3\r\nx86, armeabi-v7a", "comment": { "comments": [ { "id": "199934", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening issue. Tested on:\r\nTitanium Studio, build: 2.1.0.201206221045\r\nTitanium SDK: 2.1.0.v20120622174154\r\n\r\nNot able to run the Android x86 and armeabi-v7a emulators for 2.3.3 and 4.0.3 from the command line. \r\n\r\nGetting an error message:\r\n\"emulator: Failed to open the hax module.\r\nHAX is not working and emulator runs in emulation mode\r\n2012-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.\"", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-23T14:50:18.000+0000", "updated": "2012-06-23T14:50:18.000+0000" }, { "id": "199970", "author": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "body": "If you are testing on Windows you will need to install XAXM to run the x86 emulator image.\r\nSee this [guide|http://developer.android.com/tools/devices/emulator.html#accel-vm] for details.", "updateAuthor": { "name": "joshroesslein", "key": "joshroesslein", "displayName": "Josh Roesslein", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-23T21:38:06.000+0000", "updated": "2012-06-23T21:38:06.000+0000" }, { "id": "200015", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "There are two issues here:\r\n\r\n1. Command line MUST include the empty argument\r\n2. See the original ticket TIMOB-9170 for information about how HAX does not work on machines which support it.\r\n\r\nThere 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*.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-25T09:34:06.000+0000", "updated": "2012-06-25T09:59:34.000+0000" }, { "id": "200056", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Based on Stephen's comment, we will close this.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-25T11:21:50.000+0000", "updated": "2012-06-25T11:21:50.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }