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
- [Android] Stage information is not logged when Log Shader Compilation is enabled
- [Vulkan] The memory allocation increases rapidly when there are multiple (three or more) Real-Time Reflection Probes in the Scene
- [macOS] Library folder of the opened project can be deleted which leads to the crash
- “Default Scene” dropdown field contains a spelling mistake “Default Builtin”
- Editor crashes on PPtr<Mesh> after adding Text Mesh and Cloth Components to the same GameObject
Add comment