- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我最近从我的应用程序中收到了一份崩溃日志,该日志已发布给试点用户。当我查看 Xcode 时,崩溃日志指向 UIKit: -[UIEventFetcher _receiveHIDEventInternal:] + 220
此问题不可重现,因此我有点困惑如何调试此崩溃或可能导致的原因它。下面是相同的崩溃日志。
OS Version: iPhone OS 11.1.2
Baseband Version: n/a
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000030
VM Region Info: 0x30 is not in any region. Bytes before following region: 4329832400
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 0000000102140000-0000000102144000 [ 16K] r-x/r-x SM=COW ...My App]
Termination Signal: Segmentation fault: 11
Termination Reason: Namespace SIGNAL, Code 0xb
Terminating Process: exc handler [0]
Triggered by Thread: 1
Thread 0 name:
Thread 0:
0 CoreFoundation 0x000000018597e1c8 -[__NSArrayM insertObject:atIndex:] + 1288 (NSArrayM_Common.h:278)
1 CoreFoundation 0x000000018597de50 -[__NSArrayM insertObject:atIndex:] + 400 (NSArrayM_Common.h:256)
2 My App 0x0000000102362bfc CLSExceptionRecordNSException + 404
3 My App 0x00000001023628a0 CLSTerminateHandler() + 396
4 libc++abi.dylib 0x0000000184cef54c std::__terminate(void (*)()) + 16 (cxa_handlers.cpp:66)
5 libc++abi.dylib 0x0000000184cef158 __cxa_rethrow + 144 (cxa_exception.cpp:557)
6 libobjc.A.dylib 0x0000000184d006e8 objc_exception_rethrow + 44 (objc-exception.mm:559)
7 CoreFoundation 0x0000000185978024 CFRunLoopRunSpecific + 544 (CFRunLoop.c:3259)
8 GraphicsServices 0x000000018780ff84 GSEventRunModal + 100 (GSEvent.c:2245)
9 UIKit 0x000000018ef4c2e8 UIApplicationMain + 208 (UIApplication.m:3949)
10 My App 0x00000001021ff514 main + 92 (main.m:14)
11 libdyld.dylib 0x000000018549a56c start + 4
Thread 1 name:
Thread 1 Crashed:
0 CoreFoundation 0x000000018597e1c8 -[__NSArrayM insertObject:atIndex:] + 1288 (NSArrayM_Common.h:278)
1 CoreFoundation 0x000000018597de50 -[__NSArrayM insertObject:atIndex:] + 400 (NSArrayM_Common.h:256)
2 UIKit 0x000000018faab55c -[UIEventFetcher _receiveHIDEventInternal:] + 220 (UIEventFetcher.m:229)
3 IOKit 0x0000000185d46170 __IOHIDEventSystemClientQueueCallback + 236 (IOHIDEventSystemClient.c:1037)
4 CoreFoundation 0x0000000185a40010 __CFMachPortPerform + 188 (CFMachPort.c:689)
5 CoreFoundation 0x0000000185a5a96c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 56 (CFRunLoop.c:1998)
6 CoreFoundation 0x0000000185a5a070 __CFRunLoopDoSource1 + 440 (CFRunLoop.c:2135)
7 CoreFoundation 0x0000000185a57b44 __CFRunLoopRun + 2196 (CFRunLoop.c:3150)
8 CoreFoundation 0x0000000185977fb8 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3245)
9 Foundation 0x00000001863a16e4 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 304 (NSRunLoop.m:367)
10 Foundation 0x00000001863c0afc -[NSRunLoop(NSRunLoop) runUntilDate:] + 96 (NSRunLoop.m:411)
11 UIKit 0x000000018faab2f4 -[UIEventFetcher threadMain] + 136 (UIEventFetcher.m:436)
12 Foundation 0x00000001864a2860 __NSThread__start__ + 996 (NSThread.m:1181)
13 libsystem_pthread.dylib 0x00000001856dc31c _pthread_body + 308 (pthread.c:740)
14 libsystem_pthread.dylib 0x00000001856dc1e8 _pthread_start + 312 (pthread.c:799)
15 libsystem_pthread.dylib 0x00000001856dac28 thread_start + 4
Thread 2 name:
Thread 2:
0 libsystem_kernel.dylib 0x00000001855aa670 write + 8
1 My App 0x0000000102358d0c CLSSDKFileLog + 336
2 My App 0x0000000102350338 CLSMachExceptionServer + 1148
3 libsystem_pthread.dylib 0x00000001856dc31c _pthread_body + 308 (pthread.c:740)
4 libsystem_pthread.dylib 0x00000001856dc1e8 _pthread_start + 312 (pthread.c:799)
5 libsystem_pthread.dylib 0x00000001856dac28 thread_start + 4
Thread 3 name:
Thread 3:
0 libsystem_kernel.dylib 0x00000001855a8bc4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001855a8a3c mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x0000000185a59c74 __CFRunLoopServiceMachPort + 196 (CFRunLoop.c:2613)
3 CoreFoundation 0x0000000185a57840 __CFRunLoopRun + 1424 (CFRunLoop.c:2969)
4 CoreFoundation 0x0000000185977fb8 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3245)
5 CFNetwork 0x00000001860e2264 +[NSURLConnection(Loader) _resourceLoadLoop:] + 404 (NSURLConnection.mm:367)
6 Foundation 0x00000001864a2860 __NSThread__start__ + 996 (NSThread.m:1181)
7 libsystem_pthread.dylib 0x00000001856dc31c _pthread_body + 308 (pthread.c:740)
8 libsystem_pthread.dylib 0x00000001856dc1e8 _pthread_start + 312 (pthread.c:799)
9 libsystem_pthread.dylib 0x00000001856dac28 thread_start + 4
Thread 4:
0 libsystem_kernel.dylib 0x00000001855c9150 __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x00000001856ded30 _pthread_cond_wait$VARIANT$mp + 640 (pthread_cond.c:579)
2 libc++.1.dylib 0x0000000184c82ea4 std::__1::condition_variable::wait(std::__1::unique_lock<std::__1::mutex>&) + 24 (__threading_support:278)
3 JavaScriptCore 0x000000018cd25b94 void std::__1::condition_variable_any::wait<std::__1::unique_lock<bmalloc::Mutex> >(std::__1::unique_lock<bmalloc::Mutex>&) + 96 (condition_variable:202)
4 JavaScriptCore 0x000000018cd25abc bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>::threadRunLoop() + 172 (condition_variable:211)
5 JavaScriptCore 0x000000018cd25e20 void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (*)(bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*), bmalloc::AsyncTask<bmalloc::Heap, void (bmalloc::Heap::*)()>*> >(void*) + 44 (type_traits:4291)
6 libsystem_pthread.dylib 0x00000001856dc31c _pthread_body + 308 (pthread.c:740)
7 libsystem_pthread.dylib 0x00000001856dc1e8 _pthread_start + 312 (pthread.c:799)
8 libsystem_pthread.dylib 0x00000001856dac28 thread_start + 4
Thread 5 name:
Thread 5:
0 libsystem_kernel.dylib 0x00000001855a8bc4 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001855a8a3c mach_msg + 72 (mach_msg.c:103)
2 CoreFoundation 0x0000000185a59c74 __CFRunLoopServiceMachPort + 196 (CFRunLoop.c:2613)
3 CoreFoundation 0x0000000185a57840 __CFRunLoopRun + 1424 (CFRunLoop.c:2969)
4 CoreFoundation 0x0000000185977fb8 CFRunLoopRunSpecific + 436 (CFRunLoop.c:3245)
5 WebCore 0x000000018d7ebe04 RunWebThread(void*) + 456 (WebCoreThread.mm:694)
6 libsystem_pthread.dylib 0x00000001856dc31c _pthread_body + 308 (pthread.c:740)
7 libsystem_pthread.dylib 0x00000001856dc1e8 _pthread_start + 312 (pthread.c:799)
8 libsystem_pthread.dylib 0x00000001856dac28 thread_start + 4
Thread 6:
0 libsystem_pthread.dylib 0x00000001856dac1c start_wqthread + 0
Thread 7:
0 libsystem_kernel.dylib 0x00000001855c9dbc __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x00000001856db134 _pthread_wqthread + 1288 (pthread.c:0)
2 libsystem_pthread.dylib 0x00000001856dac20 start_wqthread + 4
Thread 8:
0 libsystem_pthread.dylib 0x00000001856dac1c start_wqthread + 0
Thread 1 crashed with ARM Thread State (64-bit):
x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000
x4: 0x0000000000000000 x5: 0x0000000000000000 x6: 0x0000000000000001 x7: 0x0000000000000000
x8: 0x0000000000000000 x9: 0x0000000000000006 x10: 0x0000000000000000 x11: 0x00000000fffffff0
x12: 0x0000000000000058 x13: 0x00000000fffffff0 x14: 0x0000000185615f89 x15: 0x000000000000004d
x16: 0x00000001856d1de0 x17: 0x000000018597dcc0 x18: 0x0000000000000000 x19: 0x0000000000000006
x20: 0x000000018fc6dd6a x21: 0x0000000000000000 x22: 0x0000000217cf4450 x23: 0x0000000000000000
x24: 0x0000000000000000 x25: 0x00000001c0ba4d00 x26: 0x00000001c4240550 x27: 0x00000001b489518c
x28: 0x0000000000000006 fp: 0x000000016df74c20 lr: 0x000000018597de50
sp: 0x000000016df74b80 pc: 0x000000018597e1c8 cpsr: 0x20000000
感谢任何帮助。
最佳答案
一位用户的一部手机发生一次崩溃?........
将其归结为“发生的事情”并继续 - 您不可能追踪手机中发生的所有可能的问题 - 至少,如果您要完成应用程序并向公众发布,则不可能.
如果你真的“必须”找到这个,那么你应该找更多的测试人员,这样它就可以被复制。
一次性问题不值得这么麻烦。
关于ios - UIKit 在 iOS 中崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47752410/
大家好,我正在尝试制作一个具有大量动画和效果的交互式 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
我是一名优秀的程序员,十分优秀!