- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我们的应用程序在 iOS 7 中崩溃,但在 iOS 6 中运行良好。我们不确定是什么导致了这个问题。我们可以看到抛出了一些异常,但我们不确定代码中的何处导致了异常。
这是崩溃报告:
Incident Identifier: 1F589930-15BD-49F7-80E6-831A95092FDF
CrashReporter Key: aaa79870161ff1e371394b881a26e97f0066f464
Hardware Model: iPhone5,2
Process: myapp [1492]
Path: /var/mobile/Applications/A121DF2F-A7B9-4DD9-9FBC-BB06CD7C5EF5/myapp.app/myapp
Identifier: co.uk.myapp
Version: 1.0 (0.9)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2013-10-01 14:59:17.555 +0530
OS Version: iOS 7.0 (11A465)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 2
Last Exception Backtrace:
0 CoreFoundation 0x2d4e4e86 __exceptionPreprocess + 126
1 libobjc.A.dylib 0x377de6c2 objc_exception_throw + 34
2 CoreFoundation 0x2d41e0c6 -[__NSPlaceholderArray initWithObjects:count:] + 414
3 CoreFoundation 0x2d427a4c +[NSArray arrayWithObjects:count:] + 40
4 CoreFoundation 0x2d45d9c0 -[NSDictionary allKeys] + 172
5 Foundation 0x2df73336 -[NSISObjectiveLinearExpression description] + 122
6 Foundation 0x2ddfc808 _NSDescriptionWithLocaleFunc + 84
7 CoreFoundation 0x2d4babf2 __CFStringAppendFormatCore + 5618
8 CoreFoundation 0x2d429d18 _CFStringCreateWithFormatAndArgumentsAux + 72
9 CoreFoundation 0x2d4523c2 _CFLogvEx + 82
10 Foundation 0x2de0b7ee NSLogv + 82
11 Foundation 0x2de0b78e NSLog + 22
12 Foundation 0x2de4a918 -[NSISEngine minimizeConstantInObjectiveRowWithHead:] + 180
13 Foundation 0x2de4a46e -[NSISEngine optimize] + 170
14 Foundation 0x2de461a8 -[NSISEngine withBehaviors:performModifications:] + 312
15 UIKit 0x2fc69490 -[UIView(Hierarchy) _postMovedFromSuperview:] + 292
16 UIKit 0x2feffb92 __UIViewWasRemovedFromSuperview + 214
17 UIKit 0x2fc68342 -[UIView(Hierarchy) removeFromSuperview] + 266
18 UIKit 0x2fd3cccc -[UIScrollView removeFromSuperview] + 60
19 UIKit 0x2fd313e4 -[UINavigationController navigationTransitionView:didEndTransition:fromView:toView:] + 312
20 UIKit 0x2fdfcb5c __49-[UINavigationController _startCustomTransition:]_block_invoke + 156
21 UIKit 0x2fd81416 -[_UIViewControllerTransitionContext completeTransition:] + 70
22 UIKit 0x2fe418dc __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke105 + 448
23 UIKit 0x2fca2618 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 280
24 UIKit 0x2fca226a -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 174
25 UIKit 0x2fca2186 -[UIViewAnimationState animationDidStop:finished:] + 62
26 QuartzCore 0x2f8f8a0e CA::Layer::run_animation_callbacks(void*) + 230
27 libdispatch.dylib 0x37cc30ea _dispatch_client_callout + 18
28 libdispatch.dylib 0x37cc59a4 _dispatch_main_queue_callback_4CF + 264
29 CoreFoundation 0x2d4af5b4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 4
30 CoreFoundation 0x2d4ade80 __CFRunLoopRun + 1304
31 CoreFoundation 0x2d41853c CFRunLoopRunSpecific + 520
32 CoreFoundation 0x2d41831e CFRunLoopRunInMode + 102
33 GraphicsServices 0x3214f2e6 GSEventRunModal + 134
34 UIKit 0x2fccf1e0 UIApplicationMain + 1132
35 myapp 0x00020a16 main (main.mm:16)
36 libdyld.dylib 0x37cd7ab2 tlv_initializer + 2
Thread 0:
0 libsystem_kernel.dylib 0x37d8e588 __semwait_signal_nocancel + 24
1 libsystem_c.dylib 0x37d09788 nanosleep$NOCANCEL + 160
2 libsystem_c.dylib 0x37d24f10 usleep$NOCANCEL + 48
3 libsystem_c.dylib 0x37d3f030 abort + 80
4 myapp 0x001efaea uncaught_exception_handler + 22
5 CoreFoundation 0x2d4e518a __handleUncaughtException + 578
6 libobjc.A.dylib 0x377de924 _objc_terminate() + 172
7 libc++abi.dylib 0x371a51b0 std::__terminate(void (*)()) + 76
8 libc++abi.dylib 0x371a4a04 __cxa_throw + 112
9 libobjc.A.dylib 0x377de796 objc_exception_throw + 246
10 CoreFoundation 0x2d41e0c6 -[__NSPlaceholderArray initWithObjects:count:] + 414
11 CoreFoundation 0x2d427a4c +[NSArray arrayWithObjects:count:] + 40
12 CoreFoundation 0x2d45d9c0 -[NSDictionary allKeys] + 172
13 Foundation 0x2df73336 -[NSISObjectiveLinearExpression description] + 122
14 Foundation 0x2ddfc808 _NSDescriptionWithLocaleFunc + 84
15 CoreFoundation 0x2d4babf4 __CFStringAppendFormatCore + 5620
16 CoreFoundation 0x2d429d18 _CFStringCreateWithFormatAndArgumentsAux + 72
17 CoreFoundation 0x2d4523c2 _CFLogvEx + 82
18 Foundation 0x2de0b7ee NSLogv + 82
19 Foundation 0x2de0b78e NSLog + 22
20 Foundation 0x2de4a918 -[NSISEngine minimizeConstantInObjectiveRowWithHead:] + 180
21 Foundation 0x2de4a46e -[NSISEngine optimize] + 170
22 Foundation 0x2de461a8 -[NSISEngine withBehaviors:performModifications:] + 312
23 UIKit 0x2fc69490 -[UIView(Hierarchy) _postMovedFromSuperview:] + 292
24 UIKit 0x2feffb92 __UIViewWasRemovedFromSuperview + 214
25 UIKit 0x2fc68342 -[UIView(Hierarchy) removeFromSuperview] + 266
26 UIKit 0x2fd3cccc -[UIScrollView removeFromSuperview] + 60
27 UIKit 0x2fd313e4 -[UINavigationController navigationTransitionView:didEndTransition:fromView:toView:] + 312
28 UIKit 0x2fdfcb5c __49-[UINavigationController _startCustomTransition:]_block_invoke + 156
29 UIKit 0x2fd81418 -[_UIViewControllerTransitionContext completeTransition:] + 72
30 UIKit 0x2fe418dc __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke105 + 448
31 UIKit 0x2fca261a -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 282
32 UIKit 0x2fca226a -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 174
33 UIKit 0x2fca2186 -[UIViewAnimationState animationDidStop:finished:] + 62
34 QuartzCore 0x2f8f8a0e CA::Layer::run_animation_callbacks(void*) + 230
35 libdispatch.dylib 0x37cc30ec _dispatch_client_callout + 20
36 libdispatch.dylib 0x37cc59a4 _dispatch_main_queue_callback_4CF + 264
37 CoreFoundation 0x2d4af5b4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 4
38 CoreFoundation 0x2d4ade80 __CFRunLoopRun + 1304
39 CoreFoundation 0x2d41853c CFRunLoopRunSpecific + 520
40 CoreFoundation 0x2d41831e CFRunLoopRunInMode + 102
41 GraphicsServices 0x3214f2e6 GSEventRunModal + 134
42 UIKit 0x2fccf1e0 UIApplicationMain + 1132
43 myapp 0x00020a16 main (main.mm:16)
44 libdyld.dylib 0x37cd7ab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x37d7b838 kevent64 + 24
1 libdispatch.dylib 0x37cca0d0 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x37cc463e _dispatch_mgr_thread + 34
Thread 2 Crashed:
0 libsystem_kernel.dylib 0x37d8ec7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x37df2e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x37df2cc0 start_wqthread + 4
Thread 3 name: com.apple.NSURLConnectionLoader
Thread 3:
0 libsystem_kernel.dylib 0x37d7ba84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x37d7b87c mach_msg + 36
2 CoreFoundation 0x2d4af55c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2d4adc7c __CFRunLoopRun + 788
4 CoreFoundation 0x2d41853c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2d41831e CFRunLoopRunInMode + 102
6 Foundation 0x2de5364c +[NSURLConnection(Loader) _resourceLoadLoop:] + 316
7 Foundation 0x2dec8dc2 __NSThread__main__ + 1058
8 libsystem_pthread.dylib 0x37df4c5a _pthread_body + 138
9 libsystem_pthread.dylib 0x37df4bca _pthread_start + 98
10 libsystem_pthread.dylib 0x37df2ccc thread_start + 4
Thread 4:
0 libsystem_kernel.dylib 0x37d7ba84 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x37d7b87c mach_msg + 36
2 CoreFoundation 0x2d4af55c __CFRunLoopServiceMachPort + 152
3 CoreFoundation 0x2d4adc7c __CFRunLoopRun + 788
4 CoreFoundation 0x2d41853c CFRunLoopRunSpecific + 520
5 CoreFoundation 0x2d41831e CFRunLoopRunInMode + 102
6 Foundation 0x2de06822 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 250
7 Foundation 0x2de57664 -[NSRunLoop(NSRunLoop) run] + 76
8 myapp 0x001c1ffa +[AFURLConnectionOperation networkRequestThreadEntryPoint:] (AFURLConnectionOperation.m:160)
9 Foundation 0x2dec8dc2 __NSThread__main__ + 1058
10 libsystem_pthread.dylib 0x37df4c5a _pthread_body + 138
11 libsystem_pthread.dylib 0x37df4bca _pthread_start + 98
12 libsystem_pthread.dylib 0x37df2ccc thread_start + 4
Thread 5 name: com.apple.CFSocket.private
Thread 5:
0 libsystem_kernel.dylib 0x37d8e440 select$DARWIN_EXTSN + 20
1 CoreFoundation 0x2d4b345e __CFSocketManager + 482
2 libsystem_pthread.dylib 0x37df4c5a _pthread_body + 138
3 libsystem_pthread.dylib 0x37df4bca _pthread_start + 98
4 libsystem_pthread.dylib 0x37df2ccc thread_start + 4
Thread 6:
0 libsystem_kernel.dylib 0x37d8ec7c __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x37df2e06 _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x37df2cc0 start_wqthread + 4
Thread 2 crashed with ARM Thread State (32-bit):
r0: 0x00000004 r1: 0x00000000 r2: 0x00000000 r3: 0x00000000
r4: 0x02bcc000 r5: 0x00060001 r6: 0x00004007 r7: 0x02bcbfe0
r8: 0x00000000 r9: 0x00000001 r10: 0x00000000 r11: 0x00000000
ip: 0x00000170 sp: 0x02bcbfc8 lr: 0x37df2e0b pc: 0x37d8ec7c
cpsr: 0x40000010
最佳答案
这次崩溃看起来像是您在应用中设置的约束(在后台线程中?)的问题。
此外,这看起来与您报告的其他崩溃相似(不相同):https://stackoverflow.com/questions/19114389/app-hang-and-then-crash-ios-7
简而言之:您的约束设置(大概在代码中)导致了这个问题。很可能是因为您的约束引用了一个不再存在的 View 。
在长:
一些代码从线程 2 分派(dispatch)到主线程:
28 libdispatch.dylib 0x37cc59a4 _dispatch_main_queue_callback_4CF + 264
通过导航 Controller 到另一个 View Controller 的转换确实完成了:
21 UIKit 0x2fd81416 -[_UIViewControllerTransitionContext completeTransition:] + 70
ScrollView 正在从其父 View 中删除:
18 UIKit 0x2fd3cccc -[UIScrollView removeFromSuperview] + 60
正在评估约束条件:
12 基础 0x2de4a918 -[NSISEngine minimizeConstantInObjectiveRowWithHead:] + 180
约束引擎想要将一些错误记录到控制台:
11 基础 0x2de0b78e NSLog + 22
约束引擎尝试生成一个字符串:
5 Foundation 0x2df73336 -[NSISObjectiveLinearExpression 描述] + 122
发生异常,因为它试图将一个nil
对象添加到一个NSArray
。
如果您的约束规则(在代码中完成)引用了另一个不再存在的 View ,则可能会发生这种情况。您应该检查您的约束规则并设置断点以找出导致崩溃的原因。
关于iOS 7 应用程序崩溃 EXC_CRASH (SIGABRT) objc_exception_throw 在 iOS 6 上工作正常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19113811/
自从我 faced an issue由于背景图片对于不同分辨率的内容来说太短,我尝试将背景分成 3 部分并自动拉伸(stretch)中间部分以相应地填充顶部和底部图像之间的空间。不幸的是我没能在 CS
我从去年开始就在我的程序中运行这个函数(Linux 和 Windows)。 现在我需要实现一个新功能,我的新构建不再运行。 我还有其他使用 POST 的 CUrl 函数,结果是一样的:没问题,但我的
在评估函数应用方面,Haskell 是只支持普通降阶还是也支持应用降阶?我是否认为正常顺序是 Haskell 惰性的原因? 最佳答案 GHC 运行时不使用术语缩减策略,因为那会非常低效。事实上,GHC
怎么来的multi使用多处理池对多个“进程”上的数据进行分段和处理的函数比仅调用 map 慢(8 秒)。功能(6 秒)? from multiprocessing import Pool import
假设我正在渲染一个 3d GL_TRIANGLE。该对象需要 3 个顶点才能定义:A、B、C。我将此类数据放入缓冲区并通过 glVertexAttribPointer 将其绑定(bind)到着色器。
我有一个字体的三个文件,普通的,粗体的和浅色的。由于 font-weight:light 不存在,我该如何在 font-face 上设置 light 呢? 顺便问一下,font-weight:ligh
我是 C 的新手,我似乎无法弄清楚什么似乎是一个非常简单的指针问题。我的程序将行号添加到文件中。它逐行读入文件,然后在每行的开头添加一个行号。它在每个文件上都可以正常工作,如下所示: soccer@s
我有以下代码,我不确定为什么当它命中 Myclass 的析构函数时我会收到堆损坏检测错误。我相信我正在正确地释放内存?? #include #include using namespace std
有什么方法可以将“正常”数学符号解释为逆波兰符号 (RPN)..? 例如1) 2 + 3*4 - 1 = 234*+1-2) 5 (4-8) = 548- 你可以假设遵循 BODMAS 规则并且必须首
http://www.ergotopia.de/ergonomie-shop/ergonomische-kissen/orthopaedisches-sitzkissen的手机页面应该看起来像右边(检
我正在 Phonegap/Cordova 中构建一个应用程序。应用目前相当简单,但确实需要网络状态和地理定位插件才能工作。 到目前为止,我已经在 Android 上开发了该应用程序(目前它仅由一些基本
我一整天都在做这个,但没有运气 我设法在一行 TfidfVectorizer 中消除了问题 这是我的工作代码 from sklearn.feature_extraction.text import C
也许有人看到一个错误,问题是当我按btn2 (button 2)和btn3 (button 3)应用程序crashes时,但操作仍然有效,即video正在运行并且PDF打开,而button 1正常工作
我正在开发一个应用程序。它的第一页是登录屏幕。成功登录后,我想将用户带到选项卡式 Activity 。我怎样才能在安卓中做到这一点?谢谢 最佳答案 在 Android 中,启动 Activity 是通
我不确定我在这里做错了什么。 :normal! I### 当我对一个单词执行此命令时,我想要的最终结果是: ### word 但是我得到了这个: ###word 最佳答案 Vim 的 :normal是
我必须将 2 个静态矩阵发送到分配动态矩阵的函数,将矩阵 1 乘以矩阵 2,并返回新矩阵的地址。请注意,COMM 很常见。 我尝试删除 free_matrix 行,它工作正常。 void main()
我在我的一个项目中使用 Gnome libglib 并遇到了一个奇怪的错误。我可以输入 GList 的元素数量看起来仅限于 45 个。在第 45 个元素处,它给出了此错误 40 counter 41
我正在尝试获取“顶级”HWND 的尺寸。即,我想要 Firefox/Windows 资源管理器等的主 HWND 的当前尺寸。窗口。如果窗口最小化, GetWindowRect() 将不起作用。 Get
相同的标题:什么是索引 - 正常 - 全文 - 唯一? 最佳答案 普通索引用于通过仅包含行数据的切片或散列来加速操作。 全文索引向数据库的全文搜索 (FTS) 引擎指示它应该将数据存档在给定字段中,以
我正在使用 EnumParser来自 here它在 VC++ 中编译得很好,但是使用 gcc 我有这样的错误: ./Terminator.o: In function `EnumParser::Enu
我是一名优秀的程序员,十分优秀!