Unreal Engine 4 Opens Project Directory But Not the Editor


I just compiled Unreal Engine 4 (UE4) from source on my Linux Ubuntu machine. When I launch the editor and try to create a blank C++ project, the editor opens the directory in which the newly created project is saved, but the editor itself never opens.

What I’ve tried

I’ve installed UE4 by following this procedure.

1 - Installed some prerequisites.

$ sudo apt install g++ git make
$ sudo apt install --classic code     # Visual Code Studio

2 - Created an Epic Games account.
3 - Created a Github account (already had one…)
4 - Linked my Github and Epic Games accounts.
5 - Joined the Epic Games group on Github.
6 - Cloned the UE4 repo.

$ mkdir ~/UnrealEngine
$ cd ~/UnrealEngine    
$ git clone --single-branch --branch 4.27 https://github.com/EpicGames/UnrealEngine.git

7 - Setup & built UE4 from source.

$ cd ~/UnrealEngine
$ ./Setup.sh
$ ./GenerateProjectFiles.sh
$ make

8 - Run the Editor (this opens the UE4 GUI)

$ cd ~/UnrealEngine/Engine/Binaries/Linux
$ ./UE4Editor

9 - From inside the editor, I then select New Project Categories > Games > Next > Blank > C++ / Scalable 3D or 2D / Raytracing Disabled / Desktop / No Starter Content > Save at /home/martin/UnrealProjects/MyProject002.

10 - At this point, the directory containing MyProject002 opens, but not the editor.

11 - Finally, the following messages appear in the console.

[2021.11.14-16.04.20:115][842]LogModuleManager: Shutting down and abandoning module AddContentDialog (756)
[2021.11.14-16.04.20:116][842]LogModuleManager: Shutting down and abandoning module WidgetCarousel (755)
[2021.11.14-16.04.20:116][842]LogModuleManager: Shutting down and abandoning module HierarchicalLODOutliner (752)
[2021.11.14-16.04.20:116][842]LogModuleManager: Shutting down and abandoning module DesktopPlatform (750)
[2021.11.14-16.04.20:116][842]LogModuleManager: Shutting down and abandoning module StatsViewer (748)
[2021.11.14-16.04.21:894][842]LogModuleManager: Shutting down and abandoning module PakFile (4)
[2021.11.14-16.04.21:894][842]LogModuleManager: Shutting down and abandoning module RSA (3)
[2021.11.14-16.04.21:894][842]LogContentStreaming: Display: There are 1 unreleased StreamingManagers
[2021.11.14-16.04.22:028][842]LogExit: Exiting.
[2021.11.14-16.04.22:028][842]LogInit: Tearing down SDL.

Any idea what might be causing this? Thanks.

Some Specs…

Unreal Engine:       4.27

Visual Studo Code:   1.62.2

OS:             Ubuntu 20.04.3 LTS (focal fossa)

Computer:       Storage:  512 GB SSD
                CPU:      8 cores
                          11th Gen Intel(R) Core(TM) i7-11800H @ 2.30GHz
                RAM:      16 GB
                Graphics: NVIDIA GeForce RTX 3060 Laptop GPU