We have started seeing a bunch of crashes in my app with the following crash log:
Seems to happen inconsistently in the app and we are not able to replicate the crash locally. Does anyone have any idea what the crash might be caused by? Is it a bug in iOS 17?
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes: 0x0000000000000001, 0x0000000000000000
VM Region Info: 0 is not in any region. Bytes before following region: 4343709696
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 102e7c000-102e8c000 [ 64K] r-x/r-x SM=COW ...ea.app/MyApp
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [71670]
Triggered by Thread: 0
Thread 0 name:
Thread 0 Crashed:
0 libsystem_platform.dylib 0x000000022147ced4 _platform_memmove + 52
1 QuartzCore 0x00000001b9a66864 CA::Render::InterpolatedFunction::encode(CA::Render::Encoder*) const + 248 (render-function.cpp:591)
2 QuartzCore 0x00000001b9a66684 CA::Render::GradientLayer::encode(CA::Render::Encoder*) const + 44 (render-gradient-layer.cpp:658)
3 QuartzCore 0x00000001b995eb6c CA::Render::Layer::encode(CA::Render::Encoder*) const + 284 (render-layer.cpp:5504)
4 QuartzCore 0x00000001b995ea0c CA::Render::encode_set_object(CA::Render::Encoder*, unsigned long, unsigned int, CA::Render::Object*, unsigned int) + 196 (render-coding.cpp:2822)
5 QuartzCore 0x00000001b995be3c invocation function for block in CA::Context::commit_transaction(CA::Transaction*, double, double*) + 244 (CAContextInternal.mm:3657)
6 QuartzCore 0x00000001b995bce4 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 368 (CALayer.mm:2786)
7 QuartzCore 0x00000001b995bc70 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 252 (CALayer.mm:2772)
8 QuartzCore 0x00000001b995bca4 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 304 (CALayer.mm:2779)
9 QuartzCore 0x00000001b995bc70 CA::Layer::commit_if_needed(CA::Transaction*, void (CA::Layer*, unsigned int, unsigned int) block_pointer) + 252 (CALayer.mm:2772)
10 QuartzCore 0x00000001b99a0334 CA::Context::commit_transaction(CA::Transaction*, double, double*) + 11192 (CAContextInternal.mm:3662)
11 QuartzCore 0x00000001b9996c3c CA::Transaction::commit() + 648 (CATransactionInternal.mm:432)
12 QuartzCore 0x00000001b99968e4 CA::Transaction::flush_as_runloop_observer(bool) + 88 (CATransactionInternal.mm:942)
13 UIKitCore 0x00000001ba5f7228 _UIApplicationFlushCATransaction + 52 (UIApplication.m:3158)
14 UIKitCore 0x00000001ba5f6d40 _UIUpdateSequenceRun + 84 (_UIUpdateSequence.mm:119)
15 UIKitCore 0x00000001ba5f6430 schedulerStepScheduledMainSection + 144 (_UIUpdateScheduler.m:1037)
16 UIKitCore 0x00000001ba5f64ec runloopSourceCallback + 92 (_UIUpdateScheduler.m:1186)
17 CoreFoundation 0x00000001b8370acc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 (CFRunLoop.c:1957)
18 CoreFoundation 0x00000001b836fd48 __CFRunLoopDoSource0 + 176 (CFRunLoop.c:2001)
19 CoreFoundation 0x00000001b836e4fc __CFRunLoopDoSources0 + 244 (CFRunLoop.c:2038)
20 CoreFoundation 0x00000001b836d238 __CFRunLoopRun + 828 (CFRunLoop.c:2955)
21 CoreFoundation 0x00000001b836ce18 CFRunLoopRunSpecific + 608 (CFRunLoop.c:3420)
22 GraphicsServices 0x00000001fae315ec GSEventRunModal + 164 (GSEvent.c:2196)
23 UIKitCore 0x00000001ba77b2fc -[UIApplication _run] + 888 (UIApplication.m:3690)
24 UIKitCore 0x00000001ba77a938 UIApplicationMain + 340 (UIApplication.m:5275)
25 UIKitCore 0x00000001ba99e44c UIApplicationMain(_:_:_:_:) + 104 (UIKit.swift:539)
26 MyApp 0x0000000102e8da4c specialized static UIApplicationDelegate.main() + 28 (<compiler-generated>:27)
27 MyApp 0x0000000102e8da4c static AppDelegate.$main() + 28 (AppDelegate.swift:0)
28 MyApp 0x0000000102e8da4c main + 120
29 dyld 0x00000001dab57d44 start + 2104 (dyldMain.cpp:1269)