当我使用我的应用程序时,我遇到了崩溃。我无法让它重现。这是一个SEGV_ACCERR错误

时间:2017-06-26 08:22:16

标签: ios objective-c

我的崩溃描述:

#0线程 SIGSEGV

SEGV_ACCERR

0 libobjc.A.dylib objc_msgSend + 28

1 CoreLocation CLClientGetCapabilities + 35548

2 CoreLocation CLClientGetCapabilities + 33812

3 CoreLocation CLClientInvalidate + 1000

4 CoreFoundation _CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 20

5 CoreFoundation ___CFRunLoopDoBlocks + 288

6 CoreFoundation ___CFRunLoopRun + 728

7 CoreFoundation CFRunLoopRunSpecific + 424

8 GraphicsServices GSEventRunModal + 100

9 UIKit UIApplicationMain + 208

10 iSmartLBS main(main.m:15)

11 libdyld.dylib _start + 4

我刚才在Xcode上打开了组织者,我找到了更多信息:

{   "源极线" :1865年,   "的SourceFile" :" CLLocationManager.m",   "的UserData" :{     "解决" :假的,     "名称" :" CoreLocation: - [CLLocationManager onClientEventLocation:forceMapMatching:type:] + 1060",     "说明" :""   },   " defaultName中" :" CoreLocation: - [CLLocationManager onClientEventLocation:forceMapMatching:type:] + 1060" }

异常类型:EXC_BAD_ACCESS(SIGSEGV)

异常子类型:KERN_INVALID_ADDRESS位于0x0000000000000010

由线程触发:0

线程0名称:

线程0崩溃:

0 libobjc.A.dylib 0x0000000183a98150 objc_msgSend + 16

1 CoreLocation 0x000000018d2a6734 - [CLLocationManager onClientEventLocation:forceMapMatching:type:] + 1060(CLLocationManager.m:1865)

2 CoreLocation 0x000000018d2a606c - [CLLocationManager onClientEvent:supportInfo:] + 1000(CLLocationManager.m:1660)

3 CoreLocation 0x000000018d299278 ___Z22CLClientInvokeCallbackP10__CLClient13CLClientEventP11objc_object_block_invoke + 140(CLClient.mm:763)

4 CoreFoundation 0x0000000184fd130c CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 20(CFRunLoop.c:1818)

5 CoreFoundation 0x0000000184fd0b28 __CFRunLoopDoBlocks + 288(CFRunLoop.c:1855)

6 CoreFoundation 0x0000000184fce9bc __CFRunLoopRun + 764(CFRunLoop.c:2823)

7 CoreFoundation 0x0000000184efeda4 CFRunLoopRunSpecific + 424(CFRunLoop.c:3113)

8 GraphicsServices 0x0000000186968074 GSEventRunModal + 100(GSEvent.c:2245)

9 UIKit 0x000000018b1b9058 UIApplicationMain + 208(UIApplication.m:4089)

10 iSmartLBS 0x0000000100c3432c 0x10008c000 + 12223276

11 libdyld.dylib 0x0000000183f0d59c start + 4

主题1名称:

主题1:

0 libsystem_kernel.dylib 0x0000000183fff224 mach_msg_trap + 8

1 libsystem_kernel.dylib 0x0000000183fff09c mach_msg + 72(mach_msg.c:103)

2 CoreFoundation 0x0000000184fd0e90 __CFRunLoopServiceMachPort + 192(CFRunLoop.c:2527)

3 CoreFoundation 0x0000000184fceae4 __CFRunLoopRun + 1060(CFRunLoop.c:2870)

4 CoreFoundation 0x0000000184efeda4 CFRunLoopRunSpecific + 424(CFRunLoop.c:3113)

5 Foundation 0x0000000185a18d74 - [NSRunLoop(NSRunLoop)runMode:beforeDate:] + 304(NSRunLoop.m:367)

6基金会0x0000000185a39b44 - [NSRunLoop(NSRunLoop)runUntilDate:] + 96(NSRunLoop.m:411)

7 UIKit 0x000000018bb436a8 - [UIEventFetcher threadMain] + 136(UIEventFetcher.m:313)

8基金会0x0000000185b162d8 NSThread__start + 996(NSThread.m:1163)

9 libsystem_pthread.dylib 0x00000001840e568c _pthread_body + 240(pthread.c:697)

10 libsystem_pthread.dylib 0x00000001840e559c _pthread_start + 284(pthread.c:744)

11 libsystem_pthread.dylib 0x00000001840e2cb4 thread_start + 4

线程2名称:

主题2:

0 libsystem_kernel.dylib 0x0000000183fff224 mach_msg_trap + 8

1 libsystem_kernel.dylib 0x0000000183fff09c mach_msg + 72(mach_msg.c:103)

2 CoreFoundation 0x0000000184fd0e90 __CFRunLoopServiceMachPort + 192(CFRunLoop.c:2527)

3 CoreFoundation 0x0000000184fceae4 __CFRunLoopRun + 1060(CFRunLoop.c:2870)

4 CoreFoundation 0x0000000184efeda4 CFRunLoopRunSpecific + 424(CFRunLoop.c:3113)

5 AVFAudio 0x000000019f242540 GenericRunLoopThread :: Entry(void *)+ 164(GenericRunLoopThread.h:106)

6 AVFAudio 0x000000019f268814 CAPThread :: Entry(CAPThread *)+ 84

7 libsystem_pthread.dylib 0x00000001840e568c _pthread_body + 240(pthread.c:697)

8 libsystem_pthread.dylib 0x00000001840e559c _pthread_start + 284(pthread.c:744)

9 libsystem_pthread.dylib 0x00000001840e2cb4 thread_start + 4

1 个答案:

答案 0 :(得分:0)

崩溃是在objc_msgSend中引起的SIGSEGV。这意味着您已尝试访问无效的对象地址。这意味着在应用程序中存在与内存相关的一些问题。

当你在UITableView上删除或执行任何操作时,这个问题主要面临。

<强>解决方案

  1. 您可以找到使用xcode的分析并修复它们向您显示的所有警告。

  2. 此外,您可以使用xcode中的启用动画和Instrument工具进行跟踪。