Segmentation fault in FStandardPlatformString::Strlen

Using Lubuntu 15.10. Here is how I built it:

sudo apt-get install build-essential mono-gmcs mono-xbuild mono-dmcs libmono-corlib4.0-cil libmono-system-data-datasetextensions4.0-cil libmono-system-web-extensions4.0-cil libmono-system-management4.0-cil libmono-system-xml-linq4.0-cil cmake dos2unix clang xdg-user-dirs libmono-microsoft-build-tasks-v4.0-4.0-cil libmono-windowsbase4.0-cil clang-3.5
sudo mkdir /opt/build
sudo chown erikn:erikn /opt/build
cd /opt/build
git clone -b 4.10 --depth 1 git@github.com:EpicGames/UnrealEngine.git
sudo adduser --home /opt/build build
sudo chown -R build:build /opt/build
sudo su - build
cd UnrealEngine
./Setup.sh
./GenerateProjectFiles.sh
make UE4Editor UE4Game UnrealPak CrashReportClient ShaderCompileWorker UnrealLightmass
make -j1 ShaderCompileWorker
exit

When I try to run it,

cd /opt/build/UnrealEngine/Engine/Binaries/Linux/
gdb ./UE4Editor
[...]
(gdb) run

gdb tells me:

Starting program: /opt/build/UnrealEngine/Engine/Binaries/Linux/UE4Editor 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
Using binned.
Increasing per-process limit of core file size to infinity.
[New Thread 0x7ffff7e7e700 (LWP 30880)]
[New Thread 0x7fffd498a700 (LWP 30881)]
[New Thread 0x7ffff7e3d700 (LWP 30882)]

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff6fce060 in FStandardPlatformString::Strlen (
    String=0xa4b220 L"../../../Engine/Saved/Logs")
    at /opt/build/UnrealEngine/Engine/Source/Runtime/Core/Public/GenericPlatform/StandardPlatformString.h:89
89			return wcslen( String );

Hey en90-

I tried to copy the steps that you took and received an error at line 5 during the “git clone” process. Could you follow these steps and let me know if you’re able to run the engine:

  1. cd Path/Where//Engine/Will/Go
  2. git clone https://github.com/EpicGames/UnrealEngine -b 4.10
  3. Enter Github username and password when prompted
  4. cd into cloned folder
  5. ./Setup.sh
  6. ./GenerateProjectFiles.sh
  7. make ShaderCompileWorker UnrealLightmass UnrealPak UE4Game UE4Engine
  8. cd Engine/Binaries/Linux
  9. ./UE4Editor

Total build time: 1704.75 seconds
make: *** No rule to make target ‘UE4Engine’. Stop.

Did you mean UE4Editor?

Yes, sorry. I did mean UE4Editor

Thank you for your help , it works now. For posterity, the commit I compiled this working version from was fef123c19bd299af0dfd2c602f8266daea80968b. I don’t know if it was due to something with the commit I previously used (probably not, though, right?), or because of the fact that I cloned it to depth 1 only or if it was perhaps that it wouldn’t work because I had changed ownership of the files to another user than the one I am running as, or if it was something else but it works now and that’s the important thing :slight_smile:

By doing mostly what said in his comments to the post, I now have a working Unreal Engine installation.

cd /opt/build
sudo rm -rf UnrealEngine
sudo mkdir UnrealEngine
sudo chown erikn:erikn UnrealEngine
git clone git@github.com:EpicGames/UnrealEngine.git
cd UnrealEngine
./Setup.sh
./GenerateProjectFiles.sh
make ShaderCompileWorker UnrealLightmass UnrealPak UE4Game UE4Editor
cd Engine/Binaries/Linux
./UE4Editor