The stack trace is: Fatal Exception: NSInternalInconsistencyException Need an imageRef Have you encountered similar problems?
The image is in heic format, and crashes occasionally occur.
Without a sample project this would be difficult to diagnose, but the error typically indicates that your app is creating a UIImage and passing in a CGImage that is invalid or nil. If you're loading the image from data or a file, it could also indicate that the data/file is corrupted. I would audit the places you're doing that and ensure that you are correctly retaining and releasing CGImages (if using Objective-C).