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
- Reference to a deleted GameObject becomes "None" instead of "Missing" when the GameObject is restored with undo after entering and exiting Play Mode
- Size value in Particle System Curve's tab is highlighted with selection across all tab header
- Particle System Curve's Presets window has no visual indication of what preset is selected
- Blur shader doesn't work when the "Scene Color" Node is attached to the UI "Output" Node
- Particle System Curve presets can't be scrolled and some of them can't be selected if window is too narrow to fit them all
Add comment