Search Issue Tracker
Fixed in 2018.3.X
Votes
0
Found in
2017.3.0b5
Issue ID
959921
Regression
No
Unhandled Exception (NullReferenceException) at Mono.CSharp.TypeContainer.DefineContainer()
How to reproduce:
1. Open Unity
2. Load user submitted project (There's a slightly smaller download size in comments)
3. Clear excessive and ignoreable errors and warnings from console
4. Investigate Unhandled Exception
Expected result: All errors and warnings disappear
Actual result: Errors and warning are cleared except an Unhandled Exception that cannot be removed
Notes:
User said the issue started occurring after porting the project from Unity 5.3 to 2017.3b5
Issue seems related to 'DXGOShaderConstants.cs' file - once the file is removed, unhandled exception disappears but other errors show up
If we remove files that depend on 'DXGOShaderConstants.cs' file, the exception persists
Deleting RenderQueue class from 'DXGOShaderConstants.cs' file eliminates the exception but also introduces errors.
The issue could be RenderQueue class as changing it's methods or content doesn't affect the unhandled exception.
Note: The issue is also reproducible on the new Scriptpting Runtime (.Net 4.6 equivalent)
Reproducible with - 5.5.0a6, 5.5.5f1, 5.6.0a1, 5.6.3p4, 2017.1.0a1, 2017.1.2f1, 2017.2.0a1, 2017.2.0f3, 2017.3.0a1, 2017.3.0b5, 2018.1.0a1, 2018.1.0a5
Verified in: 2018.3.0a2
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Add comment