Thank you for submitting your inquiry.
You can track the status of your inquiry here.
You may want to save your case's ticket: 894364_ejukbrck4aott5h9


    (Closed) Windows Store IL2CPP build results in Access Violation crash (const MethodInfo, resolves to NULL
     
     
     
    5
    Windows Store IL2CPP build results in Access Violation crash (const MethodInfo, resolves to NULL)

    1. What happened

    Ran attached project without problems in Unity editor and as macOS standalone. Built and ran the attached project for Windows Store / HoloLens using IL2CPP. Application starts in HoloLens emulator, but crashes with an access violation exception on the first state transition. When run in the debugger, the console message is:

    Exception thrown at 0x67497BBB (GameAssembly.dll) in ConwayLifeHoloLens.exe: 0xC0000005: Access violation reading location 0x00000000.

    2. How we can reproduce it using the example you attached

    a. Build the ConwayLife project in the GameLogic folder (an F# project; you will need to point the Unity library references to the correct place). I have included the compiled dlls in the Assets/Plugins folder so technically you don't need to perform this step and the next.
    b. Copy the ConwayLife.dll and FSharp.Core.dll libraries from the output folder of the project (bin/Debug) into the Assets/Plugins directory of the Unity project.
    c. Build the Unity project including the ConwayLife scene, for Windows Store using the IL2CPP backend. I have included the generated C++ code in the App/ folder so technically you don't need to do this either.
    d. Open the App/ConwayLifeHoloLens.sln solution in Visual Studio
    e. Build for Release x86 and target the HoloLens Emulator (10.0.14393.0).
    f. In the emulator you should see the Unity logo, and then after startup a configuration of white spheres. After a second or two, the crash will occur.

    Debugging details (I have included the dump files so you can see them in the debugger):

    The crash happens at line 9197 of Bulk_ConwayLife_0.cpp, in method
    ArrayReadOnlyList_1_System_Collections_IEnumerable_GetEnumerator_m2780765696_gshared :

        Il2CppObject* L_0 = ((  Il2CppObject* (*) (ArrayReadOnlyList_1_t2471096271 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 0)->methodPointer)((ArrayReadOnlyList_1_t2471096271 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 0));

    where:
        _this resolves to an ArrayReadOnlyList_1_t1279844890* (0x00dba648) as it should
        method, which should be a const MethodInfo*, resolves to NULL

    Further up the call stack; the caller appears to be at line 3263, in method
    BindU40403__ctor_m347864440_gshared :

        ((  void (*) (FSharpFunc_2_t2094944096 *, const MethodInfo*))IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 0)->methodPointer)((FSharpFunc_2_t2094944096 *)__this, /*hidden argument*/IL2CPP_RGCTX_METHOD_INFO(method->declaring_type->rgctx_data, 0));

    where:
        _this resolves to an BindU40403_t1279844890* (0x00dba648), which is the same ArrayReadOnlyList pointer as above
        method is a const MethodInfo* (01xd52d0d8) {methodPointer=0x6749fe40 {GameAssembly.dll!BindU40403__ctor_m347864440_gshared(BindU40403_t1870433369 *, FSharpFunc_2_t2094944096 *, GenerateThen_1_t115510434 *, const MethodInfo *)} ...}
        method->declaring_type is an Il2CppClass* const (01xd52cd90) {image=0x00a4dc48 {name=0x04a5b188 "FSharp.Core.dll" assemblyIndex=8 typeStart=1949 ...} ...}
        method->declaring_type->rgctx_data is a const Il2CppRCGTXData* (0x1d530920) {rgctxDataDummy=0x1d530548 method=0x1d530548 {methodPointer=0x67497ba0 {GameAssembly.dll!ArrayReadOnlyList_1_System_Collections_IEnumerable_GetEnumerator_m3194679940_gshared(ArrayReadOnlyList_1_t1279844890 *, const MethodInfo *)} ...} ...}




    License type: Free
     
       
      To follow up on this case, send email to bugs@unity3d.com mentioning 'Case 894364' in the subject.
      Your Cases:
      Case Title Status Date Opened
      894364 Windows Store IL2CPP build results in Access Violation crash (const MethodInfo, resolves to NULL Closed 3/23/2017 8:00 PM
      883573 Unity crashes with Holographic Emulation - 5.6.0b9 on Windows Server 2016 Closed 2/21/2017 9:00 PM
      699047 Unity OS X crashes when opening before registering Closed 5/23/2015 11:49 PM
      699046 Crashed on opening before being registered Closed 5/23/2015 11:39 PM