Search Issue Tracker
Fixed
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
- [Android][BiRP] Depth processing is handled incorrectly on certain Android devices when using 2 camera's
- [APV] Cancelling Display Dialog Error is thrown after Adaptive Probe Volumes tab is open in Lighting Window
- [APV] NullReferenceException is thrown when baking Adaptive Probe Volume for a Terrain with Non-GI Contributing Tree Prototypes and multiple APV objects with different LayerMasks are present on the scene
- Hands are not recognized when using Hololens 2
- "OnTriggerExit2D" is called before "OnTriggerEnter2D" when object is destroyed immediately
Add comment