EXC_BAD_ACCESS (SIGABRT),ios崩溃日志 [英] EXC_BAD_ACCESS (SIGABRT), ios crash log
问题描述
我的 iPhone/ipad 应用程序有问题.它已在应用程序商店中发布,但现在似乎有一些用户在尝试启动该应用程序时遇到了崩溃.有时它有助于硬重启.如果有人能帮我理清发生了什么,我会很高兴.如果重要的话,该应用程序是在 unity 3d 中构建的.这是我的崩溃日志:
I have some problem with my iPhone/ipad app. its published in app store, but now it seems like a few users experiences crashes when they try to start the app. Sometimes it helps with a hard reboot. Would be very happy if someone could help me sorting out whats going on. The app is build in unity 3d if that matters.. Here´s my crash log:
Hardware Model: iPad2,3
Process: thegame [3955]
Path: /var/mobile/Applications/...thegame.app/thegame
Identifier: thegame
Version: ??? (???)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2013-03-18 23:00:43.195 +0000
OS Version: iOS 6.1.2 (10B146)
Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3a863350 __pthread_kill + 8
1 libsystem_c.dylib 0x3a7da11e pthread_kill + 54
2 libsystem_c.dylib 0x3a81696e abort + 90
3 thegame 0x00bc6288 0x1000 + 12341896
4 thegame 0x00bb6e64 0x1000 + 12279396
5 libsystem_c.dylib 0x3a7e3e90 _sigtramp + 40
6 thegame 0x007b9688 0x1000 + 8095368
7 thegame 0x007b9688 0x1000 + 8095368
8 Foundation 0x32e110f0 __NSThreadPerformPerform + 456
9 CoreFoundation 0x324cf680 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
10 CoreFoundation 0x324ceee4 __CFRunLoopDoSources0 + 208
11 CoreFoundation 0x324cdcb2 __CFRunLoopRun + 642
12 CoreFoundation 0x32440eb8 CFRunLoopRunSpecific + 352
13 CoreFoundation 0x32440d44 CFRunLoopRunInMode + 100
14 GraphicsServices 0x35ff52e6 GSEventRunModal + 70
15 UIKit 0x343562fc UIApplicationMain + 1116
16 thegame 0x00006a94 0x1000 + 23188
17 thegame 0x00003324 0x1000 + 8996
Thread 1 name: Dispatch queue: com.apple.libdispatch-manager
Thread 1:
0 libsystem_kernel.dylib 0x3a853648 kevent64 + 24
1 libdispatch.dylib 0x3a783974 _dispatch_mgr_invoke + 792
2 libdispatch.dylib 0x3a783654 _dispatch_mgr_thread$VARIANT$mp + 32
Thread 2:
0 libsystem_kernel.dylib 0x3a863d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3a7b1cf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3a7b1a12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3a7b18a0 start_wqthread + 4
Thread 3:
0 libsystem_kernel.dylib 0x3a863d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3a7b1cf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3a7b1a12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3a7b18a0 start_wqthread + 4
Thread 4 name: WebThread
Thread 4:
0 libsystem_kernel.dylib 0x3a852eb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3a853048 mach_msg + 36
2 CoreFoundation 0x324cf040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x324cdd9e __CFRunLoopRun + 878
4 CoreFoundation 0x32440eb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x32440d44 CFRunLoopRunInMode + 100
6 WebCore 0x38407500 RunWebThread(void*) + 440
7 libsystem_c.dylib 0x3a7bc30e _pthread_start + 306
8 libsystem_c.dylib 0x3a7bc1d4 thread_start + 4
Thread 5:
0 libsystem_kernel.dylib 0x3a852f04 semaphore_wait_trap + 8
1 thegame 0x00c999d8 0x1000 + 13208024
2 thegame 0x00bff558 0x1000 + 12576088
3 thegame 0x00c7773c 0x1000 + 13068092
4 thegame 0x00c92bec 0x1000 + 13179884
5 thegame 0x00cada2c 0x1000 + 13290028
6 libsystem_c.dylib 0x3a7bc30e _pthread_start + 306
7 libsystem_c.dylib 0x3a7bc1d4 thread_start + 4
Thread 6:
0 libsystem_kernel.dylib 0x3a852f04 semaphore_wait_trap + 8
1 thegame 0x009401f4 0x1000 + 9695732
2 thegame 0x0098b714 0x1000 + 10004244
3 thegame 0x0098bc08 0x1000 + 10005512
4 libsystem_c.dylib 0x3a7bc30e _pthread_start + 306
5 libsystem_c.dylib 0x3a7bc1d4 thread_start + 4
Thread 7:
0 libsystem_kernel.dylib 0x3a852f04 semaphore_wait_trap + 8
1 thegame 0x00a228ac 0x1000 + 10623148
2 thegame 0x00a3f800 0x1000 + 10741760
3 libsystem_c.dylib 0x3a7bc30e _pthread_start + 306
4 libsystem_c.dylib 0x3a7bc1d4 thread_start + 4
Thread 8 name: AURemoteIO::IOThread
Thread 8:
0 libsystem_kernel.dylib 0x3a852eb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3a853048 mach_msg + 36
2 AudioToolbox 0x31fc391c AURemoteIO::IOThread::Run() + 104
3 AudioToolbox 0x31fc5c84 AURemoteIO::IOThread::Entry(void*) + 4
4 AudioToolbox 0x31f03882 CAPThread::Entry(CAPThread*) + 294
5 libsystem_c.dylib 0x3a7bc30e _pthread_start + 306
6 libsystem_c.dylib 0x3a7bc1d4 thread_start + 4
Thread 9:
0 libsystem_kernel.dylib 0x3a8636a4 __semwait_signal + 24
1 libsystem_c.dylib 0x3a7c13ce nanosleep + 138
2 libsystem_c.dylib 0x3a7c133a usleep + 46
3 thegame 0x00a22cb0 0x1000 + 10624176
4 thegame 0x00a3f858 0x1000 + 10741848
5 libsystem_c.dylib 0x3a7bc30e _pthread_start + 306
6 libsystem_c.dylib 0x3a7bc1d4 thread_start + 4
Thread 10:
0 libsystem_kernel.dylib 0x3a852eb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3a853048 mach_msg + 36
2 CoreFoundation 0x324cf040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x324cdd9e __CFRunLoopRun + 878
4 CoreFoundation 0x32440eb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x32440d44 CFRunLoopRunInMode + 100
6 CFNetwork 0x321a22ca CFURLConnectionSendSynchronousRequest + 330
7 Foundation 0x32e351c2 +[NSURLConnection sendSynchronousRequest:returningResponse:error:] + 242
8 thegame 0x007b4a6c 0x1000 + 8075884
9 thegame 0x007b4704 0x1000 + 8075012
10 thegame 0x007b8b64 0x1000 + 8092516
11 Foundation 0x32e10e80 __NSThread__main__ + 968
12 libsystem_c.dylib 0x3a7bc30e _pthread_start + 306
13 libsystem_c.dylib 0x3a7bc1d4 thread_start + 4
Thread 11 name: com.apple.NSURLConnectionLoader
Thread 11:
0 libsystem_kernel.dylib 0x3a852eb4 mach_msg_trap + 20
1 libsystem_kernel.dylib 0x3a853048 mach_msg + 36
2 CoreFoundation 0x324cf040 __CFRunLoopServiceMachPort + 124
3 CoreFoundation 0x324cdd9e __CFRunLoopRun + 878
4 CoreFoundation 0x32440eb8 CFRunLoopRunSpecific + 352
5 CoreFoundation 0x32440d44 CFRunLoopRunInMode + 100
6 Foundation 0x32d8d3d0 +[NSURLConnection(Loader) _resourceLoadLoop:] + 304
7 Foundation 0x32e10e80 __NSThread__main__ + 968
8 libsystem_c.dylib 0x3a7bc30e _pthread_start + 306
9 libsystem_c.dylib 0x3a7bc1d4 thread_start + 4
Thread 12:
0 libsystem_kernel.dylib 0x3a863d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3a7b1cf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3a7b1a12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3a7b18a0 start_wqthread + 4
Thread 13:
0 CoreFoundation 0x3243e660 CFBasicHashAddValue + 180
1 CoreFoundation 0x32446310 uniquedName + 124
2 CoreFoundation 0x3244ad88 _CFXNotificationPost + 740
3 Foundation 0x32d61594 -[NSNotificationCenter postNotificationName:object:userInfo:] + 68
4 Foundation 0x32e11362 __NSFinalizeThreadData + 250
5 CoreFoundation 0x324caf7e __CFTSDFinalize + 62
6 libsystem_c.dylib 0x3a7af128 _pthread_tsd_cleanup + 172
7 libsystem_c.dylib 0x3a7aedfe _pthread_exit + 114
8 libsystem_c.dylib 0x3a7c8160 pthread_exit + 24
9 Foundation 0x32d99a2e +[NSThread exit] + 6
10 Foundation 0x32e10e9e __NSThread__main__ + 998
11 libsystem_c.dylib 0x3a7bc30e _pthread_start + 306
12 libsystem_c.dylib 0x3a7bc1d4 thread_start + 4
Thread 14:
0 libsystem_kernel.dylib 0x3a863d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3a7b1cf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3a7b1a12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3a7b18a0 start_wqthread + 4
Thread 15:
0 libsystem_kernel.dylib 0x3a863d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3a7b1cf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3a7b1a12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3a7b18a0 start_wqthread + 4
Thread 16:
0 libsystem_kernel.dylib 0x3a863d98 __workq_kernreturn + 8
1 libsystem_c.dylib 0x3a7b1cf6 _pthread_workq_return + 14
2 libsystem_c.dylib 0x3a7b1a12 _pthread_wqthread + 362
3 libsystem_c.dylib 0x3a7b18a0 start_wqthread + 4
Thread 17:
0 libsystem_kernel.dylib 0x3a8636a4 __semwait_signal + 24
1 libsystem_c.dylib 0x3a7c13ce nanosleep + 138
2 thegame 0x0098ba8c 0x1000 + 10005132
3 thegame 0x0093ec54 0x1000 + 9690196
4 thegame 0x0093ec80 0x1000 + 9690240
5 thegame 0x0098bc08 0x1000 + 10005512
6 libsystem_c.dylib 0x3a7bc30e _pthread_start + 306
7 libsystem_c.dylib 0x3a7bc1d4 thread_start + 4
Thread 18 name: com.apple.CFSocket.private
Thread 18:
0 libsystem_kernel.dylib 0x3a863594 __select + 20
1 CoreFoundation 0x324d31f2 __CFSocketManager + 674
2 libsystem_c.dylib 0x3a7bc30e _pthread_start + 306
3 libsystem_c.dylib 0x3a7bc1d4 thread_start + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x3c34f534
r4: 0x00000006 r5: 0x3c34fb88 r6: 0x01095260 r7: 0x2fdfebbc
r8: 0x0000000b r9: 0x000008c8 r10: 0x00000000 r11: 0x01090770
ip: 0x00000148 sp: 0x2fdfebb0 lr: 0x3a7da123 pc: 0x3a863350
cpsr: 0x00000010
谢谢!
推荐答案
EXC_BAD_ACCESS
在脚本级别出错时抛出(例如空引用异常,但也可能是任何其他异常).
EXC_BAD_ACCESS
is thrown when something at scripting level gone wrong (e.g. null reference exception, but could be any other exception).
我开发了一个游戏内开发控制台,在其中转发 Unity 和我们的脚本抛出的所有调试日志(请参阅 Unity 提供的不错的回调 http://docs.unity3d.com/Documentation/ScriptReference/Application.LogCallback.html).
I've developed an in-game dev console where I forward all the debug logs thrown by Unity and our scripts (see the nice callback Unity offers http://docs.unity3d.com/Documentation/ScriptReference/Application.LogCallback.html).
将游戏构建为开发构建(检查构建设置)、符号链接 Unity 库并检查脚本调试(如果需要),您可以尝试为某些用户重现导致您的应用程序崩溃的步骤.这样,当发生异常时,它不会在 iOS 上崩溃.
Building the game as a Development Build (check build settings), Symlinking the Unity libraries and also checking script debugging if you need to, you can try to reproduce the steps that got your app to crash for some users. This way, it won't crash on iOS when an exception occurs.
看看这个 DebugConsole 实现,它可以非常快速地集成(尽管您也需要一些小的更改来转发 Unity 日志)并且可以为您完成这项工作:https://gist.github.com/darktable/1412228
Take a look at this DebugConsole implementation, which can be integrated really fast (despite you need some minor changes to forward Unity Logs too) and can do the job for you: https://gist.github.com/darktable/1412228
在我们的开发版本中,除非我们的应用程序滥用内存,否则我们不会再崩溃.即使在这种情况下,您也可以跟踪发生了什么.
In our dev builds we no longer get a crash unless our app abuses memory. Even in that case you can track what happend.
这篇关于EXC_BAD_ACCESS (SIGABRT),ios崩溃日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!