Skip to content
This repository has been archived by the owner on Jan 19, 2018. It is now read-only.

Sometimes Debugger crash when is added #19

Open
PoissonBallon opened this issue Oct 23, 2017 · 0 comments
Open

Sometimes Debugger crash when is added #19

PoissonBallon opened this issue Oct 23, 2017 · 0 comments

Comments

@PoissonBallon
Copy link

PoissonBallon commented Oct 23, 2017

Hi,

In some case I have a crash from the ATTinternet's debugger when i push a new UIViewController,

Swift Version : 3.1
ATInternetSDK : github "at-internet/atinternet-ios-swift-sdk" == 2.3.0


2017-10-23 18:40:32.939223+0200 XXXX[16513:432469] [LayoutConstraints] The view hierarchy is not prepared for the constraint: <NSLayoutConstraint:0x60800008d2a0 UIView:0x7fd622f42710.width == UIView:0x7fd622c974e0.width   (inactive)>
	When added to a view, the constraint's items must be descendants of that view (or the view itself). This will crash if the constraint needs to be resolved before the view hierarchy is assembled. Break on -[UIView(UIConstraintBasedLayout) _viewHierarchyUnpreparedForConstraint:] to debug.
2017-10-23 18:40:32.939 XXXX16513:432469] *** Assertion failure in -[UIView _layoutEngine_didAddLayoutConstraint:roundingAdjustment:mutuallyExclusiveConstraints:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3600.7.47/NSLayoutConstraint_UIKitAdditions.m:649
2017-10-23 18:40:32.951 XXXX[16513:432469] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Impossible to set up layout with view hierarchy unprepared for constraint.'
*** First throw call stack:
(
	0   CoreFoundation                      0x0000000108d9ab0b __exceptionPreprocess + 171
	1   libobjc.A.dylib                     0x00000001087fa141 objc_exception_throw + 48
	2   CoreFoundation                      0x0000000108d9ecf2 +[NSException raise:format:arguments:] + 98
	3   Foundation                          0x000000010485e536 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 193
	4   UIKit                               0x0000000106297d24 __120-[UIView(UIConstraintBasedLayout) _layoutEngine_didAddLayoutConstraint:roundingAdjustment:mutuallyExclusiveConstraints:]_block_invoke_2 + 206
	5   UIKit                               0x0000000106297be2 -[UIView(UIConstraintBasedLayout) _layoutEngine_didAddLayoutConstraint:roundingAdjustment:mutuallyExclusiveConstraints:] + 412
	6   UIKit                               0x0000000106297f86 -[UIView(UIConstraintBasedLayout) _tryToAddConstraintWithoutUpdatingConstraintsArray:roundingAdjustment:mutuallyExclusiveConstraints:] + 30
	7   UIKit                               0x0000000106298098 -[UIView(UIConstraintBasedLayout) _tryToAddConstraint:roundingAdjustment:mutuallyExclusiveConstraints:] + 221
	8   Tracker                             0x00000001071c3e23 _TTSf4gs_n___TFC7Tracker8Debugger12createWindowfSST6windowCSo6UIView7contentS1_4menuS1_11windowTitleSS_ + 4099
	9   Tracker                             0x00000001071bd224 _TFC7Tracker8Debugger17createEventViewerfT_T_ + 52
	10  Tracker                             0x00000001071bb700 _TFC7Tracker8Debugger12initDebuggerfT_T_ + 384
	11  Tracker                             0x0000000107144719 _TFC7Tracker7Trackers8debuggerGSqCSo16UIViewController_ + 73
	12  PROJECT                                0x0000000102acfea7 _TFC4PROJECT14ViewController13viewDidAppearfSbT_ + 199
	13  PROJECT                                0x0000000102acfef1 _TToFC4PROJECT14ViewController13viewDidAppearfSbT_ + 49
	14  UIKit                               0x0000000105a89cae -[UIViewController _setViewAppearState:isAnimating:] + 704
	15  UIKit                               0x0000000105a8a6d4 -[UIViewController _endAppearanceTransition:] + 197
	16  UIKit                               0x0000000105abf99f -[UINavigationController navigationTransitionView:didEndTransition:fromView:toView:] + 1315
	17  UIKit                               0x0000000105ab52d4 __49-[UINavigationController _startCustomTransition:]_block_invoke + 246
	18  UIKit                               0x0000000106410d1c -[_UIViewControllerTransitionContext completeTransition:] + 102
	19  UIKit                               0x00000001058c93c0 __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke.99 + 803
	20  UIKit                               0x000000010599a024 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 527
	21  UIKit                               0x000000010596d257 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 222
	22  UIKit                               0x000000010596d796 -[UIViewAnimationState animationDidStop:finished:] + 136
	23  QuartzCore                          0x00000001095c068e _ZN2CA5Layer23run_animation_callbacksEPv + 306
	24  libdispatch.dylib                   0x000000010a30c05c _dispatch_client_callout + 8
	25  libdispatch.dylib                   0x000000010a2ed40b _dispatch_main_queue_callback_4CF + 411
	26  CoreFoundation                      0x0000000108d5f909 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
	27  CoreFoundation                      0x0000000108d25ae4 __CFRunLoopRun + 2164
	28  CoreFoundation                      0x0000000108d25016 CFRunLoopRunSpecific + 406
	29  GraphicsServices                    0x000000010bffda24 GSEventRunModal + 62
	30  UIKit                               0x00000001058e1134 UIApplicationMain + 159
	31  PROJECT                               0x0000000102b0b837 main + 55
	32  libdyld.dylib                       0x000000010a35865d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant