Merge branch 'cannot_read_file' into 'master'

Add error "Cannot read file"

See merge request sheepitrenderfarm/client!172
This commit is contained in:
harlekin
2023-01-04 16:24:15 +00:00
2 changed files with 10 additions and 0 deletions

View File

@@ -54,6 +54,7 @@ public class Error {
IMAGE_WRONG_DIMENSION(26),
CURRENTLY_HEADLESS(28),
DENOISING_NOT_SUPPORTED(29),
CANNOT_READ_FILE(30),
// internal error handling
NO_SPACE_LEFT_ON_DEVICE(100),
@@ -222,6 +223,8 @@ public class Error {
return "The rendered image had the wrong resolution. This project is configured incorrectly. Switching to another project.";
case CURRENTLY_HEADLESS:
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.";
default:
return in.toString();
}

View File

@@ -948,6 +948,13 @@ import java.util.regex.Pattern;
//17-03 07:38:47 (error) Job::render no picture file found (after finished render (filename_without_extension 116372253_0007)
return Error.Type.CURRENTLY_HEADLESS;
}
else if (line.contains("Error: Cannot read file")) {
//14-10 11:03:21 (debug) Blender 3.1.0 (hash c77597cd0e15 built 2022-03-09 00:44:13)
//14-10 11:03:21 (debug) Error: Cannot read file 'C:\SheepIT\sheepit\ef925644a319c5ad604ebc077769bcb8\Passeio Virtual FINAL.blend': No such file or directory
//14-10 11:03:21 (debug) Blender quit
return Error.Type.CANNOT_READ_FILE;
}
return Type.OK;
}