Search Issue Tracker
Fixed
Fixed in 2021.3.4f1
Votes
0
Found in
2021.3.3f1
Issue ID
UUM-15815
Regression
No
[IL2CPP] Build is unsuccessful when using function comparison
Reproduction steps:
- Open the user attached project
- Press File → Build And Run
Expected result: Build is successful
Actual result: Build is unsuccessful, errors in the Console
Reproducible with: 2021.2.19f1, 2021.3.3f1
Not reproducible with: 2021.3.4f1, 2022.1.18f1, 2022.2.0b9, 2023.1.0a12
Could not test with: 2020.3.40f1, 2021.1.28f1 (function pointers not supported)
Reproduced on: Windows 10
Error:
IL2CPP error for type 'UnityEngine.MonoBehaviour' in /Users/bokken/buildslave/unity/build/Runtime/Export/Scripting/MonoBehaviour.bindings.cs:27
System.InvalidOperationException: Failed to compare two elements in the array.
---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
at System.Collections.Generic.List`1.get_Item(Int32 index)
at Unity.IL2CPP.DataModel.Awesome.Ordering.OrderingCompareExtensions.CompareAsMethodSignature(IMethodSignature x, IMethodSignature y) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.DataModel/Awesome/Ordering/OrderingCompareExtensions.cs:line 928
at Unity.IL2CPP.DataModel.Awesome.Ordering.OrderingCompareExtensions.TryCompareAsFunctionPointerType(TypeReference x, TypeReference y, Int32& value) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.DataModel/Awesome/Ordering/OrderingCompareExtensions.cs:line 882
at Unity.IL2CPP.DataModel.Awesome.Ordering.OrderingCompareExtensions.Compare(TypeSpecification x, TypeSpecification y) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.DataModel/Awesome/Ordering/OrderingCompareExtensions.cs:line 155
at Unity.IL2CPP.DataModel.Awesome.Ordering.OrderingCompareExtensions.TryCompareAsTypeSpecification(TypeReference x, TypeReference y, Int32& value) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.DataModel/Awesome/Ordering/OrderingCompareExtensions.cs:line 789
at Unity.IL2CPP.DataModel.Awesome.Ordering.OrderingCompareExtensions.Compare(TypeReference x, TypeReference y) in /Users/bokken/build/output/unity/il2cpp/Unity.IL2CPP.DataModel/Awesome/Ordering/OrderingCompareExtensions.cs:line 190
at System.Collections.Generic.ArraySortHelper`1.InsertionSort(Span`1 keys, Comparison`1 comparer)
at System.Collections.Generic.ArraySortHelper`1.IntroSort(Span`1 keys, Int32 depthLimit, Comparison`1 comparer)
at System.Collections.Generic.ArraySortHelper`1.IntrospectiveSort(Span`1 keys, Comparison`1 comparer)
at System.Collections.Generic.ArraySortHelper`1.Sort(Span`1 keys, IComparer`1 comparer)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
Add comment