Merge branch 'SET_DEVICE_ERROR' into 'master'
Add SHEEPIT_DETECT_DEVICE_ERROR See merge request sheepitrenderfarm/client!192
This commit is contained in:
@@ -55,6 +55,7 @@ public class Error {
|
||||
CURRENTLY_HEADLESS(28),
|
||||
DENOISING_NOT_SUPPORTED(29),
|
||||
CANNOT_READ_FILE(30),
|
||||
SHEEPIT_DETECT_DEVICE_ERROR(31),
|
||||
|
||||
// internal error handling
|
||||
NO_SPACE_LEFT_ON_DEVICE(100),
|
||||
@@ -225,6 +226,8 @@ public class Error {
|
||||
return "Blender can not open a display to create an OpenGL context needed for EEVEE/GPencil. Will try another project in a few minutes.";
|
||||
case CANNOT_READ_FILE:
|
||||
return "Blender failed to read the project files. Will try another project in a few minutes.";
|
||||
case SHEEPIT_DETECT_DEVICE_ERROR:
|
||||
return "Blender failed to detect the render device. Please check if you have all the necessary libraries installed and if your drivers are up to date.";
|
||||
default:
|
||||
return in.toString();
|
||||
}
|
||||
|
||||
@@ -993,6 +993,14 @@ import java.util.regex.Pattern;
|
||||
//14-10 11:03:21 (debug) Blender quit
|
||||
return Error.Type.CANNOT_READ_FILE;
|
||||
}
|
||||
else if (line.contains("SHEEPIT_DETECT_DEVICE_ERROR")) {
|
||||
//./blender-3.3.2-linux-x64/blender -b -E CYCLES -P /mnt/d/sheep_gpu/set_gpu.py -f 1
|
||||
//Blender 3.3.2 (hash bf24652e38a2 built 2022-12-07 01:12:36)
|
||||
//Read prefs: /home/raimund/.config/blender/3.3/config/userpref.blend
|
||||
///run/user/1000/gvfs/ non-existent directory
|
||||
//SHEEPIT_DETECT_DEVICE_ERRORR: Couldn't find OPTIX device with id CUDA_NVIDIA GeForce GTX 1080_0000:01:00_OptiX
|
||||
return Error.Type.SHEEPIT_DETECT_DEVICE_ERROR;
|
||||
}
|
||||
|
||||
return Type.OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user