o3de-multiplayersample icon indicating copy to clipboard operation
o3de-multiplayersample copied to clipboard

MultiplayerSample does not launch on a specific hardware

Open LB-ArturZieba opened this issue 1 year ago • 4 comments

Describe the bug This issue should be considered as Major.

On one of the PCs MultiplayerSample was not able to be launched. During build an error related to EMotionFX occurred (full log in Screenshot, Config/Build CMD log and DxDiag section) and MultiplayerSample.GameLancher/ServerLauncher executables were not generated:

EXEC : AutoMoc warning : Dependency file "SRC:/build/windows/External/EMotionFX-7b5316e8/Code/EMotionFX.Editor.Static_autogen/include_profile/EMotionFX/Tools/EMotionStudio/Plugins/StandardPlugins/Source/MorphTargetsW
indow/moc_MorphTargetEditWindow.cpp.d" does not exist. [C:\Users\GPC-800\O3DE\Projects\o3de-multiplayersample\build\windows\External\EMotionFX-7b5316e8\Code\EMotionFX.Editor.Static.vcxproj]

 

  AutoMoc: moc: Cannot create dep output file 'C:/Users/GPC-800/O3DE/Projects/o3de-multiplayersample/build/windows/External/EMotionFX-7b5316e8/Code/EMotionFX.Editor.Static_autogen/include_profile/EMotionFX/Tools/EMot
  ionStudio/Plugins/StandardPlugins/Source/MorphTargetsWindow/moc_MorphTargetGroupWidget.cpp.d'. No such file or directory
EXEC : AutoMoc warning : Dependency file "SRC:/build/windows/External/EMotionFX-7b5316e8/Code/EMotionFX.Editor.Static_autogen/include_profile/EMotionFX/Tools/EMotionStudio/Plugins/StandardPlugins/Source/MorphTargetsW
indow/moc_MorphTargetGroupWidget.cpp.d" does not exist. [C:\Users\GPC-800\O3DE\Projects\o3de-multiplayersample\build\windows\External\EMotionFX-7b5316e8\Code\EMotionFX.Editor.Static.vcxproj]

 


  AutoMoc subprocess error
  ------------------------
  The moc process failed to compile
    "C:/o3de/Gems/EMotionFX/Code/EMotionFX/Tools/EMotionStudio/Plugins/StandardPlugins/Source/MorphTargetsWindow/MorphTargetsWindowPlugin.h"
  into
    "SRC:/build/windows/External/EMotionFX-7b5316e8/Code/EMotionFX.Editor.Static_autogen/include_profile/EMotionFX/Tools/EMotionStudio/Plugins/StandardPlugins/Source/MorphTargetsWindow/moc_MorphTargetsWindowPlugin.cp
  p"
  included by
    "C:/o3de/Gems/EMotionFX/Code/EMotionFX/Tools/EMotionStudio/Plugins/StandardPlugins/Source/MorphTargetsWindow/MorphTargetsWindowPlugin.cpp"

 

  Command
  -------
  C:/o3de-packages/packages/qt-5.15.2-rev7-windows/qt/bin/moc.exe "-DAZ_BUILD_CONFIGURATION_TYPE=\"profile\"" -DAZ_ENABLE_DEBUG_TOOLS -DAZ_ENABLE_TRACING -DAZ_PROFILE_BUILD "-DDEFAULT_LY_PYTHONHOME=\"C:/o3de/python/r
  untime/python-3.10.5-rev1-windows/python\"" -DEMFX_ANIMGRAPH_PROFILER_ENABLED -DEMFX_DEVELOPMENT_BUILD -DEMFX_EMSTUDIOLYEMBEDDED -DEMOTIONFXANIMATION_EDITOR -DGRAPH_CANVAS_ENABLE_DETAILED_PROFILING=0 -DIMGUI_API_IM
  PORT -DIMGUI_ENABLED -DIMGUI_INCLUDE_IMGUI_USER_H -DNDEBUG -DNOMINMAX -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_OPENGL_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DWIN32 -DWIN64 -D_ENABLE_E
  XTENDED_ALIGNED_STORAGE -D_HAS_EXCEPTIONS=0 -D_PROFILE -D_WIN32 -D_WIN64 -IC:/o3de/Gems/EMotionFX/Code/EMotionFX/Tools -IC:/o3de/Gems/EMotionFX/Code/EMotionFX/Pipeline -IC:/o3de/Gems/EMotionFX/Code/Editor/Platform/
  Windows -IC:/o3de/Gems/Atom/Tools/AtomToolsFramework/Code/Include -IC:/o3de/Gems/EMotionFX/Code -IC:/o3de/Gems/EMotionFX/Code/Include -IC:/o3de/Gems/EMotionFX/Code/Source -IC:/o3de/Gems/LmbrCentral/Code/include -IC
  :/o3de/Code/Framework/AzCore -IC:/o3de/Code/Framework/AzCore/Platform/Windows -IC:/o3de/Code/Framework/AzCore/Platform/Common -IC:/o3de/Code/Framework/AzFramework -IC:/o3de/Code/Framework/AzFramework/Platform/Windo
  ws -IC:/o3de/Code/Framework/AzNetworking -IC:/o3de/Code/Framework/AzNetworking/Platform/Common -IC:/o3de/Code/Framework/AzNetworking/Platform/Windows -IC:/Users/GPC-800/O3DE/Projects/o3de-multiplayersample/build/wi
  ndows/o3de/Code/Framework/AzNetworking/Azcg/Generated/AzNetworking -IC:/o3de/Code/Legacy/CryCommon -IC:/o3de/Code/Legacy -IC:/o3de/Code/Legacy/CryCommon/Platform/Windows -IC:/o3de/Code/Framework/AtomCore -IC:/o3de/
  Gems/Atom/RPI/Code/Include -IC:/o3de/Gems/Atom/RPI/Code/External -IC:/o3de/Gems/Atom/RHI/Code/Include -IC:/o3de/Gems/AtomLyIntegration/CommonFeatures/Code/Include -IC:/o3de/Gems/Atom/Feature/Common/Code/Include -IC
  :/o3de/Gems/Atom/Feature/Common/Code/3rdParty/ACES -IC:/o3de/Gems/Atom/Utils/Code/Include -IC:/o3de/Gems/Profiler/Code/Include -IC:/o3de/Gems/ImGui/External/ImGui/v1.82 -IC:/o3de/Gems/ImGui/Code/Include -IC:/o3de/G
  ems/AtomLyIntegration/AtomImGuiTools/Code/Include -IC:/o3de/Gems/AudioSystem/Code/Include/Engine -IC:/o3de/Gems/GradientSignal/Code/Include -IC:/o3de/Gems/SurfaceData/Code/Include -IC:/o3de/Gems/Atom/Feature/Common
  /Code/Source -IC:/o3de/Gems/Atom/Asset/ImageProcessingAtom/Code/Include -IC:/o3de/Gems/Atom/Bootstrap/Code/Include -IC:/o3de/Code/Tools/AssetProcessor/AssetBuilderSDK -IC:/o3de/Code/Framework/AzToolsFramework -IC:/
  o3de/Code/Framework/AzToolsFramework/AzToolsFramework -IC:/o3de/Code/Framework/AzToolsFramework/Platform/Windows -IC:/o3de/Code/Framework/AzQtComponents -IC:/o3de/Code/Framework/AzQtComponents/Platform/Windows -IC:
  /o3de/Code/Tools -IC:/o3de/Code/Tools -IC:/o3de/Code/Tools -IC:/o3de/Code/Editor/Include -IC:/o3de/Code/Editor -IC:/o3de/Code -IC:/o3de/Code/Editor/Plugins/EditorCommon -IC:/o3de/Gems/Atom/Component/DebugCamera/Cod
  e/Include -IC:/o3de/Gems/GraphCanvas/Code -IC:/o3de/Gems/GraphCanvas/Code/Source -IC:/o3de/Gems/GraphCanvas/Code/StaticLib -IC:/o3de/Gems/GraphModel/Code/Include --output-dep-file -o C:/Users/GPC-800/O3DE/Projects/
  o3de-multiplayersample/build/windows/External/EMotionFX-7b5316e8/Code/EMotionFX.Editor.Static_autogen/include_profile/EMotionFX/Tools/EMotionStudio/Plugins/StandardPlugins/Source/MorphTargetsWindow/moc_MorphTargets
  WindowPlugin.cpp C:/o3de/Gems/EMotionFX/Code/EMotionFX/Tools/EMotionStudio/Plugins/StandardPlugins/Source/MorphTargetsWindow/MorphTargetsWindowPlugin.h

 

  Output
  ------
  moc: Cannot create C:/Users/GPC-800/O3DE/Projects/o3de-multiplayersample/build/windows/External/EMotionFX-7b5316e8/Code/EMotionFX.Editor.Static_autogen/include_profile/EMotionFX/Tools/EMotionStudio/Plugins/Standard
  Plugins/Source/MorphTargetsWindow/moc_MorphTargetsWindowPlugin.cpp

 

  AutoMoc: moc: Cannot create dep output file 'C:/Users/GPC-800/O3DE/Projects/o3de-multiplayersample/build/windows/External/EMotionFX-7b5316e8/Code/EMotionFX.Editor.Static_autogen/include_profile/EMotionFX/Tools/EMot
  ionStudio/Plugins/StandardPlugins/Source/MorphTargetsWindow/moc_PhonemeSelectionWindow.cpp.d'. No such file or directory
EXEC : AutoMoc warning : Dependency file "SRC:/build/windows/External/EMotionFX-7b5316e8/Code/EMotionFX.Editor.Static_autogen/include_profile/EMotionFX/Tools/EMotionStudio/Plugins/StandardPlugins/Source/MorphTargetsW
indow/moc_PhonemeSelectionWindow.cpp.d" does not exist. [C:\Users\GPC-800\O3DE\Projects\o3de-multiplayersample\build\windows\External\EMotionFX-7b5316e8\Code\EMotionFX.Editor.Static.vcxproj]

A lot of failed .materials and .fbx were processed in the Asset Processor and attempting to launch the Editor results in a popup showing and closing the splashscreen after clicking through it (screenshot attached in the Screenshot, Config/Build CMD log and DxDiag section) stopping the Editor from launching.

It should be noted that this issue did not occur on other machines.

It should also be noted that all repositories used were set to development branches and up to date (specifics in the Found in Branch section).

Steps to reproduce

  1. Build a Source O3DE Engine.
  2. Build MultiplayerSample project following https://github.com/o3de/o3de-multiplayersample/blob/development/README.md instruction (specific steps were Step 1/Option 1 -> Step 2 -> Step 3/Option 1).
  3. Process assets for the MultiplayerSample project.
  4. Attempt to launch the Editor.

Expected behavior Editor launches.

Actual behavior Popup appears during loading Editor splashscreen and closes the Editor.

Screenshot, Config/Build CMD log and DxDiag PMPopup

MPSConfigBuildLog.txt

GPC-800_DxDiag.txt

Found in Branch o3de-multiplayersample: development (07ea3d0) o3de-multiplayersample-assets: development (c6f23db) o3de: development (925172c)

Desktop

  • Device: PC
  • OS: Windows
  • Version 10
  • CPU AMD Ryzen 5 3600X 6-Core Processor
  • GPU AMD Radeon RX 5700 XT
  • Memory 16GB

LB-ArturZieba avatar Jun 02 '23 11:06 LB-ArturZieba

MultiplayerSample.GameLauncher/ServerLauncher executables were able to be built by running their commands separate (cmake --build C:/o3de/build/windows --target MultiplayerSample.GameLauncher --config profile -- /m /nologo and cmake --build C:/o3de/build/windows --target MultiplayerSample.ServerLauncher --config profile -- /m /nologo), but Editor still encounters this issue, and the Launchers closed right after launching.

LB-ArturZieba avatar Jun 02 '23 12:06 LB-ArturZieba

Performing Step 1/Option 2 -> Step 2 -> Building via Project Manager from the https://github.com/o3de/o3de-multiplayersample/blob/development/README.md on the Source engine allowed the MultiplayerSample project to be built correctly.

LB-ArturZieba avatar Jun 05 '23 06:06 LB-ArturZieba

So rebuilding Editor using Project Manager fixed the issue?

AMZN-Gene avatar Jun 08 '23 17:06 AMZN-Gene

@AMZN-Gene Correct, but the project was also fully deleted and then cloned into the engine directory and not to an external location (Step 1/Option 2 Option #2 - Cloning into the engine repository directory was performed instead of Step 1/Option 1 Option #1 (Recommended) - Cloning into a directory outside the engine repository directory).

LB-ArturZieba avatar Jun 09 '23 06:06 LB-ArturZieba