Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

iOS IL2Cpp exception

Discussion in 'Editor & General Support' started by RaventurnPatrick, Mar 9, 2019.

  1. RaventurnPatrick

    RaventurnPatrick

    Joined:
    Aug 9, 2011
    Posts:
    36
    Hi, we get the following exception in our project on iOS sometimes when we start the app:

    Code (CSharp):
    1. System.TypeLoadException: Could not set up parent class, due to: Error getting the interfaces of System.Linq.OrderedEnumerable`1[Raventurn.Goliath.Core.Spline.Data.CustomNode] due to Error Loading class assembly:C:\Program Files\Unity\Hub\Editor\2018.3.6f1\Editor\Data\MonoBleedingEdge\lib\mono\unityjit\System.Core.dll type:IPartition`1 member:(null) signature:<none> assembly:C:\Program Files\Unity\Hub\Editor\2018.3.6f1\Editor\Data\MonoBleedingEdge\lib\mono\unityjit\System.Core.dll type:OrderedEnumerable`1 member:(null) signature:<none>
    2.   at Raventurn.Goliath.Core.Data.List.CompoundList`1[T].Sort[TKey] (System.Func`2[T,TKey][] orderFuncs) [0x00001] in C:\projects\Goliath\goliath\Goliath\Assets\Raventurn\Goliath\Core\Data\List\CompoundList.cs:67
    3.   at Raventurn.Goliath.Core.Spline.BoundSplineData.Rebind (Raventurn.Goliath.Core.Data.List.ICachingList`1[T] nodes) [0x000ec] in C:\projects\Goliath\goliath\Goliath\Assets\Raventurn\Goliath\Core\Spline\BoundSplineData.cs:88
    4.   at Raventurn.Goliath.Core.Spline.Spline+<>c__DisplayClass57_0+<<OnFinishedCompile>b__0>d.MoveNext () [0x00064] in C:\projects\Goliath\goliath\Goliath\Assets\Raventurn\Goliath\Core\Spline\Spline.cs:425
    5. --- End of stack trace from previous location where exception was thrown ---
    6.   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <d7ac571ca2d04b2f981d0d886fa067cf>:0
    7.   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <d7ac571ca2d04b2f981d0d886fa067cf>:0
    8.   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <d7ac571ca2d04b2f981d0d886fa067cf>:0
    9.   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <d7ac571ca2d04b2f981d0d886fa067cf>:0
    10.   at System.Runtime.CompilerServices.TaskAwaiter.GetResult () [0x00000] in <d7ac571ca2d04b2f981d0d886fa067cf>:0
    11.   at Raventurn.Goliath.Core.AsyncScheduler.AsyncForLoopJobScheduler+<>c__DisplayClass3_0+<<Schedule>b__0>d.MoveNext () [0x000c5] in C:\projects\Goliath\goliath\Goliath\Assets\Raventurn\Goliath\Core\AsyncScheduler\AsyncForLoopJobScheduler.cs:66
    12. UnityEngine.Debug:LogError(Object)
    13. Raventurn.Core.TaskSchedulerExtensions:HandleFault(Task) (at Assets/Raventurn/Core/TaskSchedulerExtensions.cs:30)
    14. UnityEngine.UnitySynchronizationContext:ExecuteTasks()
    However we are unsure how we can fix this issue. We assume this could be a bug in monos aot somehow - maybe related to il2cpp as well?
    As you can see from the stack trace we are using the linq function OrderBy within an async task

    It was built wit 2018.3.6f1 on cloud build. .NET 4.x backend
    The error does not occur on every start, but sometimes.
     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    4,114
    This error message looks pretty odd. To confirm, is this happening in the player on iOS, or is it happening in the Unity editor?