iOS 中的自动旋转崩溃

2024-05-06

当我更改设备方向时,我正在使用的应用程序出现异常终止(崩溃)。我无法经常重现它(当我旋转时,它并不总是发生,假设机会约为 0.01%),但这是一个严重的问题。我附上崩溃报告的重要部分。

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x6563616e
Crashed Thread:  0

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libobjc.A.dylib                 0x3233a5b0 objc_msgSend + 16
1   UIKit                           0x36297b82 -[UISectionRowData     refreshWithSection:tableView:tableViewRowData:] + 1546
2   UIKit                           0x3628301e -[UITableViewRowData     rectForFooterInSection:] + 310
3   UIKit                           0x3628358c -[UITableViewRowData heightForTable] + 48
4   UIKit                           0x36283400 -[UITableView(_UITableViewPrivate)         _updateContentSize] + 324
5   UIKit                           0x362cc8b4 -[UITableView _rectChangedWithNewSize:oldSize:] + 252
6   UIKit                           0x362cc544 -[UITableView setFrame:] + 220
7   UIKit                           0x362c59c4 -[UIView(Geometry) _applyAutoresizingMaskWithOldSuperviewSize:] + 644
8   UIKit                           0x362c572e -[UIView(Geometry) _resizeWithOldSuperviewSize:] + 262
9   UIKit                           0x3644eb2a -[UIScrollView _resizeWithOldSuperviewSize:] + 38
10  CoreFoundation                  0x35b63aec __NSArrayChunkIterate + 360
11  CoreFoundation                  0x35b5ca74 __NSArrayEnumerate + 608
12  CoreFoundation                  0x35abeb66 -[NSArray enumerateObjectsWithOptions:usingBlock:] + 58
13  UIKit                           0x3627e09e -[UIView(Geometry) resizeSubviewsWithOldSize:] + 114
14  UIKit                           0x36263ba2 -[UIView(Geometry) setFrame:] + 414
15  UIKit                           0x362c59c4 -[UIView(Geometry) _applyAutoresizingMaskWithOldSuperviewSize:] + 644
16  UIKit                           0x362c572e -[UIView(Geometry) _resizeWithOldSuperviewSize:] + 262
17  CoreFoundation                  0x35b63aec __NSArrayChunkIterate + 360
18  CoreFoundation                  0x35b5ca74 __NSArrayEnumerate + 608
19  CoreFoundation                  0x35abeb66 -[NSArray enumerateObjectsWithOptions:usingBlock:] + 58
20  UIKit                           0x3627e09e -[UIView(Geometry) resizeSubviewsWithOldSize:] + 114
21  UIKit                           0x36263ba2 -[UIView(Geometry) setFrame:] + 414
22  UIKit                           0x362a6dc0 -[UIViewControllerWrapperView setFrame:] +     48
23  UIKit                           0x362c59c4 -[UIView(Geometry) _applyAutoresizingMaskWithOldSuperviewSize:] + 644
24  UIKit                           0x362c572e -[UIView(Geometry) _resizeWithOldSuperviewSize:] + 262
25  CoreFoundation                  0x35b63aec __NSArrayChunkIterate + 360
26  CoreFoundation                  0x35b5ca74 __NSArrayEnumerate + 608
27  CoreFoundation                  0x35abeb66 -[NSArray enumerateObjectsWithOptions:usingBlock:] + 58
28  UIKit                           0x3627e09e -[UIView(Geometry) resizeSubviewsWithOldSize:] + 114
29  UIKit                           0x36263ba2 -[UIView(Geometry) setFrame:] + 414
30  UIKit                           0x362c59c4 -[UIView(Geometry) _applyAutoresizingMaskWithOldSuperviewSize:] + 644
31  UIKit                           0x362c572e -[UIView(Geometry) _resizeWithOldSuperviewSize:] + 262
32  CoreFoundation                  0x35b63aec __NSArrayChunkIterate + 360
33  CoreFoundation                  0x35b5ca74 __NSArrayEnumerate + 608
34  CoreFoundation                  0x35abeb66 -[NSArray enumerateObjectsWithOptions:usingBlock:] + 58
35  UIKit                           0x3627e09e -[UIView(Geometry) resizeSubviewsWithOldSize:] + 114
36  UIKit                           0x362c64ae -[UIView(Geometry) setBounds:] + 430
37  UIKit                           0x3634ff32 -[UILayoutContainerView setBounds:] + 58
38  UIKit                           0x363edd88 -[UIViewController window:willAnimateRotationToInterfaceOrientation:duration:] + 460
39  UIKit                           0x3630e2b0 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:] + 3616
40  UIKit                           0x3630d482 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 42
41  UIKit                           0x3630d40c -[UIWindow _setRotatableViewOrientation:duration:force:] + 64
42  UIKit                           0x3644317c __57-[UIWindow _updateToInterfaceOrientation:duration:force:]_block_invoke_0 + 100
43  UIKit                           0x362cb676 -[UIWindow _updateToInterfaceOrientation:duration:force:] + 214
44  UIKit                           0x362d4d20 -[UIWindow _updateInterfaceOrientationFromDeviceOrientation:] + 176
45  CoreFoundation                  0x35ab9034 _CFXNotificationPost + 1424
46  Foundation                      0x3721bd8c -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
47  UIKit                           0x36268c60 -[UIDevice setOrientation:animated:] + 292
48  UIKit                           0x362633d6 -[UIApplication handleEvent:withNewEvent:] + 2954
49  UIKit                           0x362626c8 -[UIApplication sendEvent:] + 68
50  UIKit                           0x36262116 _UIApplicationHandleEvent + 6150
51  GraphicsServices                0x318885a0 _PurpleEventCallback + 588
52  GraphicsServices                0x318881ce PurpleEventCallback + 30
53  CoreFoundation                  0x35b3d170 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 32
54  CoreFoundation                  0x35b3d112 __CFRunLoopDoSource1 + 134
55  CoreFoundation                  0x35b3bf94 __CFRunLoopRun + 1380
56  CoreFoundation                  0x35aaeeb8 CFRunLoopRunSpecific + 352
57  CoreFoundation                  0x35aaed44 CFRunLoopRunInMode + 100
58  GraphicsServices                0x318872e6 GSEventRunModal + 70
59  UIKit                           0x362b62f4 UIApplicationMain + 1116

既不涉及线程活动,也不自定义 ViewController。而且,我正在使用ARC。

我想知道确切的原因或在自转发生时导致崩溃的可能性。

提前致谢...


我认为应用程序向已释放的对象发送一条消息。是的,即使使用 ARC 有时也会发生这种情况。要调试它,您需要使用 Instruments (Zombies) 运行您的应用程序并尝试重现该错误。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

iOS 中的自动旋转崩溃 的相关文章

随机推荐

  • 源单元“_BuildScript_”中“语义分析”阶段出现异常

    评估根项目 android 时出现问题 配置项目 app 时出现问题 无法打开构建文件 C Users InFED Laptop Documents GitHub sustain and save android app build gra
  • C++ 按值而不是按引用将数组发送到函数

    我的 C 有问题 我有一个对数组进行排序的函数 但我不想处理原始数组 我想通过值而不是通过引用将数组发送到函数 请帮我 int bogoSort int tab int n int iloscOperacjiDominujacych 0 c
  • OpenGL 中连续暂停

    void keyPress unsigned char key int x int y int i switch key case f i 3 while i x pos 3 sleep 100 glutPostRedisplay 上面是在
  • 使用事件处理程序与覆盖事件触发方法

    我正在创建 Button 的子类 并希望向其某些事件 例如 OnClick 添加自定义功能 哪种方式更理想 我是否重写 OnClick protected override void OnClick EventArgs e base OnC
  • 优雅的折线“左移”测试

    Given X Y 坐标 即车辆的位置 X Y 数组 它们是折线中的顶点 请注意 折线仅由直线段组成 没有圆弧 我想要的是 计算车辆是在折线的左侧还是右侧 当然还是在顶部 我的做法 迭代所有线段 并计算到每个线段的距离 然后 对于最近的段
  • 如何使用 Lint Option StopShip 使 Grade 发布构建失败?

    我读过很多关于StopShipAndroid Lint Check 和 Gradle 支持 http tools android com tips lint checks http tools android com tips lint c
  • 尝试初始化 AudioRecord 时出现“无法获取记录源 1 的音频输入”

    当尝试初始化 AudioRecord 对象并尝试使用 Eclipse 使用模拟器录制声音时 我不断收到此错误 我尝试过各种位采样率 8000 是唯一有效的 但错误仍然出现 我尝试过各种版本的sdk 1 5 1 6 2 2 2和2 3 1 以
  • Matlab 编辑器不使用 emacs 快捷方式

    Is there some way I can make the matlab integrated editor not use emacs shortcut but use more normal shortcuts such that
  • java.lang.String 无法转换为 org.json.simple.JSONObject simple-json

    我在尝试使用 google 的 simple json 解析简单的 json 时遇到奇怪的问题 这是我的代码 它不起作用 String s args 0 toString JSONObject json JSONObject new JSO
  • 随机数生成器每次仅返回一个数字

    Python 是否有一个随机数生成器 每次只返回一个随机整数next 函数被调用 数字不应该重复并且生成器应返回区间内的随机整数 1 1 000 000 这是独一无二的 我需要生成超过一百万个不同的数字 这听起来好像非常消耗内存 以防所有数
  • Cookie 不会重置

    好吧 我被难住了 我已经盯着这个看了好几个小时了 我使用以下代码在 access login php 设置 cookie setcookie username username time 604800 当我尝试注销 位于 access lo
  • 使用firebase实时数据库创建搜索功能

    我想使用 firebase 实时数据库为我的应用程序创建一个搜索功能 类似于 facebook 搜索 我做了一些研究并承认 Firebase 实时无法使用 文本包含 进行搜索 但我相信必须有一些方法来实现它 例如组合 startAt 或 e
  • 在函数内部使用时,c 数组大小会发生变化

    我有这段代码 include
  • 捕获 CommandOnCooldown 错误

    我正在制作一个有冷却时间的不和谐机器人 并且我正在尝试制作一个事件 当CommandOnCooldown发生错误时 机器人会通过私信告诉他们需要等待多长时间 这是我的代码 看起来一切正常 但它不知道 retry after 意味着什么 bo
  • 在 matplotlib 中添加新的导航模式

    我正在编写一个 wx matplotlib 应用程序 并且在向 matplotlib 导航工具栏添加新工具时遇到相当大的困难 基本上我想添加选择工具 选取框 套索等 以切换受控子图的鼠标模式 到目前为止 我还没有找到任何功能可以让我轻松地做
  • 在 python 中将数组作为参数传递

    我是Python新手 现在我需要声明大小为 20 的数组并将该数组传递给函数 需要数组的函数如下 function args The args是一个输入function 谁能帮我 如何在 python 中传递数组 当你说 数组 时 我假设你
  • 如何在不更改设置的情况下不区分大小写排序

    我的索引名称是 data new 下面是插入索引的代码 test id 1 name A professor Bill Cage accounting id 2 name AB professor Gregg Payne engineeri
  • 使用 GitHub 时防止将大文本文件添加到提交

    我们想要防止 非常大的文本文件 每个文件 gt 50MB 被提交到git代替git lfs 因为它们夸大了 git 历史 问题是 其中 99 大小差异的原因 这些是 YAML 文件 它们支持通过 Base64 编码进行二进制序列化 我们无法
  • 在基于 AngularJS 的 Web 应用程序中使用 Selenium

    我逐渐知道 Selenium 是 UI 测试之父 现在我的问题是为什么 Angular 团队开发了 Protractor 对于基于 AngularJS 的 Web 应用程序 Selenium 不能完成同样的工作 Protractor 所做的
  • iOS 中的自动旋转崩溃

    当我更改设备方向时 我正在使用的应用程序出现异常终止 崩溃 我无法经常重现它 当我旋转时 它并不总是发生 假设机会约为 0 01 但这是一个严重的问题 我附上崩溃报告的重要部分 Exception Type EXC BAD ACCESS S