使用OpenNI java包装器时出现JRE致命错误

时间:2013-02-14 13:06:59

标签: java-native-interface java openni

我试图使用java包装器使用OpenNI将深度图记录到.oni文件中。这是我目前的代码:

Context context = new Context();

DepthGenerator depth = DepthGenerator.create(context);

Recorder recorder = Recorder.create(context, null); //null gives .oni.

recorder.addNodeToRecording(depth);

context.startGeneratingAll();

while(true){
    context.waitAnyUpdateAll();
    recorder.Record();
}

当我运行它时,产生了这个错误:

A fatal error has been detected by the Java Runtime Environment:

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000005b7bd579, pid=8048, tid=6784

JRE version: 7.0-b147
Java VM: Java HotSpot(TM) 64-Bit Server VM (21.0-b17 mixed mode windows-amd64 compressed oops)
Problematic frame:
V  [jvm.dll+0xed579]

Failed to write core dump. Minidumps are not enabled by default on client versions of Windows

An error report file with more information is saved as:

If you would like to submit a bug report, please visit:
http://bugreport.sun.com/bugreport/crash.jsp

有人有什么想法吗?

1 个答案:

答案 0 :(得分:0)

我明白了。

Recorder recorder = Recorder.create(context, "oni");

我需要指定文件格式。传递空值并不是最好的想法。