A line
UIImage *tempImage = [UIImage imageNamed:@"gradient-image"];
gets executed inside an NSOperation, on the background thread. The code breaks here with the message:
[UIImageAsset retain]: message sent to deallocated instance
I have the image by the name gradient-image
in Images.xcassets
.
Honestly, I don't even know what other info would be relevant.
This happens on rare occasions, I cannot reproduce it consistently. I've googled a bit, but not much results. So, I decided to create a question here on SO.