We get crash on iOS after app activation with the same crash dump on our Family Island (custom render script) and on internal sample app for AppLovin extension (without custom render script). Both app use Defold 1.2.166. This crash is not stable to reproduce.
Family Island callstack:
OS Version: iPhone OS 13.3 (17C54)
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Thread 0 name: engine_main Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x000000018dde3ec4 __pthread_kill + 8
1 libsystem_pthread.dylib 0x000000018dcff1d8 pthread_kill$VARIANT$mp + 136
2 libsystem_c.dylib 0x000000018dc538c0 __abort + 112
3 libsystem_c.dylib 0x000000018dc53850 __abort + 0
4 libsystem_c.dylib 0x000000018dc52c64 err + 0
5 FamilyIsland 0x000000010122f0f0 dmGraphics::Clear(dmGraphics::Context*, unsigned int, unsigned char, unsigned char, unsigned char, unsigned char, float, unsigned int) + 4616432 (.cold.3) + 0
6 FamilyIsland 0x000000010122b384 dmGraphics::BeginFrame(dmGraphics::Context*) + 4600708 (graphics_opengl.cpp:977)
7 FamilyIsland 0x000000010123cdcc dmRender::ParseCommands(dmRender::RenderContext*, dmRender::Command*, unsigned int) + 4672972 (render_command.cpp:87)
8 FamilyIsland 0x0000000101241cd8 dmRender::UpdateRenderScriptInstance(dmRender::RenderScriptInstance*, float) + 4693208 (render_script.cpp:2873)
9 FamilyIsland 0x00000001011a6f3c dmEngine::Step(dmEngine::Engine*) + 4058940 (engine.cpp:1341)
10 FamilyIsland 0x00000001011a7bec dmEngineUpdate(dmEngine::Engine*) + 4062188 (engine.cpp:1798)
11 FamilyIsland 0x0000000101329268 -[AppDelegate appUpdate] + 5640808 (AppDelegate.m:178)
12 QuartzCore 0x000000019491988c CA::Display::DisplayLink::dispatch_items+ 71820 (unsigned long long, unsigned long long, unsigned long long) + 632
13 IOKit 0x000000018ef35934 IODispatchCalloutFromCFMessage + 488
14 CoreFoundation 0x000000018df418ac __CFMachPortPerform + 172
15 CoreFoundation 0x000000018df6b07c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 56
16 CoreFoundation 0x000000018df6a7a8 __CFRunLoopDoSource1 + 444
17 CoreFoundation 0x000000018df6567c __CFRunLoopRun + 2168
18 CoreFoundation 0x000000018df64adc CFRunLoopRunSpecific + 464
19 GraphicsServices 0x0000000197eea328 GSEventRunModal + 104
20 UIKitCore 0x000000019205fae0 UIApplicationMain + 1936
21 FamilyIsland 0x00000001011a7e6c engine_main(int, char**) + 4062828 (engine_main.cpp:50)
22 libdyld.dylib 0x000000018ddee360 start + 4
Internal AppLovin extension app:
OS Version: iPhone OS 13.1.2 (17A860)
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Thread 0 name: engine_main Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x0000000185c08ebc __pthread_kill + 8
1 libsystem_pthread.dylib 0x0000000185b24790 pthread_kill$VARIANT$mp + 112
2 libsystem_c.dylib 0x0000000185a788a0 __abort + 112
3 libsystem_c.dylib 0x0000000185a78830 __abort + 0
4 libsystem_c.dylib 0x0000000185a77c44 err + 0
5 defoldapplovin 0x00000001023a0a78 dmGraphics::Clear(dmGraphics::Context*, unsigned int, unsigned char, unsigned char, unsigned char, unsigned char, float, unsigned int) + 1657464 (.cold.3) + 0
6 defoldapplovin 0x000000010239cd10 dmGraphics::BeginFrame(dmGraphics::Context*) + 1641744 (graphics_opengl.cpp:977)
7 defoldapplovin 0x00000001023facd8 dmRender::ParseCommands(dmRender::RenderContext*, dmRender::Command*, unsigned int) + 2026712 (render_command.cpp:87)
8 defoldapplovin 0x00000001023ffbe4 dmRender::UpdateRenderScriptInstance(dmRender::RenderScriptInstance*, float) + 2046948 (render_script.cpp:2873)
9 defoldapplovin 0x00000001023105b0 dmEngine::Step(dmEngine::Engine*) + 1066416 (engine.cpp:1341)
10 defoldapplovin 0x0000000102311260 dmEngineUpdate(dmEngine::Engine*) + 1069664 (engine.cpp:1798)
11 defoldapplovin 0x00000001024ede08 -[AppDelegate appUpdate] + 3022344 (AppDelegate.m:178)
12 QuartzCore 0x000000018c656514 CA::Display::DisplayLink::dispatch_items+ 70932 (unsigned long long, unsigned long long, unsigned long long) + 632
13 IOKit 0x0000000186d49eb0 IODispatchCalloutFromCFMessage + 488
14 CoreFoundation 0x0000000185d656d4 __CFMachPortPerform + 172
15 CoreFoundation 0x0000000185d8ee5c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 56
16 CoreFoundation 0x0000000185d8e588 __CFRunLoopDoSource1 + 444
17 CoreFoundation 0x0000000185d8945c __CFRunLoopRun + 2168
18 CoreFoundation 0x0000000185d888bc CFRunLoopRunSpecific + 464
19 GraphicsServices 0x000000018fbf4328 GSEventRunModal + 104
20 UIKitCore 0x0000000189e1e6d4 UIApplicationMain + 1936
21 defoldapplovin 0x00000001023114e0 engine_main(int, char**) + 1070304 (engine_main.cpp:50)
22 libdyld.dylib 0x0000000185c13460 start + 4