Search Issue Tracker
In Progress
In Progress in 2020.3.X
Fixed in 2021.3.14f1, 2022.1.23f1, 2022.2.0b16, 2023.1.0a17
Votes
0
Found in
2020.3.38f1
2021.3.8f1
2022.1.13f1
2022.2.0b5
2023.1.0a6
Issue ID
UUM-11944
Regression
No
[IL2CPP] "Object must be the same type as the enum" on call to Enum.CompareTo
How to reproduce:
1. Open the attached project (“IN-11189_repro.zip“)
2. Build And Run standalone player
Expected result: "Object must be the same type as the enum" exception is not thrown
Actual result: "Object must be the same type as the enum" exception is thrown
Reproducible with: 2020.3.38f1, 2021.3.8f1, 2022.1.13f1, 2022.2.0b5, 2023.1.0a6
Reproducible on:
macOS 12.4 (Intel)
Windows 10
ArgumentException: Object must be the same type as the enum. The type passed in was 'PlayerAnimation'; the enum type was 'PlayerAnimation'.
at System.Enum.CompareTo (System.Object target) [0x00000] in <00000000000000000000000000000000>:0
at System.Collections.Comparer.Compare (System.Object a, System.Object b) [0x00000] in <00000000000000000000000000000000>:0
at System.Collections.Generic.ObjectComparer{{1[T].Compare (T x, T y) [0x00000] in <00000000000000000000000000000000>:0 at System.Collections.Generic.SortedDictionary}}2+KeyValuePairComparer[TKey,TValue].Compare (System.Collections.Generic.KeyValuePair{{2[TKey,TValue] x, System.Collections.Generic.KeyValuePair}}2[TKey,TValue] y) [0x00000] in <00000000000000000000000000000000>:0
at System.Collections.Generic.SortedSet{{1[T].FindNode (T item) [0x00000] in <00000000000000000000000000000000>:0 at System.Collections.Generic.SortedSet}}1[T].Contains (T item) [0x00000] in <00000000000000000000000000000000>:0
at System.Collections.Generic.SortedDictionary`2[TKey,TValue].ContainsKey (TKey key) [0x00000] in <00000000000000000000000000000000>:0
at Test.Start () [0x00000] in <00000000000000000000000000000000>:0
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Input Field ignores first keyboard input when calling Focus() from code
- GC Alloc when using Graphics.RenderMeshInstanced
- [VFX Graph][URP] VFX crashes on URP when dragging VFX asset to the Hierarchy window
- InvalidOperationException when using AsyncGPUReadback.RequestIntoNativeArray
- Generated Entities look different when Depth Priming Mode is changed
Add comment