UE Crashes when using compute shaders

Okay this problem is because of hot reload. The module needs to be loaded prior to a specific point during startup, which does happen, but when a hot reload occurs after an in editor compile, the module is reloaded immediately, causing the engine to crash, this is correct behavior, in the sense that a module that needs to be loaded PostConfigInit to allow the shader type to be registered, which cannot happen during runtime of the editor, but maybe it shouldn’t crash but warn the user and not reload the shader or something along those lines.

I was able to get around this crash by creating a secondary module (CrashTestEngine in this case) and moved the CS class into that module, set that module to PostConfigInit and the main module to Default. When you change something in the main module and recompile from editor, it will work fine. This means if you want to change something in the secondary module, you will need to exit the editor and recompile from VS.