{ "id": "109170", "key": "ALOY-497", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "11113", "key": "ALOY", "name": "Alloy", "projectCategory": { "id": "10400", "description": "Tools for developing applications", "name": "Tooling" } }, "fixVersions": [ { "id": "14634", "description": "Alloy 1.0.0", "name": "Alloy 1.0.0", "archived": false, "released": true, "releaseDate": "2013-02-19" }, { "id": "14872", "description": "2013 Sprint 03", "name": "2013 Sprint 03", "archived": true, "released": true, "releaseDate": "2013-02-11" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-06-03T19:44:32.000+0000", "created": "2013-02-05T03:50:31.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-sdk3.0.2", "regression" ], "versions": [ { "id": "15758", "description": "Alloy 1.4.0", "name": "Alloy 1.4.0", "archived": false, "released": true, "releaseDate": "2014-07-17" }, { "id": "14634", "description": "Alloy 1.0.0", "name": "Alloy 1.0.0", "archived": false, "released": true, "releaseDate": "2013-02-19" } ], "issuelinks": [], "assignee": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "updated": "2014-06-22T13:21:12.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": "12600", "name": "Samples & Templates" } ], "description": "h6. Problem\r\nRuntime error when pressing the menu button in the Journal Sample app in Android\r\n\r\nh6. Steps\r\n1. Install and run the app\r\n2. Click on the menu button\r\n\r\nResult: Runtime Error - attached screenshot and log\r\n\r\nNo issues on iOS devices.\r\n", "attachment": [ { "id": "35299", "filename": "device-2013-02-04-194049.png", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-05T03:50:31.000+0000", "size": 66520, "mimeType": "image/png" }, { "id": "35298", "filename": "journal_android.log", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-05T03:50:31.000+0000", "size": 1589, "mimeType": "text/plain" }, { "id": "35317", "filename": "journal_ios.log", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-05T23:42:56.000+0000", "size": 458, "mimeType": "text/plain" }, { "id": "48557", "filename": "Runtime error_Android.png", "author": { "name": "nmittal", "key": "nmittal", "displayName": "Neha Mittal", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-06-03T10:26:32.000+0000", "size": 62229, "mimeType": "image/png" }, { "id": "35318", "filename": "Screen Shot 2013-02-05 at 3.00.49 PM.png", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-05T23:42:56.000+0000", "size": 121529, "mimeType": "image/png" } ], "flagged": false, "summary": "Alloy: Journal sample runtime error switching between different platforms", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android devices (4.1 and 2.3.5 tested)\r\niOS devices (tested 6.0)\r\nTiSDK 3.0 GA and 3.0.2.v20130201161712\r\n", "closedSprints": [ { "id": 117, "state": "closed", "name": "2014 Sprint 11 Alloy", "startDate": "2014-05-27T16:00:55.737Z", "endDate": "2014-06-07T04:00:00.000Z", "completeDate": "2014-06-09T14:18:58.490Z", "originBoardId": 124 } ], "comment": { "comments": [ { "id": "237214", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "You would get that error if you attempted to run this app on android but did not specify android in the compile command. For example:\r\n\r\n{code}\r\nalloy compile\r\n{code}\r\n\r\nwould cause the problem, but this would work fine:\r\n\r\n{code}\r\nalloy compile --config platform=android\r\n{code}\r\n\r\nI have confirmed that this app works fine on Android when given the appropriate compile options. If there is more information about your specific workflow (\"install and run\" was kind of vague), we can address it. In the meantime the ticket will be closed.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-05T14:34:14.000+0000", "updated": "2013-02-05T14:34:14.000+0000" }, { "id": "237308", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "From Studio:\r\n\r\n1. create a new Alloy Project from Studio and copy the 'models/journal' Sample code in there\r\n2. Build-run for iOS\r\nresult: Journal app works as expected\r\n3. Build-run for Android\r\nresult: Bug reproduced - Journal app runs and clicking on the menu the runtime error is thrown\r\n\r\n4. cd to the project folder from terminal and run:\r\n{code}\t\r\nalloy compile --config platform=android\r\n{code}\r\n5. Build-run again for Android\r\nresult: Bug still reproducible - Journal app runs and clicking on the menu the runtime error is thrown\r\n\r\n6. cd to the project folder and manually delete the Resources folder, then from terminal run:\r\n{code}\t\r\nalloy compile --config platform=android\r\n{code}\r\n7. Build-run again for Android\r\nresult: Journal app works as expected\r\n\r\n8. Build-run for iOS\r\nresult: App does not start (Application Error - see screenshot and Error log attached)\r\n\r\n9. cd to the project folder and manually delete the Resources folder, then from terminal run:\r\n{code}\t\r\nalloy compile --config platform=ios\r\n{code}\r\n7. Build-run again for iOS\r\nresult: Journal app works as expected", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-05T23:22:55.000+0000", "updated": "2013-02-05T23:29:57.000+0000" }, { "id": "237313", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I need to make sure the files are regenerated and copied in again when platforms change. Since they can include compiler directives affected by deploy type and platform I should probably be regenerating any JS file.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-05T23:43:29.000+0000", "updated": "2013-02-06T00:08:39.000+0000" }, { "id": "237509", "author": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "body": "All JS files are regenerated and copied in on each build to ensure that compiler directives are accounted for.", "updateAuthor": { "name": "tlukasavage", "key": "tlukasavage", "displayName": "Tony Lukasavage", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-06T21:31:24.000+0000", "updated": "2013-02-06T21:31:24.000+0000" }, { "id": "237593", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified as fixed with the latest 1_0_X version\n(Git commit b97ead593b6e7c2b2a3beae4cb9a8720dd3931b6)\n\nAll JS files are regenerated on each build.\n", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-07T03:04:05.000+0000", "updated": "2013-02-07T03:04:05.000+0000" }, { "id": "307314", "author": { "name": "nmittal", "key": "nmittal", "displayName": "Neha Mittal", "active": true, "timeZone": "Asia/Kolkata" }, "body": "This is a regression since it is working fine with alloy 1.3.1 GA.\r\n\r\nI am able to reproduce the issue, getting run time error on Android platform using below environment:\r\n\r\nAppc Studio: 3.3.0.201405271647\r\nSDK build: 3.3.0.v20140602174112\r\nacs: 1.0.14\r\nnpm: 1.3.2\r\nalloy: 1.4.0-beta\r\nCLI: titanium-3.3.0-beta2\r\ntitanium-code-processor:1.1.1\r\nXcode: 5.1.1\r\nOsx: Mavericks(10.9.2)\r\nDevice: Galaxy Nexus (4.1.1)\r\n\r\nWorks fine on iOS device.\r\n\r\nPlease refer the attached screenshot for your reference. Hence reopening the issue.", "updateAuthor": { "name": "nmittal", "key": "nmittal", "displayName": "Neha Mittal", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-06-03T10:25:55.000+0000", "updated": "2014-06-03T10:30:35.000+0000" }, { "id": "307385", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-03T19:44:08.000+0000", "updated": "2014-06-03T19:44:08.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }