# Weird bug when creating or opening c++ projects

**URL:** <https://forums.unrealengine.com/t/weird-bug-when-creating-or-opening-c-projects/2128315>\
**Category:** C++\
**Tags:** unreal-engine, question\
**Created:** [November 16, 2024, 4:22pm UTC](https://forums.unrealengine.com/t/weird-bug-when-creating-or-opening-c-projects/2128315 "2024-11-16T16:22:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vinipiterson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vinipiterson](https://forums.unrealengine.com/u/Vinipiterson)\
**Post date:** [November 16, 2024, 4:22pm UTC](https://forums.unrealengine.com/t/weird-bug-when-creating-or-opening-c-projects/2128315/1 "2024-11-16T16:22:44Z")

</div>

I started to get an error when trying to open c++ projects after instaling unreal engine 5.5 and MSVC (The log said the previous version I was using got banned), I’m not sure if it is related to the update but i’m sure it was not happening before (It’s happening in all unreal engine versions). if you know the solution, please help me

 ![Screenshot 2024-11-16 132220](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/0/3/8037939550f5e07e54f71e31f2453967882584aa.png)

---

<div class="post-metadata">

**Author:** ![SylarAtomic](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/sylaratomic/32/1194543_2.png) [@SylarAtomic](https://forums.unrealengine.com/u/SylarAtomic)\
**Post date:** [November 16, 2024, 7:03pm UTC](https://forums.unrealengine.com/t/weird-bug-when-creating-or-opening-c-projects/2128315/2 "2024-11-16T19:03:15Z")

</div>

Hi @Vinipiterson,

That sounds like you need to upgrade your Toolchain. I had a similar error popup. I upgraded my Visual Studio to the latest version and it worked fine after that. I think MSVC 14.40 and a few below are banned.

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [November 16, 2024, 7:39pm UTC](https://forums.unrealengine.com/t/weird-bug-when-creating-or-opening-c-projects/2128315/3 "2024-11-16T19:39:08Z")

</div>

Some compiler notes that may indicate the cause

> **[\_\_has\_feature (The C Preprocessor)](https://gcc.gnu.org/onlinedocs/cpp/_005f_005fhas_005ffeature.html)**
>
> \_\_has\_feature (The C Preprocessor)

Note that ` __has_feature` and `__ has_extension` are not recommended for use in new code, and are only provided for compatibility with Clang. For details of which identifiers are accepted by these function-like macros, see [the Clang documentation](https://clang.llvm.org/docs/LanguageExtensions.html#has-feature-and-has-extension).

So maybe with 5.5 there have been some updates that depreciate the use of \_\_has\_feature

Try updating your msvc to a newer version if yours is no longer seen as ok.

Also take note of the warning in your solution

![obraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/b/0/2b040e7c0d2dbf2005feb8612d605a5bbfcfda27.png)

Usually installing components fixes sudden weird errors like this.  
It should update / install missing dependencies.

---

<div class="post-metadata">

**Author:** ![Vinipiterson](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Vinipiterson](https://forums.unrealengine.com/u/Vinipiterson)\
**Post date:** [November 17, 2024, 2:10pm UTC](https://forums.unrealengine.com/t/weird-bug-when-creating-or-opening-c-projects/2128315/4 "2024-11-17T14:10:05Z")

</div>

Thank you so much! I completely reinstalled visual studio following [Setting Up Visual Studio Development Environment for C++ Projects in Unreal Engine | Unreal Engine 5.0 Documentation | Epic Developer Community](https://dev.epicgames.com/documentation/en-us/unreal-engine/setting-up-visual-studio-development-environment-for-cplusplus-projects-in-unreal-engine?application_version=5.0) and downloaded the components visual studio asked about and it worked.

---

<div class="post-metadata">

**Author:** ![JuTianWork](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JuTianWork](https://forums.unrealengine.com/u/JuTianWork)\
**Post date:** [November 21, 2024, 3:47pm UTC](https://forums.unrealengine.com/t/weird-bug-when-creating-or-opening-c-projects/2128315/5 "2024-11-21T15:47:40Z")

</div>

I encountered the same problem, uninstall “C++ AddressSanitizer” solve my problem.

 ![qwezxcz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/c/8/4c8a24c81081450a984a6cb50d56690655c9b30a.jpeg)

---

<div class="post-metadata">

**Author:** ![MikeSeese](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mikeseese/32/1022829_2.png) [@MikeSeese](https://forums.unrealengine.com/u/MikeSeese)\
**Post date:** [December 13, 2024, 7:10pm UTC](https://forums.unrealengine.com/t/weird-bug-when-creating-or-opening-c-projects/2128315/6 "2024-12-13T19:10:47Z")

</div>

I think the intent of the engine’s `ConcurrentLinearAllocator.h` where this error is occurring (excerpt below) is ` __SANITIZE_ADDRESS__ ` should be defined if MSVC has the `C++ AddressSanitizer` installed (per [AddressSanitizer language, build, and debugging reference | Microsoft Learn](https://learn.microsoft.com/en-us/cpp/sanitizers/asan-building?view=msvc-160)). However, perhaps UBT isn’t defining `/fsanitize=address` (I haven’t dived deeper).

```auto
#if PLATFORM_HAS_ASAN_INCLUDE
#include <sanitizer/asan_interface.h>
#if defined( __SANITIZE_ADDRESS__ )
#define IS_ASAN_ENABLED 1
#elif __has_feature(address_sanitizer)
#define IS_ASAN_ENABLED 1
#else
#define IS_ASAN_ENABLED 0
#endif
#else
#define ASAN_POISON_MEMORY_REGION(addr, size) ((void)(addr), (void)(size))
#define ASAN_UNPOISON_MEMORY_REGION(addr, size) ((void)(addr), (void)(size))
#define IS_ASAN_ENABLED 0
#endif

```

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [January 12, 2025, 7:11pm UTC](https://forums.unrealengine.com/t/weird-bug-when-creating-or-opening-c-projects/2128315/7 "2025-01-12T19:11:23Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
