C++ programming tutorial crash

Q1. I am following the tutorial at Unreal Engine CPP Quick Start | Unreal Engine 5.1 Documentation – " Programming Quick Start". I believe I have set up all the prerequisites.

I get this error:

Assertion failed: IsInGameThread() [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\StaticMeshCompiler.cpp] [Line: 373]

No surprise that it failed, as there is no such directory as D:\build. I’ve investigated the macros in the project in VS2022, but can’t see anything directing to there.

Is there something I’ve missed, or can I fix this somehow?

Q2. Although the tutorial requires Starter Content to be enabled, the content is different to the scene in the tutorial. I wondered if this would make a difference to the above problem for some reason. I get a landscape scene, not a table and chairs. So tried to create a project without the Starter Content, but got the same result: a landscape. Is this install bust? Should I start again from scratch?

The d: drive is a big of a red herring and misdirection. Unreal usually points to it regarding it’s install directory.

Looking at source of the engine the static mesh compiler is failing at the line:
check(IsInGameThread());

Are you using any custom threads via FRunnable or maybe a plugin and accessing the game world from within the thread?

Not as far as I know! I am just trying to follow the tutorial. This is my first experiment with Unreal & C++.

The crash/compile failure seems to have been fixed by verifying the installation in the Engine Versions section of the Unreal Engine launcher.

It sounds like the issue with the missing directory is related to a problem with the installation of the Unreal Engine. Verifying the installation was a good first step, and it seems to have fixed the problem with the missing directory.

Regarding the Starter Content, it shouldn’t affect the compilation error you were experiencing, but it may affect the appearance of the scene. If you want to follow the tutorial exactly as it is written, you should make sure that the Starter Content is enabled and that you are using the correct scene.

If you continue to have issues, you may want to try starting from scratch with a fresh installation of the Unreal Engine and following the tutorial again from the beginning.