Search Issue Tracker

Fixed in 2021.1.X

Fixed in 2019.4.X, 2020.1.X, 2020.2.X



Found in




Issue ID




[IL2CPP] Nested generic limit error is thrown when using Sprache and increasing the limit does not work



How to reproduce:
1. Open the attached project's Scene labeled "SampleScene"
2. Enter the Play Mode
3. Inspect the Console
4. Exit the Play Mode
5. Go to the Build Settings (File->Build Settings)
6. In the Build Settings, enable the "Development build"
7. Make a build
8. Open the build Standalone Player
9. In the Player, observe the Console Window

Expected result: No errors are thrown
Actual result: "NotSupportedException: IL2CPP encountered a managed type which it cannot convert ahead-of-time. The type uses generic or array types which are nested beyond the maximum depth which can be converted." error is thrown

Reproducible with: 2019.4.10f1, 2020.1.5f1, 2020.2.0b3
Couldn't test with: 2018.4.27f1 (crash while building)

  1. Resolution Note (fix version 2021.1):

    Fixed in Unity 2021.1.0a1

  2. Resolution Note (fix version 2020.2):

    Fixed in Unity 2020.2.0b7

  3. Resolution Note (fix version 2020.1):

    Fixed in Unity 2020.1.11f1

  4. Resolution Note (fix version 2019.4):

    Fixed in Unity 2019.4.15f1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.