Doing a simple display.captureBounds, save image to temp directory, then using that image to fill a rect. This works fine on other devices like iPhone 4s, iPad 2, but with the iPad Pro (device) I get:
malloc: *** mach_vm_map(size=18446735226076921856) failed (error code=3)
*** error: can’t allocate region
*** set a breakpoint in malloc_error_break to debug
<Error>: CGImageCreate: unsupported image width: 2147483648.
<Error>: CGBitmapContextInfoCreate: unable to allocate 8847632629760 bytes for bitmap data
Even if the source image (selected from the album) is 440 x 180 this error happens.
The image was saved as a jpg file. Like I said, works fine on iPhone 4s and iPad 2.
Ideas?
SOLVED - Too much making merry yesterday I guess!