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 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:
Incident Identifier: 876C43B8-2C8D-4642-AB20-0C9E2CFF8221 Distributor ID: com.apple.TestFlight Hardware Model: iPhone16,1 Process: TestProject-IOS-Shipping [3656] Path: /private/var/containers/Bundle/Application/F79ACE32-8296-4C3A-AC4C-095110CBAE10/TestProject-IOS-Shipping.app/TestProject-IOS-Shipping Identifier: testproject Version: 1.0 (6) AppStoreTools: 16B39 AppVariant: 1:iPhone16,1:17.4 Beta: YES Code Type: ARM-64 (Native) Role: Foreground Parent Process: launchd [1] Coalition: testproject [1264] Date/Time: 2024-11-06 20:40:52.6103 +0400 Launch Time: 2024-11-06 20:40:44.0676 +0400 OS Version: iPhone OS 17.6.1 (21G93) Release Type: User Baseband Version: 1.70.02 Report Version: 104 Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Triggered by Thread: 36 Thread 0 name: Thread 0: 0 libsystem_kernel.dylib 0x00000001e53c96c8 mach_msg2_trap + 8 (:-1) 1 libsystem_kernel.dylib 0x00000001e53ccec8 mach_msg2_internal + 80 (mach_msg.c:201) 2 libsystem_kernel.dylib 0x00000001e53ccde0 mach_msg_overwrite + 436 (mach_msg.c:0) 3 libsystem_kernel.dylib 0x00000001e53ccc20 mach_msg + 24 (mach_msg.c:323) 4 CoreFoundation 0x000000019c744f5c __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2624) 5 CoreFoundation 0x000000019c744600 __CFRunLoopRun + 1208 (CFRunLoop.c:3007) 6 CoreFoundation 0x000000019c743cd8 CFRunLoopRunSpecific + 608 (CFRunLoop.c:3420) 7 GraphicsServices 0x00000001e11911a8 GSEventRunModal + 164 (GSEvent.c:2196) 8 UIKitCore 0x000000019ed7dae8 -[UIApplication _run] + 888 (UIApplication.m:3713) 9 UIKitCore 0x000000019ee31d98 UIApplicationMain + 340 (UIApplication.m:5303) 10 TestProject-IOS-Shipping 0x0000000105dcba00 main + 440 11 dyld 0x00000001bff1b154 start + 2356 (dyldMain.cpp:1298) Thread 1: 0 libsystem_pthread.dylib 0x00000001f91c10c4 start_wqthread + 0 (:-1) Thread 2: 0 libsystem_pthread.dylib 0x00000001f91c10c4 start_wqthread + 0 (:-1) Thread 3: 0 libsystem_pthread.dylib 0x00000001f91c10c4 start_wqthread + 0 (:-1) Thread 4: 0 libsystem_pthread.dylib 0x00000001f91c10c4 start_wqthread + 0 (:-1) Thread 5: 0 libsystem_pthread.dylib 0x00000001f91c10c4 start_wqthread + 0 (:-1) Thread 6 name: Thread 6: 0 libsystem_kernel.dylib 0x00000001e53c96c8 mach_msg2_trap + 8 (:-1) 1 libsystem_kernel.dylib 0x00000001e53ccec8 mach_msg2_internal + 80 (mach_msg.c:201) 2 libsystem_kernel.dylib 0x00000001e53ccde0 mach_msg_overwrite + 436 (mach_msg.c:0) 3 libsystem_kernel.dylib 0x00000001e53ccc20 mach_msg + 24 (mach_msg.c:323) 4 CoreFoundation 0x000000019c744f5c __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2624) 5 CoreFoundation 0x000000019c744600 __CFRunLoopRun + 1208 (CFRunLoop.c:3007) 6 CoreFoundation 0x000000019c743cd8 CFRunLoopRunSpecific + 608 (CFRunLoop.c:3420) 7 Foundation 0x000000019b664b5c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212 (NSRunLoop.m:373) 8 Foundation 0x000000019b6649ac -[NSRunLoop(NSRunLoop) runUntilDate:] + 64 (NSRunLoop.m:420) 9 UIKitCore 0x000000019ed9181c -[UIEventFetcher threadMain] + 420 (UIEventFetcher.m:1207) 10 Foundation 0x000000019b67b428 __NSThread__start__ + 732 (NSThread.m:991) 11 libsystem_pthread.dylib 0x00000001f91c606c _pthread_start + 136 (pthread.c:931) 12 libsystem_pthread.dylib 0x00000001f91c10d8 thread_start + 8 (:-1) Thread 7: 0 libsystem_kernel.dylib 0x00000001e53cf08c __psynch_cvwait + 8 (:-1) 1 libsystem_pthread.dylib 0x00000001f91c36e4 _pthread_cond_wait + 1228 (pthread_cond.c:862) 2 TestProject-IOS-Shipping 0x00000001027eabc8 FPThreadEvent::Wait(unsigned int, bool) + 276 3 TestProject-IOS-Shipping 0x00000001031fe064 FRenderCommandFence::Wait(bool) const + 1344 4 TestProject-IOS-Shipping 0x0000000105dca59c FEngineLoop::Tick() + 5508 5 TestProject-IOS-Shipping 0x0000000102c8cbf8 -[IOSAppDelegate MainAppThread:] + 2004 6 Foundation 0x000000019b67b428 __NSThread__start__ + 732 (NSThread.m:991) 7 libsystem_pthread.dylib 0x00000001f91c606c _pthread_start + 136 (pthread.c:931) 8 libsystem_pthread.dylib 0x00000001f91c10d8 thread_start + 8 (:-1) Thread 8 name: Thread 8: 0 libsystem_kernel.dylib 0x00000001e53cf08c __psynch_cvwait + 8 (:-1) 1 libsystem_pthread.dylib 0x00000001f91c36e4 _pthread_cond_wait + 1228 (pthread_cond.c:862) 2 TestProject-IOS-Shipping 0x00000001027eab44 FPThreadEvent::Wait(unsigned int, bool) + 144 3 TestProject-IOS-Shipping 0x000000010279a438 LowLevelTasks::Private::FWaitingQueue::CommitWait(LowLevelTasks::Private::FWaitEvent*, LowLevelTasks::Private::FOutOfWork&, int, int) + 432 4 TestProject-IOS-Shipping 0x0000000102799864 LowLevelTasks::FScheduler::WorkerMain(LowLevelTasks::Private::FWaitEvent*, LowLevelTasks::Private::TLocalQueueRegistry<1024u>::TLocalQueue*, unsigned int, bool) + 224 5 TestProject-IOS-Shipping 0x000000010284c094 FThreadImpl::Run() + 48 6 TestProject-IOS-Shipping 0x000000010281f2d0 FRunnableThreadPThread::Run() + 112 7 TestProject-IOS-Shipping 0x00000001027fb1cc FRunnableThreadPThread::_ThreadProc(void*) + 76 8 libsystem_pthread.dylib 0x00000001f91c606c _pthread_start + 136 (pthread.c:931) 9 libsystem_pthread.dylib 0x00000001f91c10d8 thread_start + 8 (:-1) Thread 9 name: Thread 9: 0 libsystem_kernel.dylib 0x00000001e53cf08c __psynch_cvwait + 8 (:-1) 1 libsystem_pthread.dylib 0x00000001f91c36e4 _pthread_cond_wait + 1228 (pthread_cond.c:862) 2 TestProject-IOS-Shipping 0x00000001027eab44 FPThreadEvent::Wait(unsigned int, bool) + 144 3 TestProject-IOS-Shipping 0x000000010279a438 LowLevelTasks::Private::FWaitingQueue::CommitWait(LowLevelTasks::Private::FWaitEvent*, LowLevelTasks::Private::FOutOfWork&, int, int) + 432 4 TestProject-IOS-Shipping 0x0000000102799864 LowLevelTasks::FScheduler::WorkerMain(LowLevelTasks::Private::FWaitEvent*, LowLevelTasks::Private::TLocalQueueRegistry<1024u>::TLocalQueue*, unsigned int, bool) + 224 5 TestProject-IOS-Shipping 0x000000010284c094 FThreadImpl::Run() + 48 6 TestProject-IOS-Shipping 0x000000010281f2d0 FRunnableThreadPThread::Run() + 112 7 TestProject-IOS-Shipping 0x00000001027fb1cc FRunnableThreadPThread::_ThreadProc(void*) + 76 8 libsystem_pthread.dylib 0x00000001f91c606c _pthread_start + 136 (pthread.c:931) 9 libsystem_pthread.dylib 0x00000001f91c10d8 thread_start + 8 (:-1) Thread 10 name: Thread 10: 0 libsystem_kernel.dylib 0x00000001e53cf08c __psynch_cvwait + 8 (:-1) 1 libsystem_pthread.dylib 0x00000001f91c36e4 _pthread_cond_wait + 1228 (pthread_cond.c:862) 2 TestProject-IOS-Shipping 0x00000001027eab44 FPThreadEvent::Wait(unsigned int, bool) + 144 3 TestProject-IOS-Shipping 0x000000010279a438 LowLevelTasks::Private::FWaitingQueue::CommitWait(LowLevelTasks::Private::FWaitEvent*, LowLevelTasks::Private::FOutOfWork&, int, int) + 432 4 TestProject-IOS-Shipping 0x0000000102799864 LowLevelTasks::FScheduler::WorkerMain(LowLevelTasks::Private::FWaitEvent*, LowLevelTasks::Private::TLocalQueueRegistry<1024u>::TLocalQueue*, unsigned int, bool) + 224 5 TestProject-IOS-Shipping 0x000000010284c094 FThreadImpl::Run() + 48 6 TestProject-IOS-Shipping 0x000000010281f2d0 FRunnableThreadPThread::Run() + 112 7 TestProject-IOS-Shipping 0x00000001027fb1cc FRunnableThreadPThread::_ThreadProc(void*) + 76 8 libsystem_pthread.dylib 0x00000001f91c606c _pthread_start + 136 (pthread.c:931) 9 libsystem_pthread.dylib 0x00000001f91c10d8 thread_start + 8 (:-1) Thread 11 name: Thread 11: 0 libsystem_kernel.dylib 0x00000001e53cf08c __psynch_cvwait + 8 (:-1) 1 libsystem_pthread.dylib 0x00000001f91c36e4 _pthread_cond_wait + 1228 (pthread_cond.c:862) 2 TestProject-IOS-Shipping 0x00000001027eab44 FPThreadEvent::Wait(unsigned int, bool) + 144 3 TestProject-IOS-Shipping 0x000000010279a438 LowLevelTasks::Private::FWaitingQueue::CommitWait(LowLevelTasks::Private::FWaitEvent*, LowLevelTasks::Private::FOutOfWork&, int, int) + 432 4 TestProject-IOS-Shipping 0x0000000102799864 LowLevelTasks::FScheduler::WorkerMain(LowLevelTasks::Private::FWaitEvent*, LowLevelTasks::Private::TLocalQueueRegistry<1024u>::TLocalQueue*, unsigned int, bool) + 224 5 TestProject-IOS-Shipping 0x000000010284c094 FThreadImpl::Run() + 48 6 TestProject-IOS-Shipping 0x000000010281f2d0 FRunnableThreadPThread::Run() + 112 7 TestProject-IOS-Shipping 0x00000001027fb1cc FRunnableThreadPThread::_ThreadProc(void*) + 76 8 libsystem_pthread.dylib 0x00000001f91c606c _pthread_start + 136 (pthread.c:931) 9 libsystem_pthread.dylib 0x00000001f91c10d8 thread_start + 8 (:-1) Thread 12 name: Thread 12: 0 libsystem_kernel.dylib 0x00000001e53cf08c __psynch_cvwait + 8 (:-1) 1 libsystem_pthread.dylib 0x00000001f91c36e4 _pthread_cond_wait + 1228 (pthread_cond.c:862) 2 TestProject-IOS-Shipping 0x00000001027eab44 FPThreadEvent::Wait(unsigned int, bool) + 144 3 TestProject-IOS-Shipping 0x00000001028241c4 FQueuedThread::Run() + 60 4 TestProject-IOS-Shipping 0x000000010281f2d0 FRunnableThreadPThread::Run() + 112 5 TestProject-IOS-Shipping 0x00000001027fb1cc FRunnableThreadPThread::_ThreadProc(void*) + 76 6 libsystem_pthread.dylib 0x00000001f91c606c _pthread_start + 136 (pthread.c:931) 7 libsystem_pthread.dylib 0x00000001f91c10d8 thread_start + 8 (:-1) Thread 13 name: Thread 13: 0 libsystem_kernel.dylib 0x00000001e53cf08c __psynch_cvwait + 8 (:-1) 1 libsystem_pthread.dylib 0x00000001f91c36e4 _pthread_cond_wait + 1228 (pthread_cond.c:862) 2 TestProject-IOS-Shipping 0x00000001027eab44 FPThreadEvent::Wait(unsigned int, bool) + 144 3 TestProject-IOS-Shipping 0x00000001028241c4 FQueuedThread::Run() + 60 4 TestProject-IOS-Shipping 0x000000010281f2d0 FRunnableThreadPThread::Run() + 112 5 TestProject-IOS-Shipping 0x00000001027fb1cc FRunnableThreadPThread::_ThreadProc(void*) + 76 6 libsystem_pthread.dylib 0x00000001f91c606c _pthread_start + 136 (pthread.c:931) 7 libsystem_pthread.dylib 0x00000001f91c10d8 thread_start + 8 (:-1) Thread 14 name: Thread 14: 0 libsystem_kernel.dylib 0x00000001e53cf08c __psynch_cvwait + 8 (:-1) 1 libsystem_pthread.dylib 0x00000001f91c36e4 _pthread_cond_wait + 1228 (pthread_cond.c:862) 2 libc++.1.dylib 0x00000001acb31598 std::__1::condition_variable::__do_timed_wait(std::__1::unique_lock&, std::__1::chrono::time_point const&, TFunctionRef const&, UE::FMonotonicTimePoint) + 848 5 TestProject-IOS-Shipping 0x0000000102a783e0 UE::FManualResetEvent::WaitFor(UE::FMonotonicTimeSpan) + 232 6 TestProject-IOS-Shipping 0x000000010385eb24 UE::EventLoop::TEventLoop::RunOnce(FTimespan) + 212 7 TestProject-IOS-Shipping 0x000000010385ea40 UE::EventLoop::TEventLoop::Run() + 36 8 TestProject-IOS-Shipping 0x000000010384f3fc FEventLoopHttpThread::Run() + 32 9 TestProject-IOS-Shipping 0x000000010281f2d0 FRunnableThreadPThread::Run() + 112 10 TestProject-IOS-Shipping 0x00000001027fb1cc FRunnableThreadPThread::_ThreadProc(void*) + 76 11 libsystem_pthread.dylib 0x00000001f91c606c _pthread_start + 136 (pthread.c:931) 12 libsystem_pthread.dylib 0x00000001f91c10d8 thread_start + 8 (:-1) Thread 15 name: Thread 15: 0 libsystem_kernel.dylib 0x00000001e53cf08c __psynch_cvwait + 8 (:-1) 1 libsystem_pthread.dylib 0x00000001f91c36e4 _pthread_cond_wait + 1228 (pthread_cond.c:862) 2 TestProject-IOS-Shipping 0x00000001027eab44 FPThreadEvent::Wait(unsigned int, bool) + 144 3 TestProject-IOS-Shipping 0x00000001028241c4 FQueuedThread::Run() + 60 4 TestProject-IOS-Shipping 0x000000010281f2d0 FRunnableThreadPThread::Run() + 112 5 TestProject-IOS-Shipping 0x00000001027fb1cc FRunnableThreadPThread::_ThreadProc(void*) + 76 6 libsystem_pthread.dylib 0x00000001f91c606c _pthread_start + 136 (pthread.c:931) 7 libsystem_pthread.dylib 0x00000001f91c10d8 thread_start + 8 (:-1) Thread 16 name: Thread 16: 0 libsystem_kernel.dylib 0x00000001e53cf08c __psynch_cvwait + 8 (:-1) 1 libsystem_pthread.dylib 0x00000001f91c36e4 _pthread_cond_wait + 1228 (pthread_cond.c:862) 2 TestProject-IOS-Shipping 0x00000001027eab44 FPThreadEvent::Wait(unsigned int, bool) + 144 3 TestProject-IOS-Shipping 0x00000001028241c4 FQueuedThread::Run() + 60 4 TestProject-IOS-Shipping 0x000000010281f2d0 FRunnableThreadPThread::Run() + 112 5 TestProject-IOS-Shipping 0x00000001027fb1cc FRunnableThreadPThread::_ThreadProc(void*) + 76 6 libsystem_pthread.dylib 0x00000001f91c606c _pthread_start + 136 (pthread.c:931) 7 libsystem_pthread.dylib 0x00000001f91c10d8 thread_start + 8 (:-1) Thread 17 name: Thread 17: 0 libsystem_kernel.dylib 0x00000001e53cf08c __psynch_cvwait + 8 (:-1) 1 libsystem_pthread.dylib 0x00000001f91c36e4 _pthread_cond_wait + 1228 (pthread_cond.c:862) 2 TestProject-IOS-Shipping 0x00000001027eab44 FPThreadEvent::Wait(unsigned int, bool) + 144 3 TestProject-IOS-Shipping 0x00000001028241c4 FQueuedThread::Run() + 60 4 TestProject-IOS-Shipping 0x000000010281f2d0 FRunnableThreadPThread::Run() + 112 5 TestProject-IOS-Shipping 0x00000001027fb1cc FRunnableThreadPThread::_ThreadProc(void*) + 76 6 libsystem_pthread.dylib 0x00000001f91c606c _pthread_start + 136 (pthread.c:931) 7 libsystem_pthread.dylib 0x00000001f91c10d8 thread_start + 8 (:-1) Thread 18 name: Thread 18: 0 libsystem_kernel.dylib 0x00000001e53cf08c __psynch_cvwait + 8 (:-1) 1 libsystem_pthread.dylib 0x00000001f91c36e4 _pthread_cond_wait + 1228 (pthread_cond.c:862) 2 TestProject-IOS-Shipping 0x00000001027eab44 FPThreadEvent::Wait(unsigned int, bool) + 144 3 TestProject-IOS-Shipping 0x00000001028241c4 FQueuedThread::Run() + 60 4 TestProject-IOS-Shipping 0x000000010281f2d0 FRunnableThreadPThread::Run() + 112 5 TestProject-IOS-Shipping 0x00000001027fb1cc FRunnableThreadPThread::_ThreadProc(void*) + 76 6 libsystem_pthread.dylib 0x00000001f91c606c _pthread_start + 136 (pthread.c:931) 7 libsystem_pthread.dylib 0x00000001f91c10d8 thread_start + 8 (:-1) Thread 19: 0 libsystem_kernel.dylib 0x00000001e53c96c8 mach_msg2_trap + 8 (:-1) 1 libsystem_kernel.dylib 0x00000001e53ccec8 mach_msg2_internal + 80 (mach_msg.c:201) 2 libsystem_kernel.dylib 0x00000001e53ccde0 mach_msg_overwrite + 436 (mach_msg.c:0) 3 libsystem_kernel.dylib 0x00000001e53ccc20 mach_msg + 24 (mach_msg.c:323) 4 CoreFoundation 0x000000019c744f5c __CFRunLoopServiceMachPort + 160 (CFRunLoop.c:2624) 5 CoreFoundation 0x000000019c744600 __CFRunLoopRun + 1208 (CFRunLoop.c:3007) 6 CoreFoundation 0x000000019c743cd8 CFRunLoopRunSpecific + 608 (CFRunLoop.c:3420) 7 Foundation 0x000000019b664b5c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212 (NSRunLoop.m:373) 8 Foundation 0x000000019b664a30 -[NSRunLoop(NSRunLoop) run] + 64 (NSRunLoop.m:398) 9 Foundation 0x000000019b67b428 __NSThread__start__ + 732 (NSThread.m:991) 10 libsystem_pthread.dylib 0x00000001f91c606c _pthread_start + 136 (pthread.c:931) 11 libsystem_pthread.dylib 0x00000001f91c10d8 thread_start + 8 (:-1) Thread 20 name: Thread 20: 0 TestProject-IOS-Shipping 0x00000001027a8a78 FLockFreePointerFIFOBase::Pop() + 364 1 TestProject-IOS-Shipping 0x00000001027a8ca4 FStallingTaskQueue::Pop(int, bool) + 72 2 TestProject-IOS-Shipping 0x00000001027a8c2c FNamedTaskThread::ProcessTasksNamedThread(int, bool) + 428 3 TestProject-IOS-Shipping 0x00000001027a85a4 FNamedTaskThread::ProcessTasksUntilQuit(int) + 132 4 TestProject-IOS-Shipping 0x00000001031fbb00 RenderingThreadMain(FEvent*) + 408 5 TestProject-IOS-Shipping 0x00000001032090b4 FRenderingThread::Run() + 60 6 TestProject-IOS-Shipping 0x000000010281f2d0 FRunnableThreadPThread::Run() + 112 7 TestProject-IOS-Shipping 0x00000001027fb1cc FRunnableThreadPThread::_ThreadProc(void*) + 76 8 libsystem_pthread.dylib 0x00000001f91c606c _pthread_start + 136 (pthread.c:931) 9 libsystem_pthread.dylib 0x00000001f91c10d8 thread_start + 8 (:-1) Thread 21 name: Thread 21: 0 libsystem_kernel.dylib 0x00000001e53cf2ac __semwait_signal + 8 (:-1) 1 libsystem_c.dylib 0x00000001a46745f0 nanosleep + 220 (nanosleep.c:104) 2 libsystem_c.dylib 0x00000001a4674508 usleep + 68 (usleep.c:52) 3 TestProject-IOS-Shipping 0x00000001027ea8f8 FGenericPlatformProcess::Sleep(float) + 68 4 TestProject-IOS-Shipping 0x000000010320b724 FRenderingThreadTickHeartbeat::Run() + 236 5 TestProject-IOS-Shipping 0x000000010281f2d0 FRunnableThreadPThread::Run() + 112 6 TestProject-IOS-Shipping 0x00000001027fb1cc FRunnableThreadPThread::_ThreadProc(void*) + 76 7 libsystem_pthread.dylib 0x00000001f91c606c _pthread_start + 136 (pthread.c:931) 8 libsystem_pthread.dylib 0x00000001f91c10d8 thread_start + 8 (:-1) Thread 22 name: Thread 22: 0 libsystem_kernel.dylib 0x00000001e53cf08c __psynch_cvwait + 8 (:-1) 1 libsystem_pthread.dylib 0x00000001f91c36e4 _pthread_cond_wait + 1228 (pthread_cond.c:862) 2 TestProject-IOS-Shipping 0x00000001027eab44 FPThreadEvent::Wait(unsigned int, bool) + 144 3 TestProject-IOS-Shipping 0x00000001028c33a8 FIoDispatcherImpl::Run() + 56 4 TestProject-IOS-Shipping 0x000000010281f2d0 FRunnableThreadPThread::Run() + 112 5 TestProject-IOS-Shipping 0x00000001027fb1cc FRunnableThreadPThread::_ThreadProc(void*) + 76 6 libsystem_pthread.dylib 0x00000001f91c606c _pthread_start + 136 (pthread.c:931) 7 libsystem_pthread.dylib 0x00000001f91c10d8 thread_start + 8 (:-1) Thread 23 name: Thread 23: 0 libsystem_kernel.dylib 0x00000001e53cf08c __psynch_cvwait + 8 (:-1) 1 libsystem_pthread.dylib 0x00000001f91c36e4 _pthread_cond_wait + 1228 (pthread_cond.c:862) 2 TestProject-IOS-Shipping 0x00000001027eab44 FPThreadEvent::Wait(unsigned int, bool) + 144 3 TestProject-IOS-Shipping 0x0000000103b8ba0c FMediaTicker::Run() + 80 4 TestProject-IOS-Shipping 0x000000010281f2d0 FRunnableThreadPThread::Run() + 112 5 TestProject-IOS-Shipping 0x00000001027fb1cc FRunnableThreadPThread::_ThreadProc(void*) + 76 6 libsystem_pthread.dylib 0x00000001f91c606c _pthread_start + 136 (pthread.c:931) 7 libsystem_pthread.dylib 0x00000001f91c10d8 thread_start + 8 (:-1) Thread 24 name: Thread 24: 0 libsystem_kernel.dylib 0x00000001e53cf08c __psynch_cvwait + 8 (:-1) 1 libsystem_pthread.dylib 0x00000001f91c36e4 _pthread_cond_wait + 1228 (pthread_cond.c:862) 2 TestProject-IOS-Shipping 0x00000001027eabc8 FPThreadEvent::Wait(unsigned int, bool) + 276 3 TestProject-IOS-Shipping 0x0000000102a420ec FAsyncLoadingThread::TickAsyncThread(bool, bool, double, bool&, FFlushRequest&) + 932 4 TestProject-IOS-Shipping 0x0000000102a437d4 FAsyncLoadingThread::Run() + 312 5 TestProject-IOS-Shipping 0x000000010281f2d0 FRunnableThreadPThread::Run() + 112 6 TestProject-IOS-Shipping 0x00000001027fb1cc FRunnableThreadPThread::_ThreadProc(void*) + 76 7 libsystem_pthread.dylib 0x00000001f91c606c _pthread_start + 136 (pthread.c:931) 8 libsystem_pthread.dylib 0x00000001f91c10d8 thread_start + 8 (:-1) Thread 25: 0 libsystem_kernel.dylib 0x00000001e53cf2ac __semwait_signal + 8 (:-1) 1 libsystem_c.dylib 0x00000001a46745f0 nanosleep + 220 (nanosleep.c:104) 2 libsystem_c.dylib 0x00000001a46d172c sleep + 52 (sleep.c:62) 3 Sentry 0x000000010a574c40 monitorCachedData + 660 4 libsystem_pthread.dylib 0x00000001f91c606c _pthread_start + 136 (pthread.c:931) 5 libsystem_pthread.dylib 0x00000001f91c10d8 thread_start + 8 (:-1) Thread 26 name: Thread 26: 0 libsystem_kernel.dylib 0x00000001e53c96c8 mach_msg2_trap + 8 (:-1) 1 libsystem_kernel.dylib 0x00000001e53ccec8 mach_msg2_internal + 80 (mach_msg.c:201) 2 libsystem_kernel.dylib 0x00000001e53cac38 thread_suspend + 112 (thread_actUser.c:1036) 3 Sentry 0x000000010a55b918 handleExceptions + 128 4 libsystem_pthread.dylib 0x00000001f91c606c _pthread_start + 136 (pthread.c:931) 5 libsystem_pthread.dylib 0x00000001f91c10d8 thread_start + 8 (:-1) Thread 27 name: Thread 27: 0 libsystem_kernel.dylib 0x00000001e53c96c8 mach_msg2_trap + 8 (:-1) 1 libsystem_kernel.dylib 0x00000001e53ccec8 mach_msg2_internal + 80 (mach_msg.c:201) 2 libsystem_kernel.dylib 0x00000001e53ccde0 mach_msg_overwrite + 436 (mach_msg.c:0) 3 libsystem_kernel.dylib 0x00000001e53ccc20 mach_msg + 24 (mach_msg.c:323) 4 Sentry 0x000000010a55b944 handleExceptions + 172 5 libsystem_pthread.dylib 0x00000001f91c606c _pthread_start + 136 (pthread.c:931) 6 libsystem_pthread.dylib 0x00000001f91c10d8 thread_start + 8 (:-1) Thread 28 name: Thread 28: 0 libsystem_kernel.dylib 0x00000001e53cf2ac __semwait_signal + 8 (:-1) 1 libsystem_c.dylib 0x00000001a46745f0 nanosleep + 220 (nanosleep.c:104) 2 Foundation 0x000000019b7b72e4 +[NSThread sleepForTimeInterval:] + 160 (NSThread.m:527) 3 Sentry 0x000000010a53c4ac -[SentryANRTracker detectANRs] + 556 4 Foundation 0x000000019b67b428 __NSThread__start__ + 732 (NSThread.m:991) 5 libsystem_pthread.dylib 0x00000001f91c606c _pthread_start + 136 (pthread.c:931) 6 libsystem_pthread.dylib 0x00000001f91c10d8 thread_start + 8 (:-1) Thread 29 name: Thread 29: 0 libsystem_kernel.dylib 0x00000001e53c9644 semaphore_wait_trap + 8 (:-1) 1 caulk 0x000000020e56b724 caulk::semaphore::timed_wait(double) + 212 (semaphore.cpp:98) 2 caulk 0x000000020e56b5e4 caulk::concurrent::details::worker_thread::run() + 36 (messenger.cpp:234) 3 caulk 0x000000020e56b52c void* caulk::thread_proxy>>(void*) + 96 (thread.h:189) 4 libsystem_pthread.dylib 0x00000001f91c606c _pthread_start + 136 (pthread.c:931) 5 libsystem_pthread.dylib 0x00000001f91c10d8 thread_start + 8 (:-1) Thread 30 name: Thread 30: 0 libsystem_kernel.dylib 0x00000001e53c9644 semaphore_wait_trap + 8 (:-1) 1 caulk 0x000000020e56b724 caulk::semaphore::timed_wait(double) + 212 (semaphore.cpp:98) 2 caulk 0x000000020e56b5e4 caulk::concurrent::details::worker_thread::run() + 36 (messenger.cpp:234) 3 caulk 0x000000020e56b52c void* caulk::thread_proxy>>(void*) + 96 (thread.h:189) 4 libsystem_pthread.dylib 0x00000001f91c606c _pthread_start + 136 (pthread.c:931) 5 libsystem_pthread.dylib 0x00000001f91c10d8 thread_start + 8 (:-1) Thread 31 name: Thread 31: 0 libsystem_kernel.dylib 0x00000001e53cf08c __psynch_cvwait + 8 (:-1) 1 libsystem_pthread.dylib 0x00000001f91c36e4 _pthread_cond_wait + 1228 (pthread_cond.c:862) 2 TestProject-IOS-Shipping 0x00000001027eabc8 FPThreadEvent::Wait(unsigned int, bool) + 276 3 TestProject-IOS-Shipping 0x0000000103a1fc7c Audio::IAudioMixerPlatformInterface::RunInternal() + 428 4 TestProject-IOS-Shipping 0x0000000103a1fcdc Audio::IAudioMixerPlatformInterface::Run() + 36 5 TestProject-IOS-Shipping 0x000000010281f2d0 FRunnableThreadPThread::Run() + 112 6 TestProject-IOS-Shipping 0x00000001027fb1cc FRunnableThreadPThread::_ThreadProc(void*) + 76 7 libsystem_pthread.dylib 0x00000001f91c606c _pthread_start + 136 (pthread.c:931) 8 libsystem_pthread.dylib 0x00000001f91c10d8 thread_start + 8 (:-1) Thread 32 name: Thread 32: 0 libsystem_kernel.dylib 0x00000001e53c96c8 mach_msg2_trap + 8 (:-1) 1 libsystem_kernel.dylib 0x00000001e53ccec8 mach_msg2_internal + 80 (mach_msg.c:201) 2 libsystem_kernel.dylib 0x00000001e53ccde0 mach_msg_overwrite + 436 (mach_msg.c:0) 3 libsystem_kernel.dylib 0x00000001e53ccc20 mach_msg + 24 (mach_msg.c:323) 4 libEmbeddedSystemAUs.dylib 0x0000000217d968b8 void* caulk::thread_proxy, std::__1::allocator> const>::~shared_ptr[abi:ue170006]() + 48 (shared_ptr.h:773) 9 TestProject-IOS-Shipping 0x000000010656aec4 std::__1::shared_ptr, std::__1::allocator> const>::~shared_ptr[abi:ue170006]() + 48 (shared_ptr.h:771) 10 TestProject-IOS-Shipping 0x000000010656aec4 std::__1::__tuple_leaf<1ul, std::__1::shared_ptr, std::__1::allocator> const>, false>::~__tuple_leaf() + 48 (tuple:305) 11 TestProject-IOS-Shipping 0x000000010656aec4 std::__1::__tuple_impl, sio::client_impl>*, std::__1::shared_ptr, sio::client_impl>*, std::__1::shared_ptr>*, std::__1::shared_ptr, std::__1::allocator>*, std::__1::shared_ptr, std::__1::allocator>::*)(std::__1::shared_ptr, std::__1::alloc... + 48 (bind.h:264) 16 TestProject-IOS-Shipping 0x000000010656aec4 std::__1::__bind>::*)(std::__1::shared_ptr, std::__1::alloc... + 48 (bind.h:264) 17 TestProject-IOS-Shipping 0x000000010656aec4 asio::detail::completion_handler>::*)(std::__1::shared_ptr::run() + 44 (endpoint.hpp:642) 23 TestProject-IOS-Shipping 0x00000001064d75e8 sio::client_impl>::run_loop() + 28 (sio_client_impl.cpp:260) 24 TestProject-IOS-Shipping 0x00000001065290d8 decltype(*std::declval>*&>().*std::declval>::*)(), std::__1::tuple>::*)(), std::__1::tuple>::*)(), sio::client_impl>, std::__1::__bind>, std::__1::__bind(asio::detail::conditionally_enabled_mutex::scoped_lock&) + 24 (posix_event.hpp:105) 3 TestProject-IOS-Shipping 0x00000001064e1c74 asio::detail::conditionally_enabled_event::wait(asio::detail::conditionally_enabled_mutex::scoped_lock&) + 24 (conditionally_enabled_event.hpp:88) 4 TestProject-IOS-Shipping 0x00000001064e1c74 asio::detail::scheduler::do_run_one(asio::detail::conditionally_enabled_mutex::scoped_lock&, asio::detail::scheduler_thread_info&, std::__1::error_code const&) + 460 (scheduler.ipp:408) 5 TestProject-IOS-Shipping 0x00000001064e1988 asio::detail::scheduler::run(std::__1::error_code&) + 188 (scheduler.ipp:153) 6 TestProject-IOS-Shipping 0x00000001065006a8 asio::io_context::run() + 24 (io_context.ipp:61) 7 TestProject-IOS-Shipping 0x00000001065006a8 asio::detail::resolver_service_base::work_io_context_runner::operator()() + 44 (resolver_service_base.ipp:31) 8 TestProject-IOS-Shipping 0x0000000106500628 asio_detail_posix_thread_function + 28 (posix_thread.ipp:73) 9 libsystem_pthread.dylib 0x00000001f91c606c _pthread_start + 136 (pthread.c:931) 10 libsystem_pthread.dylib 0x00000001f91c10d8 thread_start + 8 (:-1) Thread 36 crashed with ARM Thread State (64-bit): x0: 0x0000000000000000 x1: 0x0000000000000000 x2: 0x0000000000000000 x3: 0x0000000000000000 x4: 0x0000000000000073 x5: 0x000000000000002e x6: 0x0000000000000001 x7: 0x0000000000000000 x8: 0x32c62771f57f66c7 x9: 0x32c627709a7a56c7 x10: 0x000000000000000a x11: 0x0000000000000000 x12: 0x0000000000000033 x13: 0x00000000000007fd x14: 0x000000008dc0982b x15: 0x000000000000002b x16: 0x0000000000000148 x17: 0x000000016f053000 x18: 0x0000000000000000 x19: 0x0000000000000006 x20: 0x0000000000002007 x21: 0x000000016f0530e0 x22: 0x00000001ac9408ed x23: 0x000000016f052d20 x24: 0x0000000000000000 x25: 0x0000000000000000 x26: 0x000000016da9bbe7 x27: 0x000000016f053000 x28: 0x0000000000000001 fp: 0x000000016f052670 lr: 0x00000001f91c7c0c sp: 0x000000016f052650 pc: 0x00000001e53d42ec cpsr: 0x40001000 esr: 0x56000080 Address size fault Binary Images: 0x102364000 - 0x1089a3fff TestProject-IOS-Shipping arm64 <65082fac4de93ed7a2a3ce7272631089> /private/var/containers/Bundle/Application/F79ACE32-8296-4C3A-AC4C-095110CBAE10/TestProject-IOS-Shipping.app/TestProject-IOS-Shipping 0x10a218000 - 0x10a223fff libobjc-trampolines.dylib arm64e /private/preboot/Cryptexes/OS/usr/lib/libobjc-trampolines.dylib 0x10a284000 - 0x10a297fff GAXClient arm64e <71eba5c0e56c3a33ba97ba301c16238d> /System/Library/AccessibilityBundles/GAXClient.bundle/GAXClient 0x10a518000 - 0x10a62ffff Sentry arm64 <48d42fcb078e35ea8fa5a4a0f00f3a2c> /private/var/containers/Bundle/Application/F79ACE32-8296-4C3A-AC4C-095110CBAE10/TestProject-IOS-Shipping.app/Frameworks/Sentry.framework/Sentry 0x10aac4000 - 0x10ac6bfff DTDAnalyticsUnreal arm64 /private/var/containers/Bundle/Application/F79ACE32-8296-4C3A-AC4C-095110CBAE10/TestProject-IOS-Shipping.app/Frameworks/DTDAnalyticsUnreal.framework/DTDAnalyticsUnreal 0x19b59d000 - 0x19c112fff Foundation arm64e /System/Library/Frameworks/Foundation.framework/Foundation 0x19c6f1000 - 0x19cc1efff CoreFoundation arm64e <76a3b1983c09323e83590d4978e156f5> /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation 0x19d827000 - 0x19dc03fff CFNetwork arm64e <371394cd79f23216acb0a159c09c668d> /System/Library/Frameworks/CFNetwork.framework/CFNetwork 0x19e973000 - 0x1a0494fff UIKitCore arm64e <9da0d27355063712b73de0149d74c13c> /System/Library/PrivateFrameworks/UIKitCore.framework/UIKitCore 0x1a465e000 - 0x1a46dbff3 libsystem_c.dylib arm64e <7135c2c8ba5836368b46a9e6226ead45> /usr/lib/system/libsystem_c.dylib 0x1a9449000 - 0x1a9917fff CoreMotion arm64e <5d6e7429116638b3807bdfad246f9132> /System/Library/Frameworks/CoreMotion.framework/CoreMotion 0x1ac90e000 - 0x1ac943fff libsystem_malloc.dylib arm64e <73a554d086563bd0b09692186b021f4a> /usr/lib/system/libsystem_malloc.dylib 0x1acb24000 - 0x1acbadfff libc++.1.dylib arm64e /usr/lib/libc++.1.dylib 0x1bfede000 - 0x1bff6b937 dyld arm64e <52039c944da13638bd52020a0b5fa399> /usr/lib/dyld 0x1e1190000 - 0x1e1198fff GraphicsServices arm64e <3ebbd576e7d83f69bcb5b9810ddcc90e> /System/Library/PrivateFrameworks/GraphicsServices.framework/GraphicsServices 0x1e53c8000 - 0x1e5401fef libsystem_kernel.dylib arm64e <21ee5290d1193c31b948431865a67738> /usr/lib/system/libsystem_kernel.dylib 0x1f91c0000 - 0x1f91ccff3 libsystem_pthread.dylib arm64e /usr/lib/system/libsystem_pthread.dylib 0x20e563000 - 0x20e58cfff caulk arm64e /System/Library/PrivateFrameworks/caulk.framework/caulk 0x217d67000 - 0x217e77ff7 libEmbeddedSystemAUs.dylib arm64e /System/Library/Frameworks/AudioToolbox.framework/libEmbeddedSystemAUs.dylib EOF
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.
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?