# Airpods Pro make game crash

**URL:** <https://forums.unrealengine.com/t/airpods-pro-make-game-crash/1134768>\
**Category:** Platform & Builds\
**Tags:** unreal-engine, bug-report, question\
**Created:** [April 20, 2023, 3:50pm UTC](https://forums.unrealengine.com/t/airpods-pro-make-game-crash/1134768 "2023-04-20T15:50:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MatthewClare1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MatthewClare1](https://forums.unrealengine.com/u/MatthewClare1)\
**Post date:** [April 20, 2023, 3:50pm UTC](https://forums.unrealengine.com/t/airpods-pro-make-game-crash/1134768/1 "2023-04-20T15:50:39Z")

</div>

I have my project packaged and running well on an Apple M1 Max Macbook Pro. As soon as I connect my Airpod Pros to the Mac the UE game crashes/exits. I packaged the game using 5.2 Preview2 - haven’t tested on previous versions of the engine so not sure if that is the issue.

Anyone else come across this issue / have a solution?

---

<div class="post-metadata">

**Author:** ![petit\_rabbit](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@petit\_rabbit](https://forums.unrealengine.com/u/petit_rabbit)\
**Post date:** [April 21, 2023, 11:11pm UTC](https://forums.unrealengine.com/t/airpods-pro-make-game-crash/1134768/2 "2023-04-21T23:11:05Z")

</div>

I have managed to fix this issue by using the ANSI memory allocator (you can set the environment variable UE4\_FORCE\_MALLOC\_ANSI to 1). I guess there is a bug with the memory allocator UE5 uses on macOS.

---

<div class="post-metadata">

**Author:** ![IAmNotACrook1974](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@IAmNotACrook1974](https://forums.unrealengine.com/u/IAmNotACrook1974)\
**Post date:** [August 29, 2024, 3:09pm UTC](https://forums.unrealengine.com/t/airpods-pro-make-game-crash/1134768/6 "2024-08-29T15:09:22Z")

</div>

> you can set the environment variable UE4\_FORCE\_MALLOC\_ANSI to 1

Could you clarify how you did this? Is it possible to use this env var when launching games that are already packaged and distributed (on the Epic Games Launcher for example)?
