x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

UE4Editor error - no ShaderCompileWorker binary

I downloaded the latest release branch on 1/2/15 and built from scratch. Build succeeds but UE4Editor fails to launch due to ShaderCompileWorker not existing:

 $ mv ~/Downloads/UnrealEngine-release.zip .
 $ unzip UnrealEngine-release.zip 
 $ cd UnrealEngine-release
 $ ./Setup.sh 
 $ ./GenerateProjectFiles.sh 
 $ ./Engine/Build/BatchFiles/Mac/Build.sh UE4Editor Mac Development
 $ ./Engine/Binaries/Mac/UE4Editor.app/Contents/MacOS/UE4Editor
 *** Recognized (0x65) family*** (20 cols X 12 rows) using raw16bitRange= 508, thresh8bits=  3, zsignal_per_pixelsum= 41
 Fatal error: [File:{~}/dev/EpicUE4/UnrealEngine-release/Engine/Source/Runtime/Engine/Private/ShaderCompiler/ShaderCompiler.cpp] [Line: 1302] 
 Couldn't launch {~}/dev/EpicUE4/UnrealEngine-release/Engine/Binaries/Mac/ShaderCompileWorker! Make sure the file is in your binaries folder.
Product Version: UE 4.10
Tags:
more ▼

asked Jan 03 '16 at 08:04 AM in Bug Reports

avatar image

duva
116 3 8 71

avatar image duva Jan 03 '16 at 08:08 AM

Macbook Pro, OS X 10.11.1

Note: I originally tried to build from the generated XCode project - same error.

avatar image duva Jan 03 '16 at 08:41 PM

I just ran:

$ ./Engine/Build/BatchFiles/Mac/Build.sh UE4Editor Mac Development -clean

$ ./Engine/Build/BatchFiles/Mac/Build.sh UE4Editor Mac Development -verbose > build.log 2>&1

$ cat build.log | grep ShaderCompileWorker

$

got nothing. broken build rule?

avatar image yanfjz Jun 20 '16 at 02:03 AM

Hello,

It seems a spelling error in the UE4Rules assembly. When using the manual build, I get the following error: ERROR: Couldn't find target rules file for target 'ShaderCompilerWorker' in rules assembly 'UE4Rules, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. Location: /Users/ZhangJin/Documents/UnrealEngine-release/Engine/Intermediate/Build/BuildRules/UE4Rules.dll

And the found target file is: ShaderCompileWorker - /Users/ZhangJin/Documents/UnrealEngine-release/Engine/Source/Programs/ShaderCompileWorker/ShaderCompileWorker.Target.cs

Could anyone please help with this?

avatar image yanfjz Jun 29 '16 at 04:39 AM

Sorry, I made a mistake, the manual building works without problem.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

3 answers: sort voted first

Building ShaderCompileWorker manually fixes this issue:

 $ ./Engine/Build/BatchFiles/Mac/Build.sh ShaderCompileWorker Mac Development -verbose 
 $ ./Engine/Binaries/Mac/UE4Editor.app/Contents/MacOS/UE4Editor
more ▼

answered Jan 04 '16 at 12:27 AM

avatar image

duva
116 3 8 71

avatar image Sabun Jun 07 '16 at 01:57 AM

Thank you for pointing this out! I was attempting to build 4.12.0 from source on Mac OSX 10.11.5 El Capitan, and running it would always instantly crash.

From what you posted, I checked the output from Xcode, it read: "Couldn't launch ShaderCompileWorker! Make sure the file is in your binaries folder."

So, in Xcode I left clicked on the scheme button, scrolled down to ShaderCompileWorker and selected it for 'My Mac'. Then I did Product - Build.

In addition to this though, I also had to do the same steps for UnrealLightmass.

After doing both of these, the editor would load up and look like it's getting stuck at 45% with Xcode reporting "Missing cached shader map for material WorldGridMaterial, compiling.". This took about half an hour, and then it was able to open up properly. I figured I would just outline what I did in case others run into this issue too. Thank you for your post!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

This still happened with 4.13 for me. This needs a jira ticket or there should be an update to the buiding-from-source documentation.

Manually running Build.sh for the ShaderCompilerWorker as mentioned above worked for me, but this is probably unnecessarily tripping up a lot of people. I haven't tried a fresh build on windows, but the same thing with ShaderCompilerWorker was happening there at one time on 4.12.

more ▼

answered Oct 02 '16 at 10:00 PM

avatar image

muchcharles
267 11 16 24

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Each time, I give up on installing Nvidia gameworks through visual studio, I happen to come across forums like this.

THANK YOU

Build.sh for the ShaderCompilerWorker as mentioned above worked for me.

In Visual studio, find this and build it when you get the no ShaderCompileWorker.exe and as Sabun said it will launch and get stuck on 45% for a while

more ▼

answered Jul 09 '18 at 07:56 AM

avatar image

AaronWildman
6 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question