Cooking failure with strange error, plz advice. (prolly 4.2.1 bug)

Well, i’ve been using ue4 since the start, but recently i had to reinstall my OS and now i have this error every time i’m attempting to cook any project. Couldn’t find anything about this error. Does someone know anything about it?

Update: It seems crash only occurs in 4.2.1 version, all other versions are still working fine for me.

Updatev2: I’ve attached a full log, just in case. Log

Updatev3: It’ve been 2 days, does nobody knows anything or having the same issue?

Updatev4: Seems like i’m missing all those .xml files and entire buildtool. Can anyone tell my how can i reacquire it? Re-installing launcher and engine didn’t help. I’ve also attached logs from cooking Fly template in both 4.1.2 and 4.2.1 versions. 4.1.2 4.2.1

MainFrameActions: Cooking (Windows): Running AutomationTool...
    LogStats:Warning: MetaData mismatch. Did you assign a stat to two groups? New //STATGROUP_Threads//FMonitoredProcess///Thread_1b2c_0///////STATCAT_Advanced//// old //STATGROUP_Threads//FMonitoredProcess///Thread_ac4_0///////STATCAT_Advanced////
    MainFrameActions: Cooking (Windows): Program.Main: Running on WindowsHostPlatform
    MainFrameActions: Cooking (Windows): Unhandled Exception: 
    MainFrameActions: Cooking (Windows): System.Xml.XmlException: Root element is missing.
    MainFrameActions: Cooking (Windows):    at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
    MainFrameActions: Cooking (Windows):    at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
    MainFrameActions: Cooking (Windows):    at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
    MainFrameActions: Cooking (Windows):    at System.Xml.XmlDocument.Load(XmlReader reader)
    MainFrameActions: Cooking (Windows):    at System.Xml.XmlDocument.Load(String filename)
    MainFrameActions: Cooking (Windows):    at UnrealBuildTool.XmlConfigLoader.Load(String ConfigurationXmlPath)
    MainFrameActions: Cooking (Windows):    at UnrealBuildTool.XmlConfigLoader.LoadData()
    MainFrameActions: Cooking (Windows):    at UnrealBuildTool.XmlConfigLoader.Init()
    MainFrameActions: Cooking (Windows):    at AutomationTool.Program.Main()
    MainFrameActions: Cooking (Windows): copying UAT log files...
    MainFrameActions: Cooking (Windows): RunUAT.bat ERROR: AutomationTool was unable to run successfully.
    MainFrameActions: Cooking (Windows): BUILD FAILED

Hi KTyJLXy,

It looks like one of the build configuration XML files has been corrupted.

The error reports that a “Root element is missing.” Can you please check over them and make sure that all your xml files have an open and closed element. So, they start with…

<Configuration>

and end with…

</Configuration>

Terence

Problem is, i’ve already checked that. Also verified engine, re-downloaded engine, re-compiled etc. Projects for versions before 4.2.1. are cooking without any problems and if i’m updating project to newest version it gives that error. Any projects, inducing sample projects. Also that goes for creating sample projects with 4.2.1. version.

How about the one in your documents folder:

Documents\Unreal Engine\UnrealBuildTool\BuildConfiguration.xml

I don’t know how this is possible, but i don’t actually have that folder :smiley:

This might be very stupid question, but how can i reacquire that build tool? Re-installing launcher and engine didn’t help.

Also, if that’s the case, why older versions are working?

Btw, thank you for looking into it, Terence. I’m not having an easy time lately, so please excuse my manners :slight_smile:

I’ve deleted files in “appdata\local\unreal engine” folder and re-installed launcher with engine. Now everything works fine.
So if someone else will have that bug - do that. Requesting an auto-repair function thou.