Slicer on Virtual Windows OS

I’ve installed Slicer on my remote virtual windows 10 OS, i’m using a batch script to call scriptablemodule and its working fine. In this i’m creating a 3d model from a dicom series.
The problem is the output model which is created on that remote virtual OS is different and causing large Holes in the output model, and the same thing if i runs on my laptop its working fine and gives right output model.
what should i do to fix this issue, my virtual OS has 32+GB ram and also allocated GPU.

This should not happen, since model generation is all implemented in the CPU and your virtual machine seems to be capable to deal with this task. If you shared a screenshot of the correct and incorrect result then it might give a hint of what could go wrong.

The Skull model output on my laptop.:
image
The Skull model output on the virtual machine.:

Input for both, is same.

The image below looks smoother, so probably either the smoothing factor during surface generation is larger or voxel size segmentation labelmap voxel size is larger. Or maybe the threshold value is higher for some reason.

the threshold parameters and smoothing parameters are same for both.
Today i also noticed that if i manually runs my batch file on virtual machine it gives expected output.
But if i invoke it from my remote program it gives me the second image output :frowning:

What do you mean by running manually and invoking it? Do you run exactly the same command-line?
Can you post the code that you use for batch conversion?

DICOMInputPath =" "
volumeOutputPath = " "
slicer.modules.PythonInterfacerInstance.logic.Run(DICOMInputPath, volumeOutputPath)

this is the code in my batch file.
if i run this batch file it runs perfectly, But if i invoke / call this batch file form my program/C# script . it gives me the second output.

In this small piece of code there is nothing suspicious. Probably the problem is inside PythonInterfacerInstance.logic.