0

我正在尝试使用 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

有人有想法么?

4

1 回答 1

0

我想到了。

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

我需要指定文件格式。传入一个空值显然不是最好的主意。

于 2013-02-14T14:11:56.230 回答