Description

From [Link Removed], licensee reports

We believe that querying the UIInterfaceOrientation via UIApplication on the game thread is the issue here. We have made changes to IOSInputInterface.cpp and IOSApplication.cpp to cache off the orientation on the main thread and copy the data across to the game thread.

Steps to Reproduce

licensee report

Callstack

Thread 4 Crashed:
0 libsystem_kernel.dylib 0x00000001b0463ec4 __pthread_kill + 8
1 libsystem_pthread.dylib 0x00000001b037f1d8 pthread_kill$VARIANT$mp + 136 (pthread.c:1458)
2 libsystem_c.dylib 0x00000001b02d3844 abort + 100 (abort.c:110)
3 OurApp 0x000000010381aed4 FGenericPlatformMallocCrash::InitializeSmallPools() + 15003348 (GenericPlatformMallocCrash.cpp:453)
4 libsystem_platform.dylib 0x00000001b037a894 _sigtramp + 56 (sigtramp.c:100)
5 UIKitCore 0x00000001b3d324fc -[UIScene _effectiveUISettings] + 32 (UIScene.m:1168)
6 UIKitCore 0x00000001b4920c80 -[UIWindowScene _canReceiveDeviceOrientationEvents] + 24 (UIWindowScene.m:670)
7 UIKitCore 0x00000001b491ef94 -[UIWindowScene interfaceOrientation] + 28 (UIWindowScene.m:278)
8 UIKitCore 0x00000001b46f6650 -[UIApplication _safeInterfaceOrientationForWindowIfExists:expectNonNilWindow:] + 196 (UIApplication.m:5996)
9 OurApp 0x0000000103afbf94 FIOSInputInterface::SendControllerEvents() + 18022292 (IOSInputInterface.cpp:378)
10 OurApp 0x0000000103afb948 FIOSApplication::PollGameDeviceState(float) + 18020680 (IOSApplication.cpp:77)
11 OurApp 0x000000010308fb78 FEngineLoop::Tick() + 7093112 (LaunchEngineLoop.cpp:3945)
12 OurApp 0x0000000103af6f10 -[IOSAppDelegate MainAppThread:] + 18001680 (IOSAppDelegate.cpp:324)
13 Foundation 0x00000001b0a5509c _NSThreadstart_ + 848 (NSThread.m:724)
14 libsystem_pthread.dylib 0x00000001b0387d8c _pthread_start + 156 (pthread.c:896)
15 libsystem_pthread.dylib 0x00000001b038b76c thread_start + 8

 

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-92612 in the post.

2
Login to Vote

Fixed
ComponentUE - Platform - Mobile
Affects Versions4.25
Target Fix4.26
Fix Commit13891315
CreatedApr 29, 2020
ResolvedJul 20, 2020
UpdatedApr 28, 2021
View Jira Issue