Description

Attempting to launch a Development Server build of a project through the Visual Studio debugger hits a breakpoint when several Engine assets cannot be found or loaded. These assets are all reported to have been successfully cooked and saved when cooking content for Windows (see the attached Cook log), but the debug process does not appear to be able to find and load them.

The assets that are not being found and loaded appear to be Editor Only assets, which would not be available when running the project in the Development Server configuration.

Steps to Reproduce
  1. Create a new Basic Code Project.
  2. Add a Server target to the project.
  3. Build the project in Visual Studio for the Development Editor configuration.
  4. Open the project in the Editor.
  5. Cook content for Windows.
  6. Close the Editor.
  7. Set the configuration in Visual Studio to Development Server.
  8. Start a new debug session in Visual Studio.

RESULT:
A breakpoint is hit in Material.cpp on line 522, and multiple errors and warnings are shown stating that several Engine assets cannot be found or loaded (see the attached Debug log).

EXPECTED:
The project successfully launches for the Development Server configuration in the Visual Studio debugger.

Callstack
TESTPath2Server.exe!UMaterialInterface::InitDefaultMaterials() Line 522
TESTPath2Server.exe!UClass::CreateDefaultObject() Line 2754
TESTPath2Server.exe!UMaterialInterface::PostCDOContruct() Line 582
TESTPath2Server.exe!UClass::CreateDefaultObject() Line 2754
TESTPath2Server.exe!UClass::CreateDefaultObject() Line 2693
TESTPath2Server.exe!UObjectLoadAllCompiledInDefaultProperties() Line 789
TESTPath2Server.exe!ProcessNewlyLoadedUObjects() Line 867
TESTPath2Server.exe!FEngineLoop::PreInit(const wchar_t * CmdLine) Line 1898
TESTPath2Server.exe!GuardedMain(const wchar_t * CmdLine, HINSTANCE__ * hInInstance, HINSTANCE__ * hPrevInstance, int nCmdShow) Line 127
TESTPath2Server.exe!WinMain(HINSTANCE__ * hInInstance, HINSTANCE__ * hPrevInstance, char * __formal, int nCmdShow) Line 199
[External Code]

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-54635 in the post.

0
Login to Vote

Won't Fix
ComponentTools
Affects Versions4.17.24.18.34.20
CreatedJan 30, 2018
ResolvedAug 18, 2021
UpdatedAug 21, 2021