Search Issue Tracker
Won't Fix
Votes
0
Found in
2019.3
2019.3.3f1
2020.2
Issue ID
1225595
Regression
No
[IL2CPP] NotSupportedException in static constructor when building to Standalone
How to reproduce:
1. Open the attached (OceanVillage-Unity.zip) project
2. Build and run the project
Expected result: No exceptions appear
Actual result: "NotSupportedException: IL2CPP encountered a managed type which it cannot convert ahead-of-time." Exception appears
Reproducible with: 2019.3.9f1, 2020.1.0b5, 2020.2.0a5
Notes:
- Project crashes when upgrading to 2020.1. or 2020.2 upon opening, to fix this - Library folder needs to be deleted before opening
- Could to test on 2018.4 and lower because of compile errors
-
BowlingPin
Apr 06, 2020 21:48
This is an issue with the max nested generics limitation - the expectation is that the managed type which is throwing the error should be reported (or - even better, let an exception be thrown during compilation rather than at runtime)
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
- Inaccurate Box Collider boundaries on a rotated child Cube when the parent GameObject Scale is non-uniform
- [Android] "SHADOWS_SCREEN" set as shader Keyword when no "_ShadowMapTexture" is bound leads to freeze on a build on some Mali GPU devices
- The global scene list is overridden in a project built with command line when the Override Global Scene List setting is disabled in the build profile
- [Linux] AutoLocale log is logged when opening a project
- Global Scenes are not included in the Build when building multiple Build Profiles at the same time
Resolution Note:
Unity does not support F#, and this project is bumping up against some AOT limitations of IL2CPP.