ios - 应用程序在 gpus_ReturnNotPermittedKillClient 崩溃

标签 ios objective-c cocoa-touch uikit ios8

我发现新的崩溃是在 iOS 8 上运行的应用程序特有的。无法弄清楚问题是什么,也无法重现该问题。发生在 App StartUp,App 不直接调用 OpenGL ES 函数。

InitialViewController viewDidAppear 方法行 # 92 我通过以下方式从 Storyboard 中启动一个 segue:[self performSegueWithIdentifier:segueIdentifier sender:self]; where selfInitialViewController 类。

堆栈跟踪:

Thread: Unknown Name (Crashed)
0     libGPUSupportMercury.dylib            0x28c5c8fe gpus_ReturnNotPermittedKillClient + 10
1     libGPUSupportMercury.dylib            0x28c5d249 gldCreateContext + 206
2     GLEngine                              0x248a093b gliCreateContextWithShared + 600
3     OpenGLES                              0x2497cab3 -[EAGLContext initWithAPI:properties:] + 404
4     CoreImage                             0x225ecb8b ___ZN2CI11can_use_gpuEv_block_invoke + 140
5     libdispatch.dylib                     0x2fbb98b7 _dispatch_client_callout + 20
6     libdispatch.dylib                     0x2fbba4fb dispatch_once_f + 60
7     CoreImage                             0x225ecafb _ZN2CI11can_use_gpuEv + 96
8     CoreImage                             0x2256ac79 +[CIContext contextWithOptions:] + 186
9     CoreUI                                0x27bdc837 CreateSharedCIContext + 76
10   libsystem_pthread.dylib                0x2fd1ddcf __pthread_once_handler + 48
11   libsystem_platform.dylib               0x2fd16867 _os_once + 40
12   libsystem_pthread.dylib                0x2fd1bf8b pthread_once + 48
13   CoreUI                                 0x27bdc7d9 +[CUIShapeEffectStack sharedCIContext] + 26
14   CoreUI                                 0x27be3af7 -[CUICatalog imageByStylingImage:stylePresetName:styleConfiguration:foregroundColor:scale:] + 80
15   UIKit                                  0x256c89db -[UIImage _imageWithStylePresets:withTintColor:] + 540
16   UIKit                                  0x25456875 -[UIImageView _setImageViewContents:] + 1074
17   UIKit                                  0x25455fb5 +[UIView(Animation) performWithoutAnimation:] + 70
18   UIKit                                  0x25747db9 -[UIImageView _updateImageViewForOldImage:newImage:] + 674
19   UIKit                                  0x254559c7 -[UIImageView setImage:] + 264
20   UIKit                                  0x254f01b1 -[UINavigationBar _updateBackIndicatorImage] + 346
21   UIKit                                  0x254d4143 -[UINavigationBar layoutSubviews] + 2480
22   UIKit                                  0x25446b37 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 512
23   QuartzCore                             0x24e6eccd -[CALayer layoutSublayers] + 134
24   QuartzCore                             0x24e6a6b5 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 358
25   UIKit                                  0x25459183 -[UIView(Hierarchy) layoutBelowIfNeeded] + 136
26   UIKit                                  0x25455fb5 +[UIView(Animation) performWithoutAnimation:] + 70
27   UIKit                                  0x254d2fc5 -[UINavigationController _positionNavigationBarHidden:edge:initialOffset:] + 786
28   UIKit                                  0x254d2c63 -[UINavigationController _positionNavigationBarHidden:edge:] + 200
29   UIKit                                  0x254cf875 -[UINavigationController loadView] + 246
30   UIKit                                  0x254493d9 -[UIViewController loadViewIfRequired] + 66
31   UIKit                                  0x2544935d -[UIViewController view] + 22
32   UIKit                                  0x254f1faf -[UIViewController shouldAutorotate] + 24
33   UIKit                                  0x2552bbd7 -[UIViewController _preferredInterfaceOrientationForPresentationInWindow:fromInterfaceOrientation:] + 248
34   UIKit                                  0x2552a2b9 -[UIWindowController transition:fromViewController:toViewController:target:didEndSelector:animation:] + 2118
35   UIKit                                  0x2572be1f -[UIViewController _windowControllerBasedPresentViewController:withTransition:completion:] + 4896
36   UIKit                                  0x2572c4ab __62-[UIViewController presentViewController:animated:completion:]_block_invoke + 256
37   UIKit                                  0x25529243 -[UIViewController presentViewController:animated:completion:] + 192
38   UIKit                                  0x2572c63f -[UIViewController presentModalViewController:animated:] + 28
39   MyAppName                              0x00082901 -[InitialViewController viewDidAppear:] (InitialViewController.m:92)
40   UIKit                                  0x2545ed5f -[UIViewController _setViewAppearState:isAnimating:] + 500
41   UIKit                                  0x254c322f -[UIViewController _executeAfterAppearanceBlock] + 52
42   UIKit                                  0x254c31bd _applyBlockToCFArrayCopiedToStack + 306
43   UIKit                                  0x2543f127 _afterCACommitHandler + 484
44   CoreFoundation                         0x21f725cd __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 18
45   CoreFoundation                         0x21f6fc8b __CFRunLoopDoObservers + 276
46   CoreFoundation                         0x21f70093 __CFRunLoopRun + 912
47   CoreFoundation                         0x21ebe621 CFRunLoopRunSpecific + 474
48   CoreFoundation                         0x21ebe433 CFRunLoopRunInMode + 104
49   GraphicsServices                       0x2926c0a9 GSEventRunModal + 134
50   UIKit                                  0x254a8809 UIApplicationMain + 1438
51   MyAppName                              0x00074329 main (main.m:36)
52   libdyld.dylib                          0x2fbd9aaf start + 0

谁能帮我找出这个问题的根本原因。

最佳答案

如果应用程序试图在后台执行 OpenGL ES 命令,它将被终止。

https://developer.apple.com/library/ios/qa/qa1766/_index.html

关于ios - 应用程序在 gpus_ReturnNotPermittedKillClient 崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25952409/

相关文章:

ios - SwiftUI 2.0 List with children - 如何使显示按钮的可点击区域覆盖整个列表项

ios - 获取 UIBarButtonItem 图像相对于 iOS 7 中导航栏的位置

IOS错误在sqlite上插入数据

ios - 使用Azure移动服务sdk在iOS中并行调用

ios - UITableView 动态动画(beginUpdates/endUpdates)有时会因不一致而崩溃

android - Android 的 NSNonLossyASCIIStringEncoding 等价物

ios - 如果我的应用程序在其各种 View Controller 中使用位置管理器,我应该在哪里实例化它?

ios - 在 iOS 中为 UINavigationBar 着色

iphone - 有条件地禁用 iOS 应用程序的后台?

iphone - Objective-C:用大量文本拆分类的方法