Quantcast
Channel: Active questions tagged crash - Stack Overflow
Viewing all articles
Browse latest Browse all 7191

Crash when creating UIImage from Data

$
0
0

In my application, I'm attempting to instantiate a UIImage from Data. I've been seeing some crash logs come in from App Store Connect showing that my code is crashing on this particular line:

guard let data = photo.data, let image = UIImage(data: data) else { return nil }

Below is the backtrace. PhotoCache is the last object I have control over, and .imageFor(_:) is the method that the line above is contained in.

 Crash Logs

What is PFEvanscentData, and what might be causing it to crash in this scenario?


Viewing all articles
Browse latest Browse all 7191

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>