-
Notifications
You must be signed in to change notification settings - Fork 73
Crash when dismiss #5
Description
The hierarchy is JASidePanelController -> FlipBoardNavigationController -> STLViewController -> STLSecondPageViewController
It will crash unless I change the window.rootViewController to STLViewController and present STLSecondPageViewController.
Thank you!
Error code:
2014-01-07 14:33:39.439 PodTesting[3203:70b] *** Terminating app due to uncaught exception 'UIViewControllerHierarchyInconsistency', reason: 'child view controller:<STLViewController: 0x10bc50100> should have parent view controller:(null) but actual parent is:<FlipBoardNavigationController: 0x10bc4eb10>'
*** First throw call stack:
(
0 CoreFoundation 0x0000000102010795 exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000101d73991 objc_exception_throw + 43
2 CoreFoundation 0x00000001020105ad +[NSException raise:format:] + 205
3 UIKit 0x0000000100e8ca1f -[UIView(Hierarchy) _associatedViewControllerForwardsAppearanceCallbacks:performHierarchyCheck:isRoot:] + 308
4 UIKit 0x0000000100e8cda3 -[UIView(Hierarchy) _willMoveToWindow:withAncestorView:] + 215
5 UIKit 0x0000000100e96e9e -[UIView(Internal) _addSubview:positioned:relativeTo:] + 407
6 PodTesting 0x000000010007a4e3 +[MHNatGeoViewControllerTransition dismissViewController:duration:completion:] + 467
7 PodTesting 0x000000010007adce -[UIViewController(MHNatGeoViewControllerTransition) dismissNatGeoViewControllerWithCompletion:] + 110
8 PodTesting 0x000000010007ae25 -[UIViewController(MHNatGeoViewControllerTransition) dismissNatGeoViewController] + 53
9 PodTesting 0x0000000100005dd1 -[STLSecondPageViewController goBack:] + 289
10 UIKit 0x0000000100e3f096 -[UIApplication sendAction:to:from:forEvent:] + 80
11 UIKit 0x0000000100e3f044 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 17
12 UIKit 0x0000000100f13450 -[UIControl _sendActionsForEvents:withEvent:] + 203
13 UIKit 0x0000000100f129c0 -[UIControl touchesEnded:withEvent:] + 530
14 UIKit 0x0000000100e73c15 -[UIWindow _sendTouchesForEvent:] + 701
15 UIKit 0x0000000100e74633 -[UIWindow sendEvent:] + 988
16 UIKit 0x0000000100e4dfa2 -[UIApplication sendEvent:] + 211
17 UIKit 0x0000000100e3bd7f _UIApplicationHandleEventQueue + 9549
18 CoreFoundation 0x0000000101f9fec1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
19 CoreFoundation 0x0000000101f9f792 __CFRunLoopDoSources0 + 242
20 CoreFoundation 0x0000000101fbb61f __CFRunLoopRun + 767
21 CoreFoundation 0x0000000101fbaf33 CFRunLoopRunSpecific + 467
22 GraphicsServices 0x0000000103ce53a0 GSEventRunModal + 161
23 UIKit 0x0000000100e3e043 UIApplicationMain + 1010
24 PodTesting 0x0000000100005e63 main + 115
25 libdyld.dylib 0x000000010269f5fd start + 1
26 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException