diff --git a/src/main/java/com/sheepit/client/Error.java b/src/main/java/com/sheepit/client/Error.java index ed0aef3..107f5e7 100644 --- a/src/main/java/com/sheepit/client/Error.java +++ b/src/main/java/com/sheepit/client/Error.java @@ -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(); } diff --git a/src/main/java/com/sheepit/client/Job.java b/src/main/java/com/sheepit/client/Job.java index fe26515..fc64268 100644 --- a/src/main/java/com/sheepit/client/Job.java +++ b/src/main/java/com/sheepit/client/Job.java @@ -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; }