Search Issue Tracker
Fixed in 2022.2.X
Fixed in 2021.2.X, 2022.1.X
Votes
3
Found in
2021.2
2021.2.0b10
2022.1
Issue ID
1365974
Regression
No
Interface default implementation crash when passing class as a generic parameter
How to reproduce:
1. Open the project "InterfaceDefaultMethods.zip"
2. Open "SampleScene" Scene (Assets>Scenes>SampleScene)
3. Enter the Play Mode
Expected result: No crash
Actual result: Crash
Reproducible with: 2021.2.0b12, 2022.1.0a9
Could not test with: 2019.4.30f1, 2020.3.18f1, 2021.1.22f1 (Errors)
Notes:
-Change InputData from a class to a struct in the script "NewBehaviourScript.cs" 45th line, then no crash
Stack trace:
0x00007FF958FE4F99 (KERNELBASE) RaiseException
0x00007FF8E012AF71 (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\utils\mono-log-common.c:143] mono_log_write_logfile
0x00007FF8E0116D29 (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\eglib\goutput.c:172] monoeg_g_logv_nofree
0x00007FF8E0116E0C (mono-2.0-bdwgc) [C:\build\output\Unity-Technologies\mono\mono\eglib\goutput.c:215] monoeg_assertion_message
Comments (2)
-
GamerXP
Apr 18, 2023 05:52
Is that really fixed? I get crashes (or calls of wrong methods) in 2021.3.19f
-
Cathei
Apr 10, 2022 21:22
This is still reproducible on Apple silicon mac.
- 2021.2.19f1 (silicon build)
- 2021.2.17f1 (intel build)It only happens when number of generic arguments of parent interface is less than implementing child interface.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Too little validation messages in the "WebAssembly Language Features" Memory settings
- Project Settings Search Highlights are misaligned when using the Bitmap Text Rendering Mode
- "GetControlID at event ValidateCommand returns a controlID different from the one in Layout event" Warning is thrown when undoing the deletion of Sprite Shape Profile
- Memory related fields in the "WebAssembly Language Features" can be set to the negative numbers
- "WebAssembly Language Features" Header in the Player Settings has a smaller indentation
Resolution Note (fix version 2022.2):
Fixed in: 2022.2.0a9
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0b14
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.17f1