Our Xamarin Forms app is crashing intermittently on one of our iOS test devices, and I'm having a very hard time finding anything useful in the crash report.
All of the tutorials and examples I have found seem to reference line numbers and methods/properties from the application itself but all I am seeing here are mono library calls.
I'm also unable to reproduce the issue locally. Can anyone offer any guidance, or suggest a good resource I could use to determine what this crash report is actually reporting:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Thread 0 name:
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000189423014 __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001894eb450 pthread_kill + 112 (pthread.c:1366)
2 libsystem_c.dylib 0x0000000189397400 abort + 140 (abort.c:91)
3 ESPMobileiOS 0x00000001000476a8 mono_handle_native_sigsegv (mini-exceptions.c:2420)
4 libsystem_platform.dylib 0x00000001894e5348 _sigtramp + 52 (sigtramp.c:115)
5 libsystem_pthread.dylib 0x00000001894eb450 pthread_kill + 112 (pthread.c:1366)
6 libsystem_c.dylib 0x0000000189397400 abort + 140 (abort.c:91)
7 ESPMobileiOS 0x000000010012fa04 print_all_exceptions(MonoObject*) (runtime.m:997)
8 ESPMobileiOS 0x0000000100047de0 mono_invoke_unhandled_exception_hook (mini-exceptions.c:2873)
9 ESPMobileiOS 0x000000010004733c mono_handle_exception_internal (mini-exceptions.c:1798)
10 ESPMobileiOS 0x000000010004641c mono_handle_exception (mini-exceptions.c:2027)
11 ESPMobileiOS 0x000000010003ef18 mono_arm_throw_exception (exceptions-arm64.c:390)
12 ESPMobileiOS 0x00000001004de4e8 throw_exception + 168
13 ESPMobileiOS 0x00000001002f67cc System_Runtime_ExceptionServices_ExceptionDispatchInfo_Throw + 44
14 ESPMobileiOS 0x00000001002f4d20 System_Runtime_CompilerServices_AsyncMethodBuilderCore__ThrowAsyncm__0_object + 80
15 ESPMobileiOS 0x000000010018cbd8 UIKit_UIKitSynchronizationContext__Postc__AnonStorey0__m__0 (UIKitSynchronizationContext.cs:24)
16 ESPMobileiOS 0x00000001001aa3a4 Foundation_NSAsyncActionDispatcher_Apply (NSAction.cs:163)
17 ESPMobileiOS 0x00000001004a9f94 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 244
18 ESPMobileiOS 0x000000010005433c mono_jit_runtime_invoke (mini-runtime.c:2524)
19 ESPMobileiOS 0x00000001000b0918 do_runtime_invoke (object.c:2809)
20 ESPMobileiOS 0x00000001000b0874 mono_runtime_invoke (object.c:2967)
21 ESPMobileiOS 0x00000001011a98e4 native_to_managed_trampoline_3(objc_object*, objc_selector*, _MonoMethod**, char const*, char const*) (registrar.m:103)
22 ESPMobileiOS 0x00000001011a9fdc -[__MonoMac_NSAsyncActionDispatcher xamarinApplySelector] (registrar.m:6678)
23 Foundation 0x000000018af69048 __NSThreadPerformPerform + 340 (NSThread.m:1247)
24 CoreFoundation 0x000000018a402b5c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 24 (CFRunLoop.c:1943)
25 CoreFoundation 0x000000018a4024a4 __CFRunLoopDoSources0 + 524 (CFRunLoop.c:1989)
26 CoreFoundation 0x000000018a4000a4 __CFRunLoopRun + 804 (CFRunLoop.c:2821)
27 CoreFoundation 0x000000018a32e2b8 CFRunLoopRunSpecific + 444 (CFRunLoop.c:3113)
28 GraphicsServices 0x000000018bde2198 GSEventRunModal + 180 (GSEvent.c:2245)
29 UIKit 0x00000001903757fc -[UIApplication _run] + 684 (UIApplication.m:2650)
30 UIKit 0x0000000190370534 UIApplicationMain + 208 (UIApplication.m:4092)
31 ESPMobileiOS 0x00000001001f7de4 wrapper_managed_to_native_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr (/<unknown>:1)
32 ESPMobileiOS 0x000000010016a55c UIKit_UIApplication_Main_string___intptr_intptr (UIApplication.cs:79)
33 ESPMobileiOS 0x000000010016a51c UIKit_UIApplication_Main_string___string_string (UIApplication.cs:63)
34 ESPMobileiOS 0x0000000100134214 ESPMobile_iOS_Application_Main_string__ (Main.cs:13)
35 ESPMobileiOS 0x00000001004a9f94 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 244
36 ESPMobileiOS 0x000000010005433c mono_jit_runtime_invoke (mini-runtime.c:2524)
37 ESPMobileiOS 0x00000001000b0918 do_runtime_invoke (object.c:2809)
38 ESPMobileiOS 0x00000001000b293c mono_runtime_exec_main (object.c:4585)
39 ESPMobileiOS 0x00000001000b2558 mono_runtime_run_main (object.c:4134)
40 ESPMobileiOS 0x000000010003e738 mono_jit_exec (driver.g.c:1048)
41 ESPMobileiOS 0x0000000100133b68 xamarin_main (monotouch-main.m:487)
42 ESPMobileiOS 0x00000001011cef80 main (main.arm64.m:115)
43 libdyld.dylib 0x00000001893115b8 start + 4
What I can see, is that something is going wrong when you try to run some code on the ui thread. The following line tells me this UIKit_UIKitSynchronizationContext__Postc__AnonStorey0__m__0 (UIKitSynchronizationContext.cs:24).
It's very hard to tell exactly what the problem is or in which file the problem is. Maybe implement insights are another crash logger. So you get more info about the crash.
Related
I am totally new to neo4j. I have downloaded de software and installed it, but when I open it, it crashes immediately.
Below is the error I get. I have shorten the error text because its incredibly long.
Any ideas? I tried to reinstall, restart etc. but no luck.
Thank you in advance,
Cristina
>Process: JavaApplicationStub [877]
Path: /Applications/Neo4j Community Edition 3.1.2.app/Contents/MacOS/JavaApplicationStub
Identifier: com.install4j.8478-6373-2628-9929.24
Version: 3.1.2 (3.1.2)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: JavaApplicationStub [877]
User ID: 502
>Date/Time: 2017-03-28 13:43:24.705 +0200
OS Version: Mac OS X 10.10.5 (14F27)
Report Version: 11
Anonymous UUID: 9E54842F-ADA5-86BD-C792-F5A255A236CE
>Time Awake Since Boot: 760 seconds
>Crashed Thread: 0 AppKit Thread Dispatch queue: com.apple.main->thread
>Exception Type: EXC_BAD_ACCESS (SIGABRT)
>Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000303620
>VM Regions Near 0x303620:
>-->
__TEXT 0000000100000000-000000010000a000 [ 40K] r-x/rwx SM=COW /Applications/Neo4j Community Edition 3.1.2.app/Contents/MacOS/JavaApplicationStub
>Application Specific Information:
abort() called
>Thread 0 Crashed:: AppKit Thread Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff937d2286 __pthread_kill + 10
1 libsystem_c.dylib 0x00007fff94d9a9b3 abort + 129
2 libjvm.dylib 0x0000000104482beb os::abort(bool) + 25
3 libjvm.dylib 0x00000001045a6a2a VMError::report_and_die() + 2304
4 libjvm.dylib 0x0000000104484816 JVM_handle_bsd_signal + 1131
5 libjvm.dylib 0x0000000104480a7b signalHandler(int, __siginfo*, void*) + 47
6 libsystem_platform.dylib 0x00007fff8b907f1a _sigtramp + 26
7 libsystem_c.dylib 0x00007fff94d3dfb2 strlen + 18
8 com.apple.CoreFoundation 0x00007fff942c8a3c __CFStringAppendFormatCore + 8524
9 com.apple.CoreFoundation 0x00007fff943be3a0 _CFStringCreateWithFormatAndArgumentsAux2 + 256
10 com.apple.Foundation 0x00007fff973f5701 -[NSPlaceholderString initWithFormat:locale:arguments:] + 153
11 com.apple.Foundation 0x00007fff9740eef9 +[NSString stringWithFormat:] + 174
12 com.apple.java.JavaRuntimeSupport 0x000000011c276fce -[JRSInputMethodController availableInputMethodLocales] + 253
13 libawt_lwawt.dylib 0x000000011d21907f __Java_sun_lwawt_macosx_CInputMethodDescriptor_nativeGetAvailableLocales_block_invoke_1 + 124
14 com.apple.Foundation 0x00007fff9747ddd0 __NSThreadPerformPerform + 293
15 com.apple.CoreFoundation 0x00007fff9430aa01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
16 com.apple.CoreFoundation 0x00007fff942fcb8d __CFRunLoopDoSources0 + 269
17 com.apple.CoreFoundation 0x00007fff942fc1bf __CFRunLoopRun + 927
18 com.apple.CoreFoundation 0x00007fff942fbbd8 CFRunLoopRunSpecific + 296
19 com.apple.HIToolbox 0x00007fff8d1cf56f RunCurrentEventLoopInMode + 235
20 com.apple.HIToolbox 0x00007fff8d1cf2ea ReceiveNextEventCommon + 431
21 com.apple.HIToolbox 0x00007fff8d1cf12b _BlockUntilNextEventMatchingListInModeWithFilter + 71
22 com.apple.AppKit 0x00007fff92a118ab _DPSNextEvent + 978
23 com.apple.AppKit 0x00007fff92a10e58 -[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] + 346
24 libosxapp.dylib 0x000000011cf6a3aa -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] + 124
25 com.apple.AppKit 0x00007fff92a06af3 -[NSApplication run] + 594
26 libosxapp.dylib 0x000000011cf6a14d +[NSApplicationAWT runAWTLoopWithApp:] + 156
27 libawt_lwawt.dylib 0x000000011d23f517 -[AWTStarter starter:] + 905
28 com.apple.Foundation 0x00007fff9747ddd0 __NSThreadPerformPerform + 293
29 com.apple.CoreFoundation 0x00007fff9430aa01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
30 com.apple.CoreFoundation 0x00007fff942fcb8d __CFRunLoopDoSources0 + 269
31 com.apple.CoreFoundation 0x00007fff942fc1bf __CFRunLoopRun + 927
32 com.apple.CoreFoundation 0x00007fff942fbbd8 CFRunLoopRunSpecific + 296
33 com.oracle.java.8u60.jdk 0x00000001000f28fb CreateExecutionEnvironment + 871
34 com.oracle.java.8u60.jdk 0x00000001000ee644 JLI_Launch + 1952
35 com.install4j.8478-6373-2628-9929.24 0x0000000100006cf4 -[Launcher launch] + 836
36 com.install4j.8478-6373-2628-9929.24 0x0000000100007381 launcher_main + 625
37 com.install4j.8478-6373-2628-9929.24 0x00000001000074f2 main + 34
38 com.install4j.8478-6373-2628-9929.24 0x0000000100001154 start + 52
The issue is caused by a crash in [JRSInputMethodController availableInputMethodLocales], which is related to the relatively old version of OSX that you're using (10.10.5).
It's ultimately a problem inside the version of Java that Apple ships with that OS version, and according to this post, the issue was fixed in 10.11.
That post also suggests that you can use the Java SE 6 installer found here, which supposedly contains a fix for the problem.
FWIW, you're not the only one with this problem, there is an (as yet unresolved) issue for Neo4j posted here.
MvvmCross_Core_MvvmCross_Core_ViewModels_MvxViewModelLoader_FindViewModelLocator_ causes app to crash. Looked through the MVVMCross source code and could not tell what caused this error and how to handle it. Appreciate any help here. Below is the crash report
Using MMVMCross 4.0
<package id="MvvmCross.Core" version="4.0.0" targetFramework="xamarinios10" />
Incident Identifier: 73492D3A-04AC-4CB2-A30F-11C03932B333
CrashReporter Key: 89c9f505981a4f47ba51b95e37591830d9aeef45
Hardware Model: iPhone6,1
Code Type: ARM-64 (Native)
Parent Process: launchd [1]
Date/Time: 2016-04-12 09:40:49.49 -0400
Launch Time: 2016-04-12 09:40:45.45 -0400
OS Version: iOS 9.3.1 (13E238)
Report Version: 105
Exception Type: EXC_BAD_ACCESS (SIGABRT)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
Triggered by Thread: 0
Filtered syslog:
None found
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000182c9c11c __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000182d68ef8 pthread_kill + 112
2 libsystem_c.dylib 0x0000000182c0ddac abort + 140
3 MobilityiOS 0x0000000101630678 print_exception(MonoObject*, bool, NSMutableString*) (runtime.m:782)
4 MobilityiOS 0x0000000101538220 mono_invoke_unhandled_exception_hook (mini-exceptions.c:2586)
5 MobilityiOS 0x0000000101537694 mono_handle_exception_internal (mini-exceptions.c:1573)
6 MobilityiOS 0x0000000101536604 mono_handle_exception (mini-exceptions.c:1799)
7 MobilityiOS 0x000000010152f8bc mono_arm_throw_exception (exceptions-arm64.c:383)
8 MobilityiOS 0x000000010051c278 throw_exception + 168
9 MobilityiOS 0x0000000100f07e4c MvvmCross_Core_MvvmCross_Core_ViewModels_MvxViewModelLoader_FindViewModelLocator_MvvmCross_Core_ViewModels_MvxViewModelRequest + 0
10 MobilityiOS 0x0000000100f07d00 MvvmCross_Core_MvvmCross_Core_ViewModels_MvxViewModelLoader_LoadViewModel_MvvmCross_Core_ViewModels_MvxViewModelRequest_MvvmCross_Core_ViewModels_IMvxBundle + 108
11 MobilityiOS 0x00000001010b404c MvvmCross_iOS_MvvmCross_iOS_Views_MvxViewControllerExtensionMethods_LoadViewModel_MvvmCross_iOS_Views_IMvxIosView + 276
12 MobilityiOS 0x0000000100f02474 MvvmCross_Core_MvvmCross_Core_Views_MvxViewExtensionMethods_OnViewCreate_MvvmCross_Core_Views_IMvxView_System_Func_1_MvvmCross_Core_ViewModels_IMvxViewModel + 96
13 MobilityiOS 0x00000001010b3f28 MvvmCross_iOS_MvvmCross_iOS_Views_MvxViewControllerExtensionMethods_OnViewCreate_MvvmCross_iOS_Views_IMvxIosView + 100
14 MobilityiOS 0x00000001010b2ff4 MvvmCross_iOS_MvvmCross_iOS_Views_MvxViewControllerAdapter_HandleViewDidLoadCalled_object_System_EventArgs + 136
15 MobilityiOS 0x000000010042d0d4 mscorlib_wrapper_delegate_invoke__Module_invoke_void_object_EventArgs_object_System_EventArgs + 120
16 MobilityiOS 0x0000000100edd43c MvvmCross_Platform_MvvmCross_Platform_Core_MvxDelegateExtensionMethods_Raise_System_EventHandler_object + 36
17 MobilityiOS 0x0000000100f9bba4 MvvmCross_Platform_iOS_MvvmCross_Platform_iOS_Views_MvxEventSourceViewController_ViewDidLoad + 32
18 MobilityiOS 0x000000010018b7a4 MobilityiOS_Mobility_iOS_Views_BaseMvxViewController_ViewDidLoad + 972
19 MobilityiOS 0x000000010018c758 MobilityiOS_Mobility_iOS_Views_Main_HomeView_ViewDidLoad + 232
20 MobilityiOS 0x00000001004ff784 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 244
21 MobilityiOS 0x00000001015430dc mono_jit_runtime_invoke (mini-runtime.c:2335)
22 MobilityiOS 0x00000001015aa59c mono_runtime_invoke (object.c:2783)
23 MobilityiOS 0x0000000101262d64 native_to_managed_trampoline_3(objc_object*, objc_selector*, _MonoMethod**, char const*, char const*) (registrar.m:118)
24 MobilityiOS 0x0000000101266400 -[HomeView viewDidLoad] (registrar.m:3608)
25 UIKit 0x000000018824cb40 -[UIViewController loadViewIfRequired] + 996
26 UIKit 0x000000018830d118 -[UINavigationController _layoutViewController:] + 72
27 UIKit 0x000000018830cff0 -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 416
28 UIKit 0x000000018830c238 -[UINavigationController _startTransition:fromViewController:toViewController:] + 144
29 UIKit 0x000000018830bddc -[UINavigationController _startDeferredTransitionIfNeeded:] + 868
30 UIKit 0x000000018830ba04 -[UINavigationController __viewWillLayoutSubviews] + 60
31 UIKit 0x000000018830b96c -[UILayoutContainerView layoutSubviews] + 208
32 UIKit 0x00000001882480e4 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 656
33 QuartzCore 0x0000000185beea28 -[CALayer layoutSublayers] + 148
34 QuartzCore 0x0000000185be9634 CA::Layer::layout_if_needed(CA::Transaction*) + 292
35 QuartzCore 0x0000000185be94f4 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 32
36 QuartzCore 0x0000000185be8b24 CA::Context::commit_transaction(CA::Transaction*) + 252
37 QuartzCore 0x0000000185be886c CA::Transaction::commit() + 512
38 QuartzCore 0x0000000185be1dd8 CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 80
39 CoreFoundation 0x00000001830b87b0 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32
40 CoreFoundation 0x00000001830b6554 __CFRunLoopDoObservers + 372
41 CoreFoundation 0x0000000182fe0d30 CFRunLoopRunSpecific + 416
42 UIKit 0x00000001882bb834 -[UIApplication _run] + 460
43 UIKit 0x00000001882b5f70 UIApplicationMain + 204
44 MobilityiOS 0x00000001002897a4 wrapper_managed_to_native_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr + 324
45 MobilityiOS 0x000000010020ed74 Xamarin_iOS_UIKit_UIApplication_Main_string___string_string + 156
46 MobilityiOS 0x00000001001830a0 MobilityiOS_Mobility_iOS_Application_Main_string__ + 24
47 MobilityiOS 0x00000001004ff784 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 244
48 MobilityiOS 0x00000001015430dc mono_jit_runtime_invoke (mini-runtime.c:2335)
49 MobilityiOS 0x00000001015aa59c mono_runtime_invoke (object.c:2783)
50 MobilityiOS 0x00000001015aec90 mono_runtime_exec_main (object.c:4038)
51 MobilityiOS 0x00000001016424ac xamarin_main (monotouch-main.m:404)
52 MobilityiOS 0x000000010128e78c main (main.arm64.m:130)
53 libdyld.dylib 0x0000000182b7e8b8 start + 4
You should have 2 views using the same viewmodel.
This is forbidden by mvvmcross by default, and will crash the view/viewmodel locator.
I am getting occasional SIGSEGV errors like below in my app (c# Xamarin iOS app with latest version of Xamarin Studio=5.8.3, Xamarin.iOS=8.9.1.3
It looks like in crashed in UIKit and from my own app "ObymobiMobileAppiOS" it's just in "main".
What kind of problem it is?
How can I get more info or debug it?
I can reproduce it by using the app for about 5 mins.
Stacktrace:
at <unknown> <0xffffffff>
at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <0xffffffff>
at UIKit.UIApplication.Main (string[],intptr,intptr) [0x00005] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:62
at UIKit.UIApplication.Main (string[],string,string) [0x0001c] in /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:45
at Obymobi.Mobile.App.iOS.Application.Main (string[]) [0x000b9] in /Users/billbatchelor/Documents/Mobile Development/AllInOne/Obymobi.Xamarin/Obymobi.Mobile.App.iOS/Main.cs:52
at (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 a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries used by your application.
Update
Here is another example of SIGSEGVs I get (this was on simulator) which doesn't have "redacted":-
Any more ideas how to find the problem? Or is it a 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 the same problem. In my case I found some solutions:
If project referenced to wrapper above native library. Check that wrapper and your project have the same architecture - Classic API or Unified API.
1.1 Try to rebuild native project.
1.2 Remove project wrapper from solution and add reference only to output library.
Sometimes, native object are destroyed earlier than .NET. In this case, .NET object have exceptions inside and this error cannot catch with try-catch.
Need to dispose objects correctly.
Try to look crash report inside xcode to get more detailed information.
I faced this problem while using UIDocumentInteractionController. I was using instance of this class as a local parameter and garbage collector was flushing that instance even before the function execution completes. Taking that instance to Global scope solved my problem.
Are the version of Xamarin equal on OS X and Windows? I had similar error. When I updated Xamarin, everything was fine.
I am getting this crash for my iOS app and it doesn't show any relevant file name (just shows main.m) that I can look at. Any pointers on what the issue could be?
Exception Type: SIGSEGV
Exception Codes: SEGV_ACCERR at 0x7ebf14b8
Crashed Thread: 0
Thread 0 Crashed:
0 libobjc.A.dylib 0x3892860c objc_retain + 12
1 CoreData 0x2defa915 -[NSFetchedResultsController(PrivateMethods) _managedObjectContextDidChange:] + 4013
2 CoreFoundation 0x2e144f41 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 13
3 CoreFoundation 0x2e0b8da9 _CFXNotificationPost + 1721
4 Foundation 0x2eaa3cc5 -[NSNotificationCenter postNotificationName:object:userInfo:] + 73
5 CoreData 0x2def994b -[NSManagedObjectContext(_NSInternalNotificationHandling) _postObjectsDidChangeNotificationWithUserInfo:] + 79
6 CoreData 0x2def98e3 -[NSManagedObjectContext(_NSInternalChangeProcessing) _createAndPostChangeNotification:withDeletions:withUpdates:withRefreshes:] + 299
7 CoreData 0x2def7f9f -[NSManagedObjectContext(_NSInternalChangeProcessing) _processRecentChanges:] + 2323
8 CoreData 0x2df61c21 -[NSManagedObjectContext(_NestedContextSupport) _parentProcessSaveRequest:inContext:error:] + 1313
9 CoreData 0x2df6256f __82-[NSManagedObjectContext(_NestedContextSupport) executeRequest:withContext:error:]_block_invoke + 563
10 libdispatch.dylib 0x38e08b3b _dispatch_barrier_sync_f_slow_invoke + 71
11 libdispatch.dylib 0x38e02d3f _dispatch_client_callout + 23
12 libdispatch.dylib 0x38e056c3 _dispatch_main_queue_callback_4CF + 279
13 CoreFoundation 0x2e14d681 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
14 CoreFoundation 0x2e14bf4d __CFRunLoopRun + 1309
15 CoreFoundation 0x2e0b6769 CFRunLoopRunSpecific + 525
16 CoreFoundation 0x2e0b654b CFRunLoopRunInMode + 107
17 GraphicsServices 0x330236d3 GSEventRunModal + 139
18 UIKit 0x30a15891 UIApplicationMain + 1137
19 MyApp 0x00034f7f main (main.m:18)
You need to enable the symbolication in order to see where the crash was caused in your code.
For further info check this Apple Documentation or this answer on Stack Overflow
My app started crashing after long time in background right when I launch it again.
The problem of course is when it wasn't killed - only when it was in the background.
the log is:
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread: 0
Thread 0 name: Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x32858a1c __pthread_kill + 8
1 libsystem_c.dylib 0x337013b4 pthread_kill + 52
2 libsystem_c.dylib 0x336f9bf8 abort + 72
3 libstdc++.6.dylib 0x30504a64 __gnu_cxx::__verbose_terminate_handler() + 376
4 libobjc.A.dylib 0x3068f06c _objc_terminate + 104
5 libstdc++.6.dylib 0x30502e36 __cxxabiv1::__terminate(void (*)()) + 46
6 libstdc++.6.dylib 0x30502e8a std::terminate() + 10
7 libstdc++.6.dylib 0x30502f5a __cxa_throw + 78
8 libobjc.A.dylib 0x3068dc84 objc_exception_throw + 64
9 CoreFoundation 0x3351048a +[NSException raise:format:arguments:] + 62
10 Foundation 0x326ea56c -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 56
11 UIKit 0x31bc3a82 -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:withIndexPath:] + 666
12 UIKit 0x31bc3764 -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:] + 28
13 UIKit 0x31bbc0c6 -[UITableView(_UITableViewPrivate) _updateVisibleCellsNow:] + 930
14 UIKit 0x31bbb276 -[UITableView layoutSubviews] + 134
15 UIKit 0x31b675f4 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 20
16 CoreFoundation 0x3347defc -[NSObject(NSObject) performSelector:withObject:] + 16
17 QuartzCore 0x33351bae -[CALayer layoutSublayers] + 114
18 QuartzCore 0x33351966 CALayerLayoutIfNeeded + 178
19 QuartzCore 0x333571be CA::Context::commit_transaction(CA::Transaction*) + 206
20 QuartzCore 0x33356fd0 CA::Transaction::commit() + 184
21 QuartzCore 0x3335004e CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 50
22 CoreFoundation 0x334e7a2e __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 10
23 CoreFoundation 0x334e945e __CFRunLoopDoObservers + 406
24 CoreFoundation 0x334ea754 __CFRunLoopRun + 848
25 CoreFoundation 0x3347aebc CFRunLoopRunSpecific + 224
26 CoreFoundation 0x3347adc4 CFRunLoopRunInMode + 52
27 GraphicsServices 0x311a5418 GSEventRunModal + 108
28 GraphicsServices 0x311a54c4 GSEventRun + 56
29 UIKit 0x31b90d62 -[UIApplication _run] + 398
30 UIKit 0x31b8e800 UIApplicationMain + 664
31 Vento 0x00002c64 main (main.m:14)
32 Vento 0x00002c0c start + 32
Any idea where to start digging?
Thank you!
Look at the log to see the exception detail.
Run the static code analyzer over your code. It may find the bug for you.