Dear @Xios1337
I had the same problem yesterday. After some inspection, it turned out that the RAM memory was maxed out.
The first time Unreal Engine runs, it needs to setup some stuff for future usage (e.g. compiling about 5000 shaders).
This requires a very large memory to successfully complete. There are 2 solutions:
- The expensive way: Buy and install extra RAM memory
- The easy way: Increase your virtual memory by using a swap space
A swap space lets us use part of the hard disk to act as RAM memory. This is very handy in case of emergency.
If you choose the easy way, here is how to do it. Open a terminal window and run the following commands.
sudo fallocate -l 10G /swapfile
sudo chmod -c 600 /swapfile
sudo mkswap /swapfile
sudo swapon -v /swapfile
Notice the **10G **in the first command. I didn’t know how much memory was needed, so I used a 10 Gigabyte swap file.
This may be unnecessary, you can reduce that to 8G. Make sure you have enough free space on the root partition.
To complete the final step of installing Unreal, open the Unreal Engine installation folder in the terminal:
cd Engine/Binaries/Linux
./UE4Editor
It will keep running for some time, wait until the Unreal Editor opens.
Then it will begin installing shaders (about 5000), wait until the count-down in the bottom-right corner finishes.
Congratulations, Unreal is finally installed.
N. B.
Normally, the swap space will be turned off when you shutdown or restart.
After restart, if you want to turn it on again, run:
sudo swapon -v /swapfile
Since Unreal Engine is very memory-hungry, It is safer to keep using the swap file.
To make the swap file automatically turn on every time you open the computer, run the command:
echo '/swapfile none swap defaults 0 0' | sudo tee -a /etc/fstab
Instead, if you prefer to get rid of the swap file, run this:
sudo swapoff -a
sudo rm -v /swapfile