<Error>: CGContextGetCTM messages

Sara Burke Sara.Burke at mathworks.com
Tue Jun 26 11:24:17 PDT 2012


I'm pretty sure they are unrelated messages, but I don't know for sure. I thought I had isolated the issue to the Java call setIconImage() which reproduced the CGContext messages, but I'm not 100% sure yet that function call is the only culprit. The "IOSurface" message from the kernel is something I get in the Console all the time, even before 10.7.4. Most of the time these kind of Console messages aren't something to worry about, especially if they are ones you see frequently across OS updates. Anyways, I've been tracking the CGContext message issue all month and haven't yet discovered the real issue and/or workaround.



On Jun 26, 2012, at 2:03 PM, Leonid Romanov wrote:

Yep. I'm on 10.7.4 and Java app in question is NetBeans.  I'm not sure whether CGContext and IOSurface messages are related, but if they always come together, perhaps they are.

On 26.06.2012, at 22:00, Sara Burke wrote:

I'm assuming you see these messages running a Java application with OpenJDK 7? What Mac OS are you on?

On Jun 26, 2012, at 1:54 PM, Leonid Romanov wrote:

Yes, I can confirm that I've been seeing these messages as well.  I'm also getting quite a lot of "IOSurface: buffer allocation size is zero" errors in the log. No idea about what causes them or what workarounds are, though.

On 26.06.2012, at 21:40, Sara Burke wrote:

Hi all,

I am new on this list, so I do apologize for any format issues.

I came across a post to this mailing list of which I am having the same issue so I was wondering if anyone has c:
http://mail.openjdk.java.net/pipermail/macosx-port-dev/2012-June/004407.html

More details:

My application emits the following messages; for easier reading, MY_APP replaces the actual application name:

Jun  1 14:49:12 sburke-maci MY_APP[5611] <Error>: CGContextGetCTM: invalid context 0x0
Jun  1 14:49:12 sburke-maci MY_APP[5611] <Error>: CGContextSetBaseCTM: invalid context 0x0
Jun  1 14:49:12 sburke-maci MY_APP[5611] <Error>: CGContextGetCTM: invalid context 0x0
Jun  1 14:49:12 sburke-maci MY_APP[5611] <Error>: CGContextSetBaseCTM: invalid context 0x0

Same messages with my sample Java application.

This did not happen in Mac OS X versions prior to 10.7.4. I confirmed that this still occurs in the latest developer preview of Mountain Lion and the latest Java SE 7, including OpenJDK 7.
Regardless of whether or not this is a Java-related issue, the fact that these messages suddenly appeared with 10.7.4 insinuates that there is an OS bug somewhere or perhaps someone left in some debugging print statements.
Posting this topic here to see if anyone else has come across this issue and/or knows of a workaround.

Thanks,
Sara



-----------------------------------------------------------------
Sara M. Burke
Ext. 7476







-----------------------------------------------------------------
 Sara M. Burke
 Ext. 7476







-----------------------------------------------------------------
 Sara M. Burke
 Ext. 7476



More information about the macosx-port-dev mailing list