You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A common crash in our logs comes from this library. In production we currently have version 5.7.1, but the problems seems still to be in the latest version.
Taking a look at the code, I believe this is caused because the items array is being manipulated in one queue and read in another. Swift arrays are not thread safe.
According to the log, the crash happens when initializing the ImageProgressiveProvider, and especially, when initializing a DispatchQueue value in ImageProgressiveSerialQueue. It should be totally a thread-safe behavior, and the problem is more likely under Swift or the system.
We could have a way to try to rewrite the code (such as adding an explicit initializer to ImageProgressiveSerialQueue), to see if we can work around it, but actually it should not be an issue in Kingfisher framework. :(
Check List
Thanks for considering to open an issue. Before you submit your issue, please confirm these boxes are checked.
Issue Description
A common crash in our logs comes from this library. In production we currently have version 5.7.1, but the problems seems still to be in the latest version.
Taking a look at the code, I believe this is caused because the items array is being manipulated in one queue and read in another. Swift arrays are not thread safe.
Stacktrace
From version 5.7.1
The text was updated successfully, but these errors were encountered: