[NSBitmapImageRep imageRepsWithContentsOfFile] is returning empty/solid black bitmaps for some image files with HDR on macOS Tahoe beta. I opened an Apple feedback report but curious if anyone else is seeing this. Errors thrown in the debugger are:
IIOApplyHDRGainMap:351: FlexGTC headroom (4.0) doesn't match target headroom (1.0)
+[HDRImage getGainMapVersionMajor:minor:fromMetadata:]:417: Failed to get metadata tag: HDRGainMap:HDRGainMapVersion
+[HDRImage getGainMapHeadroom:fromMetadata:]:443: Failed to read gain map version info: <CGImageMetadata 0x9fc013700> ( iio:hasXMP = True )
This function call has worked reliable for many years before the Tahoe beta.
Thanks for filing FB19955494
.
Looking at the bug it seems to have landed in a reasonable place. However, there’s no sysdiagnose log attached and, as I mention in Bug Reporting: How and Why?, that’s important even if the bug is readily reproducible. I recommend that you reproduce the problem and then trigger a sysdiagnose log and attach that.
Also, it sounds like this bug should reproduce in a small test project. If so, it’d be great if you could attach that as well.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"