{ "id": "107275", "key": "AC-2144", "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-04-05T20:41:37.000+0000", "created": "2013-01-03T01:26:36.000+0000", "labels": [ "regression" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41:07.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": "In order to reproduce, you must create an app with a tab bar layout.\r\n\r\nIn this app I have 5 tabs.\r\n\r\nSome of those tabs drills down to simple windows (all imported using require.js)\r\n\r\nIf you drill-down on one tab to let's say 3 or 4 levels deep, and them go to another tab and drill down to 3-4 levels deep. Now go back to the 1st tab and start closing windows (getting back on the drill down).\r\n\r\nOnce you reach the parent, the app crashes and closes completely.\r\n\r\nTitanium doesn't generate any logs.\r\n\r\nI did got a crash report though.\r\n\r\n\r\n\r\nFor closing the windows I've tried to use simple window.close() and also the close() method of the tabgroup. both generated the same result.\r\n\r\nCan someone enlighten-me towards what is crashing here? I saw some references to redraw issues on the crash report coming from TiViewProxy.\r\n\r\n\r\nThe crash reports are attached. All derived from the same bug reproduction.\r\n\r\nAlso attached is a video file showing the behavior.", "attachment": [ { "id": "34443", "filename": "AirportChatter_2013-01-02-231007_yAir.crash", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2013-01-03T01:26:36.000+0000", "size": 58110, "mimeType": "application/octet-stream" }, { "id": "34442", "filename": "AirportChatter_2013-01-02-231128_yAir.crash", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2013-01-03T01:26:36.000+0000", "size": 58110, "mimeType": "application/octet-stream" }, { "id": "34444", "filename": "AirportChatter_2013-01-02-232357_yAir.crash", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2013-01-03T01:26:36.000+0000", "size": 58110, "mimeType": "application/octet-stream" }, { "id": "34551", "filename": "ctb.js", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2013-01-04T09:45:03.000+0000", "size": 2091, "mimeType": "text/javascript" }, { "id": "34445", "filename": "ScreenFlow.mp4", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2013-01-03T01:26:36.000+0000", "size": 1955326, "mimeType": "video/mp4" } ], "flagged": false, "summary": "iOS: App crashes when closing windows inside tabs (navgroups) with SDK 3.0", "creator": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "subtasks": [], "reporter": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "environment": "iOS 6\r\niPhone device/iOS Simulator\r\nSDK 3.0", "comment": { "comments": [ { "id": "233083", "author": { "name": "m@rco.cc", "key": "m@rco.cc", "displayName": "Marco Ferreira", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "I was recently moving away from tabgroup with a custom design on top, to a totally custom tabgroup (no native tabgroup below) and the app was doing exactly what is mentioned in the bug report: every time I drilled down the navgroup and get back to the root window, the app crashed.\n\nAfter experiencing this, I got back to native tabgroup. But I also got back to the issue i was having:\nusing the native tabgroup, drilling down the navgroups a couple windows in the navgroups on the first 2 tabs (app has 2) and then switching to the 3rd tab is crashing the app. Curiously, it seems that the cause is exactly the same reported by Ygor.\n\nSince I was getting a EXC_BAD_ACCESS, I executed the app from Xcode with Zombie Objects enabled to track down the problem. And look at that, redraw problem coming from TiViewProxy.\n", "updateAuthor": { "name": "m@rco.cc", "key": "m@rco.cc", "displayName": "Marco Ferreira", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2013-01-03T15:34:03.000+0000", "updated": "2013-01-03T15:34:03.000+0000" }, { "id": "233231", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "Marco,\n\nWhen you got this bug, were you using something like the attached js for custom tabs?\n\nI'm using this as well on the project that is crashing for custom tabs.\n\nMaybe it helps the guys at engineering track down what is happening.\n\n(Moving this discussion from Titans List to here so everyone on JIRA can be up-to-date)\n\nAttached the ctb.js file (which I use for custom tabs on the crashing app)", "updateAuthor": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2013-01-04T09:43:55.000+0000", "updated": "2013-01-04T09:43:55.000+0000" }, { "id": "233232", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "This is what I use for custom tabs on Titanium. I know that can be optimized but It shouldn't be crashing TiViewProxy.", "updateAuthor": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2013-01-04T09:45:03.000+0000", "updated": "2013-01-04T09:45:03.000+0000" }, { "id": "236712", "author": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Ygor,\n\nThanks for attaching the code, would it be possible for you to provide a runnable sample that uses your custom tab bar module?", "updateAuthor": { "name": "btran", "key": "btran", "displayName": "Betty Tran", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-31T12:52:02.000+0000", "updated": "2013-01-31T12:52:02.000+0000" }, { "id": "246053", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "Davide, I can allow access to the code of the app on Github for an Appcelerator developer, does this helps?\r\n\r\nThis is still happening on the latest versions of Titanium and I found more than one developer affected by the same bug.\r\n\r\nI gave Eric Merriman access to one of my Github repos a few weeks ago for sorting out another bug which turn to be fixed, I can do the same here.\r\n\r\nThe reason I recommend it is that maybe the bug can't be reproduced on short test cases ( < 100 lines ).\r\n\r\n\r\nThanks", "updateAuthor": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2013-04-05T21:01:03.000+0000", "updated": "2013-04-05T21:02:41.000+0000" }, { "id": "283020", "author": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Ygor,\n\nIf this is still an issue, we would like to investigate it further. Sorry that we have not responded back in a while. We want to ensure this gets reviewed by engineering if we can reproduce it. Does Eric still have access to your github repo? I can get the source from him and get it reviewed. Please let me know your updates.\n\nThanks,\nShak", "updateAuthor": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-07T02:30:44.000+0000", "updated": "2013-12-07T02:30:44.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }