{ "id": "79174", "key": "TIMOB-5235", "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": "12076", "description": "Mobile @ HQ Week", "name": "Sprint 2011-36", "archived": true, "released": true, "releaseDate": "2011-09-12" }, { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2011-09-11T13:34:14.000+0000", "created": "2011-08-11T14:37:32.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "android", "emulator", "install", "tistudio" ], "versions": [ { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [ { "id": "12470", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "79396", "key": "TIMOB-5040", "fields": { "summary": "Tooling: Project cannot reinstall after build folder is cleaned", "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": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "12466", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "78050", "key": "TISTUD-516", "fields": { "summary": "Intermittent Debugger Issue: Debugger fails to attach", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "12467", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "79335", "key": "TISTUD-595", "fields": { "summary": "Intermittent Android application fails to install on 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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-09-12T16:54:04.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": "1) Create an Android project and run it in the emulator.\r\n2) After the project has successfully installed on the emulator, close the emulator.\r\n3) Clean the project (either through Project -> Clean... or by deleting the build files manually in the project file: Titanium Studio Workspace\\\\build\\android\\)\r\n4) Run the project in the emulator again\r\n\r\nExpected: Project installs normally and autolaunches in emulator\r\nActual: Project never reinstalls in emulator. If you look in Debug perspective, the Application Installer exit value is 1 instead of the expected 0\r\n\r\nNotes:\r\n- Happens regardless of Fastdev being on or off.\r\n- Reproducible in build 1.0.2.201107130739\r\n\r\nWorkaround:\r\nExit and relaunch TiStudio. Application will now properly install on emulator.\r\n", "attachment": [ { "id": "22547", "filename": "log.txt", "author": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-11T14:41:07.000+0000", "size": 5750, "mimeType": "text/plain" } ], "flagged": false, "summary": "Project cannot reinstall after build folder is cleaned", "creator": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Windows, OSX, Ubuntu. TiStudio 1.0.4.201108101535", "comment": { "comments": [ { "id": "162639", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Max, thoughts? Might be for Marshall.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-11T14:41:38.000+0000", "updated": "2011-08-11T14:41:38.000+0000" }, { "id": "162640", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "probably ours since TiStudio restart resolves. will try to reproduce", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-11T14:47:44.000+0000", "updated": "2011-08-11T14:47:44.000+0000" }, { "id": "162644", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The issue here is that FastDev server is running when users cleans the project.\r\nThe right approach would be to terminate FastDev server when Clean action is triggered.\r\nWorkaround: open Debug view, select FastDev server for the project and click Terminate button.", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-11T15:40:51.000+0000", "updated": "2011-08-11T15:40:51.000+0000" }, { "id": "162645", "author": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Should have added this in the steps, but the original problem still occurred when we terminated the Fastdev server in Debug View and pressed Remove all Terminated Launches. We did this before we cleaned the project build.", "updateAuthor": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-11T15:46:09.000+0000", "updated": "2011-08-11T15:46:09.000+0000" }, { "id": "162646", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "NPE found in attached log is fixed.", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-11T15:46:14.000+0000", "updated": "2011-08-11T15:46:14.000+0000" }, { "id": "162658", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Application Installer console output:\r\n{code}\r\n[INFO] Compiling Javascript Resources ...\r\n[DEBUG] Processing Android resource drawables\r\n[DEBUG] Detecting modules in /Users/max/Documents/Titanium Studio Workspace/debug test/modules\r\n[DEBUG] Detecting modules in /Library/Application Support/Titanium/modules\r\n[DEBUG] app stylesheet => /Users/max/Documents/Titanium Studio Workspace/debug test/build/android/gen/com/appcelerator/testdebug/ApplicationStylesheet.java\r\n[DEBUG] copying app icon: /Users/max/Documents/Titanium Studio Workspace/debug test/build/android/bin/assets/Resources/appicon.png\r\n[ERROR] Exception occured while building Android project:\r\n[ERROR] Traceback (most recent call last):\r\n[ERROR] File \"/Library/Application Support/Titanium/mobilesdk/osx/1.7.0/android/builder.py\", line 1947, in \r\n[ERROR] s.build_and_run(False, avd_id, debugger_host=debugger_host)\r\n[ERROR] File \"/Library/Application Support/Titanium/mobilesdk/osx/1.7.0/android/builder.py\", line 1740, in build_and_run\r\n[ERROR] self.manifest_changed = self.generate_android_manifest(compiler)\r\n[ERROR] File \"/Library/Application Support/Titanium/mobilesdk/osx/1.7.0/android/builder.py\", line 811, in generate_android_manifest\r\n[ERROR] shutil.copy(iconpath, dest_icon)\r\n[ERROR] File \"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/shutil.py\", line 88, in copy\r\n[ERROR] copyfile(src, dst)\r\n[ERROR] File \"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/shutil.py\", line 52, in copyfile\r\n[ERROR] fsrc = open(src, 'rb')\r\n[ERROR] IOError: [Errno 2] No such file or directory: u'/Users/max/Documents/Titanium Studio Workspace/debug test/build/android/bin/assets/Resources/appicon.png'\r\n{code}", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-11T18:41:20.000+0000", "updated": "2011-08-11T18:41:20.000+0000" }, { "id": "162659", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Alan,\r\n\r\nDoes the workaround you mentioned \"Exit and relaunch TiStudio. Application will now properly install on emulator.\" really work for you ?\r\nOnce I reproduced the issue, I could not get rid of it even after restart.\r\nEven more: the error does not go any even after TiSDK change from 1.7.1 to 1.7.2", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-11T18:49:06.000+0000", "updated": "2011-08-11T18:57:30.000+0000" }, { "id": "162660", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Marshall, ideas ?", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-11T18:57:50.000+0000", "updated": "2011-08-11T18:57:50.000+0000" }, { "id": "162685", "author": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Max,\r\n\r\nInteresting, I went through the steps again and the application successfully installs after I close the emulator and studio, relaunch studio, and rerun the application on the emulator. I never changed SDK versions though. I was always using SDK 1.7.2.", "updateAuthor": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-12T11:05:18.000+0000", "updated": "2011-08-12T11:05:18.000+0000" }, { "id": "162704", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Alan, Marshall,\r\n\r\nthis is definitely TiSDK issue. The reason why TiStudio restart helps is because tiapp.xml timestamp changes on restart. probably by project builder on start.", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-12T14:50:41.000+0000", "updated": "2011-08-12T14:50:41.000+0000" }, { "id": "163258", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Move this into 1.1", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-17T15:34:35.000+0000", "updated": "2011-08-17T15:34:35.000+0000" }, { "id": "163589", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hey Max,\r\n\r\nI took a look at the code where this error occurs, and it looks like we're already preemptively creating the {{build/android/bin/assets/Resources}} directory just a few lines above. Is the \"Clean\" process implemented in TiStudio happening asynchronously somehow, causing the folder to get deleted behind the script after it's created?", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-21T23:39:18.000+0000", "updated": "2011-08-21T23:39:18.000+0000" }, { "id": "163590", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Nope. I reproduced this sitting with Alan side-by-side.\r\nIt has nothing to do with Clean process. Deleting build/android folder via Windows explorer has the same effect.\r\nBasically the issue is: only touching tiapp.xml forces full rebuild. ", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-21T23:47:38.000+0000", "updated": "2011-08-21T23:47:38.000+0000" }, { "id": "163593", "author": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Have you been able to reproduce this anywhere besides Windows? I've deleted the build/android folder several times in a row without touching tiapp.xml, and I'm not seeing any builder.py errors here. ", "updateAuthor": { "name": "mculpepper", "key": "mculpepper", "displayName": "Marshall Culpepper", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-22T01:11:31.000+0000", "updated": "2011-08-22T01:11:31.000+0000" }, { "id": "163594", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Yep, I got my output above from OSX.\r\nOne thing we noticed on the build output is that only full rebuild log contains something like \"Copying Resources/android/appicon.png to build/android/bin/assets/Resources/appicon.png\" and same message for default.png.\r\nThe other build after removing build/android did not contain these messages.", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-08-22T01:20:57.000+0000", "updated": "2011-08-22T01:20:57.000+0000" }, { "id": "165450", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "See the community ticket - http://developer.appcelerator.com/question/123898/android-gives-error-on-file-readtext\r\n\r\n\"I have the same problem. After downloading and using mobile sdk build mobilesdk-1.7.3.v20110826161351 fromhttp://builds.appcelerator.com.s3.amazonaws.com/index.html, the problem is resolved. I'm running Mac OS X.\"\r\n", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-08T16:53:18.000+0000", "updated": "2011-09-08T16:53:18.000+0000" }, { "id": "165738", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Duplicate of TIMOB-5040", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-12T16:54:04.000+0000", "updated": "2011-09-12T16:54:04.000+0000" } ], "maxResults": 17, "total": 17, "startAt": 0 } } }