CGContextSetBaseCTM invalid context 0x0

This error occurs on OSX Lion >=10.7.4 (not on <=10.7.3) when invoking JFrame.setIconImage(Image) on:

OSX 10.7.5 with Java 1.6.0_65-b14-462-11M4509

and also (as discussed on the Apple Mac OS X v10.7 Lion Support Community and java-dev list) on:

OSX 10.7.4 with Java 1.6.0_51-b11-457-11A459

OSX 10.7.4 with Java 1.6.0_31

OSX 10.7.4 with Java 1.7.0_04

It does not happen on:

OSX 10.8.4 with Java 1.6.0_51-b11-457-11M4509

Given the above information, this error is a bug in the native window implementation of OSX >=10.7.4 and <10.8, and is not a bug in Java.

I attempted to work around this issue by adjusting the timing of setting the JFrame icon, but it doesn’t matter when the method is invoked, the error appears to be unavoidable if using JFrame.setIconImage.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)