- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在用户设备中遇到崩溃(我在 Crashalytics 中看到它)问题是核心转储都是 iOS 内部的东西。我怎样才能看到我的哪一段代码引发了导致崩溃的绘制?
Terminating app due to an uncaught exception 'NSInvalidArgumentException', reason: '-[NSAttributeDictionary textContainerForAttributedString:containerSize:lineFragmentPadding:]: unrecognized selector sent to instance 0x15dc7f20'
0 CoreFoundation 0x30065f23 +154
1 libobjc.A.dylib 0x3a7fcce7 objc_exception_throw+38
2 CoreFoundation 0x30069837 +202
3 CoreFoundation 0x30068137 +706
4 CoreFoundation 0x2ffb7098 _CF_forwarding_prep_0+24
5 UIFoundation 0x37ce5915 +12252
6 UIFoundation 0x37ce2863 +150
7 UIKit 0x328ae2c9 +4224
8 UIKit 0x32914709 +500
9 UIKit 0x3291450b +78
10 UIKit 0x329144a9 +372
11 QuartzCore 0x32540189 +100
12 QuartzCore 0x32529c5b +1858
13 QuartzCore 0x32605c1d +52
14 QuartzCore 0x3252950b +82
15 QuartzCore 0x325291bf +1118
16 QuartzCore 0x3250cd41 +208
17 QuartzCore 0x3250c9d9 +24
18 QuartzCore 0x3250c3e5 +228
19 QuartzCore 0x3250c1f7 +314
20 QuartzCore 0x325398e3 +162
21 libsystem_pthread.dylib 0x3ae176d1 +164
22 libsystem_pthread.dylib 0x3ae17453 +86
23 libsystem_pthread.dylib 0x3ae181b9 pthread_exit+28
24 Foundation 0x309a2703 +10
25 Foundation 0x30a4ea2d +1092
26 libsystem_pthread.dylib 0x3ae18959 +140
27 libsystem_pthread.dylib 0x3ae188cb _pthread_start+102
** 编辑 **在此运行中崩溃的另一个线程(这再次没有给我代码中原始点的提示)
Thread : Crashed: Thread
0 libsystem_c.dylib 0x3ad6206a __abort + 101
1 libsystem_c.dylib 0x3ad6206b __abort + 102
2 libsystem_c.dylib 0x3ad62005 __abort
3 libc++abi.dylib 0x3a1b098f abort_message + 74
4 libc++abi.dylib 0x3a1c96e7 default_terminate_handler() + 254
5 libobjc.A.dylib 0x3a7fcf7d _objc_terminate() + 192
6 libc++abi.dylib 0x3a1c71b3 std::__terminate(void (*)()) + 78
7 libc++abi.dylib 0x3a1c6a09 __cxxabiv1::exception_cleanup_func(_Unwind_Reason_Code, _Unwind_Exception*)
8 libobjc.A.dylib 0x3a7fcdbb objc_exception_throw + 250
9 CoreFoundation 0x30069837 -[NSObject(NSObject) doesNotRecognizeSelector:] + 202
10 CoreFoundation 0x30068137 ___forwarding___ + 706
11 CoreFoundation 0x2ffb7098 _CF_forwarding_prep_0 + 24
12 UIFoundation 0x37ce5915 __NSStringDrawingEngine + 12252
13 UIFoundation 0x37ce2863 -[NSString(NSExtendedStringDrawing) drawWithRect:options:attributes:context:] + 150
14 UIKit 0x328ae2c9 -[UILabel _drawTextInRect:baselineCalculationOnly:] + 4224
15 UIKit 0x32914709 -[UILabel drawTextInRect:] + 500
16 UIKit 0x3291450b -[UILabel drawRect:] + 78
17 UIKit 0x329144a9 -[UIView(CALayerDelegate) drawLayer:inContext:] + 372
18 QuartzCore 0x32540189 -[CALayer drawInContext:] + 100
19 QuartzCore 0x32529c5b CABackingStoreUpdate_ + 1858
20 QuartzCore 0x32605c1d ___ZN2CA5Layer8display_Ev_block_invoke + 52
21 QuartzCore 0x3252950b x_blame_allocations + 82
22 QuartzCore 0x325291bf CA::Layer::display_() + 1118
23 QuartzCore 0x3250cd41 CA::Layer::display_if_needed(CA::Transaction*) + 208
24 QuartzCore 0x3250c9d9 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 24
25 QuartzCore 0x3250c3e5 CA::Context::commit_transaction(CA::Transaction*) + 228
26 QuartzCore 0x3250c1f7 CA::Transaction::commit() + 314
27 QuartzCore 0x325398e3 CA::Transaction::release_thread(void*) + 162
28 libsystem_pthread.dylib 0x3ae176d1 _pthread_tsd_cleanup + 164
29 libsystem_pthread.dylib 0x3ae17453 _pthread_exit + 86
30 libsystem_pthread.dylib 0x3ae181b9 pthread_exit + 28
31 Foundation 0x309a2703 +[NSThread exit] + 10
32 Foundation 0x30a4ea2d __NSThread__main__ + 1092
33 libsystem_pthread.dylib 0x3ae18959 _pthread_body + 140
34 libsystem_pthread.dylib 0x3ae188cb _pthread_start + 102
最佳答案
不寻常的是,您只在生产中遇到这种崩溃,而不是在开发中遇到这种崩溃。这可能是由于测试不力造成的,但另一个可能的原因是对您正在使用的数据类型做出假设,而这些数据在开发中很难复制。
JSON 是一个常见且经典的示例,其中服务器可以提供字符串响应,该字符串响应会神奇地转换为对象的层次结构。然后,代码假设顶级对象是字典或数组,并开始调用无法识别的方法。但就您而言,您在发布之前没有正确测试。
(这并没有真正提供答案,但我觉得你已经拥有为自己提供答案所需的一切,如果你愿意使用它的话)。
关于ios - 确定代码中发生崩溃的原因,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25697619/
我对cassandra并使用1.2.10非常陌生。我有一个时间戳数据类型的主键列。现在,我正在尝试检索日期范围的数据。由于我们知道不能在cassandra中使用,因此我使用的是大于()来获取日期范围。
我正在尝试进行有条件的转场。但我得到: Terminating app due to uncaught exception 'NSInvalidArgumentException', reas
我有一个游戏项目,在调试和发布模式下在设备上运行得非常好。我有两个版本。旧版本和新版本具有更多(后来我添加了)功能,并且两者的 bundle ID、版本相同。当我构建旧版本时,之前没有安装“myGam
这个问题已经有答案了: 奥 git _a (2 个回答) 已关闭 5 年前。 我正在获取 ClassCastException 。这两个类来自不同的 jar,但是JettyContinuationPr
以下代码行抛出异常: HttpResponse response = client.execute(request); // actual HTTP request 我能够捕获它并打印: Log
就目前情况而言,这个问题不太适合我们的问答形式。我们希望答案得到事实、引用资料或专业知识的支持,但这个问题可能会引发辩论、争论、民意调查或扩展讨论。如果您觉得这个问题可以改进并可能重新开放,visit
public class TwoThreads { private static Object resource = new Object(); private static void
当我输入 6 (int) 作为值时,运行此命令会出现段错误 (gcc filename.c -lm)。请帮助我解决这个问题。预期的功能尚未实现,但我需要知道为什么我已经陷入段错误。 谢谢! #incl
所以,过去一周半我一直在研究这个 .OBJ/.MTL 网格解析器。在这段时间里,我一直在追踪/修复很多错误、清理代码、记录代码等等。 问题是,每修复一个错误,仍然会出现这个问题,而且一张图片胜过一千个
我正在运行一个代码,它基本上围绕 3 个维度旋转一个大数据数组(5000 万行)。但是,我遇到了一个奇怪的问题,我已将其缩小到如何评估旋转矩阵。基本上,对于除绕 x 轴以外的任何旋转,python 代
就在你说这是重复之前,我已经看到了其他问题,但我仍然想发布这个。 所以我正在阅读 Thinking in Java -Bruce Eckel 这篇文章是关于小写命名约定的: In Java 1.0 a
我想在我的应用程序中使用 REST API。它为我从这个应用程序发出的所有请求抛出 SocketTimeoutException。 Logcat 输出:(您也可以在此处看到带有漂亮格式的输出:http
我知道 raise ... from None 并已阅读 How can I more easily suppress previous exceptions when I raise my own
在未能找到各种Unix工具(例如xargs和whatnot)的最新独立二进制文件(this version很好,但需要外部DLL)后,我承担了自己进行编译的挑战。 ...这是痛苦的。 最终,尽管如此,
我有一个用PHP编写的流套接字服务器。 为了查看一次可以处理多少个连接,我用C语言编写了一个模拟器来创建1000个不同的客户端以连接到服务器。 stream_socket_accept几次返回fals
我的Android Studio昨天运行良好,但是今天当我启动Android Studio并想在移动设备上运行应用程序时,发生了以下错误, 我在互联网和stackoverflow上进行了搜索,但没有解
默认情况下,grails似乎为Java域对象的toString()返回:。那当然不是我想要的,所以我尝试@Override toString()返回我想要的。当我尝试grails generate-a
尝试通过LDAP通过LDAP对用户进行身份验证时,出现以下错误。 Reason: Cannot pass null or empty values to constructor. 谁能告诉我做错了什么
我正在尝试使用应用程序附带的 Houdini Python 模块,该模块是 Houdini 安装文件夹的一部分,位于标准 Python 路径之外。按照安装说明操作后,运行 Houdini Termin
简单地说,我正在为基本数据库编写单链表的原始实现。当用户请求打印索引下列出的元素高于数据库中当前记录数量时,我不断出现段错误,但仅当差值为 1 时。对于更高的数字,它只会触发我在那里编写的错误系统。
我是一名优秀的程序员,十分优秀!