Skip to main content
Participant
June 22, 2022

Substance Instance Graph with no generated material crashes Unreal Engine 5

  • June 22, 2022
  • 0 replies
  • 154 views

App Version: 5.0.3 (bug discovered in 5.0.2)
Platform: Unreal Engine 5
OS: Win11

Description: 
Updating a Substance Instance with no generated Material causes the engine to crash. I discovered this because I only wanted the outputs of an instance to build my own shader, so I creating the instance and told it not to generate a material; however, another instance of the same Factory that did generate its own material from a standard template and another with the new Tri-Planar did not crash the engine. 

Reproduction:
1. Import a .sbsar to a project
2. Create two graph instances - one that has "create material" checked, and another that does not
3. Changing values in the instance that has "create material" enabled should generate fine
4. Changing values or disabling maps in the instance that does not have a created material should crash 

Expected Result:
I should be able to generate and update my graph outputs without the engine crashing. 

Attached is an example error trace created when doing this