Skip to content

watchOS/LLVM crashes at launch on device #7364

Closed

Description

@rolfbjarne

Steps to Reproduce

  1. Run any watchOS project in release mode (i.e. with LLVM enabled) on device (debug works fine).

Small test project I've used: mono-watchos-llvmissue.zip

  1. Something like this shows up in the Application Output:

    2018-02-28 14:13:57.840 MinimalisticWatchAppExtension[282:101894] *** Terminating app due to uncaught exception 'System.InvalidOperationException', reason: 'Could not execute the method because the containing type is not fully instantiated.'
    *** First throw call stack:
    (0x21074363 0x207231c3 0x491c23 0x492003 0x496e9f 0xfee7b 0x20bc8567)
    libc++abi.dylib: terminating with uncaught exception of type NSException

Unfortunately it seems watchOS doesn't produce crash reports for SIGABRT, so there's no crash report.

However, running with lldb I was able to get a stack trace and some info: https://gist.github.com/rolfbjarne/302a97bc805f7dc16364565d414704e4

On which platforms did you notice this

[ ] macOS
[ ] Linux
[ ] Windows
[x] watchOS

Version Used:

xamarin-macios/master: dotnet/macios@27e757e
xamarin-macios/d15-7: dotnet/macios@0181ac3

VSTS

Activity

  1. rolfbjarne commented on Mar 1, 2018

    @rolfbjarne
    MemberAuthor

    CC @spouliot (this is a blocker for d15-7)

  2. self-assigned this
    on Mar 1, 2018
  3. added this to the 2017-12 (5.10.xx) milestone on Mar 1, 2018
  4. vargaz commented on Mar 8, 2018

    @vargaz
    Contributor

    Testcase:

    using System;
    using System.Collections.Generic;
    
    public static class Program {
        public static int Main () {
    		var map1 = new Dictionary <Type, IntPtr> (EqualityComparer<Type>.Default);
    		var object_map = new Dictionary <IntPtr, WeakReference> (EqualityComparer<IntPtr>.Default);
    		return 0;
    	}
    }
  5. added a commit that references this issue on Mar 9, 2018
  6. added a commit that references this issue on Apr 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions