{"id":2399,"date":"2022-08-30T15:24:32","date_gmt":"2022-08-30T15:24:32","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/05\/monotouch-crashdump-missing-any-reference-to-my-code-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:24:32","modified_gmt":"2022-08-30T15:24:32","slug":"monotouch-crashdump-missing-any-reference-to-my-code-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/monotouch-crashdump-missing-any-reference-to-my-code-collection-of-common-programming-errors\/","title":{"rendered":"Monotouch Crashdump missing any reference to my code-Collection of common programming errors"},"content":{"rendered":"<p>I have an application written in monotouch and one (only one) of my user application is crashing. I did a symbolicate on the crash dump. I cant see any thing in the dump that points to any of my code:<\/p>\n<pre><code>     Thread 0 name:  Dispatch queue: com.apple.main-thread\nThread 0 Crashed:\n0   libsystem_kernel.dylib           0x3a26f350 __pthread_kill + 8\n1   libsystem_c.dylib                   0x3a1e611e pthread_kill + 54\n2   libsystem_c.dylib                   0x3a22296e abort + 90\n3   MyApp                           0x00d8085c mono_handle_native_sigsegv (mini-exceptions.c:2325)\n4   MyApp                           0x00db2f10 sigabrt_signal_handler (mini-posix.c:196)\n5   libsystem_c.dylib                   0x3a1efe90 _sigtramp + 40\n6   libsystem_c.dylib                   0x3a1e611e pthread_kill + 54\n7   libsystem_c.dylib                   0x3a22296e abort + 90\n8   MyApp                           0x00e07df0 monotouch_unhandled_exception_handler (monotouch-glue.m:1440)\n9   MyApp                           0x00d7e0ee mono_invoke_unhandled_exception_hook (mini-exceptions.c:2561)\n10  MyApp                          0x00d38c36 mono_thread_abort (mini.c:2629)\n11  MyApp                          0x00d803ec mono_handle_exception_internal + 2136\n12  MyApp                          0x00d804b8 mono_handle_exception (mini-exceptions.c:1902)\n13  MyApp                          0x00db1b84 handle_signal_exception (exceptions-arm.c:559)\n14  MyApp                          0x00139e20 MonoTouch_UIKit_UIControlEventProxy_Activated + 64\n15  MyApp                          0x006a3e94 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 196\n16  MyApp                          0x00d3b1d4 mono_jit_runtime_invoke (mini.c:5793)\n17  MyApp                          0x00da8da4 mono_runtime_invoke (object.c:2790)\n18  MyApp                          0x00ca90e6 native_to_managed_trampoline_MonoTouch_UIKit_UIControlEventProxy_Activated (:97)\n19  UIKit                                  0x33df00c0 -[UIApplication sendAction:to:from:forEvent:] + 68\n20  UIKit                                  0x33df0072 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 26\n21  UIKit                                  0x33df0050 -[UIControl sendAction:to:forEvent:] + 40\n22  UIKit                                  0x33def906 -[UIControl(Internal) _sendActionsForEvents:withEvent:] + 498\n23  UIKit                                  0x33defdfc -[UIControl touchesEnded:withEvent:] + 484\n24  UIKit                                  0x33d0e41c _UIGestureRecognizerUpdate + 5764\n25  CoreFoundation                    0x31ed26ca __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 18\n26  CoreFoundation                    0x31ed09bc __CFRunLoopDoObservers + 272\n27  CoreFoundation                    0x31ed0d12 __CFRunLoopRun + 738\n28  CoreFoundation                    0x31e43eb8 CFRunLoopRunSpecific + 352\n29  CoreFoundation                    0x31e43d44 CFRunLoopRunInMode + 100\n30  GraphicsServices                  0x359fa2e6 GSEventRunModal + 70\n31  UIKit                                  0x33d592fc UIApplicationMain + 1116\n32  MyApp                          0x00179168 wrapper_managed_to_native_MonoTouch_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr + 236\n33  MyApp                          0x003cd10c MyApp_Application_Main_string__ + 44\n34  MyApp                          0x006a3e94 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 196\n35  MyApp                          0x00d3b1d4 mono_jit_runtime_invoke (mini.c:5793)\n36  MyApp                          0x00da8da4 mono_runtime_invoke (object.c:2790)\n37  MyApp                          0x00dabb0a mono_runtime_exec_main (object.c:3972)\n38  MyApp                          0x00daf42e mono_runtime_run_main (object.c:3602)\n39  MyApp                          0x00d527b6 mono_jit_exec (driver.c:1125)\n40  MyApp                          0x00dfaaac main (main.m:482)\n41  MyApp                          0x000430d8 start + 36\n<\/code><\/pre>\n<p>Any suggestions on what I should do from here ?<\/p>\n<p>thank Christian<\/p>\n<ol>\n<li>\n<p><code>iOS<\/code> crash log is not descriptive is some situations.<\/p>\n<p>Try to make your alternative to <code>iOS<\/code> crash reporting system:<\/p>\n<ul>\n<li>Log user actions into memory;<\/li>\n<li>Subscribe for <code>UnhandledException<\/code> event:<\/li>\n<\/ul>\n<pre><code>        \/\/ In AppDelegate.FinishedLaunching\n        AppDomain.CurrentDomain.UnhandledException += (object sender, UnhandledExceptionEventArgs e) =&gt; {\n            LogTool.SaveLog(e);\n        };\n<\/code><\/pre>\n<ul>\n<li>When user next time run an app, check that log is not empty. If so, suggest user to send crash log to you via email (see <code>MFMailComposeViewController<\/code> class usage examples).<\/li>\n<\/ul>\n<p>Thus, you will get exact information you need to solve issues.<\/p>\n<\/li>\n<\/ol>\n<p id=\"rop\"><small>Originally posted 2014-01-05 22:45:54. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I have an application written in monotouch and one (only one) of my user application is crashing. I did a symbolicate on the crash dump. I cant see any thing in the dump that points to any of my code: Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 libsystem_kernel.dylib 0x3a26f350 __pthread_kill + 8 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2399","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2399"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2399\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}