Yes, it seems as if this has been caused by some left over cache files. Thanks a lot for your help.
Hi folks,
since we updated the engine for our project from 4.14.3 to 4.16.1 I got crashes in the packaging process on Linux. The packaging is started via a couple of shell scripts, but the final command line is:
Start UAT: mono AutomationTool.exe BuildCookRun -nop4 -nocompile -project=/home/jmueller/src/game/game.uproject -cook -allmaps -stage -archive -archivedirectory=../Packages -package -LinuxNoEditor -clientconfig=Development -ue4exe=UE4Editor -pak -targetplatform=Linux -build -utf8output
which generates this log:
Unhandled Exception:
System.TypeLoadException: Could not load type 'UnrealBuildTool.XmlConfigLoader' from assembly 'UnrealBuildTool, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null'.
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeLoadException: Could not load type 'UnrealBuildTool.XmlConfigLoader' from assembly 'UnrealBuildTool, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null'.
RunUAT ERROR: AutomationTool was unable to run successfully.
My guess would be that something in the AutomationTool or Mono is broken. I already made a clean build of engine, editor and game but this did not affect the error. Currently I dont have any clue what might cause this problem or what to do about it. So I would really appreciate any recommendations or hints on this topic.
Kind regards and thanks in advance.
Does the same problem happen in a freshly cloned stock 4.16 from github? If it does not, please make sure you cleaned your repo from files possibly left over and rebuilt the UBT (the former may require some manual examination).
I’m having this problem too. Where did you delete the cache files from? I tried clearing Saved folder in UE4 and that didn’t help.
Try to delete DerivedDataCache, Intermediate and Saved folders in game and engine folder. Then re-run Setup.bat/sh and GenerateProjectFiles.bat/sh and you should be good to go.
Oh OK. I got desperate enough that I just nuked my whole engine and rechecked out and rebuilt from scratch. Worked flawlessly as it should.