Description

A user is reporting that using the following code in a GameMode class causes shipping iOS packages to crash on launch:

void ANOGSSDKGameModeBase::StartPlay()
{
std::thread([](){
std::clog << "THREAD @"
<< FILE << ":" << LINE
<< std::endl;
}).join();
}

Regression?: No, this also occurs on 4.14 and 4.15

Steps to Reproduce
  1. Download the attached project
  2. Package the project for iOS in the Shipping configuration
  3. Install the ipa to an iOS device
  4. Run the app
    Result: The game crashes
    Expected: The game launches successfully
Callstack
0 0x00000001922c74bc in __abort ()
1 0x00000001922c740c in abort ()
2 0x0000000192389944 in free ()
3 0x0000000192417f70 in _pthread_tsd_cleanup ()
4 0x0000000192417ce4 in _pthread_exit ()
5 0x000000019241985c in _pthread_body ()
6 0x0000000192419760 in _pthread_start ()
7 0x0000000192416d94 in thread_start ()

2017-05-30 11:34:13.096921 NOGSSDK[5085:2258376] [DYMTLInitPlatform] platform initialization successful
2017-05-30 11:34:13.626832 NOGSSDK[5085:2258248] Found ue4commandline.txt file
2017-05-30 11:34:13.627670 NOGSSDK[5085:2258248] Combined iOS Commandline: ../../../NOGSSDK/NOGSSDK.uproject /Users/beschulz/Documents/Unreal Projects/NOGSSDK/NOGSSDK.uproject -RunConfig=
========= This app is in LANDSCAPE mode
2017-05-30 11:34:13.975549 NOGSSDK[5085:2258403] Project file not found: ../../../NOGSSDK/NOGSSDK.uproject
2017-05-30 11:34:14.458866 NOGSSDK[5085:2258248] Metal GPU Frame Capture Enabled
2017-05-30 11:34:14.459737 NOGSSDK[5085:2258248] Metal API Validation Enabled
2017-05-30 11:34:14.500939 NOGSSDK[5085:2258248] ::: Created a UIView that will support Metal :::
2017-05-30 11:34:15.726559 NOGSSDK[5085:2258403] Initializing ULD Communications in game mode
THREAD @/Users/beschulz/Documents/Unreal Projects/NOGSSDK/Source/NOGSSDK/NOGSSDKGameModeBase.cpp:21
NOGSSDK(5085,0x16e9ff000) malloc: * error for object 0x108e5e050: pointer being freed was not allocated
* set a breakpoint in malloc_error_break to debug

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

26
Login to Vote

Cannot Reproduce
ComponentUE - Platform - Mobile
Affects Versions5.0
Target Fix5.2
CreatedJun 2, 2017
ResolvedNov 17, 2022
UpdatedNov 17, 2022
View Jira Issue