Xamarin iOS:EXC_崩溃,无法理解日志内容

Xamarin iOS:EXC_崩溃,无法理解日志内容,ios,xamarin,crash-reports,Ios,Xamarin,Crash Reports,我有一份车祸日志,上面写着车祸,但不知道那是什么车祸 Incident Identifier: 12D4E7E8-D09B-44B6-9E5C-216223C75C76 CrashReporter Key: 4c344eeca1fe853d12dc884970218feefdb6cdc2 Hardware Model: iPad4,1 Process: Provider.iOS [556] Path: /private/va

我有一份车祸日志,上面写着车祸,但不知道那是什么车祸

  Incident Identifier: 12D4E7E8-D09B-44B6-9E5C-216223C75C76
CrashReporter Key:   4c344eeca1fe853d12dc884970218feefdb6cdc2
Hardware Model:      iPad4,1
Process:             Provider.iOS [556]
Path:                /private/var/containers/Bundle/Application/B37F718C-171F-43C7-99AB-AFF5CA5F3D86/Provider.iOS.app/Provider.iOS
Identifier:          com.application.cheetah
Version:             1.0.30 (1.0.0)
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]
Coalition:           com.application.cheetah [630]


Date/Time:           2017-07-06 15:55:01.9326 +1200
Launch Time:         2017-07-06 14:49:31.6289 +1200
OS Version:          iPhone OS 10.3.2 (14F89)
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note:  EXC_CORPSE_NOTIFY
Triggered by Thread:  0

Application Specific Information:
abort() called

Filtered syslog:
None found

Thread 0 name:  tid_403  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libsystem_kernel.dylib          0x0000000183ea5014 __pthread_kill + 8
1   libsystem_pthread.dylib         0x0000000183f6f264 pthread_kill + 112
2   libsystem_c.dylib               0x0000000183e199c4 abort + 140
3   Provider.iOS                    0x0000000101a71430 xamarin_printf (runtime.m:2167)
4   Provider.iOS                    0x000000010196fe48 mono_invoke_unhandled_exception_hook (exception.c:1120)
5   Provider.iOS                    0x0000000101929c20 mono_handle_exception_internal (mini-exceptions.c:1893)
6   Provider.iOS                    0x0000000101928c44 mono_handle_exception (mini-exceptions.c:2126)
7   Provider.iOS                    0x0000000101920bd4 mono_arm_throw_exception (exceptions-arm64.c:410)
8   Provider.iOS                    0x00000001003287b8 throw_exception + 168
9   Provider.iOS                    0x000000010021190c System_Runtime_ExceptionServices_ExceptionDispatchInfo_Throw + 44
10  Provider.iOS                    0x0000000100214004 System_Runtime_CompilerServices_AsyncMethodBuilderCore__c__ThrowAsyncb__6_0_object + 84
11  Provider.iOS                    0x0000000100c670d8 UIKit_UIKitSynchronizationContext__Postc__AnonStorey0__m__0 (UIKitSynchronizationContext.cs:24)
12  Provider.iOS                    0x0000000100c55644 Foundation_NSAsyncActionDispatcher_Apply (NSAction.cs:163)
13  Provider.iOS                    0x00000001002f3ac4 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 244
14  Provider.iOS                    0x0000000101938cfc mono_jit_runtime_invoke (mini-runtime.c:2510)
15  Provider.iOS                    0x00000001019b1b58 do_runtime_invoke (object.c:2860)
16  Provider.iOS                    0x00000001019b1ab4 mono_runtime_invoke (object.c:3018)
17  Provider.iOS                    0x0000000101880104 native_to_managed_trampoline_3(objc_object*, objc_selector*, _MonoMethod**, unsigned int) (registrar.m:106)
18  Provider.iOS                    0x000000010188065c -[__MonoMac_NSAsyncActionDispatcher xamarinApplySelector] (registrar.m:7022)
19  Foundation                      0x000000018599e4cc __NSThreadPerformPerform + 340
20  CoreFoundation                  0x0000000184e5942c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24
21  CoreFoundation                  0x0000000184e58d9c __CFRunLoopDoSources0 + 540
22  CoreFoundation                  0x0000000184e569a8 __CFRunLoopRun + 744
23  CoreFoundation                  0x0000000184d86da4 CFRunLoopRunSpecific + 424
24  GraphicsServices                0x00000001867f0074 GSEventRunModal + 100
25  UIKit                           0x000000018b03a058 UIApplicationMain + 208
26  Provider.iOS                    0x0000000100cc33d4 wrapper_managed_to_native_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr (/<unknown>:1)
27  Provider.iOS                    0x0000000100c6bc6c UIKit_UIApplication_Main_string___intptr_intptr (UIApplication.cs:79)
28  Provider.iOS                    0x0000000100c6bc2c UIKit_UIApplication_Main_string___string_string (UIApplication.cs:63)
29  Provider.iOS                    0x0000000100041b44 Provider_iOS_Application_Main_string__ (Main.cs:17)
30  Provider.iOS                    0x00000001002f3ac4 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 244
31  Provider.iOS                    0x0000000101938cfc mono_jit_runtime_invoke (mini-runtime.c:2510)
32  Provider.iOS                    0x00000001019b1b58 do_runtime_invoke (object.c:2860)
33  Provider.iOS                    0x00000001019b4d7c do_exec_main_checked (object.c:4681)
34  Provider.iOS                    0x000000010191d558 mono_jit_exec (driver.g.c:1037)
35  Provider.iOS                    0x0000000101a7e1ec xamarin_main (monotouch-main.m:480)
36  Provider.iOS                    0x00000001018a6310 main (main.m:173)
37  libdyld.dylib                   0x0000000183d9559c start + 4
事件标识符:12D4E7E8-D09B-44B6-9E5C-21622C75C76
CrashReporter密钥:4c344eeca1fe853d12dc884970218feefdb6cdc2
硬件型号:iPad4,1
进程:Provider.iOS[556]
路径:/private/var/containers/Bundle/Application/B37F718C-171F-43C7-99AB-AFF5CA5F3D86/Provider.iOS.app/Provider.iOS
标识符:com.application.cheetah
版本:1.0.30(1.0.0)
代码类型:ARM-64(本机)
角色:前台
父进程:已启动[1]
联盟:com.application.cheetah[630]
日期/时间:2017-07-06 15:55:01.9326+1200
发布时间:2017-07-06 14:49:31.6289+1200
操作系统版本:iPhone操作系统10.3.2(14F89)
报告版本:104
异常类型:EXC_崩溃(SIGABRT)
异常代码:0x0000000000,0x0000000000000000
例外说明:EXC_尸体通知
由以下线程触发:0
特定于应用程序的信息:
调用了abort()
已筛选的系统日志:
找不到
线程0名称:tid_403调度队列:com.apple.main-Thread
线程0崩溃:
0 libsystem_kernel.dylib 0x0000000183ea5014_uupthread_kill+8
1 libsystem_pthread.dylib 0x0000000183f6f264 pthread_kill+112
2 libsystem_c.dylib 0x0000000183e199c4中止+140
3 Provider.iOS 0x0000000101a71430 xamarin_printf(runtime.m:2167)
4 Provider.iOS 0x000000010196fe48 mono_invoke_unhandled_exception_hook(exception.c:1120)
5 Provider.iOS 0x0000000101929c20单声道句柄异常内部(mini exceptions.c:1893)
6 Provider.iOS 0x0000000101928c44单声道句柄异常(mini exceptions.c:2126)
7 Provider.iOS 0x0000000101920bd4单声道arm抛出异常(exceptions-arm64.c:410)
8 Provider.iOS 0x00000001003287b8抛出异常+168
9 Provider.iOS 0x000000010021190c系统运行时异常服务异常DispatchInfo抛出+44
10 Provider.iOS 0x0000000100214004系统\u运行时\u编译器服务\u异步方法构建器核心\u c\u ThrowAsyncb\u 6\u 0\u对象+84
11 Provider.iOS 0x0000000100c670d8 UIKit_UIKitSynchronizationContext____邮政___Anostorey0___m__0(UIKitSynchronizationContext.cs:24)
12 Provider.iOS 0x0000000100c55644基础\u NSAsyncActionDispatcher\u应用(NSAction.cs:163)
13 Provider.iOS 0x00000001002f3ac4包装器\u运行时\u调用\u对象\u运行时\u调用\u动态\u intptr\u intptr\u intptr\u intptr+244
14 Provider.iOS 0x0000000101938cfc mono_jit_runtime_invoke(mini runtime.c:2510)
15 Provider.iOS 0x00000001019b1b58执行运行时调用(object.c:2860)
16 Provider.iOS 0x00000001019b1ab4单声道运行时调用(object.c:3018)
17 Provider.iOS 0x0000000101880104本机到托管蹦床3(objc对象*、objc选择器*、单方法**、未签名整数)(register.m:106)
18 Provider.iOS 0x000000010188065c-[[uuuu MonoMac\u NSAsyncActionDispatcher xamarinApplySelector](register.m:7022)
19基金会0x000 000 018599 E4CC,NSTReRePrimeFrase+ 340
20 CoreFoundation 0x0000000184e5942c\uuu CFRUNLOOP\u正在调用\u OUT\u以执行\u函数\uuu+24
21 CoreFoundation 0x0000000184e58d9c\uu CFRunLoopDoSources0+540
22 CoreFoundation 0x0000000184e569a8\uuu CFRunLoopRun+744
23 CoreFoundation 0x0000000184d86da4 CFRunLoopRunSpecific+424
24图形服务0x00000001867f0074 GSEventRunModal+100
25 UIKit 0x000000018B003A058 UIApplicationMain+208
26 Provider.iOS 0x0000000100cc33d4包装器\u托管\u到\u本机\u UIKit\u UIApplication\u UIApplicationMain\u int\u字符串\u\u intptr\u intptr(/:1)
27 Provider.iOS 0x0000000100C6BC UIKit_UIApplication_Main_string_uuuintptr_intptr(UIApplication.cs:79)
28 Provider.iOS 0x0000000100c6bc2c UIKit_UIApplication_Main_字符串_字符串_字符串(UIApplication.cs:63)
29 Provider.iOS 0x0000000100041b44 Provider\u iOS\u Application\u Main\u字符串(Main.cs:17)
30 Provider.iOS 0x00000001002f3ac4包装器\u运行时\u调用\u对象\u运行时\u调用\u动态\u intptr\u intptr\u intptr\u intptr+244
31 Provider.iOS 0x0000000101938cfc mono_jit_runtime_invoke(mini runtime.c:2510)
32 Provider.iOS 0x00000001019b1b58执行运行时调用(object.c:2860)
33 Provider.iOS 0x00000001019b4d7c do_exec_main_checked(object.c:4681)
34 Provider.iOS 0x000000010191d558 mono_jit_exec(driver.g.c:1037)
35 Provider.iOS 0x0000000101a7e1ec xamarin_main(monotouch main.m:480)
36 Provider.iOS 0x00000001018a6310 main(main.m:173)
37 libdyld.dylib 0x0000000183d9559c启动+4

有人知道这个崩溃报告指的是什么吗?

很难说,但我可能认为,你的应用程序崩溃的根本原因可能是内存泄漏,因为你的应用程序可能分配了太多内存,使用后可能无法正确释放内存。从日志中,你无法获得更多信息。我的建议是连接一个设备并在其上构建。在模拟器上构建可能不起作用,因为桌面上的可用ram比移动设备多得多

如果无法在连接的设备上复制(有时可能发生)。你可以使用一个黑客从设备上获取更多关于崩溃的信息。由于您的所有代码都是可执行的,所以您可以很容易地捕捉到大量已崩溃的代码,将uiaaapplication.Main函数包装到try-catch块中,并将异常字符串保存在某个位置
public class Application {
    static void Main(string[] args) {
        try {
            UIApplication.Main(args: args, principalClassName: null, delegateClassName: typeof(AppDelegate).Name);
        } catch (Exception e) {
            // save e.ToString() somewhere
        }
    }
}