c# - Monotouch Crashdump 缺少对我的代码的任何引用
<p><p>我有一个用 monotouch 编写的应用程序,我的一个(只有一个)用户应用程序崩溃了。我在故障转储上做了一个象征性的。我在转储中看不到任何指向我的任何代码的东西:</p>
<pre><code> Thread 0 name:Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x3a26f350 __pthread_kill + 8
1 libsystem_c.dylib 0x3a1e611e pthread_kill + 54
2 libsystem_c.dylib 0x3a22296e abort + 90
3 MyApp 0x00d8085c mono_handle_native_sigsegv (mini-exceptions.c:2325)
4 MyApp 0x00db2f10 sigabrt_signal_handler (mini-posix.c:196)
5 libsystem_c.dylib 0x3a1efe90 _sigtramp + 40
6 libsystem_c.dylib 0x3a1e611e pthread_kill + 54
7 libsystem_c.dylib 0x3a22296e abort + 90
8 MyApp 0x00e07df0 monotouch_unhandled_exception_handler (monotouch-glue.m:1440)
9 MyApp 0x00d7e0ee mono_invoke_unhandled_exception_hook (mini-exceptions.c:2561)
10MyApp 0x00d38c36 mono_thread_abort (mini.c:2629)
11MyApp 0x00d803ec mono_handle_exception_internal + 2136
12MyApp 0x00d804b8 mono_handle_exception (mini-exceptions.c:1902)
13MyApp 0x00db1b84 handle_signal_exception (exceptions-arm.c:559)
14MyApp 0x00139e20 MonoTouch_UIKit_UIControlEventProxy_Activated + 64
15MyApp 0x006a3e94 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 196
16MyApp 0x00d3b1d4 mono_jit_runtime_invoke (mini.c:5793)
17MyApp 0x00da8da4 mono_runtime_invoke (object.c:2790)
18MyApp 0x00ca90e6 native_to_managed_trampoline_MonoTouch_UIKit_UIControlEventProxy_Activated (<stdin>:97)
19UIKit 0x33df00c0 - + 68
20UIKit 0x33df0072 - + 26
21UIKit 0x33df0050 - + 40
22UIKit 0x33def906 - + 498
23UIKit 0x33defdfc - + 484
24UIKit 0x33d0e41c _UIGestureRecognizerUpdate + 5764
25CoreFoundation 0x31ed26ca __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 18
26CoreFoundation 0x31ed09bc __CFRunLoopDoObservers + 272
27CoreFoundation 0x31ed0d12 __CFRunLoopRun + 738
28CoreFoundation 0x31e43eb8 CFRunLoopRunSpecific + 352
29CoreFoundation 0x31e43d44 CFRunLoopRunInMode + 100
30GraphicsServices 0x359fa2e6 GSEventRunModal + 70
31UIKit 0x33d592fc UIApplicationMain + 1116
32MyApp 0x00179168 wrapper_managed_to_native_MonoTouch_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr + 236
33MyApp 0x003cd10c MyApp_Application_Main_string__ + 44
34MyApp 0x006a3e94 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 196
35MyApp 0x00d3b1d4 mono_jit_runtime_invoke (mini.c:5793)
36MyApp 0x00da8da4 mono_runtime_invoke (object.c:2790)
37MyApp 0x00dabb0a mono_runtime_exec_main (object.c:3972)
38MyApp 0x00daf42e mono_runtime_run_main (object.c:3602)
39MyApp 0x00d527b6 mono_jit_exec (driver.c:1125)
40MyApp 0x00dfaaac main (main.m:482)
41MyApp 0x000430d8 start + 36
</code></pre>
<p>关于我应该从这里做什么的任何建议?</p>
<p>感谢克里斯蒂安</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p><code>iOS</code> 崩溃日志在某些情况下没有描述性。</p>
<p>尝试替代 <code>iOS</code> 崩溃报告系统:</p>
<ul>
<li>将用户操作记录到内存中;</li>
<li>订阅 <code>UnhandledException</code> 事件:</li>
</ul>
<pre class="lang-cs prettyprint-override"><code> // In AppDelegate.FinishedLaunching
AppDomain.CurrentDomain.UnhandledException += (object sender, UnhandledExceptionEventArgs e) => {
LogTool.SaveLog(e);
};
</code></pre>
<ul>
<li>用户下次运行应用时,检查日志是否为空。如果是这样,建议用户通过电子邮件向您发送崩溃日志(参见 <code>MFMailComposeViewController</code> 类使用示例)。</li>
</ul>
<p>因此,您将获得解决问题所需的准确信息。</p></p>
<p style="font-size: 20px;">关于c# - Monotouch Crashdump 缺少对我的代码的任何引用,我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/17520354/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/17520354/
</a>
</p>
页:
[1]