# Unreal 4.16.1 debug game build error: ICU data directory was not discovered

**URL:** <https://forums.unrealengine.com/t/unreal-4-16-1-debug-game-build-error-icu-data-directory-was-not-discovered/395338>\
**Category:** C++\
**Tags:** UE4-16, unreal-engine, bug-report, CPP, question\
**Created:** [June 2, 2017, 11:19am UTC](https://forums.unrealengine.com/t/unreal-4-16-1-debug-game-build-error-icu-data-directory-was-not-discovered/395338 "2017-06-02T11:19:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![solarisx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@solarisx](https://forums.unrealengine.com/u/solarisx)\
**Post date:** [June 2, 2017, 11:19am UTC](https://forums.unrealengine.com/t/unreal-4-16-1-debug-game-build-error-icu-data-directory-was-not-discovered/395338/1 "2017-06-02T11:19:15Z")

</div>

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:

1. Use unreal engine 4.16.1

2. Create a new C++ Basic Code Project

3. Try to debug a ‘GameBuild’ with Visual Studio Community 2015 (14.0.25431.01 Update 3)

4. 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();

Greets

---

<div class="post-metadata">

**Author:** ![theonecalledtom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@theonecalledtom](https://forums.unrealengine.com/u/theonecalledtom)\
**Post date:** [June 5, 2017, 4:02pm UTC](https://forums.unrealengine.com/t/unreal-4-16-1-debug-game-build-error-icu-data-directory-was-not-discovered/395338/2 "2017-06-05T16:02:54Z")

</div>

You’re the second thread I’ve seen with this.

> **[Crash FICUInternationalization](https://forums.unrealengine.com/questions/617483/crash-ficuinternationalization.html)**
>
> K. Not something I’ve experienced with prior engines but I haven’t tried unreal’s networking out. I converted my “answer” to a comment because I don’t want the thread to look like it has an answer. Looks like other people have this issue (and I’m...

@WoodsShin

Suggest one of you move’s to Bug Reports.

Other thought - did you try deleting the Saved and Intermediate folders to force a full rebuild of the packages?

---

<div class="post-metadata">

**Author:** ![theonecalledtom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@theonecalledtom](https://forums.unrealengine.com/u/theonecalledtom)\
**Post date:** [June 5, 2017, 4:52pm UTC](https://forums.unrealengine.com/t/unreal-4-16-1-debug-game-build-error-icu-data-directory-was-not-discovered/395338/3 "2017-06-05T16:52:43Z")

</div>

Upgraded a project to 16.1 and confirmed same behavior - event after deleting the above folders.

---

<div class="post-metadata">

**Author:** ![theonecalledtom](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@theonecalledtom](https://forums.unrealengine.com/u/theonecalledtom)\
**Post date:** [June 5, 2017, 4:54pm UTC](https://forums.unrealengine.com/t/unreal-4-16-1-debug-game-build-error-icu-data-directory-was-not-discovered/395338/4 "2017-06-05T16:54:46Z")

</div>

The packaged build does run though.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [June 6, 2017, 7:48pm UTC](https://forums.unrealengine.com/t/unreal-4-16-1-debug-game-build-error-icu-data-directory-was-not-discovered/395338/5 "2017-06-06T19:48:43Z")

</div>

Hi solarisx,

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](https://issues.unrealengine.com/issue/UE-45748) to have this investigated further.

---

<div class="post-metadata">

**Author:** ![ShiftZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ShiftZ](https://forums.unrealengine.com/u/ShiftZ)\
**Post date:** [June 8, 2017, 10:55am UTC](https://forums.unrealengine.com/t/unreal-4-16-1-debug-game-build-error-icu-data-directory-was-not-discovered/395338/6 "2017-06-08T10:55:30Z")

</div>

Any workaround?

Ok, the workaround is to define UE\_ENGINE\_DIRECTORY in your pch header. In my case it looks like this:

```
#define UE_ENGINE_DIRECTORY ../../../Epic Games/UE_4.16/Engine/

```

The project folder and Epic Games folder are siblings.

---

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [June 22, 2017, 12:38pm UTC](https://forums.unrealengine.com/t/unreal-4-16-1-debug-game-build-error-icu-data-directory-was-not-discovered/395338/7 "2017-06-22T12:38:15Z")

</div>

Hi ,

This says that it was fixed in 4.16.1 - but I’m still having this issue.

---

<div class="post-metadata">

**Author:** ![dorgon\_chang](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dorgon_chang/32/1124941_2.png) [@dorgon\_chang](https://forums.unrealengine.com/u/dorgon_chang)\
**Post date:** [June 23, 2017, 4:21am UTC](https://forums.unrealengine.com/t/unreal-4-16-1-debug-game-build-error-icu-data-directory-was-not-discovered/395338/8 "2017-06-23T04:21:16Z")

</div>

I still having this issue too, in 4.16.1

---

<div class="post-metadata">

**Author:** ![spacebares](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spacebares](https://forums.unrealengine.com/u/spacebares)\
**Post date:** [June 24, 2017, 2:47am UTC](https://forums.unrealengine.com/t/unreal-4-16-1-debug-game-build-error-icu-data-directory-was-not-discovered/395338/9 "2017-06-24T02:47:09Z")

</div>

4.16.1 binary from launcher still same problem

---

<div class="post-metadata">

**Author:** ![spacebares](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@spacebares](https://forums.unrealengine.com/u/spacebares)\
**Post date:** [June 24, 2017, 3:05am UTC](https://forums.unrealengine.com/t/unreal-4-16-1-debug-game-build-error-icu-data-directory-was-not-discovered/395338/10 "2017-06-24T03:05:12Z")

</div>

can you explain how to use? my engine is in D:\NET\UE\_4.16\Engine but my project is in C:\NET\project do i still type …/…/…/ ??

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_127df0b6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_127df0b6](https://forums.unrealengine.com/u/anonymous_user_127df0b6)\
**Post date:** [June 28, 2017, 7:49am UTC](https://forums.unrealengine.com/t/unreal-4-16-1-debug-game-build-error-icu-data-directory-was-not-discovered/395338/11 "2017-06-28T07:49:20Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ShiftZ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ShiftZ](https://forums.unrealengine.com/u/ShiftZ)\
**Post date:** [July 1, 2017, 8:15pm UTC](https://forums.unrealengine.com/t/unreal-4-16-1-debug-game-build-error-icu-data-directory-was-not-discovered/395338/12 "2017-07-01T20:15:08Z")

</div>

Have you tried full path to UE\_4.16/Engine/ directory?

---

<div class="post-metadata">

**Author:** ![BigaCubensis](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@BigaCubensis](https://forums.unrealengine.com/u/BigaCubensis)\
**Post date:** [July 2, 2017, 9:21am UTC](https://forums.unrealengine.com/t/unreal-4-16-1-debug-game-build-error-icu-data-directory-was-not-discovered/395338/13 "2017-07-02T09:21:56Z")

</div>

Updated to 4.16.2 but same error message, despite UE-45748 shows it fixed. It isnt… ☹

---

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [July 11, 2017, 10:44am UTC](https://forums.unrealengine.com/t/unreal-4-16-1-debug-game-build-error-icu-data-directory-was-not-discovered/395338/14 "2017-07-11T10:44:03Z")

</div>

Still experiencing this problem in 4.16.2, both on Windows and on PS4.

My engine version is built from source code, but it also occurs in Binary Builds.

---

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [July 11, 2017, 10:47am UTC](https://forums.unrealengine.com/t/unreal-4-16-1-debug-game-build-error-icu-data-directory-was-not-discovered/395338/15 "2017-07-11T10:47:26Z")

</div>

,

I’m still getting this in 4.16.2, and I’m using a Source Engine Build and Binary Builds. The issue is most definitely not fixed!

---

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [July 11, 2017, 10:48am UTC](https://forums.unrealengine.com/t/unreal-4-16-1-debug-game-build-error-icu-data-directory-was-not-discovered/395338/16 "2017-07-11T10:48:59Z")

</div>

@ - where are you adding that define? in your project main header?

For example, my main project header is ECGame.h - Should we put it there?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_127df0b6](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_127df0b6](https://forums.unrealengine.com/u/anonymous_user_127df0b6)\
**Post date:** [July 11, 2017, 10:51am UTC](https://forums.unrealengine.com/t/unreal-4-16-1-debug-game-build-error-icu-data-directory-was-not-discovered/395338/17 "2017-07-11T10:51:00Z")

</div>

I was only successful putting it into the build.cs. Like that:

```
Definitions.Add("UE_ENGINE_DIRECTORY=d:/Unreal/Epic Games/UE_4.16/Engine/");

```

Having it in the PCH or some other header didn’t do the trick here.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b666e59e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b666e59e](https://forums.unrealengine.com/u/anonymous_user_b666e59e)\
**Post date:** [July 11, 2017, 2:29pm UTC](https://forums.unrealengine.com/t/unreal-4-16-1-debug-game-build-error-icu-data-directory-was-not-discovered/395338/18 "2017-07-11T14:29:34Z")

</div>

Hi ,

Our repro for UE-45748 no longer results in this issue in 4.16.2. Do you have a different repro where you are still seeing the issue occur?

---

<div class="post-metadata">

**Author:** ![Jambax](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jambax/32/904177_2.png) [@Jambax](https://forums.unrealengine.com/u/Jambax)\
**Post date:** [July 17, 2017, 7:42am UTC](https://forums.unrealengine.com/t/unreal-4-16-1-debug-game-build-error-icu-data-directory-was-not-discovered/395338/19 "2017-07-17T07:42:19Z")

</div>

Hi ,

Yeah I’m trying to launch DebugGame on PS4 in 4.16.2 and getting the same error!

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_3bd10f59](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_3bd10f59](https://forums.unrealengine.com/u/anonymous_user_3bd10f59)\
**Post date:** [July 27, 2017, 11:01am UTC](https://forums.unrealengine.com/t/unreal-4-16-1-debug-game-build-error-icu-data-directory-was-not-discovered/395338/20 "2017-07-27T11:01:00Z")

</div>

I’m also getting this error trying to launch DebugGame on Xbox One with a source build of 4.16.2

[Next page](https://forums.unrealengine.com/t/unreal-4-16-1-debug-game-build-error-icu-data-directory-was-not-discovered/395338.md?page=2)
