SIGABRTCrash在Xamarin中
我正在Xamarin iOS和Android上开发一个应用程序。 在少数情况下iOS版本(不是android)报告槽缺陷报告系统这个问题:
在xamarin_initialize中线程0SIGABRTCrash
0 libsystem_kernel.dylib pthread_kill(在libsystem_kernel.dylib中)+ 8 1 libsystem_c.dylib abort(在libsystem_c.dylib中)+ 140 2 TouristApp xamarin_initialize(in 1a944b2b614036bbba6b93191b43cf7a)(runtime.m:938)3 TouristApp mono_invoke_unhandled_exception_hook(in 1a944b2b614036bbba6b93191b43cf7a)(mini- exceptions.c:2786)4 TouristApp mono_handle_exception_internal(在1a944b2b614036bbba6b93191b43cf7a)(微型exceptions.c:1727)5 TouristApp mono_handle_exception(在1a944b2b614036bbba6b93191b43cf7a)+ 40 6 TouristApp handle_signal_exception(在1a944b2b614036bbba6b93191b43cf7a)(例外的arm64.c:525)7 TouristApp TouristApp_TouristApp_DettaglioPunti_UpdateDescriptionAudio_bool (在1a944b2b614036bbba6b93191b43cf7a)+ 76 8 TouristApp TouristApp_TouristApp_DettaglioPunti__UpdateDescriptionAudioc__AnonStorey3__UpdateDescriptionAudioc__AnonStorey4__m__0(在1a944b2b614036bbba6b93191b43cf7a)+ 452 9 TouristApp应用。(在1a944b2b614036bbba6b93191b43cf7a)(NSAction.cs:57)10 TouristApp wrappe r_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr(在1a944b2b614036bbba6b93191b43cf7a)+ 244 11 TouristApp mono_jit_runtime_invoke(在1a944b2b614036bbba6b93191b43cf7a)(微型runtime.c:2564)12 TouristApp mono_runtime_invoke(在1a944b2b614036bbba6b93191b43cf7a)(object.c:2897)13 TouristApp native_to_managed_trampoline_1()(以1a944b2b614036bbba6b93191b43cf7a)+ 208 14 TouristApp - [__ MonoMac_NSActionDispatcher xamarinApplySelector](在1a944b2b614036bbba6b93191b43cf7a)+ 60 15基金会__NSThreadPerformPerform(在基金会)+ 340 16的CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION(在的CoreFoundation)+ 24 17的CoreFoundation CFRunLoopDoSources0(在的CoreFoundation)+ 540 18的CoreFoundation __CFRunLoopRun(在的CoreFoundation)+ 724 19的CoreFoundation CFRunLoopRunSpecific (在CoreFoundation中)+ 384 20 GraphicsServices GSEventRunModal(在GraphicsServices中)+ 180 21 UIKit UIApplicationMain(在UIKit中)+ 204 22 TouristApp(wrapper_managed-to-nat IVE)_UIKit.UIApplication:UIApplicationMain(在1a944b2b614036bbba6b93191b43cf7a)+ 324 23 TouristApp主(在1a944b2b614036bbba6b93191b43cf7a)(UIApplication.cs:63)24 TouristApp TouristApp_TouristApp_Application_Main_string(在1a944b2b614036bbba6b93191b43cf7a)+ 56 25 TouristApp wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr(在1a944b2b614036bbba6b93191b43cf7a)+ 244 26 TouristApp mono_jit_runtime_invoke(在1a944b2b614036bbba6b93191b43cf7a)(微型runtime.c:2564)27 TouristApp mono_runtime_invoke(在1a944b2b614036bbba6b93191b43cf7a)(object.c:2897)28 TouristApp mono_runtime_exec_main(在1a944b2b614036bbba6b93191b43cf7a)(object.c:4221)29 TouristApp xamarin_main(在1a944b2b614036bbba6b93191b43cf7a)(MonoTouch的-主.m:454)30 TouristApp main(在1a944b2b614036bbba6b93191b43cf7a)+ 96 31 libdyld.dylib start(在libdyld.dylib中)+4
主题1
0 libsystem_kernel.dylib kevent_qos(在libsystem_kernel.dylib中)+ 8 1 libdispatch.dylib _dispatch_source_invoke(在libdispatch.dylib中)+ 0
线程2
0 libsystem_kernel.dylib __psynch_cvwait(在libsystem_kernel.dylib中)+ 8 1 TouristApp thread_func(在1a944b2b614036bbba6b93191b43cf7a中)(mono-os-mutex.h:106)2 libsystem_pthread.dylib _pthread_body(在libsystem_pthread.dylib中)+ 156 3 libsystem_pthread.dylib _pthread_body(在libsystem_pthread.dylib中)+ 0 4 libsystem_pthread.dylib thread_start(在libsystem_pthread.dylib中)+ 4
线程3
0 libsystem_kernel.dylib semaphore_wait_trap(在libsystem_kernel.dylib中)+ 8 1 TouristApp start_wrapper(在1a944b2b614036bbba6b93191b43cf7a)(threads.c:717)2 TouristApp inner_start_thread(在1a944b2b614036bbba6b93191b43cf7a中)(mono-threads-posix.c:92)3 libsystem_pthread.dylib _pthread_body (在libsystem_pthread.dylib中)+ 156 4 libsystem_pthread.dylib _pthread_body(在libsystem_pthread.dylib中)+ 0 5 libsystem_pthread.dylib thread_start(在libsystem_pthread.dylib中)+ 4
线程4
0 libsystem_kernel.dylib __psynch_cvwait(在libsystem_kernel.dylib)+ 8 1 TouristApp _wapi_handle_timedwait_signal_handle(在1a944b2b614036bbba6b93191b43cf7a)(单-OS-mutex.h:134)2 TouristApp wapi_WaitForSingleObjectEx(在1a944b2b614036bbba6b93191b43cf7a)(wait.c:187)3 TouristApp mono_wait_uninterrupted(在1a944b2b614036bbba6b93191b43cf7a)(threads.c:1518)4 TouristApp ves_icall_System_Threading_WaitHandle_WaitOne_internal(在1a944b2b614036bbba6b93191b43cf7a)(threads.c:1652)5 TouristApp wrapper_managed_to_native_System_Threading_WaitHandle_WaitOne_internal_System_Threading_WaitHandle_intptr_int_bool(在1a944b2b614036bbba6b93191b43cf7a)+ 128 6 TouristApp WaitOne的(在1a944b2b614036bbba6b93191b43cf7a)(WaitHandle.cs:375)7 TouristApp WaitOne的( 9)TouristApp SchedulerThread(位于1a944b2b614036bbba6b93191b43cf7a)(Timer.cs:395)9 TouristApp ThreadStart_Context(位于1a944b2b614036bbba6b93191b43cf7a)(thread.cs:72)10 TouristApp(Thread.cs:72)10 TouristApp ThreadStart_Context(in 1a944b2b614036bbba6b93191b43cf7a) RunInternal(在1a944b2b614036bbba6b93191b43cf7a)(executioncontext.cs:957)11 TouristApp运行(在1a944b2b614036bbba6b93191b43cf7a)(executioncontext.cs:893)12 TouristApp的ThreadStart(在1a944b2b614036bbba6b93191b43cf7a)(thread.cs:109)13 TouristApp wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr(在1a944b2b614036bbba6b93191b43cf7a)+ 244 14 TouristApp mono_jit_runtime_invoke(在1a944b2b614036bbba6b93191b43cf7a)(微型runtime.c:2564)15 TouristApp mono_runtime_invoke(在1a944b2b614036bbba6b93191b43cf7a)(object.c:2897)16 TouristApp start_wrapper(在1a944b2b614036bbba6b93191b43cf7a)(threads.c:740)17 TouristApp inner_start_thread(在1a944b2b614036bbba6b93191b43cf7a) (mono-threads-posix.c:92)18 libsystem_pthread.dylib _pthread_body(在libsystem_pthread.dylib中)+ 156 19 libsystem_pthread.dylib _pthread_body(在libsystem_pthread.dylib中)+ 0 20 libsystem_pthread.dylib thread_start(在libsystem_pthread.dylib中)+ 4
线程5
0 libsystem_kernel.dylib __workq_kernreturn(在libsystem_kernel.dylib中)+ 8 1 libsystem_pthread.dylib start_wqthread(在libsystem_pthread.dylib中)+ 4
线程6
0 libsystem_kernel.dylib mach_msg_trap(在libsystem_kernel.dylib中)+ 8 1 CoreFoundation CFRunLoopServiceMachPort(在CoreFoundation中)+ 196 2 CoreFoundation __CFRunLoopRun(在CoreFoundation中)+ 1032 3 CoreFoundation CFRunLoopRunSpecific(在CoreFoundation中)+ 384 4 CFNetwork + [NSURLConnection(Loader)_resourceLoadLoop: ](在CFNetwork中)+ 412 5基础__NSThread__start (在Foundation中)+ 1000 6 libsystem_pthread.dylib _pthread_body(在libsystem_pthread.dylib中)+ 156 7 libsystem_pthread.dylib _pthread_body(在libsystem_pthread.dylib中)+ 0 8 libsystem_pthread.dylib thread_start(在libsystem_pthread .dylib)+ 4
线程7
0 libsystem_kernel.dylib选择$ DARWIN_EXTSN(在libsystem_kernel.dylib中)+ 8 1 libsystem_pthread.dylib _pthread_body(在libsystem_pthread.dylib中)+ 156 2 libsystem_pthread.dylib _pthread_body(在libsystem_pthread.dylib中)+ 0 3 libsystem_pthread.dylib thread_start(在libsystem_pthread中。 dylib)+ 4
线程8
0 libsystem_kernel.dylib __psynch_cvwait(在libsystem_kernel.dylib中)+ 8 1 TouristApp worker_thread(in 1a944b2b614036bbba6b93191b43cf7a)(mono-os-mutex.h:134)2 TouristApp start_wrapper(在1a944b2b614036bbba6b93191b43cf7a)(threads.c:717)3 TouristApp inner_start_thread(in (在libsystem_pthread.dylib中)+ 156 5 libsystem_pthread.dylib _pthread_body(在libsystem_pthread.dylib中)+ 0 6 libsystem_pthread.dylib thread_start(在libsystem_pthread.dylib中)(单线程 - posix.c:92)4 libsystem_pthread.dylib _pthread_body + 4
线程9
0 libsystem_kernel.dylib __psynch_cvwait(在libsystem_kernel.dylib中)+ 8 1 TouristApp worker_thread(in 1a944b2b614036bbba6b93191b43cf7a)(mono-os-mutex.h:134)2 TouristApp start_wrapper(在1a944b2b614036bbba6b93191b43cf7a)(threads.c:717)3 TouristApp inner_start_thread(in (在libsystem_pthread.dylib中)+ 156 5 libsystem_pthread.dylib _pthread_body(在libsystem_pthread.dylib中)+ 0 6 libsystem_pthread.dylib thread_start(在libsystem_pthread.dylib中)(单线程 - posix.c:92)4 libsystem_pthread.dylib _pthread_body + 4
线程10
0 libsystem_kernel.dylib __workq_kernreturn(在libsystem_kernel.dylib中)+ 8 1 libsystem_pthread.dylib start_wqthread(在libsystem_pthread.dylib中)+ 4
线程11
0 libsystem_kernel.dylib __workq_kernreturn(在libsystem_kernel.dylib中)+ 8 1 libsystem_pthread.dylib start_wqthread(在libsystem_pthread.dylib中)+ 4
线程12
0 libsystem_kernel.dylib mach_msg_trap(在libsystem_kernel.dylib)+ 8 1 CoreFoundation __CFRunLoopServiceMachPort(在CoreFoundation中)+ 196 2 CoreFoundation __CFRunLoopRun(在CoreFoundation中)+ 1032 3 CoreFoundation CFRunLoopRunSpecific(在CoreFoundation中)+ 384 4 GeoServices _runNetworkThread(在GeoServices中)+ 428 5 libsystem_pthread.dylib _pthread_body(在libsystem_pthread.dylib中)+ 156 6 libsystem_pthread.dylib _pthread_body(在libsystem_pthread.dylib中)+ 0 7 libsystem_pthread.dylib thread_start(在libsystem_pthread.dylib中)+ 4
主题13
0 libsystem_kernel.dylib __psynch_cvwait(在libsystem_kernel.dylib中)+ 8 1 TouristApp worker_thread(in 1a944b2b614036bbba6b93191b43cf7a)(mono-os-mutex.h:134)2 TouristApp start_wrapper(在1a944b2b614036bbba6b93191b43cf7a)(threads.c:717)3 TouristApp inner_start_thread(in (在libsystem_pthread.dylib中)+ 156 5 libsystem_pthread.dylib _pthread_body(在libsystem_pthread.dylib中)+ 0 6 libsystem_pthread.dylib thread_start(在libsystem_pthread.dylib中)(单线程 - posix.c:92)4 libsystem_pthread.dylib _pthread_body + 4
线程14
0 libsystem_kernel.dylib __workq_kernreturn(在libsystem_kernel.dylib中)+ 8 1 libsystem_pthread.dylib start_wqthread(在libsystem_pthread.dylib中)+ 4
线程15
0 libsystem_kernel.dylib __workq_kernreturn(在libsystem_kernel.dylib中)+ 8 1 libsystem_pthread.dylib start_wqthread(在libsystem_pthread.dylib中)+ 4
线程16
0 libsystem_kernel.dylib __psynch_cvwait(在libsystem_kernel.dylib中)+ 8 1 TouristApp mono_thread_info_sleep(在1a944b2b614036bbba6b93191b43cf7a中)(mono-os-mutex.h:135)2 TouristApp monitor_thread(在1a944b2b614036bbba6b93191b43cf7a中)(threadpool-ms.c:887)3 TouristApp start_wrapper (in 1a944b2b614036bbba6b93191b43cf7a)(threads.c:717)4 TouristApp inner_start_thread(in 1a944b2b614036bbba6b93191b43cf7a)(mono-threads-posix.c:92)5 libsystem_pthread.dylib _pthread_body(在libsystem_pthread.dylib中)+ 156 6 libsystem_pthread.dylib _pthread_body(在libsystem_pthread .dylib)+ 0 7 libsystem_pthread.dylib thread_start(在libsystem_pthread.dylib中)+ 4
线程17
0 libsystem_kernel.dylib __psynch_cvwait(在libsystem_kernel.dylib中)+ 8 1 TouristApp worker_thread(in 1a944b2b614036bbba6b93191b43cf7a)(mono-os-mutex.h:134)2 TouristApp start_wrapper(在1a944b2b614036bbba6b93191b43cf7a)(threads.c:717)3 TouristApp inner_start_thread(in (在libsystem_pthread.dylib中)+ 156 5 libsystem_pthread.dylib _pthread_body(在libsystem_pthread.dylib中)+ 0 6 libsystem_pthread.dylib thread_start(在libsystem_pthread.dylib中)(单线程 - posix.c:92)4 libsystem_pthread.dylib _pthread_body + 4
线程18
0 libsystem_kernel.dylib __psynch_cvwait(在libsystem_kernel.dylib中)+ 8 1 TouristApp worker_thread(in 1a944b2b614036bbba6b93191b43cf7a)(mono-os-mutex.h:134)2 TouristApp start_wrapper(在1a944b2b614036bbba6b93191b43cf7a)(threads.c:717)3 TouristApp inner_start_thread(in (在libsystem_pthread.dylib中)+ 156 5 libsystem_pthread.dylib _pthread_body(在libsystem_pthread.dylib中)+ 0 6 libsystem_pthread.dylib thread_start(在libsystem_pthread.dylib中)(单线程 - posix.c:92)4 libsystem_pthread.dylib _pthread_body + 4
线程19
0 libsystem_kernel.dylib mach_msg_trap(在libsystem_kernel.dylib)+ 8 1 CoreFoundation __CFRunLoopServiceMachPort(在CoreFoundation中)+ 196 2 CoreFoundation __CFRunLoopRun(在CoreFoundation中)+ 1032 3 CoreCoreation CFRunLoopRunSpecific(在CoreFoundation中)+ 384 4 WebCore RunWebThread()(在WebCore中)+ 456 5 libsystem_pthread.dylib _pthread_body(在libsystem_pthread.dylib中)+ 156 6 libsystem_pthread.dylib _pthread_body(在libsystem_pthread.dylib中)+ 0 7 libsystem_pthread.dylib thread_start(在libsystem_pthread.dylib中)+ 4
线程20
0 libsystem_kernel.dylib __psynch_cvwait(在libsystem_kernel.dylib中)+ 8 1 libc ++。1.dylib std :: __ 1 :: condition_variable :: wait()(在libc ++。dylib中)+ 56 2 JavaScriptCore JSC :: GCThread :: waitForNextPhase() (在JavaScriptCore中)+ 144 JavaScriptCore JSC :: GCThread :: gcThreadMain()(在JavaScript中)+ 84 4 JavaScriptCore WTF :: threadEntryPoint()(在JavaScript中)+ 212 5 JavaScriptCore WTF :: wtfThreadEntryPoint()(在JavaScript中)+ 24 6 libsystem_pthread.dylib _pthread_body(在libsystem_pthread.dylib中)+ 156 7 libsystem_pthread.dylib _pthread_body(在libsystem_pthread.dylib中)+ 0 8 libsystem_pthread.dylib thread_start(在libsystem_pthread.dylib中)+ 4
线程21
0 libsystem_kernel.dylib mach_msg_trap(在libsystem_kernel.dylib中)+ 8 1 CoreFoundation __CFRunLoopServiceMachPort(在CoreFoundation中)+ 196 2 CoreFoundation __CFRunLoopRun(在CoreFoundation中)+ 1032 3 CoreFoundation CFRunLoopRunSpecific(在CoreFoundation中)+ 384 4 libAVFAudio.dylib GenericRunLoopThread :: Entry (在libAVFAudio.dylib中)+ 164 5 libAVFAudio.dylib CAPThread :: Entry()(在libAVFAudio.dylib中)+ 84 6 libsystem_pthread.dylib _pthread_body(在libsystem_pthread.dylib中)+ 156 7 libsystem_pthread.dylib _pthread_body(在libsystem_pthread.dylib中) + 0 8 libsystem_pthread.dylib thread_start(在libsystem_pthread.dylib中)+ 4
线程22
0 libsystem_kernel.dylib semaphore_wait_trap(在libsystem_kernel.dylib中)+ 8 1 MediaToolbox fpa_AsyncMovieControlThread(在MediaToolbox中)+ 1948 2 CoreMedia figThreadMain(在CoreMedia中)+ 272 3 libsystem_pthread.dylib _pthread_body(在libsystem_pthread.dylib中)+ 156 4 libsystem_pthread.dylib _pthread_body(在libsystem_pthread.dylib中)+ 0 5 libsystem_pthread.dylib thread_start(在libsystem_pthread.dylib中)+ 4
线程23
0 libsystem_kernel.dylib __workq_kernreturn(在libsystem_kernel.dylib中)+ 8 1 libsystem_pthread.dylib start_wqthread(在libsystem_pthread.dylib中)+ 4
线程24
0 libsystem_kernel.dylib __psynch_cvwait(在libsystem_kernel.dylib中)+ 8 1 Foundation - [NSCondition wait](在Foundation中)+ 240 2 Foundation - [NSObject(NSThreadPerformAdditions)performSelector:onThread:withObject:waitUntilDone:modes:](在Foundation中)+ 792 3 FoundationApplet(wrapper_managed-to-native)_ObjCRuntime.Messaging:objc_msgSend(in 1a944b2b614036bbba6b93191b43cf7a)+ 140 5 TouristApp Foundation.NSObject:InvokeOnMainThread()在1a944b2b614036bbba6b93191b43cf7a)(NSObject2.cs:556)6 TouristApp TouristApp_TouristApp_DettaglioPunti__UpdateDescriptionAudioc__AnonStorey3__m__2(在1a944b2b614036bbba6b93191b43cf7a)+ 236 7 TouristApp m__0(在1a944b2b614036bbba6b93191b43cf7a)(NSObject.g.cs:52)8 TouristApp ThreadStart_Context(在1a944b2b614036bbba6b93191b43cf7a)(thread.cs:72)9 TouristApp RunInternal(在1a944b2b614036bbba6b93191b43cf7a)(executioncontext.cs:957 )10 TouristApp运行(在1a944b2b614036bbba6b93191b43cf7a)(executioncontext.cs:893)11 TouristApp的ThreadStart(在1a944b2b614036bbba6b93191b43cf7a)(thread.cs:87)12 TouristApp wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr(在1a944b2b614036bbba6b93191b43cf7a)+ 244 13 TouristApp mono_jit_runtime_invoke(在1a944b2b614036bbba6b93191b43cf7a)(微型运行时。 15 TouristApp mono_runtime_invoke(in 1a944b2b614036bbba6b93191b43cf7a)(object.c:2897)15 TouristApp start_wrapper(in 1a944b2b614036bbba6b93191b43cf7a)(threads.c:740)16 TouristApp inner_start_thread(in 1a944b2b614036bbba6b93191b43cf7a)(mono-threads-posix.c:92) 17 libsystem_pthread.dylib _pthread_body(在libsystem_pthread.dylib中)+ 156 18 libsystem_pthread.dylib _pthread_body(在libsystem_pthread.dylib中)+ 0 19 libsystem_pthread.dylib thread_start(在libsystem_pthread.dylib中)+ 4
我不明白这是Mono / Xamarin的问题,还是可以成为我的代码。
任何想法?
更新根据评论中的请求,这是Main的代码
public class Application
{
// This is the main entry point of the application.
static void Main (string[] args)
{
Xamarin.Insights.Initialize ("xxxxxxxxx"); //id of the app on insight
UIApplication.Main (args, null, "AppDelegate");
}
}
这是我的AppDelegate
[Register ("AppDelegate")]
public class AppDelegate : UIApplicationDelegate
{
// class-level declarations
public override UIWindow Window {
get;
set;
}
public static UIStoryboard Storyboard = UIStoryboard.FromName ("TouristAppStoryBoard", null);
public static UIViewController initialViewController;
public override bool FinishedLaunching (UIApplication application, NSDictionary launchOptions)
{
Window = new UIWindow (UIScreen.MainScreen.Bounds);
initialViewController = Storyboard.InstantiateInitialViewController ();
Window.RootViewController = initialViewController;
var navController = Window.RootViewController as UINavigationController;
navController.NavigationBar.TitleTextAttributes = ViewUtility.GetAttributesForTitleNavigationBar ();
Window.MakeKeyAndVisible ();
return true;
}
public override void OnResignActivation (UIApplication application)
{
}
public override void DidEnterBackground (UIApplication application)
{
LocationManager.GetIstance ().StopLocationUpdates ();
var taskID = UIApplication.SharedApplication.BeginBackgroundTask( () => {});
Task.Factory.StartNew ( () => {
ComuniDb.GetIstance().Manutenzione();
UIApplication.SharedApplication.EndBackgroundTask(taskID);
});
}
public override void WillEnterForeground (UIApplication application)
{
LocationManager.GetIstance ().StartLocationUpdates ();
}
}
}
我的应用程序不是很少,我希望你找到你正在寻找的东西。
我发现了这个问题。 问题记录在设备日志中,但不记录在崩溃日志中。 这对我来说很愚蠢(设备日志比崩溃日志有更多的信息?),但我发现了错误并修复了它。
链接地址: http://www.djcxy.com/p/93623.html