[NSBitmapImageRep imageRepsWithContentsOfFile] error with HDR

[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.

Answered by DTS Engineer in 856276022

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"

It’s unlikely I’ll be able to help you with this — graphics really isn’t my thing — but I wanted to ask about this:

I opened an Apple feedback report

What was that bug number?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

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"

[NSBitmapImageRep imageRepsWithContentsOfFile] error with HDR
 
 
Q