[TIMOB-3298] Closing a SplitWindow while the master view popover is visible causes a crash
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-07-11T15:35:14.000+0000 |
Affected Version/s | Release 1.7.1 |
Fix Version/s | Sprint 2011-28, Release 1.7.2 |
Components | iOS |
Labels | ipad, popover, splitview |
Reporter | Craig Marvelley |
Assignee | Stephen Tramer |
Created | 2011-04-15T03:41:39.000+0000 |
Updated | 2011-07-11T15:35:14.000+0000 |
Description
I mentioned this in #944 but thought it better to add a ticket in its own right. If a SplitWindow is closed while the master view is being displayed in a popover the app crashes with the following error:
2011-03-06 13:18:52.817 S4CiPad[91506:207] *** Terminating
app due to uncaught exception 'NSGenericException', reason:
'-[UIPopoverController dealloc] reached while popover is still
visible.'
I've seen tickets that suggest that functionality has either been added, or is destined to be added, that lets us control the popover's visibility programmatically but I think Appcelerator needs to be more robust and if necesary close the popover automatically when the SplitWindow is closed.
I've attached a test case for the issue. I've also got a patch for this that you may find acceptable, I'll update this issue once I've forked the project and committed it.
Attachments
File | Date | Size |
---|---|---|
app.js | 2011-04-15T03:41:40.000+0000 | 810 |
TIMOB-3298 crash log.txt | 2011-07-07T11:43:18.000+0000 | 25254 |
Pull request is here: https://github.com/appcelerator/titanium_mobile/pull/77">https://github.com/appcelerator/titanium_mobile/pull/77
Managed by pull request #77
crashing using 1.7.2.v20110630161836 + ipad 1 (3.2), assigned TO you as per email conversation
CP'd to 1.7.2; crashing bug, fixed.
version=1.7.2 timestamp=06/28/11 13:38 githash=a8dd437... On all supported iPads (v1, v2) and all supported iOS's (3.2-4.3.3). Steps to reproduce: 1)Start in landscape orientation 2)launch application 3)tap close Results: Application has crashed (see log below and crash log attached) Jul 7 11:35:50 unknown 3298[888]
The same error is reproducible on the iPad simulator running iOS 5.0. The application crashes upon launching on the iPad simulator running iOS 4.3.2.
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. Please test this bug again with that, and reopen if necessary.
Retested in build 1.7.2.v20110711104645 version=1.7.2 timestamp=07/11/11 10:46 githash=5b3e15a... Crash 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.
Retested in build 1.7.2.v20110711104645 version=1.7.2 timestamp=07/11/11 10:46 githash=5b3e15a... Passed on all supported iPads (v1, v2) and all supported iOS's (3.2-4.3.3).