{ "id": "102748", "key": "AC-2053", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2013-01-25T18:20:07.000+0000", "created": "2012-10-05T16:37:19.000+0000", "labels": [ "triage" ], "versions": [], "issuelinks": [ { "id": "29079", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "113378", "key": "TIMOB-13671", "fields": { "summary": "Android: animate crashes the app if view has a border", "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": "29084", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "114982", "key": "TIMOB-14005", "fields": { "summary": "Android: Animation with transform not working", "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 } } } } ], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:41:00.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": [], "description": "*Steps to Reproduce*\r\nhave UI that call view.animate()\r\ninstall app to android device\r\nlaunch app, when the animation is supposed to happen, watch the app crash and terminate\r\n\r\n*Actual Result*\r\napp crashes when view is animated\r\n\r\n*Expected Result*\r\napp does not crash when view is animated\r\n\r\n*Test case*\r\n{code:javascript}\r\nvar animateRight = Ti.UI.createAnimation({\r\n\tleft : 150,\r\n\tduration : 150\r\n});\r\n\r\nvar animateLeft = Ti.UI.createAnimation({\r\n\tleft : 0,\r\n\tduration : 150\r\n});\r\n\r\nvar win = Ti.UI.createWindow({\r\n\ttitle : 'test',\r\n\tbackgroundColor : 'black',\r\n});\r\n\r\nvar view = Ti.UI.createView({\r\n\tbackgroundColor : 'orange',\r\n\tleft : 0,\r\n\twidth : 300,\r\n\theight : 200\r\n});\r\n\r\nvar hasMoved = false;\r\n\r\nview.addEventListener('touchend', function() {\r\n\tif (!hasMoved) {\r\n\t\tview.animate(animateRight);\r\n\t}\r\n\telse {\r\n\t\tview.animate(animateLeft);\r\n\t}\r\n\thasMoved = !hasMoved;\r\n});\r\n\r\nwin.add(view);\r\nwin.open();\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: view.animate() crashes", "creator": { "name": "alvinc", "key": "alvinc", "displayName": "Alvin Chan", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "alvinc", "key": "alvinc", "displayName": "Alvin Chan", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium Studio 2.1.3", "comment": { "comments": [ { "id": "222901", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Alvin, can you please include a test case as a code sample?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-10-10T14:14:57.000+0000", "updated": "2012-10-10T14:15:14.000+0000" }, { "id": "226072", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Alvin,\n\nthis is a very simple code sample using view.animate() method, working fine on TiSDK 2.1.3 GA.\n\n{code}\nvar win = Ti.UI.createWindow({\n\ttitle:'test',\n\tbackgroundColor:'black',\n});\n\nvar view = Ti.UI.createView({\n\tbackgroundColor:'orange',\n\twidth:300,\n\theight:200\n});\n\nview.addEventListener('click', function(){\n\tview.animate({left:20,height:400})\n});\n\n\nwin.add(view);\nwin.open();\n{code} \n\nLet us know if you still reproduce this issue, and in case please provide a runnable sample code we can use to reproduce it. \nThanks", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-02T23:41:19.000+0000", "updated": "2012-11-02T23:41:19.000+0000" }, { "id": "226569", "author": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Not able to reproduce. \r\nWe need a runnable sample code to reproduce the issue (like described here: https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-CreatingaTestCase )\r\n\r\nMarking as 'Closed'/'Need more info' - please reopen if needed.", "updateAuthor": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-07T19:36:40.000+0000", "updated": "2012-11-07T19:36:40.000+0000" }, { "id": "229762", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Alvin, if you're there, we'd appreciate it if you could provide the android device version, device type, and a reproducible test case. Thanks!", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-04T01:25:03.000+0000", "updated": "2012-12-04T01:25:03.000+0000" }, { "id": "235936", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I've set this to resolved so that the issue can now be edited to provide more info.\r\nThanks,\r\nDaniel", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-25T18:20:07.000+0000", "updated": "2013-01-25T18:20:07.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }