Engine crashes, ShaderCompileError

Hello everyone,

I recently struggled get a self-built UE4 started up properly:

Now it seemed that copy and pasting the folder from a colleague solved the problem, but it turns out that it didn’t. Though I can start the engine now, it regularily crashes whenever I try to edit materials or import assets. Sometimes it runs for a while, but it ultimately always shuts down, showing me an error message that the “ShaderCompiler has stopped working”. I have no idea what could cause this, since I always followed the instructions and read through pages of solution suggestions. Here’s what I tried so far:

Recompiling

Getting the latest Visual Studio Framework

Installing the latest Direct X11, from June 2010

Checking I’ve got the latest Service Pack 1 for Windows

I’d be very grateful for any advice.

Thanks in advance,

Nicolas

Are you compiling from the Master branch? If yes, make sure you recompile ShaderCompileWorker when you recompile the Editor. Some changes went in during the past few days that require both to be rebuilt together.

I haven’t yet succeeded in builting the editor myself. The solution to that problem was copy & pasting the entire UE4 folder from my colleagues computer to mine. Everything’s fine on his system, so I suppose it has to be something system-specific. :frowning:

Ok, so you are not actually compiling from source code, but you’re using an Editor installation that you downloaded through the Unreal Launcher?

I am compiling the source code myself. Sorry, if I wasn’t clear about that. :slight_smile:

Or, the right way to put it would be “I’ve tried to compile myself”. Whatever I tried, it always ended up showing the error I now get in the material editor on startup. What solved the problem was copying and pasting the UE4 folder from a colleague - who also compiled it himself, the same way I did, only that for him it worked - on my system. :-/

Ok, do you also compile the ShaderCompileWorker project? It has to be compiled separately, and it needs to be in sync with the Editor code. If you get new code from GitHub, it is not enough to rebuild the Editor. You also have to rebuild ShaderCompileWorker, because they share some code to talk to each other.

Yeah, we rarely make changes to ShaderCompiler anymore, so this is usually not necessary. But in the past couple weeks or so we added some updates, so the Editor and ShaderCompilerWorker get out of sync. We always forget to rebuild it, too, because it’s rarely needed :slight_smile:

Anyway, let me know if that solved the problem, thanks!

Okay, that could be a problem. I didn’t realize that has to be done. I’ll try it out as soon as I can and post the results here. Thanks for your help so far!

hello I had installed unreal engine 4.11 without launcher and I got this error. What should I do?

69509-capture.png

Hi mgj,

The error you’re getting appears to be unrelated to this post. Please post a new question in the Installation & Setup section with this information and we can go from there. Thank you.