Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 91519

Strange Error on Startup Xamarin forms IOS

$
0
0

When starting the xamarin IOS application on a device I am getting an error That is crashing the app on opening. I am using a IPad 1.

The ApplicationDelegate.cs has very minimal information in it. Same as what would be in a basic xamarin forms ios app.
Can someone please help me sort out this error message?

Thanks in advance.

Here is the Symbolicated Error.

        Incident Identifier: 706869C2-F602-41EE-873B-ED46BB423939
        CrashReporter Key:   8710efca48b209412d93c7e24dfc162c30bdf025
        Hardware Model:      iPad2,1
        Process:             MyApp [703]
        Path:                /private/var/containers/Bundle/Application/5E5B1318-3D9A-49A0-ADB2-B32B14E24DB5/MyApp.app/MyApp
        Identifier:          com.MyApp.MyApp
        Version:             1.0 (1.0.0)
        Code Type:           ARM (Native)
        Parent Process:      launchd [1]

        Date/Time:           2017-08-19 14:46:59.59 -0500
        Launch Time:         2017-08-19 14:46:49.49 -0500
        OS Version:          iOS 9.3.5 (13G36)
        Report Version:      104

        Exception Type:  EXC_BAD_ACCESS (SIGABRT)
        Exception Subtype: KERN_INVALID_ADDRESS at 0x0004b77c
        Triggered by Thread:  0

        Filtered syslog:
        None found

        Thread 0 name:  tid_a0b  Dispatch queue: com.apple.main-thread
        Thread 0 Crashed:
        0   libsystem_kernel.dylib          0x240dec5c __pthread_kill + 8
        1   libsystem_pthread.dylib         0x24188732 pthread_kill + 62
        2   libsystem_c.dylib               0x240730ac abort + 108
        3   MyApp   0x043e89a8 mono_handle_native_crash (mini-exceptions.c:2560)
        4   MyApp   0x043f08ec mono_sigsegv_signal_handler (mini-runtime.c:2870)
        5   libsystem_platform.dylib        0x24182076 _sigtramp + 42
        6   MyApp   0x00c07ac0 MyApp_PCL_Helpers_AppColors__cctor (/<unknown>:1)
        7   MyApp   0x0036a9cc wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 256
        8   MyApp   0x043f3f38 mono_jit_runtime_invoke (mini-runtime.c:2510)
        9   MyApp   0x04441676 do_runtime_invoke (object.c:2860)
        10  MyApp   0x0443f38c mono_runtime_class_init_full (object.c:475)
        11  MyApp   0x043efde0 mono_resolve_patch_target (mini-runtime.c:1444)
        12  MyApp   0x043ca228 init_method (aot-runtime.c:4217)
        13  MyApp   0x043c54a6 load_method (aot-runtime.c:3940)
        14  MyApp   0x043c4c32 mono_aot_get_method_checked (aot-runtime.c:4585)
        15  MyApp   0x043f0294 mono_jit_compile_method_with_opt (mini-runtime.c:1843)
        16  MyApp   0x043f583e common_call_trampoline (mini-trampolines.c:699)
        17  MyApp   0x043f54e4 mono_magic_trampoline (mini-trampolines.c:829)
        18  MyApp   0x0039f264 generic_trampoline_jit + 132
        19  MyApp   0x0036a9cc wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 256
        20  MyApp   0x043f3f38 mono_jit_runtime_invoke (mini-runtime.c:2510)
        21  MyApp   0x04441676 do_runtime_invoke (object.c:2860)
        22  MyApp   0x0444160c mono_runtime_invoke (object.c:3018)
        23  MyApp   0x04256570 native_to_managed_trampoline_22(objc_object*, objc_selector*, _MonoMethod**, UIApplication*, NSDictionary*, unsigned int) (registrar.m:911)
        24  MyApp   0x04256a58 -[AppDelegate application:didFinishLaunchingWithOptions:] (registrar.m:9069)
        25  UIKit                           0x28a43784 -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 392
        26  UIKit                           0x28c6b2d0 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3080
        27  UIKit                           0x28c6f284 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1588
        28  UIKit                           0x28c8383c __84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke3286 + 36
        29  UIKit                           0x28c6c7b2 -[UIApplication workspaceDidEndTransaction:] + 134
        30  FrontBoardServices              0x25af6c06 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 18
        31  FrontBoardServices              0x25af6ab8 -[FBSSerialQueue _performNext] + 224
        32  FrontBoardServices              0x25af6db8 -[FBSSerialQueue _performNextFromRunLoopSource] + 48
        33  CoreFoundation                  0x24415dfe __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14
        34  CoreFoundation                  0x244159ec __CFRunLoopDoSources0 + 452
        35  CoreFoundation                  0x24413d5a __CFRunLoopRun + 794
        36  CoreFoundation                  0x24363228 CFRunLoopRunSpecific + 520
        37  CoreFoundation                  0x24363014 CFRunLoopRunInMode + 108
        38  UIKit                           0x28a3cc3c -[UIApplication _run] + 524
        39  UIKit                           0x28a37188 UIApplicationMain + 144
        40  MyApp   0x020822c8 wrapper_managed_to_native_UIKit_UIApplication_UIApplicationMain_int_string___intptr_intptr (/<unknown>:1)
        41  MyApp   0x0200e3dc UIKit_UIApplication_Main_string___intptr_intptr (UIApplication.cs:79)
        42  MyApp   0x0200e39c UIKit_UIApplication_Main_string___string_string (UIApplication.cs:63)
        43  MyApp   0x00090e24 MyApp_iOS_Application_Main_string__ (/C:\TFForO\TFForOXamr\MyApp.iOS\Main.cs:17)
        44  MyApp   0x0036a9cc wrapper_runtime_invoke_object_runtime_invoke_dynamic_intptr_intptr_intptr_intptr + 256
        45  MyApp   0x043f3f38 mono_jit_runtime_invoke (mini-runtime.c:2510)
        46  MyApp   0x04441676 do_runtime_invoke (object.c:2860)
        47  MyApp   0x044435ee do_exec_main_checked (object.c:4681)
        48  MyApp   0x043e05d6 mono_jit_exec (driver.g.c:1037)
        49  MyApp   0x044c38e0 xamarin_main (monotouch-main.m:480)
        50  MyApp   0x042764b6 main (main.m:189)
        51  libdyld.dylib                   0x2400b872 start + 2

Trucated the rest of the crash log because of length....

Here is the file in question that seems to be causing the issue. I am just unsure as to why. The error is not clear.

    using System;
    using System.Windows.Input;
    using Xamarin.Forms;

    namespace MyApp.PCL.Helpers
    {
        public static class AppColors
        {
            public static Color LabelErrorTextColor = Color.Red;
            public static Color OutLineColor = Color.Silver;
            public static Color BarBackgroundColor = Color.FromHex("#8686b9");
            public static Color BarTextColor = Color.FromHex("#F8F8F8");
            public static Color BoldHeaderLabelColor = Color.FromHex("#FFC70E");
            public static Color ButtonTextColor = Color.FromHex("#1E242B");
            public static Color ButtonBackGroundColor = Color.FromHex("#00A5E2");
            public static Color AppBackgroundColor = Color.FromHex("#59596d");
            public static Color ListMenuBackgroundColor = Color.FromHex("#59596d");
            public static Color LabelBoldTextColor = Color.FromHex("#F8F8F8");
            public static Color LabelBoldBackGroundColor = Color.FromHex("#62abf4");
            public static Color CommonLabel = Color.FromHex("#d2d1d3");
            public static Color DisabledBackgroundColor = Color.FromHex("#D6D6D6");
            public static Color EntryOrEditorColorBackground = Color.FromHex("#8686b9");
            public static Color EntryOrEditorColorText = Color.White;
            public static Color ListMenuSeparatorColor = Color.FromHex("#f9b30e");
            public static Color TeamSlotAvailable = Color.Green;
            public static Color TeamSlot = Color.White;
            public static Color PlayerSlot = Color.Green;
            public static Color WinnerColor = Color.FromHex("#0eedff");
            public static Color PlayerColor = Color.FromHex("#0eedff");
            public static Color Transparent = Color.FromHex("#000000");
            public static Color HyperLinkColor = Color.FromHex("#0000EE");
            public static Color ListViewDarkColorBackground = Color.FromHex("#8686b9");
            public static Color ListViewLightColorBackground = Color.FromHex("#A6A6CC");
            public static Color XBLColor = Color.FromHex("#86CC00");
            public static Color PSNColor = Color.FromHex("#00CCAC");
            public static Color EmailHeaderLightGoldColor = Color.FromHex("#FFDB1A");
            public static Color HasToPay = Color.FromHex("#00bfff");
            public static Color PaidColor = Color.FromHex("#158a0c");
            public static Color BlueButtonBackGroundColor = Color.FromHex("#00A5E2");
            public static Color Yellow = Color.FromHex("#ECE209");
            public static Color Red = Color.FromHex("#BF1E1E");
            public static Color DarkBlue = Color.FromHex("#1747C9");
            public static Color Green = Color.FromHex("#29CC23");
            public static Color LightBlue = Color.FromHex("#ADD8E6");
            public static Color Indigo = Color.FromHex("#7700ce");
            public static Color Orange = Color.FromHex("#FF9C00");
            public static Color Grey = Color.FromHex("#939293");
            public static Color Black = Color.Black;
            public static Color White = Color.White;

        }
    }

Viewing all articles
Browse latest Browse all 91519

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>