ios - SIGSEGV崩溃如何定位?

 小白也坚强_177 发布于 2022-10-26 13:20

异常信息

SIGSEGV
SEGV_ACCERR
UIKit -[UICollectionViewData _setLayoutAttributes:atGlobalItemIndex:]

出错堆栈

#0 Thread
SIGSEGV
SEGV_ACCERR

0 UIKit    -[UICollectionViewData _setLayoutAttributes:atGlobalItemIndex:] + 80
1 UIKit    -[UICollectionViewData _setLayoutAttributes:atGlobalItemIndex:] + 64
2 UIKit    ___45-[UICollectionViewData validateLayoutInRect:]_block_invoke + 1880
3 UIKit    -[UICollectionViewData validateLayoutInRect:] + 1492
4 UIKit    -[UICollectionView layoutSubviews] + 212
5 UIKit    -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1196
6 QuartzCore    -[CALayer layoutSublayers] + 148
7 QuartzCore    CA::Layer::layout_if_needed(CA::Transaction*) + 292
8 QuartzCore    CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 32
9 QuartzCore    CA::Context::commit_transaction(CA::Transaction*) + 252
10 QuartzCore    CA::Transaction::commit() + 512
11 QuartzCore    CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 120
12 CoreFoundation    ___CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
13 CoreFoundation    ___CFRunLoopDoObservers + 372
14 CoreFoundation    ___CFRunLoopRun + 1024
15 CoreFoundation    CFRunLoopRunSpecific + 444
16 GraphicsServices    GSEventRunModal + 180
17 UIKit    -[UIApplication _run] + 684
18 UIKit    UIApplicationMain + 208
19 BloomOfChina    main (main.m:14)
20 libdyld.dylib    _start + 4

即便打了全局断点也没有只想具体的崩溃问题
可以复现但是很奇怪,第一次安装app,打开某个页面,有较大概率出现这个崩溃。
一旦出现如果不在后台彻底关掉app,那之后每次打开这个页面都会崩溃。
彻底关掉app,以后基本不会再出现了。

请问还有什么方法能够去定位问题呢?

撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有