The CIFilter CISRGBToneCurveToLinear fails on large images

Number:rdar://FB9125043 Date Originated:2 Jun 2021
Status:Open Resolved:
Product:CoreImage Product Version:iOS 14
Classification: Reproducible:Yes
Hi, I am using the CIFilter CISRGBToneCurveToLinear and have noticed on large images it fails. There is no error. Could you advise please if there is an error in my code? I have created a sample project that demonstrates the issue.

I have created a sample project here:

It has two images.
bmw.jpg does not work
bmw-small.jpg does work

Run the sample app on a device (bug is not reproducible in the simulator). The original image is on the left. The filtered image is on the right.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!