我在作为 UIDocumentInteractionController 和 UIActivityViewController 的一部分的 UIActivityGroupViewController
Posted
技术标签:
【中文标题】我在作为 UIDocumentInteractionController 和 UIActivityViewController 的一部分的 UIActivityGroupViewController 中发生了各种崩溃【英文标题】:I'm having various crashes in the UIActivityGroupViewController which is part of UIDocumentInteractionController & UIActivityViewController 【发布时间】:2015-06-03 19:42:47 【问题描述】:这些崩溃与我的应用完全无关,而是由安装在用户设备上的其他第 3 方应用引起的可能性有多大?
Application Specific Information:
objc_msgSend() selector name: nsli_layoutEngine
Thread 0 Crashed:
0 libobjc.A.dylib 0x0000000192eefbd0 objc_msgSend + 16
1 Foundation 0x0000000183473370 -[NSLayoutConstraint _layoutEngine] + 48
2 Foundation 0x0000000183473c18 +[NSLayoutConstraint _addOrRemoveConstraints:activate:] + 236
3 UIKit 0x00000001873bf4a0 -[_UIAlertControllerView _updateBackdrop] + 504
4 UIKit 0x00000001873beb40 -[_UIAlertControllerView _updateStyle] + 164
5 UIKit 0x000000018703fc48 -[UIAlertController traitCollectionDidChange:] + 192
6 UIKit 0x0000000186f84118 -[UIViewController _updateTraitsIfNecessary] + 232
7 UIKit 0x0000000186c71564 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 340
8 QuartzCore 0x00000001865c9994 -[CALayer layoutSublayers] + 164
9 QuartzCore 0x00000001865c4564 CA::Layer::layout_if_needed(CA::Transaction*) + 316
10 QuartzCore 0x00000001865c4408 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 28
11 QuartzCore 0x00000001865c3c08 CA::Context::commit_transaction(CA::Transaction*) + 272
12 QuartzCore 0x00000001865c398c CA::Transaction::commit() + 432
13 UIKit 0x0000000186ee4db0 _UIWindowUpdateVisibleContextOrder + 236
14 UIKit 0x0000000186ee4bf8 +[UIWindow _prepareWindowsPassingTestForAppResume:] + 28
15 UIKit 0x0000000186f08710 -[UIApplication _updateSnapshotAndStateRestorationArchiveForBackgroundEvent:saveState:exitIfCouldNotRestoreState:] + 192
16 UIKit 0x0000000186f07924 __80-[UIApplication _handleNonLaunchSpecificActions:forScene:withTransitionContext:]_block_invoke_2 + 132
17 libdispatch.dylib 0x00000001935213ac _dispatch_call_block_and_release + 20
18 libdispatch.dylib 0x000000019352136c _dispatch_client_callout + 12
19 libdispatch.dylib 0x0000000193525980 _dispatch_main_queue_callback_4CF + 928
20 CoreFoundation 0x0000000182479fa4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 8
21 CoreFoundation 0x000000018247804c __CFRunLoopRun + 1488
22 CoreFoundation 0x00000001823a50a4 CFRunLoopRunSpecific + 392
23 GraphicsServices 0x000000018b50b5a4 GSEventRunModal + 164
24 UIKit 0x0000000186cda3c0 UIApplicationMain + 1484
25 Pogoplug 0x00000001000ef9f4 main (main.m:11)
26 libdyld.dylib 0x000000019354aa08 start + 0
还有一个:
Exception Type: SIGSEGV
Exception Codes: SEGV_ACCERR at 0x0
Crashed Thread: 9
Application Specific Information:
Selector name found in current argument registers: URL
Thread 9 Crashed:
0 libobjc.A.dylib 0x38ddcf78 lookUpImpOrForward
+ 48
1 libobjc.A.dylib 0x38ddcf3f _class_lookupMethodAndLoadCache3 + 32
2 libobjc.A.dylib 0x38de31f9 _objc_msgSend_uncached + 22
3 UIKit 0x2e91f539 -[UIActivityItemProvider main] + 22
4 Foundation 0x2ba51505 -[__NSOperationInternal _start:] + 766
5 Foundation 0x2baf6557 __NSOQSchedule_f + 184
6 libdispatch.dylib 0x3934c4d3 _dispatch_queue_drain$VARIANT$mp + 1460
7 libdispatch.dylib 0x3934bda1 _dispatch_queue_invoke$VARIANT$mp + 82
8 libdispatch.dylib 0x3934e491 _dispatch_root_queue_drain + 386
9 libdispatch.dylib 0x3934f8a3 _dispatch_worker_thread3 + 104
10 libsystem_pthread.dylib 0x394c2da9 _pthread_wqthread + 666
11 libsystem_pthread.dylib 0x394c2afc start_wqthread + 6
这里是在这些崩溃发生之前呈现的视图控制器列表:
2015/03/28 01:07:20:382 DEBUG : _UIDocumentActivityViewController
2015/03/28 01:07:20:382 DEBUG : UIAlertController
2015/03/28 01:07:20:383 DEBUG : _UIActivityGroupListViewController
2015/03/28 01:07:20:383 DEBUG : SFAirDropActivityViewController
2015/03/28 01:07:20:391 DEBUG : UIActivityGroupViewController
2015/03/28 01:07:20:391 DEBUG : UIActivityGroupViewController
【问题讨论】:
【参考方案1】:我遇到了同样的崩溃,发现我试图从不存在的项目(实际上是从零的 rightBarButtonItem)呈现 UIActivityViewController。
【讨论】:
这里不是这种情况,它只发生在 iPad 上,还有一些其他奇怪的崩溃,开始相信是它的第三个应用程序扩展导致了这种情况。以上是关于我在作为 UIDocumentInteractionController 和 UIActivityViewController 的一部分的 UIActivityGroupViewController 的主要内容,如果未能解决你的问题,请参考以下文章
我在哪里可以看到 MSysIMEXSpecs 中的“包括第一行作为标题”?
我在 tf.contrib.learn.LinearClassifier.fit 中作为 x 和 y 参数传递啥
当我在 Visual Studio 中生成以二维数组作为参数的构造函数时,这些星号是啥?