应用程序崩溃并显示消息“ log_callback(char const *,char const *,char const *,int,void *)runtime.m”

时间:2018-09-07 14:48:49

标签: xamarin.forms

我用Xamarin.forms开发了应用程序,该应用程序在iPad Air(iOS 11.2.1)中崩溃,并显示以下消息:“ log_callback(char const *,char const *,char const *,int,void *)运行时.m,第1099行。

我为此做了很多谷歌搜索,但是我没有找到任何解决方案,所以我在这里问它。

这是曲棍球应用程序中的堆栈跟踪。

Thread 0 Crashed:
0 libsystem_kernel.dylib 0x00000001828ec2e8 pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000182a012f8 pthread_kill$VARIANT$mp + 392
2 libsystem_c.dylib 0x000000018285afbc abort + 136
3 MyAppName.iOS 0x000000010292a530 log_callback(char const*, char const*, char const*, int, void) (runtime.m:1099)
4 MyAppName.iOS 0x0000000102925594 monoeg_g_log (goutput.c:115)
5 MyAppName.iOS 0x00000001028fe780 alloc_obj (sgen-marksweep.c:292)
6 MyAppName.iOS 0x0000000102900188 copy_object_no_checks (sgen-copy-object.h:71)
7 MyAppName.iOS 0x00000001028e83f4 major_scan_object_with_evacuation (sgen-marksweep-drain-gray-stack.h:84)
8 MyAppName.iOS 0x00000001028eb53c drain_gray_stack (sgen-marksweep-drain-gray-stack.h:345)
9 MyAppName.iOS 0x00000001028e0380 finish_gray_stack (sgen-gc.c:515)
10 MyAppName.iOS 0x00000001028e0b1c major_finish_collection (sgen-gc.c:2033)
11 MyAppName.iOS 0x00000001028dcfac major_do_collection (sgen-gc.c:2159)
12 MyAppName.iOS 0x00000001028dc544 sgen_perform_collection (sgen-gc.c:2356)
13 MyAppName.iOS 0x00000001028d3168 sgen_alloc_obj_nolock (sgen-alloc.c:256)
14 MyAppName.iOS 0x00000001028ac080 mono_gc_alloc_string (sgen-mono.c:1822)
15 MyAppName.iOS 0x000000010289bfa4 mono_string_new_size_checked (object.c:6085)
16 MyAppName.iOS 0x00000001028a147c mono_string_new_checked (object.c:5974)
17 MyAppName.iOS 0x0000000102868f7c mono_string_new_handle (handle.c:400)
18 MyAppName.iOS 0x000000010286fc20 ves_icall_System_Reflection_Assembly_get_code_base (icall.c:4560)
19 MyAppName.iOS 0x0000000100c857c4 wrapper_managed_to_native_System_Reflection_Assembly_get_code_base_System_Reflection_Assembly_bool + 160
20 MyAppName.iOS 0x0000000100e06fa8 mscorlib_System_Reflection_AssemblyName_Create_System_Reflection_Assembly_bool (Assembly.cs:152)
21 MyAppName.iOS 0x0000000100e09848 mscorlib_System_Reflection_RuntimeAssembly_GetName_bool (MonoAssembly.cs:167)
22 MyAppName.iOS 0x0000000100e05364 mscorlib_System_Reflection_Assembly_GetName (Assembly.cs:440)
23 MyAppName.iOS 0x0000000101687980 Xamarin_iOS_ObjCRuntime_Class_ResolveAssembly_string (Class.cs:261)
24 MyAppName.iOS 0x0000000101687724 Xamarin_iOS_ObjCRuntime_Class_ResolveTokenReference_uint_uint (Class.cs:214)
25 MyAppName.iOS 0x000000010164c4fc Xamarin_iOS_ObjCRuntime_Runtime_GetMethodFromToken_uint (Runtime.cs:587)
26 MyAppName.iOS 0x000000010164f584 Xamarin_iOS_ObjCRuntime_Runtime_get_method_from_token_uint_int_ (Delegates.generated.cs:365)
27 MyAppName.iOS 0x000000010161d494 wrapper_native_to_managed_ObjCRuntime_Runtime_get_method_from_token_uint_int_ (:1)
28 MyAppName.iOS 0x0000000100c51cdc native_to_managed_trampoline_169(objc_object, objc_selector*, _MonoMethod**, unsigned int) (registrar.m:8643)
29 MyAppName.iOS 0x0000000100c51c44 -[Xamarin_Forms_Platform_iOS_NavigationRenderer_SecondaryToolbar items] (registrar.m:15883)
30 UIKit 0x000000018c6f9d3c -[_UIToolbarVisualProviderModernIOS _updateContentView] + 436
31 UIKit 0x000000018c6f9f3c -[_UIToolbarVisualProviderModernIOS positionToolbarButtonsAndResetFontScaleAdjustment:] + 32
32 UIKit 0x000000018c40bd70 -[UIToolbar layoutSubviews] + 48
33 MyAppName.iOS 0x0000000101610bc8 wrapper_managed_to_native_ObjCRuntime_Messaging_objc_msgSendSuper_intptr_intptr_7 (:1)
34 MyAppName.iOS 0x0000000101691ef0 Xamarin_iOS_UIKit_UIView_LayoutSubviews (UIView.g.cs:1261)
35 MyAppName.iOS 0x0000000101b833e0 Xamarin_Forms_Platform_iOS_Xamarin_Forms_Platform_iOS_NavigationRenderer_SecondaryToolbar_LayoutSubviews + 32
36 MyAppName.iOS 0x0000000100cec484 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 240
37 MyAppName.iOS 0x0000000102837c40 mono_jit_runtime_invoke (mini-runtime.c:2525)
38 MyAppName.iOS 0x000000010289d2c8 do_runtime_invoke (object.c:2829)
39 MyAppName.iOS 0x000000010289d228 mono_runtime_invoke (object.c:2983)
40 MyAppName.iOS 0x0000000100c2d138 native_to_managed_trampoline_7(objc_object*, objc_selector*, _MonoMethod**, unsigned int) (registrar.m:283)
41 MyAppName.iOS 0x0000000100c52198 -[Xamarin_Forms_Platform_iOS_NavigationRenderer_SecondaryToolbar layoutSubviews] (registrar.m:15895)
42 UIKit 0x000000018c2b8f00 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1272
43 QuartzCore 0x0000000186e1d998 -[CALayer layoutSublayers] + 180
44 QuartzCore 0x0000000186e21b20 CA::Layer::layout_if_needed(CA::Transaction*) + 328
45 QuartzCore 0x0000000186d8e36c CA::Context::commit_transaction(CA::Transaction*) + 332
46 QuartzCore 0x0000000186db5b90 CA::Transaction::commit() + 536
47 UIKit 0x000000018c534c00 __34-[UIApplication _firstCommitBlock]_block_invoke_2 + 136
48 CoreFoundation 0x0000000182d82790 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 16
49 CoreFoundation 0x0000000182d82060 CFRunLoopDoBlocks + 284
50 CoreFoundation 0x0000000182d7fd70 __CFRunLoopRun + 1064
51 CoreFoundation 0x0000000182c9fe58 CFRunLoopRunSpecific + 432
52 GraphicsServices 0x0000000184b4cf84 GSEventRunModal + 96
53 UIKit 0x000000018c31f67c UIApplicationMain + 232
54 MyAppName.iOS 0x000000010160dca0 wrapper_managed_to_native_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr (:1)
55 MyAppName.iOS 0x000000010167e8c4 Xamarin_iOS_UIKit_UIApplication_Main_string___string_string (UIApplication.cs:79)
56 MyAppName.iOS 0x0000000100c631fc MyAppName.iOS_FastBar_Registration_Forms_IOS_Application_Main_string + 24
57 MyAppName.iOS 0x0000000100cec484 wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 240
58 MyAppName.iOS 0x0000000102837c40 mono_jit_runtime_invoke (mini-runtime.c:2525)
59 MyAppName.iOS 0x000000010289d2c8 do_runtime_invoke (object.c:2829)
60 MyAppName.iOS 0x000000010289fccc do_exec_main_checked (object.c:2983)
61 MyAppName.iOS 0x0000000102821754 mono_jit_exec (driver.g.c:1040)
62 MyAppName.iOS 0x000000010292e470 xamarin_main (monotouch-main.m:483)
63 MyAppName.iOS 0x0000000100c5c828 main (main.m:185)
64 libdyld.dylib 0x00000001827bc56c start + 0.

请提供一些修复建议。

0 个答案:

没有答案