xcode-instruments – Instruments 9.3是否会为其他人崩溃应用程序?

当我用xCode运行我的应用程序时,所有加载并运行正常.当我加载仪器并使用活动监视器或分配的分析模板按记录时,它会加载并运行正常.但是,如果我使用Zombies或Leaks,应用程序会立即崩溃.我甚至都看不到它.然后我访问 xcode中的崩溃日志,尽管崩溃的原因是
例外类型:EXC_BAD_ACCESS(SIGSEGV)

由于每个报告都不同,因此几乎不可能调试原因.

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)  
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000010  
VM Region Info: 0x10 is not in any region.  Bytes before following region: 4297687024  
      REGION TYPE                      START - END             [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL  
      UNUSED SPACE AT START  
--->  
      __TEXT                 0000000100298000-0000000100388000 [  960K] r-x/r-x SM=COW  ...p/MyApp  


Termination Signal: Segmentation fault: 11  
Termination Reason: Namespace SIGNAL,Code 0xb  
Terminating Process: exc handler [0]  
Triggered by Thread:  0  


Filtered syslog:  
None found  


Thread 0 name:  Dispatch queue: com.apple.main-thread  
Thread 0 Crashed:  
0   libswiftFoundation.dylib       0x0000000100cf89fc 0x100c4c000 + 707068  
1   MyApp                   0x0000000100310cbc specialized JSONParser.jsonURL(_:jsonType:) + 494780 (JSONParser.swift:51)  
2   MyApp                   0x0000000100310cbc specialized JSONParser.jsonURL(_:jsonType:) + 494780 (JSONParser.swift:51)  
3   MyApp                   0x00000001002efd2c StoreManager.getProductIdentifiersFromServer() + 359724 (StoreManager.swift:57)  
4   MyApp                   0x0000000100329db0 specialized AppDelegate.application(_:didFinishLaunchingWithOptions:) + 597424 (StoreManager.swift:46)  
5   MyApp                   0x0000000100326a40 @objc AppDelegate.application(_:didFinishLaunchingWithOptions:) + 584256 (AppDelegate.swift:0)  
6   UIKit                         0x000000018f4a1ca8 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 408  
7   UIKit                         0x000000018f68fe14 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3484  
8   UIKit                         0x000000018f694ce4 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1680  
9   UIKit                         0x000000018f92db20 __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 784  
10  UIKit                         0x000000018fc05c78 +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 160  
11  UIKit                         0x000000018f92d79c -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 240  
12  UIKit                         0x000000018f92dfdc -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 724  
13  UIKit                         0x00000001900accf4 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 296  
14  UIKit                         0x00000001900acb7c -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 432  
15  UIKit                         0x000000018fe1f44c __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 220  
16  UIKit                         0x000000018ffb5c5c _performActionsWithDelayForTransitionContext + 112  
17  UIKit                         0x000000018fe1f304 -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 248  
18  UIKit                         0x000000018fc05318 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 368  
19  UIKit                         0x000000018f6933e4 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 540  
20  UIKit                         0x000000018faa7490 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 364  
21  FrontBoardServices             0x00000001878d7470 -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 364  
22  FrontBoardServices             0x00000001878dfd6c __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 224  
23  libdispatch.dylib             0x00000001849f0ae4 _dispatch_client_callout + 16  
24  libdispatch.dylib             0x00000001849f81f4 _dispatch_block_invoke_direct$VARIANT$mp + 224  
25  FrontBoardServices             0x000000018790b878 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36  
26  FrontBoardServices             0x000000018790b51c -[FBSSerialQueue _performNext] + 404  
27  FrontBoardServices             0x000000018790bab8 -[FBSSerialQueue _performNextFromRunLoopSource] + 56  
28  CoreFoundation                 0x0000000185099614 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24  
29  CoreFoundation                 0x0000000185098e3c __CFRunLoopDoSources0 + 276  
30  CoreFoundation                 0x00000001850969ac __CFRunLoopRun + 1204  
31  CoreFoundation                 0x0000000184fb6fe8 CFRunLoopRunSpecific + 552  
32  GraphicsServices               0x0000000186f7e020 GSEventRunModal + 100  
33  UIKit                         0x000000018f497090 UIApplicationMain + 236  
34  MyApp                   0x00000001002ab444 main + 78916 (AppDelegate.swift:16)  
35  libdyld.dylib                 0x0000000184a55fc0 start + 4

所以我不再打电话了

StoreManager.getProductIdentifiersFromServer()

这会停止后续的调用

JSONParser.jsonURL(_:jsonType:)

然后应用程序崩溃了

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)  
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000  
VM Region Info: 0 is not in any region.  Bytes before following region: 4365631488  
      REGION TYPE                      START - END             [ VSIZE] PRT/MAX SHRMOD  REGION DETAIL  
      UNUSED SPACE AT START  
--->  
      __TEXT                 0000000104364000-0000000104454000 [  960K] r-x/r-x SM=COW  ...p/MyApp  


Termination Signal: Segmentation fault: 11  
Termination Reason: Namespace SIGNAL,Code 0xb  
Terminating Process: exc handler [0]  
Triggered by Thread:  0  


Filtered syslog:  
None found  


Thread 0 name:  Dispatch queue: com.apple.main-thread  
Thread 0 Crashed:  
0   CoreFoundation                 0x0000000184fdf83c CFStringGetCharacterAtIndex + 24  
1   CoreFoundation                 0x000000018508e6c8 normalizeQuintuplet + 148  
2   CoreFoundation                 0x000000018508ee64 -[_CFXPreferences+ 917092 (SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:] + 108  
3   CoreFoundation                 0x0000000185132ae8 -[_CFXPreferences copyAppValueForKey:identifier:container:configurationURL:] + 124  
4   CoreFoundation                 0x0000000185135384 _CFPreferencesCopyAppValueWithContainer + 116  
5   Foundation                     0x0000000185a2e7d0 -[NSUserDefaults+ 51152 (NSUserDefaults) objectForKey:] + 52  
6   Foundation                     0x0000000185a37240 -[NSUserDefaults+ 86592 (NSUserDefaults) stringForKey:] + 24  
7   MyApp                   0x00000001043cc0dc specialized SettingsTableViewController.init(coder:) + 426204 (SettingsTableViewController.swift:36)  
8   MyApp                   0x00000001043c6a1c @objc SettingsTableViewController.init(coder:) + 403996 (SettingsTableViewController.swift:27)  
9   UIKit                         0x000000018f9c051c -[UIClassSwapper initWithCoder:] + 248  
10  UIKit                         0x000000018fb6d99c UINibDecoderDecodeObjectForValue + 688  
11  UIKit                         0x000000018fb6d6d4 -[UINibDecoder decodeObjectForKey:] + 312  
12  UIKit                         0x000000018f9c01c4 -[UIRuntimeConnection initWithCoder:] + 188  
13  UIKit                         0x000000018fb6d99c UINibDecoderDecodeObjectForValue + 688  
14  UIKit                         0x000000018fb6db14 UINibDecoderDecodeObjectForValue + 1064  
15  UIKit                         0x000000018fb6d6d4 -[UINibDecoder decodeObjectForKey:] + 312  
16  UIKit                         0x000000018f9bf514 -[UINib instantiateWithOwner:options:] + 1164  
17  UIKit                         0x000000018fd44068 -[UIStoryboard instantiateViewControllerWithIdentifier:] + 196  
18  MyApp                   0x00000001043fcfb4 specialized ApplicationsTabBarController.createViewControllerForTabBarController(storyBoardName:restorationIdentifier:tabBarItemTitle:tabBarItemTag:tabBarItemImage:tabBarItemSelectedImage:) + 626612 (ApplicationsTabBarController.swift:190)  
19  MyApp                   0x00000001043f93c8 ApplicationsTabBarController.setUpViewControllers() + 611272 (ApplicationsTabBarController.swift:79)  
20  MyApp                   0x00000001043fad04 @objc ApplicationsTabBarController.viewWillAppear(_:) + 617732 (ApplicationsTabBarController.swift:0)  
21  UIKit                         0x000000018f44c6b4 -[UIViewController _setViewAppearState:isAnimating:] + 616  
22  UIKit                         0x000000018f44c424 -[UIViewController __viewWillAppear:] + 140  
23  UIKit                         0x000000018f4aba60 -[UIViewController viewWillMoveToWindow:] + 704  
24  UIKit                         0x000000018f43bde4 -[UIView+ 97764 (Hierarchy) _willMoveToWindow:withAncestorView:] + 584  
25  UIKit                         0x000000018f43b0cc -[UIView+ 94412 (Internal) _addSubview:positioned:relativeTo:] + 424  
26  UIKit                         0x000000018f43a88c -[UIWindow addRootViewControllerViewIfPossible] + 816  
27  UIKit                         0x000000018f437864 -[UIWindow _setHidden:forced:] + 272  
28  UIKit                         0x000000018f4a5cd0 -[UIWindow makeKeyAndVisible] + 48  
29  MyApp                   0x00000001043f639c specialized AppDelegate.application(_:didFinishLaunchingWithOptions:) + 598940 (AppDelegate.swift:0)  
30  MyApp                   0x00000001043f2bc4 @objc AppDelegate.application(_:didFinishLaunchingWithOptions:) + 584644 (AppDelegate.swift:0)  
31  UIKit                         0x000000018f4a1ca8 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 408  
32  UIKit                         0x000000018f68fe14 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3484  
33  UIKit                         0x000000018f694ce4 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1680  
34  UIKit                         0x000000018f92db20 __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 784  
35  UIKit                         0x000000018fc05c78 +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 160  
36  UIKit                         0x000000018f92d79c -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 240  
37  UIKit                         0x000000018f92dfdc -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 724  
38  UIKit                         0x00000001900accf4 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 296  
39  UIKit                         0x00000001900acb7c -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 432  
40  UIKit                         0x000000018fe1f44c __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 220  
41  UIKit                         0x000000018ffb5c5c _performActionsWithDelayForTransitionContext + 112  
42  UIKit                         0x000000018fe1f304 -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 248  
43  UIKit                         0x000000018fc05318 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 368  
44  UIKit                         0x000000018f6933e4 -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 540  
45  UIKit                         0x000000018faa7490 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 364  
46  FrontBoardServices             0x00000001878d7470 -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 364  
47  FrontBoardServices             0x00000001878dfd6c __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 224  
48  libdispatch.dylib             0x00000001849f0ae4 _dispatch_client_callout + 16  
49  libdispatch.dylib             0x00000001849f81f4 _dispatch_block_invoke_direct$VARIANT$mp + 224  
50  FrontBoardServices             0x000000018790b878 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 36  
51  FrontBoardServices             0x000000018790b51c -[FBSSerialQueue _performNext] + 404  
52  FrontBoardServices             0x000000018790bab8 -[FBSSerialQueue _performNextFromRunLoopSource] + 56  
53  CoreFoundation                 0x0000000185099614 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24  
54  CoreFoundation                 0x0000000185098e3c __CFRunLoopDoSources0 + 276  
55  CoreFoundation                 0x00000001850969ac __CFRunLoopRun + 1204  
56  CoreFoundation                 0x0000000184fb6fe8 CFRunLoopRunSpecific + 552  
57  GraphicsServices               0x0000000186f7e020 GSEventRunModal + 100  
58  UIKit                         0x000000018f497090 UIApplicationMain + 236  
59  MyApp                   0x0000000104378b3c main + 84796 (AppDelegate.swift:16)  
60  libdyld.dylib                 0x0000000184a55fc0 start + 4

似乎没关系我做什么或不做什么功能我得到了崩溃.在我看来,它是一个系统调用而不是我造成崩溃的那个.是仅仅是我还是仪器9.3对其他人的僵尸和/或泄漏?

解决方法

我有一个类似的问题,我解决了它选择空白模板而不是泄漏,然后我用屏幕右上角的按钮手动添加分配和泄漏.

它是在Xcode版本9.4(9F1027a)上解决的

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐


当我们远离最新的 iOS 16 更新版本时,我们听到了困扰 Apple 最新软件的错误和性能问题。
欧版/美版 特别说一下,美版选错了 可能会永久丧失4G,不过只有5%的概率会遇到选择运营商界面且部分必须连接到iTunes才可以激活
一般在接外包的时候, 通常第三方需要安装你的app进行测试(这时候你的app肯定是还没传到app store之前)。
前言为了让更多的人永远记住12月13日,各大厂都在这一天将应用变灰了。那么接下来我们看一下Flutter是如何实现的。Flutter中实现整个App变为灰色在Flutter中实现整个App变为灰色是非常简单的,只需要在最外层的控件上包裹ColorFiltered,用法如下:ColorFiltered(颜色过滤器)看名字就知道是增加颜色滤镜效果的,ColorFiltered( colorFilter:ColorFilter.mode(Colors.grey, BlendMode.
flutter升级/版本切换
(1)在C++11标准时,open函数的文件路径可以传char指针也可以传string指针,而在C++98标准,open函数的文件路径只能传char指针;(2)open函数的第二个参数是打开文件的模式,从函数定义可以看出,如果调用open函数时省略mode模式参数,则默认按照可读可写(ios_base:in | ios_base::out)的方式打开;(3)打开文件时的mode的模式是从内存的角度来定义的,比如:in表示可读,就是从文件读数据往内存读写;out表示可写,就是把内存数据写到文件中;
文章目录方法一:分别将图片和文字置灰UIImage转成灰度图UIColor转成灰度颜色方法二:给App整体添加灰色滤镜参考App页面置灰,本质是将彩色图像转换为灰度图像,本文提供两种方法实现,一种是App整体置灰,一种是单个页面置灰,可结合具体的业务场景使用。方法一:分别将图片和文字置灰一般情况下,App页面的颜色深度是24bit,也就是RGB各8bit;如果算上Alpha通道的话就是32bit,RGBA(或者ARGB)各8bit。灰度图像的颜色深度是8bit,这8bit表示的颜色不是彩色,而是256
领导让调研下黑(灰)白化实现方案,自己调研了两天,根据网上资料,做下记录只是学习过程中的记录,还是写作者牛逼
让学前端不再害怕英语单词(二),通过本文,可以对css,js和es6的单词进行了在逻辑上和联想上的记忆,让初学者更快的上手前端代码
用Python送你一颗跳动的爱心
在uni-app项目中实现人脸识别,既使用uni-app中的live-pusher开启摄像头,创建直播推流。通过快照截取和压缩图片,以base64格式发往后端。
商户APP调用微信提供的SDK调用微信支付模块,商户APP会跳转到微信中完成支付,支付完后跳回到商户APP内,最后展示支付结果。CSDN前端领域优质创作者,资深前端开发工程师,专注前端开发,在CSDN总结工作中遇到的问题或者问题解决方法以及对新技术的分享,欢迎咨询交流,共同学习。),验证通过打开选择支付方式弹窗页面,选择微信支付或者支付宝支付;4.可取消支付,放弃支付会返回会员页面,页面提示支付取消;2.判断支付方式,如果是1,则是微信支付方式。1.判断是否在微信内支付,需要在微信外支付。
Mac命令行修改ipa并重新签名打包
首先在 iOS 设备中打开开发者模式。位于:设置 - 隐私&安全 - 开发者模式(需重启)
一 现象导入MBProgressHUD显示信息时,出现如下异常现象Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_MBProgressHUD", referenced from: objc-class-ref in ViewController.old: symbol(s) not found for architecture x86_64clang: error: linker command failed wit
Profiles >> 加号添加 >> Distribution >> "App Store" >> 选择 2.1 创建的App ID >> 选择绑定 2.3 的发布证书(.cer)>> 输入描述文件名称 >> Generate 生成描述文件 >> Download。Certificates >> 加号添加 >> "App Store and Ad Hoc" >> “Choose File...” >> 选择上一步生成的证书请求文件 >> Continue >> Download。
今天有需求,要实现的功能大致如下:在安卓和ios端实现分享功能可以分享链接,图片,文字,视频,文件,等欢迎大佬多多来给萌新指正,欢迎大家来共同探讨。如果各位看官觉得文章有点点帮助,跪求各位给点个“一键三连”,谢啦~声明:本博文章若非特殊注明皆为原创原文链接。