Packaged project crashes on start after migrating to 4.27

amobx
Mon, 21 Oct 2024 08:54:04 +0000
Platform & Builds

Hi there! The packaged game crashes on startup with this error:

Fatal error: [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Engine/Private/ShaderCompiler/ShaderCompiler.cpp] [Line: 5349] Missing global shader FWriteToSliceVS’s permutation 0, Please make sure cooking was successful.

game_Win64_DebugGame!VerifyGlobalShaders()
game_Win64_DebugGame!CompileGlobalShaderMap()
game_Win64_DebugGame!FEngineLoop::PreInitPreStartupScreen()
game_Win64_DebugGame!GuardedMain()
game_Win64_DebugGame!GuardedMainWrapper()
game_Win64_DebugGame!LaunchWindowsStartup()
game_Win64_DebugGame!WinMain()
game_Win64_DebugGame!__scrt_common_main_seh() [D:\a_work\1\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
kernel32
ntdll

The debug info when running with visual studio shows that the problem is not a shader missing, but a LOT of mismatched size shaders I assume carried on from the last version of unreal in the migration:

LogShaders: Error: Mismatch size for type FHistogramCS, compiled size is 208, loaded size is 156
LogShaders: Error: Mismatch size for type FHeightFogVS, compiled size is 214, loaded size is 162
LogShaders: Error: Mismatch size for type FGlobalShaderMapContent, compiled size is 104, loaded size is 76
LogShaders: Error: Mismatch size for type FGlobalShaderMapContent, compiled size is 104, loaded size is 76
…etc.

The project was migrated from 4.26 to 4.27 a year ago, and before that it built and ran perfectly. Also, I have built other games in this version of the engine and I had no problems so that is also out of the question. This is on windows 64 bit and the packaging process shows no errors. The only fix I have left is to redo in the old 4.26 project the whole year of progress. I’m desperate, please I need help with this. Thank you in advance.

10 posts - 2 participants