JOGL没有自动释放池 [英] No autorelease pool with JOGL

查看:151
本文介绍了JOGL没有自动释放池的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试将JOGL添加到我的项目中,经过很长一段时间搜索网络后,我找到了解决方案。我将jar添加到我的构建路径中,Eclipse识别它们。

我想测试它,所以从这里获取代码: https://sites.google.com/site/justinscsstuff/jogl-tutorial-2 并编译。

AWT-way给我这个结果:

I tried to add JOGL to my project, and after a long time searching the web I found the solution. I added the jars to my buildpath and Eclipse recognizes them.
I wanted to test it, so took the code from here: https://sites.google.com/site/justinscsstuff/jogl-tutorial-2 and compiled.
The AWT-way gives me this result:

2012-06-03 18:20:44.623 java[1481:903] [Java CocoaComponent compatibility mode]: Enabled
2012-06-03 18:20:44.626 java[1481:903] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000
2012-06-03 18:20:46.253 java[1481:903] *** __NSAutoreleaseNoPool(): Object 0x102034900 of class NSConcreteMapTableValueEnumerator autoreleased with no pool in place - just leaking
2012-06-03 18:20:46.259 java[1481:903] *** __NSAutoreleaseNoPool(): Object 0x10209e3f0 of class __NSCFDate autoreleased with no pool in place - just leaking
2012-06-03 18:20:46.259 java[1481:903] *** __NSAutoreleaseNoPool(): Object 0x10209cbd0 of class NSCFTimer autoreleased with no pool in place - just leaking
2012-06-03 18:20:46.301 java[1481:d703] *** __NSAutoreleaseNoPool(): Object 0x10015e990 of class NSCFNumber autoreleased with no pool in place - just leaking
2012-06-03 18:20:46.301 java[1481:d703] *** __NSAutoreleaseNoPool(): Object 0x100121720 of class NSConcreteValue autoreleased with no pool in place - just leaking
2012-06-03 18:20:46.302 java[1481:d703] *** __NSAutoreleaseNoPool(): Object 0x10011c2f0 of class NSCFNumber autoreleased with no pool in place - just leaking
2012-06-03 18:20:46.302 java[1481:d703] *** __NSAutoreleaseNoPool(): Object 0x1001ba750 of class NSConcreteValue autoreleased with no pool in place - just leaking
2012-06-03 18:20:46.302 java[1481:d703] *** __NSAutoreleaseNoPool(): Object 0x100157e70 of class NSCFDictionary autoreleased with no pool in place - just leaking

我可以'找到有同样问题的人。我确实发现其他人有同样的错误,但没有相同的原因。
NEWT-way给了我一个白色方块,没有回应而且我必须强行阻止它(Apple -key + alt + esc)。

我的光标变为等待光标。虽然设计很好,但我宁愿摆脱它​​。

我应该如何解决这个问题?我在Mac上使用Eclipse。操作系统10.6.8。

I can't find others with the same problem. I did find others with the same error, but not with the same cause.
The NEWT-way gives me a white square, which 'doesn't respond' and I have to force-stop it (Apple-key + alt + esc).
My cursor changes into a waiting-cursor. Although it's nice designed I'd rather get rid of it.
How should I solve this? I'm using Eclipse on a Mac. OS 10.6.8.

编辑:

感谢Clint,前两行已经消失,但它仍然存在泄漏......

Thanks to Clint the first two lines are gone, but it's still leaking...

编辑2:

解决了它!

推荐答案

我摆脱了错误,毕竟这是非常愚蠢的。我几天前找到了解决方案:使用 java 终端命令设置 -Djava.awt.headless = true 。但是,我不知道如何在Eclipse中执行此操作,因此我尝试将其放入Program Arguments中,我现在意识到,这非常愚蠢。将它放入JVM参数帮助并解决了问题,我现在遇到了下一个问题。我希望这有助于其他人遇到同样的问题。

I got rid of the errors, it was pretty stupid, after all. I found the solution a few days ago already: setting -Djava.awt.headless=true with the java terminal command. But, I did not know how to do this in Eclipse, so I tried putting it into Program Arguments, which is, I now realize, quite stupid. Putting it into JVM Arguments helped and solved the problem, I am now encountering the next. I hope this helps other people having the same problem.

这篇关于JOGL没有自动释放池的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆