Search Issue Tracker
Won't Fix
Votes
1
Found in
2018.4
2019.2
2019.2.18f1
2019.3
2020.1
Issue ID
1213399
Regression
No
NullReferenceException for Unity CIL Linker is thrown when dynamic type is used and Managed Stripping Level is not Disabled
Steps to reproduce:
1. Open the attached project (case_1213399.zip)
2. Set API Compatibility Level to ".NET 4.x" under Edit -> Project Settings -> Player -> Other Settings
3. Set Managed Stripping Level to any selection but Disabled in the same Window as Step 2
4. Build the project as Standalone
Expected result: Build completes successfully
Actual result: Multiple errors are thrown (see attached screenshots) and the build fails
Reproduced in: 2018.4.16f1, 2019.2.18f1, 2019.3.0f5, 2020.1.0a21
Cannot test with: 2017.4.36f1 (Stripping unavailable)
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
- SerializeReference interface does not show CustomPropertyDrawer when it's inherited from another interface
- Rendering artifacts appear in the Editor when modifying the Reflection Probe box size
- [HDRP] XR Multipass calls BeginCameraRendering and EndCameraRendering for each pass of the same camera
- NavMesh Surface is baked too high above the ground, making the NavMesh Agents hover above the ground when the HeightMesh is not built
- [Android] Crash on ProcessDynamicBatchGeometryJob with OpenGL or on DrawSharedGeometryJobs with Vulkan
Resolution Note (2020.2.X):
This is a bug in the Roslyn C# compiler. To work around, don't use a dynamic local inside a local method.