I have been trying to resolve null exception crash occurring when baking a level via the ResavePackagesCommandlet. I am executing the commandlet with the -map and -buildlighting params.
The exception occurs in UMaterialExpressionMaterialFunctionCall::Compile() Line 7314.
I seeing all multiple Function Inputs and Outputs, however they are all null.
The flow as I see it is that the baking process hits a material that doesnt match the given shader in DDC decides to recompile a shader map. During compilation a material function is encountered. For some reason the Material functions Inputs and Outputs have the correct number of entries for the given material function, but they are all null. So far I have verified that the material in question is setup correctly with previews added to its inputs. It produces no errors on save. If I delete the material, it will crash on the next material function encountered.
- We are running UE4 14.13.1
- I have cleared the DDC.
- I have cleared all redirectors.
- I have enabled the following console varaibles in ConsoleVariables.ini, with no additional output seen other than the ShaderDebugInfo folder which just contains the Oculus and PixelShaderDeclaraion folders.
-
r.ShaderDevelopmentMode=1
-
r.DumpShaderDebugInfo=1
Can you think of any reason that this would occur?
Thanks,
-Cort