(This is a translation of a [Japanese [Content removed] by Lin Chia Jui.)
Due to our development circumstances, we have fixed the engine to UE5.4.
When we see a crash related to graphics, we output AfterMath. However, Shader Symbols are not output. So it’s very difficult to investigate the crash. For Shader Symbols to be output, we have edited the configuration file based on the page below, as follows:
Config:
[ProjectDir]\Config\[Platform]\[Platform]Engine.ini
Console variables that have been added:
[ShaderCompiler]
r.InvalidateCachedShaders=1
r.Shaders.Symbols=1
r.Shaders.GenerateSymbols=1
r.Shaders.WriteSymbols=1
r.Shaders.SymbolsInfo=1
r.Shaders.WriteSymbols.Zip=1
r.Shaders.AllowUniqueSymbols=1
r.Shaders.ExtraData=1
r.Shaders.Optimize=0
r.Shaders.KeepDebugInfo=1
r.ShaderDevelopmentMode=1
r.DumpShaderDebugInfo=1
r.CompileShadersForDevelopment=1
When packaging the project, the files are generated, as shown on the reference page, in [ProjectDir]/Saved/ShaderSymbols/[Platform]/ShaderSymbols.zip, but the ShaderSymbols.zip is 0 KB and contains no files.
Questions:
(1) Did I set correctly?
(2) Does the following fix relate to the issue?
The above fix seems to depend on features in UE5.6. If this fix resolves the issue in UE5.6, is there a way to apply the fix to UE5.4, as well?
I looked over the fix. Shader Serialization, Shader Compiler, and Material Stats have been changed since UE5.4, and the fix seems to involve dependencies on these updates. That’s why I am asking this..
Thanks.