我正在开发一个Java应用程序。 由于我没有 OSX 计算机,我已经获得了一些帮助这个应用程序用于论坛/社区的人。 但是当在 OSX 上启动应用程序时会出现此错误。
10月5日15:26:58 ### - macbook-pro.local java [2384]<错误>:CGContextGetCTM :无效上下文0x0 10月5日15:26:58 ### - macbook-pro.local java [2384]<错误>:CGContextSetBaseCTM:无效上下文0x0 10月5日15:26:58# ## - macbook-pro.local java [2384]<错误>:CGContextGetCTM:无效上下文0x0 10月5日15:26:58 ### - macbook-pro.local java [2384]<错误> :CGContextSetBaseCTM:无效的上下文0x0 2012-10-05 15:26:59.590 java [2384:11517] make pbuffer:0 x 0 2012-10-05 15:26:59.657 java [2384: 2007]无效drawable显然我没有 OSX 计算机很难调试这样的问题,所以我希望你们中的一个聪明的人能够让我了解这个问题是由什么造成的,所以我可以去解决它。如果您有任何其他信息可能需要通知我,我可以尝试使用 OSX 计算机获取该信息。
解决方案此错误发生在 OSX Lion> = 10.7.4 调用< = 10.7.3 上) swing / JFrame.html#setIconImage%28java.awt.Image%29rel =nofollow> JFrame.setIconImage(Image) on:
OSX 10.7.5 with Java 1.6.0_65-b14-462-11M4509
and(如上所述) Apple Mac OS X v10.7 Lion 支持社区和 java-dev 列表 )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
它不会发生在:
OSX 10.8.4 with Java 1.6.0_51-b11-457-11M4509
鉴于上述信息,此错误是OSX> = 10.7.4和< 10.8的本机窗口实现中的错误,并且不是Java中的错误。
<我尝试通过调整设置JFrame图标的时间来解决这个问题,但是调用该方法时无关紧要,如果使用 JFrame.setIconImage 。I'm currently developing a Java application. And as I don't own a OSX computer I've enlisted the help of some people from the forum/community this app is for. But there is this error that occurs when the application is launched on the OSX.
Oct 5 15:26:58 ###-macbook-pro.local java[2384] <Error>: CGContextGetCTM: invalid context 0x0 Oct 5 15:26:58 ###-macbook-pro.local java[2384] <Error>: CGContextSetBaseCTM: invalid context 0x0 Oct 5 15:26:58 ###-macbook-pro.local java[2384] <Error>: CGContextGetCTM: invalid context 0x0 Oct 5 15:26:58 ###-macbook-pro.local java[2384] <Error>: CGContextSetBaseCTM: invalid context 0x0 2012-10-05 15:26:59.590 java[2384:11517] Make pbuffer: 0 x 0 2012-10-05 15:26:59.657 java[2384:2007] invalid drawableObviously as I don't own a OSX computer it makes it very hard to debug issues like this, So I was hoping one of you intelligent individuals could insight me into what this issue is caused by so as I can go about fixing it. If there is any other info you may need let me know and I can try and get the person with the OSX computer to get it.
解决方案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.
更多推荐
CGContextSetBaseCTM无效上下文0x0
发布评论