{ "id": "122643", "key": "AC-2651", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-01-12T06:16:45.000+0000", "created": "2013-11-19T12:36:13.000+0000", "labels": [ "animation", "slow", "transition", "window" ], "versions": [], "issuelinks": [], "assignee": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:44.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "I'm currently upgrading an iOS6 app to iOS7 using Ti 3.1.2 GA, xCode 5.0.1. However there is an issue with Animations, they appear slower and buggy. \r\n\r\nWhen opening a new Window within a TabGroup often the Window animation leaves a black space or the previous Window is partly displayed underneath during the animation.\r\n\r\nI have created a simple test case which exhibits the same issues. It appears to be an issue with how memory is managed, because the app will crash out. In my example I've used large images ~800KB for the backgrounds (test_1, test_2) and for the images (badger, mushroom) ~80KB. In my real app the images are much smaller in size and the app is less memory intensive mainly consititing of text but the problem still occurs. The larger images are used mainly to force the issue.\r\n\r\n---\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar tabGroup = Titanium.UI.createTabGroup();\r\n\r\nvar count = 0;\r\n\r\nfunction drawWin() {\r\n\tvar win = Titanium.UI.createWindow({ \r\n\t title:'Window '+count,\r\n\t backgroundColor:'#fff',\r\n\t tabBarHidden: true,\r\n\t navBarHidden: true,\r\n\t});\r\n\t\r\n\tvar view = Ti.UI.createView({\r\n\t\tbackgroundImage: (count%2?'test_1.jpg':'test_2.jpg'),\r\n\t});\r\n\twin.add(view);\r\n\t\r\n\tfor(var i=0;i<5;i++) {\r\n\t\tfor(var j=0;j<5;j++) {\r\n\t\t\tvar box = Ti.UI.createView({\r\n\t\t\t\ttop: (0.5+i*10)+'%',\r\n\t\t\t\tleft: (0.5+j*10)+'%',\r\n\t\t\t\tbackgroundColor: 'rgba(81, 247, 181, 0.5)',\r\n\t\t\t\tborderRadius: 20,\r\n\t\t\t\tborderWidth: 2,\r\n\t\t\t\tborderColor: 'rgba(81,98,247,0.6)',\r\n\t\t\t\theight: '9%',\r\n\t\t\t\twidth: '9%',\r\n\t\t\t});\r\n\t\t\tvar image = Ti.UI.createImageView({\r\n\t\t\t\ttop: 10,\r\n\t\t\t\tleft: 10,\r\n\t\t\t\tright: 10,\r\n\t\t\t\tbottom: 10,\r\n\t\t\t\timage: ((i+j)%6?'badger.png':'mushroom.png'),\r\n\t\t\t});\r\n\t\t\tbox.add(image);\r\n\t\t\tvar label = Ti.UI.createLabel({\r\n\t\t\t\ttext: ((i+j)%6?'Badger':'Mushroom'),\r\n\t\t\t\theight: Ti.UI.SIZE,\r\n\t\t\t\twidth: Ti.UI.SIZE,\r\n\t\t\t\tbottom: 10,\r\n\t\t\t\tcolor: 'black',\r\n\t\t\t\tfont: {\r\n\t\t\t\t\tfontSize: 8,\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t\tbox.add(label);\r\n\t\t\tview.add(box);\r\n\t\t}\r\n\t}\r\n\t\r\n\tvar btn = Titanium.UI.createButton({\r\n\t\tright: 50,\r\n\t\tbottom: 20,\r\n\t\theight: Ti.UI.SIZE,\r\n\t\twidth: Ti.UI.SIZE,\r\n\t\tbackgroundColor: 'rgba(255,255,255,0.8)',\r\n\t\tborderRadius: 10,\r\n\t\ttitle: 'Open Next Window',\r\n\t});\r\n\tbtn.addEventListener('click',function(e) {\r\n\t\tvar newWin = drawWin();\r\n\t\tvar style = {\r\n\t\t\tanimated : true,\r\n\t\t};\r\n\t\ttab.open(newWin,style);\r\n\t});\r\n\twin.add(btn);\r\n\r\n\tvar btn2 = Titanium.UI.createButton({\r\n\t\tleft: 50,\r\n\t\tbottom: 20,\r\n\t\theight: Ti.UI.SIZE,\r\n\t\twidth: Ti.UI.SIZE,\r\n\t\tbackgroundColor: 'rgba(255,255,255,0.8)',\r\n\t\tborderRadius: 10,\r\n\t\ttitle: 'Close Window',\r\n\t});\r\n\tbtn2.addEventListener('click',function(e) {\r\n\t\twin.close();\r\n\t});\r\n\twin.add(btn2);\r\n\r\n\t\r\n\tcount++;\r\n\t\r\n\treturn win;\r\n}\r\n\r\nvar win = drawWin();\r\n\r\nvar tab = Titanium.UI.createTab({ \r\n title: 'Tab',\r\n window: win,\r\n});\r\ntabGroup.addTab(tab); \r\n\r\n\r\n// open tab group\r\ntabGroup.open();\r\n---", "attachment": [], "flagged": false, "summary": "Animations iOS7 vs iOS6 - Slower and Buggy", "creator": { "name": "nicholas", "key": "nicholas", "displayName": "Nicholas Cooper", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "nicholas", "key": "nicholas", "displayName": "Nicholas Cooper", "active": true, "timeZone": "Europe/London" }, "environment": "Ti: 3.1.2 GA , 3.1.4\r\nxCode: 5.0.1\r\niPad", "comment": { "comments": [ { "id": "280197", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello,\nwe modified your test case to the bare bone and we can't reproduce the black screen effect. Can you please test it and let us know if you can reproduce it?\n\nWe can't move your bug with your current testcase because is too complex, and likely to be rejected. If you can strip it to the minimal amount of code, would be pretty awesome.\n\nOur testcase: \n\n{code}\nTitanium.UI.setBackgroundColor('#000');\nvar tabGroup = Titanium.UI.createTabGroup();\n\nvar count = 0;\n\nfunction drawWin() {\n\tvar win = Titanium.UI.createWindow({\n\t\ttitle : 'Window ' + count,\n\t\tbackgroundColor : '#fff',\n\t\ttabBarHidden : true,\n\t\tnavBarHidden : true,\n\t});\n\n\tvar btn = Titanium.UI.createButton({\n\t\tright : 50,\n\t\tbottom : 20,\n\t\ttitle : 'Open Next Window',\n\t});\n\tbtn.addEventListener('click', function(e) {\n\t\tvar newWin = drawWin();\n\t\tvar style = {\n\t\t\tanimated : true,\n\t\t};\n\t\ttab.open(newWin, style);\n\t});\n\twin.add(btn);\n\n\tvar btn2 = Titanium.UI.createButton({\n\t\tleft : 50,\n\t\tbottom : 20,\n\t\ttitle : 'Close Window',\n\t});\n\tbtn2.addEventListener('click', function(e) {\n\t\twin.close();\n\t});\n\twin.add(btn2);\n\n\tcount++;\n\n\treturn win;\n}\n\nvar win = drawWin();\n\nvar tab = Titanium.UI.createTab({\n\ttitle : 'Tab',\n\twindow : win,\n});\ntabGroup.addTab(tab);\n\n// open tab group\ntabGroup.open();\n{code}", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-11-19T18:29:12.000+0000", "updated": "2013-11-19T18:29:12.000+0000" }, { "id": "280516", "author": { "name": "nicholas", "key": "nicholas", "displayName": "Nicholas Cooper", "active": true, "timeZone": "Europe/London" }, "body": "The only problem with this test case is it's not memory intensive like the original. I will try and create one that is half way between the two.", "updateAuthor": { "name": "nicholas", "key": "nicholas", "displayName": "Nicholas Cooper", "active": true, "timeZone": "Europe/London" }, "created": "2013-11-21T08:54:34.000+0000", "updated": "2013-11-21T08:54:34.000+0000" }, { "id": "286358", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nWe tested this issue again with the latest TiSDK. We can't reproduce it even with a memory intensive app. Not sure if this is still showing similar memory issues in your app. If so, please send us a test case so that we can take next necessary step to fix. \r\n\r\n\r\nh5. Test Environment\r\n\r\nMAC OS X 10.8.5,\r\nTitanium SDK 3.2.0 GA\r\nIOS Simulator 7.0.3\r\nTi CLI 3.2.0 \r\n \r\nThanks\r\n", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-31T13:11:15.000+0000", "updated": "2013-12-31T18:49:39.000+0000" }, { "id": "287871", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Resolving this ticket as we have not been able to reproduce this issue with the test case above. We would be happy to reopen this ticket if you can provide a simple test case to reproduce this issue.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-12T06:16:45.000+0000", "updated": "2014-01-12T06:16:45.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }