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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Add comment