I'm dynamically creating a UIImage
from NSData
using [UIImage imageWithData:data]
. The call succeeds and returns a valid UIImage
but every time I make the call
CGImageCopyImageSource:4692: *** CGImageGetImageSource: cannot get CGImageSourceRef from CGImageRef (CGImageSourceRef was already released)
is printed in the Console - not the Xcode console but the Console app streaming from the device. I haven't determined this is actually a problem but I have customer reports of my app crashing after a long period of time where this particular code path is being called frequently.
If I put a symbolic breakpoint at ERROR_CGImageCopyImageSource_WAS_CALLED_WITH_INVALID_CGIMAGE
is is hit.
I'm not sure what I could be doing to cause this error since I'm passing valid data in and getting what looks like valid output.