{ "id": "119989", "key": "AC-1737", "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-09-16T09:54:48.000+0000", "created": "2013-09-16T09:29:18.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:40:37.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": "The application crashes on adding a view after complete loading of a modal window\r\n\r\nError-Log:\r\n[ERROR] : \b\b \bThe application has crashed with an uncaught exception 'NSRangeException'.\r\n[ERROR] : \b\b \bReason:\r\n[ERROR] : \b\b \b*** -[__NSArrayM objectAtIndex:]: index 5 beyond bounds [0 .. 4]\r\n[ERROR] : \b\b \bStack trace:\r\n[ERROR] : \b\b \b0 CoreFoundation 0x03e5c012 __exceptionPreprocess + 178\r\n[ERROR] : \b\b \b1 libobjc.A.dylib 0x038a4e7e objc_exception_throw + 44\r\n[ERROR] : \b\b \b2 CoreFoundation 0x03dfe0b4 -[__NSArrayM objectAtIndex:] + 196\r\n[ERROR] : \b\b \b3 App\t\t\t\t 0x0007bc30 -[TiViewProxy insertSubview:forProxy:] + 1520\r\n[ERROR] : \b\b \b4 App\t\t\t\t\t 0x0007b568 -[TiViewProxy refreshView:] + 2232\r\n[ERROR] : \b\b \b5 App\t\t\t\t 0x0007c7c3 -[TiViewProxy layoutChildrenIfNeeded] + 259\r\n[ERROR] : \b\b \b6 App\t\t\t\t 0x002001d7 +[TiLayoutQueue layoutProxy:] + 87\r\n[ERROR] : \b\b \b7 App\t\t\t\t 0x001fffa2 performLayoutRefresh + 530\r\n[ERROR] : \b\b \b8 CoreFoundation 0x03e1b376 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 22\r\n[ERROR] : \b\b \b9 CoreFoundation 0x03e1ae06 __CFRunLoopDoTimer + 534\r\n[ERROR] : \b\b \b10 CoreFoundation 0x03e02a82 __CFRunLoopRun + 1810\r\n[ERROR] : \b\b \b11 CoreFoundation 0x03e01f44 CFRunLoopRunSpecific + 276\r\n[ERROR] : \b\b \b12 CoreFoundation 0x03e01e1b CFRunLoopRunInMode + 123\r\n[ERROR] : \b\b \b13 GraphicsServices 0x040947e3 GSEventRunModal + 88\r\n[ERROR] : \b\b \b14 GraphicsServices 0x04094668 GSEventRun + 104\r\n[ERROR] : \b\b \b15 UIKit 0x01302ffc UIApplicationMain + 1211\r\n[ERROR] : \b\b \b16 App\t\t\t\t 0x00007918 main + 456\r\n[ERROR] : \b\b \b17 App\t\t\t\t 0x00002fd5 start + 53\r\n[ERROR] : \b\b \b2013-09-16 11:11:24.898 App[31924:c07] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 5 beyond bounds [0 .. 4]'\r\n[ERROR] : \b\b \b*** First throw call stack:\r\n[ERROR] : \b\b \b(0x3e5c012 0x38a4e7e 0x3dfe0b4 0x7bc30 0x7b568 0x7c7c3 0x2001d7 0x1fffa2 0x3e1b376 0x3e1ae06 0x3e02a82 0x3e01f44 0x3e01e1b 0x40947e3 0x4094668 0x1302ffc 0x7918 0x2fd5)\r\n-- End simulator log ---------------------------------------------------------", "attachment": [], "flagged": false, "summary": "iOS: Modal window crashes on adding another view", "creator": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Ti SDK 3.1.3.v20130913160104\r\nTitanium Studio, build: 3.1.2.201308091617\r\nXCode GM", "comment": { "comments": [ { "id": "271216", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello Sebastian Klaus,\n\nCan you post some code with test case?\n\nThanks ", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2013-09-16T09:55:05.000+0000", "updated": "2013-09-16T09:55:05.000+0000" }, { "id": "271686", "author": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "body": "Sorry, code is too complicated to extract. But found out, that a view on a modal window on iPad could not be added with a zIndex", "updateAuthor": { "name": "benutzername", "key": "benutzername", "displayName": "Sebastian Klaus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-09-18T07:00:15.000+0000", "updated": "2013-09-18T07:00:15.000+0000" }, { "id": "284346", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "We tried to reproduce this issue with the test code below but the test case ran fine with Titanium SDK 3.2.0.v20131209192649. I would appreciate if you can give your application a try with the latest 3.2.0 SDK or provide a simple test case to reproduce the problem.\r\n\r\nEnvironment:\r\nOSX Version 10.8.5 and 10.9\r\nTitanium Studio, build: 3.1.3.201309132423\r\nTi CLI 3.1.2, 3.2.0-cr3\r\nTitanium SDK: 3.1.3.GA, 3.2.0.v20131209192649\r\niOS Simulator 7.0 \r\n\r\n\r\nh5. Test Code \r\n\r\n{code}\r\n var root = Titanium.UI.createWindow({\r\n\tbackgroundColor : \"#269\"\r\n});\r\n\r\n// create a system add button\r\n\r\nvar add = Titanium.UI.createButton({\r\n\tsystemButton : Titanium.UI.iPhone.SystemButton.ADD\r\n});\r\n\r\n// create another window and add system add button\r\n\r\nvar appWin = Titanium.UI.createWindow({\r\n\tbackgroundColor : \"red\",\r\n\ttitle : \"App\",\r\n\trightNavButton : add\r\n});\r\n\r\n// Create Navigatio group\r\n\r\nvar nav = Ti.UI.iPhone.createNavigationGroup({\r\n\twindow : appWin\r\n})\r\nroot.add(nav);\r\n\r\n// Event listner for displaying\r\nadd.addEventListener('click', function(e) {\r\n\r\n\t// Create a modal window\r\n\r\n\tvar w = Titanium.UI.createWindow({\r\n\t\tbackgroundColor : 'orange',\r\n\t\ttitle : 'Modal',\r\n\t\tmodal : true,\r\n\t\tlayout: 'vertical'\r\n\t});\r\n\r\n\t// create a view\r\n\r\n\tvar view = Titanium.UI.createView({\r\n\t\tbackgroundColor : 'black',\r\n\t\tcolor : 'white',\r\n\t\twidth : '70%',\r\n\t\theight: 200,\r\n\t});\r\n\r\n\t// Create a Label.\r\n\tvar label = Ti.UI.createLabel({\r\n\t\ttext : 'Add view in a modal window',\r\n\t\ttextAlign : 'center',\r\n\t\tcolor : 'white'\r\n\t});\r\n\r\n\t// Add to the parent view.\r\n\tvar view1 = Titanium.UI.createView({\r\n\t\tbackgroundColor : '#fff',\r\n\t\tcolor : 'white',\r\n\t\twidth : '70%',\r\n\t\t\r\n\t\theight: 200,\r\n\t\ttop : 20,\r\n\t});\r\n\r\n\tview.add(label);\r\n\tw.add(view);\r\n\tw.add(view1);\r\n\tw.open();\r\n\r\n});\r\n\r\nroot.open();\r\n\r\n\r\n{code}\r\n ", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-12-14T16:08:11.000+0000", "updated": "2013-12-16T05:02:10.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }