{ "id": "80752", "key": "TIMOB-5393", "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": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12091", "description": "", "name": "Sprint 2011-51", "archived": true, "released": true, "releaseDate": "2011-12-26" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-12-22T12:38:23.000+0000", "created": "2011-09-29T17:29:33.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "dr-list" ], "versions": [ { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "issuelinks": [ { "id": "14340", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "84168", "key": "TIMOB-6826", "fields": { "summary": "Android: Emulator - sdcard fails to create with invalid argument errors", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "dthorp", "key": "dthorp", "displayName": "Don Thorp", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-14T05:07:51.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": "10207", "name": "Tooling" } ], "description": "h4. Description: \r\nSince Google released r13 tooling which includes a fix for the \"space in the path\" issue introduced with r12, we updated our XP and Win 7 test systems to the new SDK. Attempting to launch the emulator with studio fails with the following console output:\r\n\r\n{code:lang=none}\r\n[DEBUG] SDCard: C:\\Users\\Joe Tester\\.titanium\\android2.sdcard\r\n[DEBUG] AVD ID: 21\r\n[DEBUG] AVD Skin: WVGA800\r\n[DEBUG] SDK: C:\\android-sdk\r\n[DEBUG] C:\\android-sdk\\platform-tools\\adb.exe start-server\r\n[INFO] Creating 64M SD card for use in Android emulator\r\n[DEBUG] C:\\android-sdk\\tools\\mksdcard.exe 64M \"C:\\Users\\Joe Tester\\.titanium\\titanium_21_WVGA800.sdcard\"\r\n[INFO] Creating new Android Virtual Device (21 WVGA800)\r\n[DEBUG] C:\\android-sdk\\tools\\emulator.exe -avd titanium_21_WVGA800 -port 5560 -sdcard C:\\Users\\Joe Tester\\.titanium\\titanium_21_WVGA800.sdcard -logcat *:d,* -no-boot-anim -partition-size 128\r\ninvalid command-line parameter: Tester\\.titanium\\titanium_21_WVGA800.sdcard.\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 2544\r\nERROR: The process \"2544\" not found.\r\n{code}\r\n\r\nAs you can see, the text after the space is treated as an invalid parameter. We were hoping the change to the Android SDK would resolve this problem, but it doesn't seem to have made a difference.\r\n\r\nh4. Steps to reproduce:\r\n# Install Android SDK r13 on Windows 7 or XP\r\n# Ensure your user account has a space in the Name on Win 7\r\n#* If on XP, the path should include \"Documents and Settings\" regardless of user account\r\n# Create a new project in Titanium Studio\r\n# Attempt to run the project in the emulator\r\n\r\nh4. Result:\r\nEmulator fails to launch\r\n\r\nh4. Expected:\r\nEmulator launches ", "attachment": [], "flagged": false, "summary": "Tooling: Win 7 or XP space in path to SD card causes Android emulator r13 fail to launch from Studio ", "creator": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "* Windows 7, Windows XP\r\n* Studio 1.0.5, Studio 1.0.4\r\n* Android SDK r12, Android SDK r13", "comment": { "comments": [ { "id": "173907", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "This is an Android SDK issue, documented as [Issue 18317: Emulator in R12 doesn't properly invoke emulator-arm.exe if the install path or any parameter has a space in it|https://code.google.com/p/android/issues/detail?id=18317].\r\n\r\nWorkaround is to use windows short 8dot3 filenames, for example:\r\n|| Real Path || Path using 8dot3 names ||\r\n| C:\\Program Files | C:\\PROGRA~1\\ |\r\n| C:\\Program Files (x86)\\ | C:\\PROGRA~2\\ |\r\n| C:\\Users\\Joe Tester\\ | C:\\Users\\JOETES~1 |\r\n\r\nTo test these, copy and paste one into the Start button > \"Run\" / \"Search programs and files\" box.\r\n\r\nTo find 8dot3 names, at the command prompt run:\r\n\r\n{code:lang=none}\r\ndir /x\r\n{code}\r\n\r\n", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-11-23T13:00:19.000+0000", "updated": "2011-11-23T13:11:43.000+0000" }, { "id": "174620", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Please also see this related discussion:\r\n\r\n[Titanium install on Windows XP SP3 gives me a serious headache|http://developer.appcelerator.com/devlink/profile/473051/paul-dowsett]", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-02T11:52:26.000+0000", "updated": "2011-12-02T11:52:26.000+0000" }, { "id": "175509", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This is being caused by the form of line 420 in builder.py. The location of the SDcard for the emulator is placed in \"Documents and settings\" by default. \r\n\r\nCurrently it is:\r\n{code}self.sdcard,{code}\r\n\r\nWhen set to the following, it works. The impact of changing this for other platforms is unknown.\r\n{code}'\"'+self.sdcard+'\"',{code}", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-08T17:40:13.000+0000", "updated": "2011-12-08T17:40:13.000+0000" }, { "id": "176437", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "[This thread|http://developer.appcelerator.com/question/124530/how-do-i-manually-set-the-sdcard-path-for-the-android-emulator-error-invalid-command-line-parameter-and] supports Eric's solution.", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-18T15:35:01.000+0000", "updated": "2011-12-18T15:35:01.000+0000" }, { "id": "176672", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Functional test results below show that ayeung's fix works as expected on Windows 7:\r\n\r\n{code}\r\nWin 7 > Fails - Titanium SDK version: 1.7.5 (11/02/11 17:00 ab20af7)\r\nWin 7 > Succeeds - Titanium 1.8.0.1 (2011/12/19 17:28 91230d6)\r\nWin 7 > Succeeds - Titanium 1.9.0 (2011/12/19 17:01 78ed274)\r\n{code}\r\n\r\nNote, this has not been tested on osx or ubuntu.\r\n\r\n", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-19T20:19:14.000+0000", "updated": "2011-12-19T20:19:14.000+0000" }, { "id": "176932", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening. While existing emulators previously created are working, new emulators can't be created with Win7, will verify on XP. This occurs with SDK: 1.8.0.1.v20111220190134.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-21T14:55:15.000+0000", "updated": "2011-12-21T14:55:15.000+0000" }, { "id": "176934", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "When cleaning out all existing emulators and then trying to use studio to create a new one, this is returned on XP:\r\n\r\n[ERROR] Could not create file '\"C:\\Documents and Settings\\Administrator\\.titanium\\titanium_26_WVGA854.sdcard\"': Invalid argument\r\nError: '\"C:\\Documents and Settings\\Administrator\\.titanium\\titanium_26_WVGA854.sdcard\"' is not recognized as a valid sdcard value.\r\nValue should be:\r\n1. path to an sdcard.\r\n2. size of the sdcard to create: [K|M]\r\n\r\nThis is returned on Win 7:\r\n[ERROR] Could not create file '\"C:\\Users\\labuser\\.titanium\\titanium_14_WVGA854.sdcard\"': Invalid argument\r\nError: '\"C:\\Users\\labuser\\.titanium\\titanium_14_WVGA854.sdcard\"' is not recognized as a valid sdcard value.\r\nValue should be:\r\n1. path to an sdcard.\r\n2. size of the sdcard to create: [K|M]\r\n", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-21T15:05:52.000+0000", "updated": "2011-12-21T15:12:40.000+0000" }, { "id": "411972", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-14T05:07:51.000+0000", "updated": "2017-03-14T05:07:51.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }