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
- Usage of Adaptive Probe Volumes throws a lot of IndexOutOfRangeException and Assertion Failed errors
- Prefab overrides don't recover missing managed references
- Trail Renderer visual doesn't match the positions of vertices when they have been offset
- [Mobile] The Material is not visible when using the Decal Renderer Feature
- Uncaught TypeError: Cannot read properties of undefined is thrown when the tab is inactive for several minutes
Add comment