Mac color spaces


#1

So we had one in user that reported only getting a small white square instead of the window for our application. This is on an Intel Mac running 10.5.2.

He was able to resolve the issue by setting his monitor to thousands of colors and then running the application, which came up correctly. The application kept working correctly after he set his monitor back to millions of colors.

He also found the following in his console log :

20/02/2008 18:02:57 [0x0-0x1d01d].com.echoaudio.audiofireconsole[222] Wed Feb 20 18:02:57 Home-iMac.local AudioFire Console[222] <Error>: CGImageCreate: invalid image colorspace: NULL. 20/02/2008 18:03:05 AudioFire Console[222] CGImageCreate: invalid image colorspace: NULL. 20/02/2008 18:03:05 [0x0-0x1d01d].com.echoaudio.audiofireconsole[222] Wed Feb 20 18:03:05 Home-iMac.local AudioFire Console[222] <Error>: CGImageCreate: invalid image colorspace: NULL. 20/02/2008 18:03:15 AudioFire Console[231] CGImageCreate: invalid image colorspace: NULL. 20/02/2008 18:03:15 AudioFire Console[231] CGImageCreate: invalid image colorspace: NULL. 20/02/2008 18:03:15 AudioFire Console[231] CGImageCreate: invalid image colorspace: NULL.

I saw some stuff on the forum here regarding the same issue with CGImageCreate, but it wasn’t totally clear what the correct resolution was. The previous postings suggested there was a problem with RGB color space, so I made sure all my images were ARGB, but that didn’t seem to help.

So I am a something of a loss here. Anyone got any ideas?


#2

Wow, I’m also at a bit of a loss there. As you can see in juce_mac_Windowing.cpp, I commented out the use of an explicit colourspace because it made redrawing too slow, and using a null pointer to mean that there’s no colourspace conversion. Why it would randomly fail is probably more of a question for apple…


#3

Hi Jules!

My brother has now seen this a few times on his Mac Book Pro… if only I ever saw it on my test machines. :frowning:

Mac OS 10.5.6


: CGImageCreate: invalid image colorspace: NULL.

See also … http://www.rawmaterialsoftware.com/juceforum/viewtopic.php?t=2534

Best wishes,

Pete


#4

Not with the newest release, though? It no longer calls CGImageCreate.


#5

Aha - interesting!

Well, I’m due to use Juce 1.5 very soon now … I simply can’t resist your web browser plug-in additions :slight_smile:

Best wishes,

Pete