fix: showLastRender method randomly breaks upload queue

The method img.getScaledInstance returns null under some conditions (some images cannot be properly managed by Java Runtime), breaking the upload process and reducing the upload queue size in 1.

The process can potentially consume the three concurrent upload slots and hence leaving the client in a zombie state.
This commit is contained in:
Luis Uguina
2020-10-29 21:01:24 +11:00
committed by Sheepit Renderfarm
parent 538dbfd97a
commit 7c798e6364

View File

@@ -404,9 +404,9 @@ public class Working implements Activity {
} }
icon = new ImageIcon(img.getScaledInstance((int) (width * factor), (int) (height * factor), Image.SCALE_FAST)); icon = new ImageIcon(img.getScaledInstance((int) (width * factor), (int) (height * factor), Image.SCALE_FAST));
} }
catch (IOException e) { catch (Exception e) {
log.error(String.format("Working::showLastRender() Unable to load/preview rendered frame [%s]. Exception %s", log.error(String.format("Working::showLastRender() Unable to load/preview rendered frame [%s]. Exception %s",
lastJob.getOutputImagePath(), e.getMessage())); lastJob.getOutputImagePath(), e.getMessage()));
} }
} }