{ "id": "63930", "key": "TIMOB-3298", "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": "11360", "description": "Mobile 1.8.0 M07", "name": "Sprint 2011-28", "archived": true, "released": true, "releaseDate": "2011-07-18" }, { "id": "11570", "description": "", "name": "Release 1.7.2", "archived": true, "released": true, "releaseDate": "2011-07-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-07-11T15:35:14.000+0000", "created": "2011-04-15T03:41:39.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ipad", "popover", "splitview" ], "versions": [ { "id": "11367", "description": "", "name": "Release 1.7.1", "archived": true, "released": true, "releaseDate": "2011-06-21" } ], "issuelinks": [], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-07-11T15:35:14.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}

I mentioned this in #944 but thought it better to add a ticket in its\r\nown right. If a SplitWindow is closed while the master view is\r\nbeing displayed in a popover the app crashes with the following\r\nerror:

\r\n

2011-03-06 13:18:52.817 S4CiPad[91506:207] *** Terminating\r\napp due to uncaught exception 'NSGenericException', reason:\r\n'-[UIPopoverController dealloc] reached while popover is still\r\nvisible.'

\r\n

I've seen tickets that suggest that functionality has either\r\nbeen added, or is destined to be added, that lets us control the\r\npopover's visibility programmatically but I think Appcelerator\r\nneeds to be more robust and if necesary close the popover\r\nautomatically when the SplitWindow is closed.

\r\n

I've attached a test case for the issue. I've also got a patch\r\nfor this that you may find acceptable, I'll update this issue once\r\nI've forked the project and committed it.

{html}", "attachment": [ { "id": "18298", "filename": "app.js", "author": { "name": "craigmarvelley", "key": "craigmarvelley", "displayName": "Craig Marvelley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:41:40.000+0000", "size": 810, "mimeType": "application/x-javascript" }, { "id": "21746", "filename": "TIMOB-3298 crash log.txt", "author": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-07T11:43:18.000+0000", "size": 25254, "mimeType": "text/plain" } ], "flagged": false, "summary": "Closing a SplitWindow while the master view popover is visible causes a crash", "creator": { "name": "craigmarvelley", "key": "craigmarvelley", "displayName": "Craig Marvelley", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "craigmarvelley", "key": "craigmarvelley", "displayName": "Craig Marvelley", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "130497", "author": { "name": "craigmarvelley", "key": "craigmarvelley", "displayName": "Craig Marvelley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Pull request is here: https://github.com/appcelerator/titanium_mobile/pull/77

{html}", "updateAuthor": { "name": "craigmarvelley", "key": "craigmarvelley", "displayName": "Craig Marvelley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:41:40.000+0000", "updated": "2011-04-15T03:41:40.000+0000" }, { "id": "156933", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Managed by pull request #77", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-06-16T11:03:52.000+0000", "updated": "2011-06-16T11:03:52.000+0000" }, { "id": "158533", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "crashing using 1.7.2.v20110630161836 + ipad 1 (3.2), assigned TO you as per email conversation", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-05T12:34:40.000+0000", "updated": "2011-07-05T12:34:40.000+0000" }, { "id": "158534", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "CP'd to 1.7.2; crashing bug, fixed.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-05T12:44:48.000+0000", "updated": "2011-07-05T12:44:48.000+0000" }, { "id": "158933", "author": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "body": "version=1.7.2\ntimestamp=06/28/11 13:38\ngithash=a8dd437...\n\nOn all supported iPads (v1, v2) and all supported iOS's (3.2-4.3.3).\n\nSteps to reproduce:\n1)Start in landscape orientation\n2)launch application\n3)tap close\n\nResults: Application has crashed (see log below and crash log attached)\n\nJul 7 11:35:50 unknown 3298[888] : *** Terminating app due to uncaught exception 'NSGenericException', reason: '-[UIPopoverController dealloc] reached while popover is still visible.'\n\t*** Call stack at first throw:\n\t(\n\t\t0 CoreFoundation 0x31e0164f __exceptionPreprocess + 114\n\t\t1 libobjc.A.dylib 0x36afac5d objc_exception_throw + 24\n\t\t2 CoreFoundation 0x31e01491 +[NSException raise:format:arguments:] + 68\n\t\t3 CoreFoundation 0x31e014cb +[NSException raise:format:] + 34\n\t\t4 UIKit 0x3374272d -[UIPopoverController dealloc] + 56\n\t\t5 CoreFoundation 0x31d65c43 -[NSObject(NSObject) release] + 30\n\t\t6 3298 0x000cd25d 3298 + 836189\n\t\t7 CoreFoundation 0x31d65c43 -[NSObject(NSObject) release] + 30\n\t\t8 3298 0x000aa8f9 3298 + 694521\n\t\t9 CoreFoundation 0x31d65c43 -[NSObject(NSObject) release] + 30\n\t\t10 CoreFoundation 0x31d661a1 CFRelease + 68\n\t\t11 CoreFoundation 0x31d68ebb _CFAutoreleasePoolPop + 146\n\t\t12 Foundation 0x30e40bb5 NSPopAutoreleasePool + 8\n\t\t13 Foundation 0x30ecf90f __NSThreadPerformPerform + 626\n\t\t14 CoreFoundation 0x31dd8a79 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12\n\t\t15 CoreFoundation 0x31dda75f __CFRunLoopDoSources0 + 382\n\t\t16 CoreFoundation 0x31ddb4eb __CFRunLoopRun + 230\n\t\t17 CoreFoundation 0x31d6bec3 CFRunLoopRunSpecific + 230\n\t\t18 CoreFoundation 0x31d6bdcb CFRunLoopRunInMode + 58\n\t\t19 GraphicsServices 0x32f5441f GSEventRunModal + 114\n\t\t20 GraphicsServices 0x32f544cb GSEventRun + 62\n\t\t21 UIKit 0x334d4d69 -[UIApplication _run] + 404\n\t\t22 UIKit 0x334d2807 UIApplicationMain + 670\n\t\t23 3298 0x00004095 3298 + 12437\n\t\t24 3298 0x00003934 3298 + 10548\n\t)\nJul 7 11:35:50 unknown UIKitApplication:com.appcelerator.3298[0xe98e][888] : terminate called after throwing an instance of 'NSException'\nJul 7 11:35:50 unknown ReportCrash[889] : Formulating crash report for process 3298[888]\n\n", "updateAuthor": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-07T11:43:03.000+0000", "updated": "2011-07-07T11:43:03.000+0000" }, { "id": "158964", "author": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The same error is reproducible on the iPad simulator running iOS 5.0.\r\n\r\nThe application crashes upon launching on the iPad simulator running iOS 4.3.2.", "updateAuthor": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-07T15:05:32.000+0000", "updated": "2011-07-07T15:05:32.000+0000" }, { "id": "158966", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with a bad githash - the commit to 1_7_X is githash 12539fa, which post-dates a8dd437 (fix-version). Latest githash for 1_7_X is 8b7fa97.\n\nPlease test this bug again with that, and reopen if necessary.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-07T15:28:38.000+0000", "updated": "2011-07-07T15:28:38.000+0000" }, { "id": "159199", "author": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Retested in build 1.7.2.v20110711104645\r\nversion=1.7.2\r\ntimestamp=07/11/11 10:46\r\ngithash=5b3e15a...\r\n\r\nCrash is reproducible on all supported iPads (v1, v2) and all supported iOS's (3.2-4.3.3). Crash is reproducible in both portrait and landscape view when tapping close. \r\n", "updateAuthor": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-11T11:45:57.000+0000", "updated": "2011-07-11T11:51:18.000+0000" }, { "id": "159234", "author": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Retested in build 1.7.2.v20110711104645\nversion=1.7.2\ntimestamp=07/11/11 10:46\ngithash=5b3e15a...\n\nPassed on all supported iPads (v1, v2) and all supported iOS's (3.2-4.3.3). ", "updateAuthor": { "name": "avaghti", "key": "avaghti", "displayName": "Alan Vaghti", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-07-11T15:35:14.000+0000", "updated": "2011-07-11T15:35:14.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }