Search Issue Tracker
Fixed in 2022.1.X
Votes
0
Found in
2021.2
2021.2.0b7
2022.1
Issue ID
1357908
Regression
No
IL2CPP Player crashes when calling a C# 9.0 function pointer
Reproduction steps:
1. Open the attached "FunctionPtrRepro.zip" project
2. Go to Player Settings (File > Build Settings > Player Settings)
3. In the Player tab, change Scripting Backend to IL2CPP (Other Settings > Configuration > Scripting Backend)
4. In the Build Settings, click Build and Run (File > Build Settings)
5. Wait until the built Player is run
Expected result: The Player does not crash
Actual result: The Player crashes
Reproducible with: 2021.2.0b8, 2022.1.0a5
Could not test with: 2019.4.29f1, 2020.3.17f1, 2021.1.18f1 (C# 9.0 not supported), 2021.2.0b6 (case 1356723)
Note:
- Not reproducible with Mono Scripting Backend or in Play Mode
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
- Crash with “Fatal Error! The file ‘MemoryStream’ is corrupted!” when adding a large number in Font Character Rects Size field
Add comment