Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App crash when opening #1

Closed
allenlinli opened this issue Sep 29, 2017 · 0 comments
Closed

App crash when opening #1

allenlinli opened this issue Sep 29, 2017 · 0 comments

Comments

@allenlinli
Copy link

Hi, I found the crash when I build up the project.
It seems a crash when PKHUD library.

System:
cocoapod: 1.3.1
Xcode 9.0, iOS 11.0

2017-09-29 17:14:48.651575+0800 iOS-Viper-Architecture[12446:199585] *** Assertion failure in -[PKHUD.FrameView _addSubview:positioned:relativeTo:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3694.4.18/UIVisualEffectView.m:1464
2017-09-29 17:14:48.659722+0800 iOS-Viper-Architecture[12446:199585] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '<PKHUD.PKHUDProgressView: 0x7fc55a0103f0; frame = (0 0; 156 156); clipsToBounds = YES; alpha = 0.85; layer = <CALayer: 0x60c0000302a0>> has been added as a subview to <PKHUD.FrameView: 0x7fc55a00dea0; baseClass = UIVisualEffectView; frame = (0 0; 156 156); clipsToBounds = YES; autoresize = LM+RM+TM+BM; layer = <CALayer: 0x600000028b80>>. Do not add subviews directly to the visual effect view itself, instead add them to the -contentView.'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000011400a1cb __exceptionPreprocess + 171
	1   libobjc.A.dylib                     0x00000001100c7f41 objc_exception_throw + 48
	2   CoreFoundation                      0x000000011400f362 +[NSException raise:format:arguments:] + 98
	3   Foundation                          0x000000010fb6c089 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 193
	4   UIKit                               0x00000001111cb43f -[UIVisualEffectView _addSubview:positioned:relativeTo:] + 379
	5   PKHUD                               0x000000010fa495a6 _T05PKHUD9FrameViewC7contentSo6UIViewCfs + 518
	6   PKHUD                               0x000000010fa5052c _T05PKHUDAAC11contentViewSo6UIViewCfs + 300
	7   PKHUD                               0x000000010fa4b964 _T05PKHUD3HUDC4showyAA14HUDContentTypeO_So6UIViewCSg6onViewtFZ + 484
	8   iOS-Viper-Architecture              0x000000010f401df0 _T022iOS_Viper_Architecture12PostListViewC11showLoadingyyF + 112
	9   iOS-Viper-Architecture              0x000000010f401e24 _T022iOS_Viper_Architecture12PostListViewC11showLoadingyyFTo + 36
	10  iOS-Viper-Architecture              0x000000010f402108 _T022iOS_Viper_Architecture12PostListViewC11showLoadingyyFTD + 40
	11  iOS-Viper-Architecture              0x000000010f4020d9 _T022iOS_Viper_Architecture12PostListViewCAA0deF8ProtocolA2aDP11showLoadingyyFTW + 9
	12  iOS-Viper-Architecture              0x000000010f405c89 _T022iOS_Viper_Architecture17PostListPresenterC11viewDidLoadyyF + 137
	13  iOS-Viper-Architecture              0x000000010f4066e1 _T022iOS_Viper_Architecture17PostListPresenterCAA0deF8ProtocolA2aDP11viewDidLoadyyFTW + 49
	14  iOS-Viper-Architecture              0x000000010f4010aa _T022iOS_Viper_Architecture12PostListViewC11viewDidLoadyyF + 218
	15  iOS-Viper-Architecture              0x000000010f401284 _T022iOS_Viper_Architecture12PostListViewC11viewDidLoadyyFTo + 36
	16  UIKit                               0x0000000110d7bd51 -[UIViewController loadViewIfRequired] + 1235
	17  UIKit                               0x0000000110dc34dc -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 68
	18  UIKit                               0x0000000110dc3818 -[UINavigationController _startTransition:fromViewController:toViewController:] + 153
	19  UIKit                               0x0000000110dc492f -[UINavigationController _startDeferredTransitionIfNeeded:] + 841
	20  UIKit                               0x0000000110dc5b90 -[UINavigationController __viewWillLayoutSubviews] + 115
	21  UIKit                               0x000000011101c2ae -[UILayoutContainerView layoutSubviews] + 231
	22  UIKit                               0x0000000110cac551 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1331
	23  QuartzCore                          0x000000011a4314ba -[CALayer layoutSublayers] + 153
	24  QuartzCore                          0x000000011a4355a9 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 401
	25  QuartzCore                          0x000000011a3be1cd _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 365
	26  QuartzCore                          0x000000011a3e9ae4 _ZN2CA11Transaction6commitEv + 500
	27  UIKit                               0x0000000110bf9706 __34-[UIApplication _firstCommitBlock]_block_invoke_2 + 141
	28  CoreFoundation                      0x0000000113fad20c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
	29  CoreFoundation                      0x0000000113f91a3b __CFRunLoopDoBlocks + 203
	30  CoreFoundation                      0x0000000113f91214 __CFRunLoopRun + 1300
	31  CoreFoundation                      0x0000000113f90a89 CFRunLoopRunSpecific + 409
	32  GraphicsServices                    0x0000000118ebe9c6 GSEventRunModal + 62
	33  UIKit                               0x0000000110bddd30 UIApplicationMain + 159
	34  iOS-Viper-Architecture              0x000000010f40ce07 main + 55
	35  libdyld.dylib                       0x0000000115110d81 start + 1
	36  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants