# Unreal Engine Crashing on macOS When Applying Fullscreen to a Monitor

**URL:** <https://forums.unrealengine.com/t/unreal-engine-crashing-on-macos-when-applying-fullscreen-to-a-monitor/2051234>\
**Category:** C++\
**Tags:** unreal-engine, crash, CPP, question\
**Created:** [October 3, 2024, 11:41am UTC](https://forums.unrealengine.com/t/unreal-engine-crashing-on-macos-when-applying-fullscreen-to-a-monitor/2051234 "2024-10-03T11:41:44Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![Zxgnj](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Zxgnj](https://forums.unrealengine.com/u/Zxgnj)\
**Post date:** [January 25, 2025, 6:29am UTC](https://forums.unrealengine.com/t/unreal-engine-crashing-on-macos-when-applying-fullscreen-to-a-monitor/2051234/7 "2025-01-25T06:29:07Z")

</div>

From:

> [@Mac UE5: Window resize in shipping build freezes game](https://forums.unrealengine.com/t/mac-ue5-window-resize-in-shipping-build-freezes-game/1617629):
>
> Hi, I am currently porting my UE 4.27 game to UE 5.2. I have most issues worked out, but I stumbled on something new when building a shipping version for Mac: when the game window is resized, when switching from fullscreen to windowed, or when the resolution is changed, the game freezes. The freeze can last for several seconds or even longer, effectively crashing the game. Trying to isolate the problem, I have determined: The problem only occurs on Mac It only happens in Shipping builds, pack…

K so good news: I found a solution for this using UE5.3.2, however it requires building it from source. The solution to this bug looks like you would have to apply the bug solution ([this git commit](https://github.com/EpicGames/UnrealEngine/commit/a0d2597db31cc9a996be2907564cb4aee3a31962)) to UE5.3.2’s source code by cloning and building it from GitHub and changing the code in the MetalViewport.cpp file as indicated through the changes in these two photos below (\*Note: The line numbers shown here aren’t one-to-one, so just try to compare the code to locate where to make these changes):

 ![Capture d’écran 2025-01-24 à 21.53.47](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/f/28f394c78507416783bb23e0f6644edf51c2a34d.png)  
 ![Capture d’écran 2025-01-23 à 23.27.02](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/2/c/62c8afc1c594c3005dddde2481c87e7808dbc654.png)

That said, this fix may be unattainable as I write this (Jan 2025), due to the awkwardness with building UE5 from source with Xcode 16.2, but hopefully this helps anyways.

Another solution would be to upgrade to UE5.5 through the Epic Games installer, however all things considered it seems that UE5.3.2 is the most stable release (for my project at least).

**So TL;DR** : unless we get a patch from Epic Games to UE5.3.2 that directly resolves this bug (i.e. UE5.3.3[?]), it looks like modifying UE5 from the source code is the best solution.

Hope this helps 😅

---

_[View the full topic](https://forums.unrealengine.com/t/unreal-engine-crashing-on-macos-when-applying-fullscreen-to-a-monitor/2051234)._
