Hi, I have updated to latest Unreal version 4.16.1 and now the debug of a game build does not work anymore. Tried it with a clean c++ starter project.
Exception thrown at 0x00007FFF70729E08 in MyProject-Win64-DebugGame.exe: Microsoft C++ exception: xSharedMemoryException at memory location 0x000000394C6CEDC0.
Assertion failed: HasFoundDataDirectory [File:D:\Build\++UE4+Release-4.16+Compile\Sync\Engine\Source\Runtime\Core\Private\Internationalization\ICUInternationalization.cpp] [Line: 128]
ICU data directory was not discovered:
../../../MyProject/Content/Internationalization
../../../Engine/Content/Internationalization
MyProject-Win64-DebugGame.exe has triggered a breakpoint.
Can someone confirm this problem?
Steps to reproduce:
Use unreal engine 4.16.1
Create a new C++ Basic Code Project
Try to debug a āGameBuildā with Visual Studio Community 2015 (14.0.25431.01 Update 3)
Break point triggered in C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\crt\src\vcruntime\exe_common.inl line 253 at int const main_result=invoke_main();
Thanks for letting us know about this. I was able to reproduce this issue, but it is apparently only limited to binary installations of the Engine. When I tested with an Engine I had built from source code, I was able to debug the project successfully. I have entered UE-45748 to have this investigated further.
Just for the record: Same on all machines here with binary 4.16.1. This should not be marked fixed unless it actually is. Sadly, the workaround doesnāt yet do the trick for me either.
From my investigation, the issue is a little broader and not restricted to ICU. I have managed to trick a debug game into finding ICUs content dir by copying the Internationalization folder into the gameās content. Yeah, I knowā¦ Anyway, after that the initialization phase skipped with that:
Fatal error: [File:D:\Build++UE4+Release-4.16+Compile\Sync\Engine\Source\Runtime\Engine\Private\PhysicsEngine\PhysXLibs.cpp] [Line: 87]
Failed to load module āā¦/ā¦/ā¦/Engine/Binaries/ThirdParty/PhysX/Win64/VS2015/PxFoundationPROFILE_x64.dllā.
Which means the next dynamically loaded module also wasnāt found. I believe the reason is that FPaths::GameContentDir() and FPaths::EngineContentDir() donāt seem to work in debug builds, causing all those subsequent errors.