Forum Xamarin.Forms

Why does the CustomRenderer-project crash on launch on iOS?

QuakeulfQuakeulf NOMember ✭✭✭

I just loaded down this project here:

When I build it for iOS, everything goes fine in the build-process, except for when it is being launched on the iPhone, where it seems to crash/refuse to open, with no errors. I cannot test this on my iPhone as it is now. Please assist.

I am using an Apple iPhone with iOS 10.3.3 on it. The Mac I use to build has MacOS High Sierra.


  • MichaelRumplerMichaelRumpler ATMember ✭✭✭✭✭

    If you cannot find any errors in the debug window, you can still look at the device log.

    Open Xcode and go to Window / Devices and Simulators. Select your iPhone and you'll see the device log at the bottom right. Clear the log, start the app and see what it writes there. There will be a ton of messages. Finding the right one is a challenge.

  • QuakeulfQuakeulf NOMember ✭✭✭

    Thank you! I shall have a look.

  • QuakeulfQuakeulf NOMember ✭✭✭
    edited October 2017

    So I found this in the logge:

    Incident Identifier: DE979D3F-594A-4959-982F-B4E938134CC2
    CrashReporter Key:   19707ee4b80152200e1d683e0ba8bb7e96dc2d09
    Hardware Model:      iPhone5,2
    Process:             CustomRendereriOS [198]
    Path:                /private/var/containers/Bundle/Application/68D2EECC-2F93-4D80-BA11-4C712A57EE40/
    Identifier:          com.companyname.customrenderer
    Version:             1.0 (1.0)
    Code Type:           ARM (Native)
    Role:                Foreground
    Parent Process:      launchd [1]
    Coalition:           com.companyname.customrenderer [338]
    Date/Time:           2017-10-09 10:17:17.0911 +0200
    Launch Time:         2017-10-09 10:17:14.0000 +0200
    OS Version:          iPhone OS 10.3.3 (14G60)
    Report Version:      104
    Exception Type:  EXC_CRASH (SIGABRT)
    Exception Codes: 0x0000000000000000, 0x0000000000000000
    Exception Note:  EXC_CORPSE_NOTIFY
    Triggered by Thread:  11
    Application Specific Information:
    abort() called
    Filtered syslog:
    None found

    After that follows a lot of threads and binary images. I can't make out how to trace the error from this, without some extensive analysis, I'm afraid.

    Here's the threadde that triggered it:

    Thread 11 name:  Dispatch queue:
    Thread 11 Crashed:
    0   libsystem_kernel.dylib          0x1be6dacc __pthread_kill + 8
    1   libsystem_pthread.dylib         0x1bf26086 pthread_kill + 62
    2   libsystem_c.dylib               0x1be0295a abort + 108
    3   CustomRendereriOS               0x00e9b02e mono_handle_native_crash + 14884910 (mini-exceptions.c:2548)
    4   libsystem_platform.dylib        0x1bf20258 _sigtramp + 24
    5   libsystem_kernel.dylib          0x1be69dba abort_with_payload_wrapper_internal + 64
    6   libsystem_kernel.dylib          0x1be69df4 system_set_sfi_window + 0
    7   TCC                             0x1e56ad52 __CRASHING_DUE_TO_PRIVACY_VIOLATION__ + 198
    8   TCC                             0x1e56ac8c __CRASHING_DUE_TO_PRIVACY_VIOLATION__ + 0
    9   TCC                             0x1e56d44c __tccd_send_block_invoke + 352
    10  libxpc.dylib                    0x1bf4b2fe _xpc_connection_reply_callout + 46
    11  libxpc.dylib                    0x1bf4b288 _xpc_connection_call_reply + 26
    12  libdispatch.dylib               0x1bd7ab1c _dispatch_queue_override_invoke + 536
    13  libdispatch.dylib               0x1bd7c1b4 _dispatch_root_queue_drain + 326
    14  libdispatch.dylib               0x1bd7c00e _dispatch_worker_thread3 + 106
    15  libsystem_pthread.dylib         0x1bf2287c _pthread_wqthread + 1040
    16  libsystem_pthread.dylib         0x1bf2245c start_wqthread + 8
Sign In or Register to comment.