Xamarin iOS app SIGSEGV -


i getting occasional sigsegv errors below in app (c# xamarin ios app latest version of xamarin studio=5.8.3, xamarin.ios=8.9.1.3

it looks in crashed in uikit , own app "obymobimobileappios" it's in "main".

what kind of problem is? how can more info or debug it?

i can reproduce using app 5 mins.

stacktrace:

at <unknown> <0xffffffff> @ (wrapper managed-to-native) uikit.uiapplication.uiapplicationmain (int,string[],intptr,intptr) <0xffffffff> @ uikit.uiapplication.main (string[],intptr,intptr) [0x00005] in /developer/monotouch/source/monotouch/src/uikit/uiapplication.cs:62 @ uikit.uiapplication.main (string[],string,string) [0x0001c] in /developer/monotouch/source/monotouch/src/uikit/uiapplication.cs:45 @ obymobi.mobile.app.ios.application.main (string[]) [0x000b9] in /users/billbatchelor/documents/mobile development/allinone/obymobi.xamarin/obymobi.mobile.app.ios/main.cs:52 @ (wrapper runtime-invoke) object.runtime_invoke_dynamic (intptr,intptr,intptr,intptr) <0xffffffff> 

native stacktrace:

0   obymobimobileappios                 0x00000001024ef9ac mono_handle_native_sigsegv + 264 1   obymobimobileappios                 0x00000001024f97cc mono_sigsegv_signal_handler + 316 2   libsystem_platform.dylib            0x000000019890895c _sigtramp + 68 3   uikit                               0x000000018b535540 <redacted> + 216 4   uikit                               0x000000018b535030 <redacted> + 452 5   uikit                               0x000000018b534e38 <redacted> + 216 6   uikit                               0x000000018b534d4c <redacted> + 468 7   uikit                               0x000000018b48fd8c <redacted> + 264 8   uikit                               0x000000018b32ca2c <redacted> + 700 9   uikit                               0x000000018b325f68 <redacted> + 684 10  uikit                               0x000000018b2f918c <redacted> + 264 11  uikit                               0x000000018b59a324 <redacted> + 15424 12  uikit                               0x000000018b2f76a0 <redacted> + 1716 13  corefoundation                      0x0000000186870240 <redacted> + 24 14  corefoundation                      0x000000018686f4e4 <redacted> + 264 15  corefoundation                      0x000000018686d594 <redacted> + 712 16  corefoundation                      0x00000001867992d4 cfrunlooprunspecific + 396 17  graphicsservices                    0x000000018ffaf6fc gseventrunmodal + 168 18  uikit                               0x000000018b35efac uiapplicationmain + 1488 19  obymobimobileappios                 0x0000000100b61f28 wrapper_managed_to_native_uikit_uiapplication_uiapplicationmain_int_string___intptr_intptr + 344 20  obymobimobileappios                 0x00000001005387c0 uikit_uiapplication_main_string___intptr_intptr + 48 21  obymobimobileappios                 0x000000010053865c uikit_uiapplication_main_string___string_string + 188 22  obymobimobileappios                 0x000000010009c654 obymobi_mobile_app_ios_application_main_string__ + 1508 23  obymobimobileappios                 0x0000000101007130 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 160 24  obymobimobileappios                 0x00000001024fb88c mono_jit_runtime_invoke + 1260 25  obymobimobileappios                 0x00000001025511e0 mono_runtime_invoke + 128 26  obymobimobileappios                 0x00000001025553c4 mono_runtime_exec_main + 404 27  obymobimobileappios                 0x00000001025c6a50 xamarin_main + 1812 28  obymobimobileappios                 0x00000001024b9688 main + 96 29  libdyld.dylib                       0x000000019875aa08 <redacted> + 4   ================================================================= got sigsegv while executing native code. indicates fatal error in mono runtime or 1 of native libraries used application. 

update here example of sigsegvs (this on simulator) doesn't have "redacted":-

any more ideas how find problem? or possible bug in xamarin?

native stacktrace:

0   obymobimobileappios                 0x0011d4f7 mono_handle_native_sigsegv + 311 1   obymobimobileappios                 0x0014c505 mono_sigsegv_signal_handler + 213 2   libsystem_platform.dylib            0x08c8003b _sigtramp + 43 3   ???                                 0xffffffff 0x0 + 4294967295 4   vectorkit                           0x10663fe9 -[vktileprovider tilesource:didfetchtile:forkey:] + 105 5   vectorkit                           0x1067140e -[vktilesource fetchedtile:forkey:] + 62 6   vectorkit                           0x106c2617 -[vktilesetbackedtilesource fetchedtile:forkey:] + 247 7   vectorkit                           0x106705b5 -[vktilesource _fetchedtile:] + 309 8   vectorkit                           0x10671985 __49-[vktilesource decodedata:downloadkey:sourcekey:]_block_invoke_2 + 181 9   libdispatch.dylib                   0x08930d8a _dispatch_call_block_and_release + 15 10  libdispatch.dylib                   0x0894decf _dispatch_client_callout + 14 11  libdispatch.dylib                   0x0893602e _dispatch_queue_drain + 411 12  libdispatch.dylib                   0x08935d33 _dispatch_queue_invoke + 197 13  libdispatch.dylib                   0x0893820b _dispatch_root_queue_drain + 428 14  libdispatch.dylib                   0x089393e7 _dispatch_worker_thread3 + 108 15  libsystem_pthread.dylib             0x08c8d1da _pthread_wqthread + 724 16  libsystem_pthread.dylib             0x08c8ae2e start_wqthread + 30 

i came across same problem. in case found solutions:

  1. if project referenced wrapper above native library. check wrapper , project have same architecture - classic api or unified api. 1.1 try rebuild native project. 1.2 remove project wrapper solution , add reference output library.

  2. sometimes, native object destroyed earlier .net. in case, .net object have exceptions inside , error cannot catch try-catch. need dispose objects correctly.

  3. try crash report inside xcode more detailed information.


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

datatable - Matlab struct computations -