Search Issue Tracker
Fixed in 2021.2.X
Votes
0
Found in
2021.2.0b16
2021.2.0f1
Issue ID
1376218
Regression
Yes
[IL2CPP] Method called twice on delegate invocation when multiple generic methods with different types assigned to System.Action
How to reproduce:
1. Open the attached project "buildRepro"
2. Open the scene "GenericDelegateMethodBug" (Assets/GenericDelegateMethodBug.unity)
3. Open the Project Settings window (Edit > Project Settings...)
4. In the Player tab, set the Scripting Backend to "IL2CPP" (Player > Other Settings > Configuration)
5. Build and run the project (File > Build And Run)
6. In the built Player, inspect the Console
Expected result: The messages "printType: System.Boolean" and "printType: System.Single" are seen
Actual result: The message "printType: System.Boolean" is seen twice
Reproducible with: 2021.2.0b16, 2021.2.2f1
Not reproducible with: 2019.4.35f1, 2020.3.27f1, 2021.2.0b15, 2021.2.3f1, 2021.2.9f1, 2022.1.0b5, 2022.2.0a2
Notes:
1. Not reproducible on macOS when the Scripting Backend is set to "Mono"
2. Not reproducible on Windows
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
- Inspector elements are rendered twice when the script component is added via drag-and-drop while the HideFlags.HideInInspector property is set
- Error "Light baking failed with error code 5 (Convergence data not available while rendering lightmaps)" thrown in Console when generating lighting for specific GameObjects
- Copy and Paste options for an Animation Property value are disabled in the Right click contextual menu
- Asset is not found when searching the Label "NewLabel" in Search Window
- "Compute dispatch: missing texture ID..." and "Compute dispatch: missing UAV ID..." warnings are thrown after changing the platform in High Definition 3D template
Resolution Note (fix version 2021.2):
Fixed in: 2021.2.3f1