- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
这份崩溃报告对我来说真的很难理解。我时不时地看到它,而且它几乎不可能修复,因为它并没有真正给我任何对我的代码的引用。
这是 Apple 造成的崩溃,我不必担心吗?
Date/Time: 2013-02-26 03:49:36 +0000
OS Version: iPhone OS 6.1.2 (10B146)
Report Version: 104
Exception Type: SIGTRAP
Exception Codes: #0 at 0x33973d24
Crashed Thread: 0
Thread 0 Crashed:
0 CoreFoundation 0x33973d24 CFRetain + 8
1 UIKit 0x359484f9 -[UIKeyboardCache displayView:imageWidth:withKey:fromLayout:] + 297
2 UIKit 0x359483c7 -[UIKeyboardCache displayView:withKey:fromLayout:] + 91
3 UIKit 0x35947b5b -[UIKBKeyplaneView displayLayer:] + 191
4 QuartzCore 0x355f34f7 CA::Layer::display() + 95
5 QuartzCore 0x355ea93b CA::Layer::display_if_needed(CA::Transaction*) + 203
6 QuartzCore 0x355ea865 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 25
7 QuartzCore 0x355ea243 CA::Context::commit_transaction(CA::Transaction*) + 239
8 QuartzCore 0x355ea051 CA::Transaction::commit() + 317
9 QuartzCore 0x355e9eb1 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 61
10 CoreFoundation 0x33a096cd __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 21
11 CoreFoundation 0x33a079c1 __CFRunLoopDoObservers + 277
12 CoreFoundation 0x33a07d17 __CFRunLoopRun + 743
13 CoreFoundation 0x3397aebd CFRunLoopRunSpecific + 357
14 CoreFoundation 0x3397ad49 CFRunLoopRunInMode + 105
15 GraphicsServices 0x3753c2eb GSEventRunModal + 75
16 UIKit 0x35890301 UIApplicationMain + 1121
17 MyApp 0x0004e60f main (main.m:16)
Thread 1:
0 libsystem_kernel.dylib 0x3bbbc648 kevent64 + 24
1 libdispatch.dylib 0x3bae7df8 _dispatch_mgr_thread$VARIANT$up + 36
Thread 2:
0 libsystem_kernel.dylib 0x3bbbbeb4 mach_msg_trap + 20
1 CoreFoundation 0x33a09045 __CFRunLoopServiceMachPort + 129
2 CoreFoundation 0x33a07da3 __CFRunLoopRun + 883
3 CoreFoundation 0x3397aebd CFRunLoopRunSpecific + 357
4 CoreFoundation 0x3397ad49 CFRunLoopRunInMode + 105
5 WebCore 0x3996f505 RunWebThread(void*) + 445
6 libsystem_c.dylib 0x3bb25311 _pthread_start + 309
Thread 3:
0 libsystem_kernel.dylib 0x3bbbbeb4 mach_msg_trap + 20
1 CoreFoundation 0x33a09045 __CFRunLoopServiceMachPort + 129
2 CoreFoundation 0x33a07da3 __CFRunLoopRun + 883
3 CoreFoundation 0x3397aebd CFRunLoopRunSpecific + 357
4 CoreFoundation 0x3397ad49 CFRunLoopRunInMode + 105
5 Foundation 0x3429df97 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 255
6 Foundation 0x34341865 -[NSRunLoop(NSRunLoop) run] + 81
7 MyApp 0x0003f7b5 +[AFURLConnectionOperation networkRequestThreadEntryPoint:] (AFURLConnectionOperation.m:161)
8 Foundation 0x3434ae85 __NSThread__main__ + 973
9 libsystem_c.dylib 0x3bb25311 _pthread_start + 309
Thread 4:
0 libsystem_kernel.dylib 0x3bbbbeb4 mach_msg_trap + 20
1 CoreFoundation 0x33a09045 __CFRunLoopServiceMachPort + 129
2 CoreFoundation 0x33a07da3 __CFRunLoopRun + 883
3 CoreFoundation 0x3397aebd CFRunLoopRunSpecific + 357
4 CoreFoundation 0x3397ad49 CFRunLoopRunInMode + 105
5 Foundation 0x342c73d5 +[NSURLConnection(Loader) _resourceLoadLoop:] + 309
6 Foundation 0x3434ae85 __NSThread__main__ + 973
7 libsystem_c.dylib 0x3bb25311 _pthread_start + 309
Thread 5:
0 libsystem_kernel.dylib 0x3bbcc594 __select + 20
1 libsystem_c.dylib 0x3bb25311 _pthread_start + 309
Thread 6:
0 libsystem_kernel.dylib 0x3bbcc08c __psynch_cvwait + 24
1 libsystem_c.dylib 0x3bb1daa5 pthread_cond_timedwait + 45
2 JavaScriptCore 0x37932c75 WTF::ThreadCondition::timedWait(WTF::Mutex&, double) + 109
3 JavaScriptCore 0x37a44557 JSC::BlockAllocator::blockFreeingThreadMain() + 83
4 JavaScriptCore 0x37a56fab WTF::wtfThreadEntryPoint(void*) + 15
5 libsystem_c.dylib 0x3bb25311 _pthread_start + 309
Thread 7:
0 libsystem_kernel.dylib 0x3bbbbeb4 mach_msg_trap + 20
1 CoreFoundation 0x33a09045 __CFRunLoopServiceMachPort + 129
2 CoreFoundation 0x33a07da3 __CFRunLoopRun + 883
3 CoreFoundation 0x3397aebd CFRunLoopRunSpecific + 357
4 CoreFoundation 0x3397ad49 CFRunLoopRunInMode + 105
5 AudioToolbox 0x3345c703 GenericRunLoopThread::Entry(void*) + 139
6 AudioToolbox 0x3343d885 CAPThread::Entry(CAPThread*) + 297
7 libsystem_c.dylib 0x3bb25311 _pthread_start + 309
Thread 8:
0 libsystem_kernel.dylib 0x3bbccd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3bb1aa16 _pthread_wqthread + 366
Thread 9:
0 libsystem_kernel.dylib 0x3bbccd98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3bb1aa16 _pthread_wqthread + 366
最佳答案
这不是苹果造成的。下面一行是崩溃的入口点。确保一些相关的对象/ View 没有被释放。
MyApp 0x0003f7b5 +[AFURLConnectionOperation networkRequestThreadEntryPoint:] (AFURLConnectionOperation.m:161
更新:
我收回我的对象释放声明。我怀疑这种崩溃可能是由于在后台线程中创建\更新了 UI 元素而发生的。我的意思是在网络回调方法中创建/更新的 UI 元素。
该问题的解决方案是在 main_queue
中添加一个 dispatch_async
来执行 UI 更新。
关于ios - 这个崩溃是我造成的还是UIKit本身造成的?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15574088/
大家好,我正在尝试制作一个具有大量动画和效果的交互式 UI。 但我不知道是否: 核心图形可以支持用户交互(触摸、拖动等) 核心图形支持对象旋转 核心图形可以以任何方式与 UIKit 和核心动画交互 谢
我正在查看 Swift 中的一些 UIKit header ,特别是用于 UIViewController 的 header ,并且有几个函数返回隐式展开的可选值而不是普通的可选值。 例如: //旋转
我正在尝试运行此代码: GetRepsButton.Command = new Command(async () => { var url =
我正在尝试运行此代码: GetRepsButton.Command = new Command(async () => { var url =
从 SwiftUI View 推送到 UIKit 时,导航栏项目不存在或未添加。 我在 Storyboard中添加了一项,在代码中添加了一项,但都没有显示。 这可能是 SwiftUI 中的一个错误,但
嘿,你们这些聪明人; 一个艰难的crash bug 调试了很多天,还是没有找到根本原因,渴望得到您的提示和指导。 它是一个表格 View Controller ,但由于我们在其中添加了许多其他 UI
目前正在尝试打开一个在 Swift 3、Xcode 8.1 中创建的应用程序。我进行了大量研究,删除派生数据并一遍又一遍地清理整个项目。我已将 Xcode 及其语法更新为最新版本。 MapKit 可能
我有一个 View ,其边界设置为碰撞( setTranslatesReferenceBoundsIntoBoundaryWithInsets )和一个带有重力的 subview 设置,以便它可以与
我正在探索 tvOS,我发现 Apple 提供了一套不错的 templates使用TVML编写。我想知道使用 TVML 模板的 tvOS 应用是否也可以使用 UIKit。 我可以在一个应用程序中混合使
在导入我的框架后,需要将 UIKit 显式导入项目中的所有 UIKit 子类。 我决定从我的项目中导出所有 objective-c 类 并制作一个框架。我使用 Google map 框架 创建了该框架
我试图在 playground 中创建一个 UILabel 但失败了。 playground 目前只支持 OS X 开发吗? 最佳答案 是的,确实如此! 文件:新建 > 文件... > iOS > 源
由于 SwiftUI 文本中的一些限制。我必须使用 UIText 代替。 在 UIViewRepresentable 中, func makeUIView(context: Context)
我试图将SubView SwiftUI View 添加到UIView。 self.view.addSubview(contentView) Error: Cannot convert value of
好的,我知道如何使用 UIViewRepresentable 和 Coordinator 包装像 TextField 这样的 UIKit 组件,以便与 SwiftUI 一起使用。一切都运转良好。但是,
UIKit Dynamics 和 UIKit Animation 在动画层面最本质的区别是什么? 关于 UIKit Dynamic 的资料并不多。我对此了解不多。我只知道如何使用它。我认为这个问题与硬
我已经阅读了有关词法和预处理器问题的其他问题,并且我尝试使用有助于解决他们的问题的方法。不幸的是,这些解决方案都无法帮助解决问题。这个错误不知从何而来,我不确定除了阅读之外我还能做什么来解决这个问题。
例如我有以下界面。 #import @interface someClass : NSObject @property (nonatomic, copy) NSString *string; @pro
我多年来一直在与 tableView.performBatchUpdates 的 UIKit 问题作斗争。 我有一个简单的数据模型,其中包含由 tableView 和 tableViewCells 驱
我正在读这个post关于进口,我有一个问题。默认情况下,prefix.pch 文件中的#import 会减慢编译时间吗?我应该删除它并仅在必要时导入吗? #ifdef __OBJC__ #im
我一直在观看一个视频,该视频指出 UIAlertView 仅在导入 UIKit.h 时才有效。但是,如果我在头文件中注释掉 import 语句: //#import @interface ViewC
我是一名优秀的程序员,十分优秀!