Search Issue Tracker
Fixed in 12.0.0
Fixed in 10.4.0
Votes
0
Found in [Package]
12.0.0
Issue ID
1304168
Regression
No
[Shader Graph] Graph throws a NullReferenceException and becomes unresponsive when a Keyword or a complex Sub Graph is added
How to reproduce:
1. Open the attached project named "Bug Repro Project.zip"
2. Open the "Can't Add Keyword" shaderGraph file. Located in - Assets/Shaders
3. In the Graph's Blackboard Add a new Enum Keyword
Expected result: Enum Keyword is added or an appropriate error message is thrown informing why the Keyword could not be added
Actual result: NullReferenceException is thrown after the Keyword is created. ShaderGraph becomes unusable after this point, throwing ArgumentNullException while trying to interact with the graph
Reproducible with: 10.2.2(2020.2.3f1), 11.0.0(2021.1.0b3), 12.0.0(2021.2.0a2)
Could not test with: 2018.4(ShaderGraph was in early preview), 7.5.2(Graphs required for the repro break on downgrade)
Alternative repro steps:
1. Open the "Can't Add Sub Graph" shaderGraph file. Located in - Assets/Shaders
2. Try to add the Sub Graph named "Toon Shading Modular"
Notes:
1. Seems to occur with complex nested graphs, when there is a high number of keywords and properties used
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Prefab override popup is cropped/positioned incorrectly when more than one display is used and a higher display Scale is set
- Opening a dropdown on a small screen results in its instant closing when mouse cursor is pressed where the dropdown is going to be opened
- Only "ArgumentNullException: Value cannot be null" is displayed instead of all the actual errors when opening a project with numerous compilation errors
- MultiColumnListView and MultiColumnTreeView do not change selection on first input when focus is set by code
- SerializedProperty.DataEquals is returning false when SerializedProperty.EqualContents return true
Resolution Note (fix version 12.0.0):
Fixed in - Unity 2021.2.0a10 and ShaderGraph 12.0.0
Resolution Note (fix version 10.4.0):
Fixed in - Unity 2020.3.2f1 and ShaderGraph 10.4.0