{ "id": "82074", "key": "AC-2762", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2011-12-29T06:34:35.000+0000", "created": "2011-10-28T04:31:28.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:47:40.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": "h2. Problem\r\n\r\niPad always crashes when I try to open an option dialog in a modal window.\r\n\r\niPhone not affected.\r\n\r\nh2. Test case\r\n\r\n{code:lang=javascript|title=app.js}\r\nvar winTest = Ti.UI.createWindow({\r\n url:'test.js'\r\n});\r\n \r\nwinTest.open({modal:true});\r\n{code}\r\n\r\n{code:lang=javascript|title=test.js}\r\nvar win = Ti.UI.currentWindow;\r\n \r\nvar actionButton = Ti.UI.createButton({\r\n systemButton:Ti.UI.iPhone.SystemButton.ACTION\r\n});\r\n \r\nwin.setRightNavButton(actionButton);\r\n \r\nactionButton.addEventListener('click',function(e) {\r\n var dialog = Ti.UI.createOptionDialog({\r\n title: 'Hello',\r\n options: ['Option 1','Option 2'],\r\n cancel:1\r\n });\r\n \r\n dialog.show(); \r\n});\r\n{code}\r\n\r\nh2. Logs\r\n\r\n{code}\r\n2011-10-27 17:24:06.278 myApp[28876:207] *** Assertion failure in -[UIActionSheet showInView:], /SourceCache/UIKit_Sim/UIKit-1448.89/UIActionSheet.m:4402\r\n \r\n*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: view != nil'\r\n*** Call stack at first throw:\r\n(\r\n 0 CoreFoundation 0x03dfe5a9 __exceptionPreprocess + 185\r\n 1 libobjc.A.dylib 0x03c2d313 objc_exception_throw + 44\r\n 2 CoreFoundation 0x03db6ef8 +[NSException raise:format:arguments:] + 136\r\n 3 Foundation 0x007f03bb -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 116\r\n 4 UIKit 0x00d8b3c2 -[UIActionSheet showInView:] + 162\r\n 5 UIKit 0x00d8f8ab -[UIActionSheet _presentPopoverInCenterOfWindowForView:] + 281\r\n 6 myApp 0x000aa933 -[TiUIOptionDialogProxy updateOptionDialogNow] + 1059\r\n 7 myApp 0x000aa127 -[TiUIOptionDialogProxy show:] + 3143\r\n 8 Foundation 0x0077494e __NSThreadPerformPerform + 251\r\n 9 CoreFoundation 0x03ddf8ff __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15\r\n 10 CoreFoundation 0x03d3d88b __CFRunLoopDoSources0 + 571\r\n 11 CoreFoundation 0x03d3cd86 __CFRunLoopRun + 470\r\n 12 CoreFoundation 0x03d3c840 CFRunLoopRunSpecific + 208\r\n 13 CoreFoundation 0x03d3c761 CFRunLoopRunInMode + 97\r\n 14 GraphicsServices 0x042761c4 GSEventRunModal + 217\r\n 15 GraphicsServices 0x04276289 GSEventRun + 115\r\n 16 UIKit 0x00a03c93 UIApplicationMain + 1160\r\n 17 myApp 0x00003dba main + 442\r\n 18 myApp 0x00002705 start + 53\r\n 19 ??? 0x00000001 0x0 + 1\r\n)\r\n \r\nabort() called\r\n{code}\r\n\r\nh2. Discussions\r\n\r\nQ&A: [ipad crash in modal window with option dialog|http://developer.appcelerator.com/question/127452/ipad-crash-in-modal-window-with-option-dialog]\r\n", "attachment": [], "flagged": false, "summary": "iPad crash in modal window with option dialog", "creator": { "name": "danny005", "key": "danny005", "displayName": "Danny Pham", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "danny005", "key": "danny005", "displayName": "Danny Pham", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "* Titanium SDK 1.7.3, 1.7.2\r\n* iOS 4.3 and 5\r\n* Crashes on iPad, Simulator and real device (which real device?)", "comment": { "comments": [ { "id": "177541", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Hi Danny\r\n\r\nFor your future tickets, please note the changes I have made. \r\n\r\nAn option dialog is a [modal window|http://en.wikipedia.org/wiki/Modal_window] itself, so it seems counter-intuitive to open one in a modal window. The fact that this does not crash on iphone may be just luck.\r\n\r\nI will find out more about this before I move it across. Putting it on hold for now.\r\n\r\nThanks for your patience\r\n\r\n\r\n\r\n", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-29T04:44:56.000+0000", "updated": "2011-12-29T04:44:56.000+0000" }, { "id": "177553", "author": { "name": "crossbits", "key": "crossbits", "displayName": "Danny Pham", "active": true, "timeZone": "Europe/Berlin" }, "updateAuthor": { "name": "crossbits", "key": "crossbits", "displayName": "Danny Pham", "active": true, "timeZone": "Europe/Berlin" }, "created": "2011-12-29T05:36:26.000+0000", "updated": "2011-12-29T05:36:26.000+0000" }, { "id": "177557", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Thanks for the update, Danny", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-29T06:34:35.000+0000", "updated": "2011-12-29T06:34:35.000+0000" }, { "id": "281032", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "DUP issue. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-11-24T22:30:04.000+0000", "updated": "2013-11-24T22:30:04.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }