onevcat / APNGKit

High performance and delightful way to play with APNG format in iOS.
MIT License
2.22k stars 201 forks source link

App 子线程中初始化 APNGImage 偶现 crash #131

Open Mervin1024 opened 1 year ago

Mervin1024 commented 1 year ago

线上崩溃日志收集如下:

#32 Thread SIGABRT

0 ??? 0x00000001acdf0f9c + 0 1 ??? 0x00000001e9ff75c0 + 0 2 ??? 0x00000001f2930000 + 0 3 ??? 0x00000001acdf1484 + 0 4 ??? 0x00000001acdff928 + 0 5 libdyld.dylib dyld_stub_binder + 60 6 APPName read (Reader.swift:104) 7 APPName read (<compiler-generated>:0) 8 APPName init (APNGDecoder.swift:78) 9 APPName init (APNGDecoder.swift:67) 10 APPName loadEmoticonMapper (<compiler-generated>:0) 11 APPName _$sIeg_IeyB_TR (<compiler-generated>:0) 12 libdispatch.dylib __dispatch_call_block_and_release + 24

crash 统计中,目前的用户设备系统版本均为 iOS13+。

为何 try catch 无法避免 APNGDecoder.init() 方法引起的 crash 呢?