Derived / Local Data Cache errors and Net Serialization: Error: Archive is corrupted

Ok I have no clue why these things are happening, and am overall unimpressed about how hard it is to deal with UE’s c++ shenanigans.

But the problem magically went away after I:

  • became an expert on many ini files

  • deleted project Binaries

  • deleted project Derived Data Cache

  • deleted project Intermediate

  • deleted project Saved

  • deleted project .sdf file

  • Then regenerated visual studio project files

  • Opened the sln project in Visual Studio and did a Build

^ this got rid of the Net Serialization: Error, and data cache errors for my project.

Then I:

  • disabled tens of plugins UE4 loads with by default that I’ll never use (which slow down loading and sometimes log warnings or errors)

  • deleted Engine’s Derived Data Cache

  • deleted engine’s Intermediate folder and recompiled

^ this got rid of a “missing global shader” publishing error with regards to my project’s shader plugin, and got rid of the data cache crash/errors for the engine.

There really should be a sandbox that prevents the engine from crashing if “something’s wrong” with your code.

1 Like