{ "id": "131349", "key": "TIMOB-17083", "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": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" }, { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-06-10T01:05:43.000+0000", "created": "2014-06-06T08:43:46.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "module_animation", "qe-3.3.0", "qe-testadded" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [], "assignee": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2014-07-02T08:23:47.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": "Clicking on view continuously while animation, freezes the app. This is not regression as it occurred in SDK: 3.2.3.GA\r\n\r\n*Steps To Replicate*\r\n1. Launch app using below code in app.js\r\n2. Click on Red view to start animation\r\n3. When Red view size increases during animation, click n number of times. Observe app freezes and Red view size remains larger and does not decrease on further click.\r\n4. Now click blue view to generate animation and click n times when the view is rotated to a degree\r\n\r\nActual: Observe the view freezes in that particular state only. Size does not decrease for red view and blue does not comes at its original position.[Screenshot attached]\r\nExpected: Animation should complete while clicking and app should not freeze. \r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor:'green'\r\n});\r\n \r\nvar box = Ti.UI.createView({\r\n backgroundColor : 'red',\r\n height : '150dp',\r\n width : '100dp',\r\n top: '50dp'\r\n });\r\n \r\n box.addEventListener('click', function() {\r\n var matrix = Ti.UI.create2DMatrix().scale(1.5, 1.5);\r\n var a = Ti.UI.createAnimation({\r\n transform : matrix,\r\n duration : 500,\r\n autoreverse : true,\r\n repeat : 2\r\n });\r\n box.animate(a);\r\n });\r\n win.add(box);\r\n \r\n var box2 = Ti.UI.createView({\r\n backgroundColor: \"blue\",\r\n top: \"285dp\",\r\n height: \"100dp\",\r\n width: \"100dp\"\r\n });\r\n \r\n box2.addEventListener(\"click\", function() {\r\n var matrix = Ti.UI.create2DMatrix().rotate(97);\r\n box2.animate({transform: matrix, duration: 500, autoreverse: true, repeat: 2});\r\n });\r\n win.add(box2);\r\nwin.open();\r\n{code}\r\n\r\nNote: Works fine on iOS. Verified using iPod touch2 (v7.1)", "attachment": [ { "id": "48689", "filename": "AnimationError.png", "author": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-06-06T08:43:46.000+0000", "size": 25050, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: Animation: App freezes when continously clicked on view while animation", "creator": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "prastogi", "key": "prastogi", "displayName": "Pragya Rastogi", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "OSX: 10.9.3\r\nXcode: 5.1.1\r\nAppcelerator Studio: 3.3.0.201405271647\r\nSDK -3.3.0.v20140605150555\r\nacs-1.0.14\r\nalloy-1.4.0-beta\r\nnpm-1.3.2\r\ntitanium-3.3.0-beta2\r\ntitanium-code-processor-1.1.1\r\nDevice: Nexus 7 (4.3)", "closedSprints": [ { "id": 121, "state": "closed", "name": "2014 Sprint 12 SDK", "startDate": "2014-06-09T21:51:17.043Z", "endDate": "2014-06-21T00:00:00.000Z", "completeDate": "2014-06-23T16:52:29.621Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "307896", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the issue is reproducible.\r\nNOTE: The app does not freeze but the animation stops.\r\n\r\nThere is no fixed value of \"n\". \r\nWith the first tap animation starts.\r\nWith second tap while the animation is running , the animation slows down little bit.\r\nWith subsequent taps while animation is running, it reaches a point where the animation stops(due to consequent slowing of the animation).\r\n\r\nOn IOS:\r\nIF we tap the view while the animation is running we get a warning:\r\n{code}[WARN] : New layout set while view [object TiUIView] animating: Will relayout after animation.{code}\r\n\r\nSo, I guess in android it does not wait for the current animation to complete when it receives the second or \"n\" th tap.\r\n\r\nEnvironment:\r\nAppc Studio : 3.3.0.201405271647\r\nTi SDK : 3.3.0.v20140605150555 \r\nMac OSX : 10.8.5\r\nAlloy : 1.4.0-beta2\r\nCLI - 3.3.0-beta2\r\nCode Processor: 1.1.1\r\nNexus 5 - android 4.4.2", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-06T21:29:27.000+0000", "updated": "2014-06-06T21:29:27.000+0000" }, { "id": "308153", "author": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master PR: https://github.com/appcelerator/titanium_mobile/pull/5782\r\n3.3.X PR: https://github.com/appcelerator/titanium_mobile/pull/5784", "updateAuthor": { "name": "hpham", "key": "hpham", "displayName": "Hieu Pham", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-10T00:01:13.000+0000", "updated": "2014-06-10T01:10:35.000+0000" }, { "id": "308451", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified with:\r\nAppcelerator-Studio: 3.3.0.201406061445\r\nSdk:3.3.0.v20140610102512\r\nacs:1.0.14\r\nalloy:1.4.0-rc\r\nnpm:1.3.2\r\ntitanium:3.3.0-rc\r\ntitanium-code-processor:1.1.1\r\nxcode:5.1.1\r\nOS:Maverick(10.9.3)\r\nDevice:iPhone5c(v7.1.1),Nexus7(v4.4.2)\r\n\r\nApp does not freeze on clicking animated box n number of times.\r\nHence closing the issue.", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-11T11:39:14.000+0000", "updated": "2014-06-11T11:39:14.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }