2

我从 JOGL 1.1 切换到 JOGL 2,出于某种原因,我遇到了奇怪的错误。

我已将问题隔离到创建 GLCanvas。

public class Main {
    public static void main(String[] args) {
        GLCanvas canvas = new GLCanvas(new GLCapabilities(GLProfile.getDefault()));
    }
}

当我运行它时,我得到了这个奇怪的错误。

2012-07-26 16:50:23.688 java[903:1303] *** __NSAutoreleaseNoPool(): Object 0x10014cf00 of class NSCFNumber autoreleased with no pool in place - just leaking
2012-07-26 16:50:23.690 java[903:1303] *** __NSAutoreleaseNoPool(): Object 0x1001512b0 of class NSConcreteValue autoreleased with no pool in place - just leaking
2012-07-26 16:50:23.690 java[903:1303] *** __NSAutoreleaseNoPool(): Object 0x100123e50 of class NSCFNumber autoreleased with no pool in place - just leaking
2012-07-26 16:50:23.690 java[903:1303] *** __NSAutoreleaseNoPool(): Object 0x100151310 of class NSConcreteValue autoreleased with no pool in place - just leaking
2012-07-26 16:50:23.690 java[903:1303] *** __NSAutoreleaseNoPool(): Object 0x100151340 of class NSCFDictionary autoreleased with no pool in place - just leaking
2012-07-26 16:50:24.170 java[903:1303] *** __NSAutoreleaseNoPool(): Object 0x10204a690 of class NSCFNumber autoreleased with no pool in place - just leaking
2012-07-26 16:50:24.171 java[903:1303] *** __NSAutoreleaseNoPool(): Object 0x102056390 of class NSConcreteValue autoreleased with no pool in place - just leaking
2012-07-26 16:50:24.171 java[903:1303] *** __NSAutoreleaseNoPool(): Object 0x100123e50 of class NSCFNumber autoreleased with no pool in place - just leaking
2012-07-26 16:50:24.171 java[903:1303] *** __NSAutoreleaseNoPool(): Object 0x102055c70 of class NSConcreteValue autoreleased with no pool in place - just leaking
2012-07-26 16:50:24.171 java[903:1303] *** __NSAutoreleaseNoPool(): Object 0x10206b4a0 of class NSCFDictionary autoreleased with no pool in place - just leaking

我见过另一个人有类似的问题,但我没有参考 swt.jar

多一点背景:

我正在使用eclipse,导入jogl.all.jar 和gluegen-rt.jar 并将它们的本机设置为macosx 文件夹。

该程序运行良好,但每次运行时看到这些错误弹出真的很烦人。

这是来自网站上 jogamp-all-plaforms 的新副本。

任何人都知道如何解决此错误?

我正在运行 Snow Leopard 10.6.8

4

0 回答 0