Open dklinzh opened 7 years ago
same issue.
me too.
'Texture', '~> 2.6'
ASDisplayNode.shouldShowRangeDebugOverlay = YES;
When the App goes back to the foreground from the background.
Delete ASDisplayNode.shouldShowRangeDebugOverlay = YES;
no problem。
crash log
[ASDisplayNode setFrame:] - The new frame ({{nan, 11}, {nan, 9}}) is invalid and unsafe to be set.
(null)
((
0 CoreFoundation 0x00000001127de1bb __exceptionPreprocess + 331
1 libobjc.A.dylib 0x00000001176be735 objc_exception_throw + 48
2 CoreFoundation 0x00000001127ddf42 +[NSException raise:format:arguments:] + 98
3 Foundation 0x0000000113ddc877 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 194
4 AsyncDisplayKit 0x00000001113e7d90 -[ASDisplayNode(UIViewBridge) setFrame:] + 1904
5 AsyncDisplayKit 0x000000011158c061 __38-[_ASRangeDebugBarView layoutSubviews]_block_invoke + 177
6 UIKitCore 0x000000011e986bf2 +[UIView(UIViewAnimationWithBlocks) _setupAnimationWithDuration:delay:view:options:factory:animations:start:animationStateGenerator:completion:] + 558
7 UIKitCore 0x000000011e9870cf +[UIView(UIViewAnimationWithBlocks) animateWithDuration:delay:options:animations:completion:] + 99
8 AsyncDisplayKit 0x000000011158afc6 -[_ASRangeDebugBarView layoutSubviews] + 2518
9 UIKitCore 0x000000011e993795 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1441
10 QuartzCore 0x000000011597db19 -[CALayer layoutSublayers] + 175
11 QuartzCore 0x00000001159829d3 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 395
12 QuartzCore 0x00000001158fb7ca _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 342
13 QuartzCore 0x000000011593297e _ZN2CA11Transaction6commitEv + 576
14 UIKitCore 0x000000011e4c42d0 __34-[UIApplication _firstCommitBlock]_block_invoke_2 + 139
15 CoreFoundation 0x000000011274362c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
16 CoreFoundation 0x0000000112742de0 __CFRunLoopDoBlocks + 336
17 CoreFoundation 0x000000011273d654 __CFRunLoopRun + 1284
18 CoreFoundation 0x000000011273ce11 CFRunLoopRunSpecific + 625
19 GraphicsServices 0x000000011af801dd GSEventRunModal + 62
20 UIKitCore 0x000000011e4a981d UIApplicationMain + 140
21 0x000000010f33f6d0 main + 112
22 libdyld.dylib 0x0000000118c91575 start + 1
)
I have close Enable Foundation Assertions
in Build Settings
, and it works.
I knew property
shouldShowRangeDebugOverlay
is only for debug purpose. Then I turn it on inAppDelegate
of the example project AsyncDisplayKitOverview likes below:But it only works fine with the viewControllers related to
ASRangeController
, such asOverviewASCollectionNode
,OverviewASTableNode
,OverviewASPagerNode
. Otherwise, It would occur an exception when push to a simpleASViewController
/UIViewController
fromOverviewComponentsViewController
withASTableNode
. So I think it would restrict the use of this feature in development . Can anyone help me? THX Logs: