Error locking surface

3d-viewer
java
Tags: #<Tag:0x00007fb882f02110> #<Tag:0x00007fb882f01dc8>

#1

Hello,
I don’t know why I have this error:

Error locking surface

when I execute this code:

ImagePlus imp;
String path="/Users/Downloads/imageSeries";
IJ.run("Image Sequence...", "open=[" + path + "] sort");
imp=IJ.getImage();
new StackConverter(imp).convertToGray8();
// Create a universe and show it
Image3DUniverse univ = new Image3DUniverse();
// Add the image as a volume rendering
Content c = univ.addVoltex(imp);
univ.show();

Thanks