We noticed a small number of crashes in iOS15/16 when user are viewing out EPaper with is a PDFView.
From the stack trace, this is happening when releaseSurface is called in PDFTileSurface, and an error occurs due to CFRelease() called with NULL. Is there any way we can avoid this crash from our application?
0 CoreFoundation 0x198594 CFRelease.cold.1 + 16
1 CoreFoundation 0x7b83c CFRetain + 206
2 PDFKit 0x3051c -[PDFTileSurface releaseSurface] + 48
3 PDFKit 0x31668 -[PDFTilePool releasePDFTileSurface:] + 172
4 PDFKit 0x34638 -[PDFPageLayerTile dealloc] + 92
5 CoreFoundation 0x6ec40 -[__NSArrayI_Transfer dealloc] + 80
6 libobjc.A.dylib 0x19a4 AutoreleasePoolPage::releaseUntil(objc_object**) + 192
7 libobjc.A.dylib 0x4dac objc_autoreleasePoolPop + 252
8 UIKitCore 0x4f5ac -[UIScrollView setContentOffset:] + 1164
9 UIKitCore 0xb587c -[UIScrollView _smoothScrollSyncWithUpdateTime:] + 2156
10 UIKitCore 0xb4fd0 -[UIScrollView _smoothScrollWithUpdateTime:] + 240
11 UIKitCore 0x360fd8 -[UIScrollView _smoothScrollDisplayLink:] + 476
12 QuartzCore 0x27614 CA::Display::DisplayLink::dispatch_items(unsigned long long, unsigned long long, unsigned long long) + 832
13 QuartzCore 0x38698 display_timer_callback(__CFMachPort*, void*, long, void*) + 368
14 CoreFoundation 0x76c34 __CFMachPortPerform + 172
15 CoreFoundation 0x91f04 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 56
16 CoreFoundation 0x93a30 __CFRunLoopDoSource1 + 512
17 CoreFoundation 0x7758c __CFRunLoopRun + 2324
18 CoreFoundation 0x7bb58 CFRunLoopRunSpecific + 584
19 GraphicsServices 0x1984 GSEventRunModal + 160
20 UIKitCore 0x375628 -[UIApplication _run] + 868
21 UIKitCore 0x3752a0 UIApplicationMain + 312```