When going through this documentation: Unreal Engine CPP Quick Start | Unreal Engine 5.1 Documentation I experience crashes when trying to compile C++ (Step 4.1 of the documentation).
The crash log states the following:
"Assertion failed: IsInGameThread() [File:D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\StaticMeshCompiler.cpp] [Line: 373]
UnrealEditor_Engine!FStaticMeshCompilingManager::FinishCompilation() [D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\StaticMeshCompiler.cpp:373]
UnrealEditor_Engine!UStaticMesh::Serialize() [D:\build++UE5\Sync\Engine\Source\Runtime\Engine\Private\StaticMesh.cpp:5304]
UnrealEditor_UnrealEd!FAsyncTask<FReload::ReplaceReferencesToReconstructedCDOs'::
2’::FFindRefTask>::DoTaskWork() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Async\AsyncWork.h:636]
UnrealEditor_UnrealEd!FAsyncTaskBase::DoWork() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Async\AsyncWork.h:304]
UnrealEditor_UnrealEd!FAsyncTaskBase::DoThreadedWork() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Public\Async\AsyncWork.h:328]
UnrealEditor_Core!FQueuedThread::Run() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\HAL\ThreadingBase.cpp:1356]
UnrealEditor_Core!FRunnableThreadWin::Run() [D:\build++UE5\Sync\Engine\Source\Runtime\Core\Private\Windows\WindowsRunnableThread.cpp:149]"
I assume it has to do something with getting mesh via “static ConstructorHelpers::FObjectFinder CubeVisualAsset(TEXT(“/Game/StarterContent/Shapes/Shape_Cube.Shape_Cube”));”, but it’s the very first thing I tried in UE5 and considering it got me so far, I’m clueless on how to resolve this by myself.