# SocketIO crash on iOS

**URL:** <https://forums.unrealengine.com/t/socketio-crash-on-ios/2123954>\
**Category:** Programming & Scripting\
**Tags:** socket, unreal-engine, crash, iOS, CPP\
**Created:** [November 15, 2024, 5:50am UTC](https://forums.unrealengine.com/t/socketio-crash-on-ios/2123954 "2024-11-15T05:50:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MenacingDwarf](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@MenacingDwarf](https://forums.unrealengine.com/u/MenacingDwarf)\
**Post date:** [November 15, 2024, 5:50am UTC](https://forums.unrealengine.com/t/socketio-crash-on-ios/2123954/1 "2024-11-15T05:50:34Z")

</div>

I’m trying to build my project using Unreal Engine 5.4 for iOS. I use SocketIO to connect to the backend. The plugin [SocketIOClient](https://github.com/getnamo/SocketIOClient-Unreal,) version 2.8.0, is used for this.

When trying to connect to the socket, a crash occurs. This only happens on iOS, only in Distribution builds, and only on Unreal 5.4. There are no problems on Unreal 5.2. Callstack:  
[crashlog.crash](https://forums.unrealengine.com/uploads/short-url/x91G8gWdycB7GsLafxZfh3xPaY0.crash) (40.2 KB)

The callstack may be slightly different, but the problem is always when allocating or deallocating memory. I suspect that this may be a race condition and is related to some peculiarities of working with memory on iOS. There are also several similar issues in the plugin repository, for example [this one](https://github.com/getnamo/SocketIOClient-Unreal/issues/402).

I tried using other versions of plugin, other versions of xcode, tried to build socket io using both c++20 and c++17, nothing helps. Does anyone know what can be done about this?
