From 58386c657d0da27fd768c84be2389d89542a0081 Mon Sep 17 00:00:00 2001 From: QualiaRain <44004657+QualiaRain@users.noreply.github.com> Date: Fri, 12 Jun 2026 02:42:15 -0400 Subject: [PATCH] Fix XYZ grid state.end leak on invalid axis values in xyz_grid_on Same except-path as the previous commit: jobid is begun before the try block but never ended on the error return, mirroring the xyz_grid.py fix. Co-Authored-By: Claude --- scripts/xyz_grid_on.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/xyz_grid_on.py b/scripts/xyz_grid_on.py index 26eaeee64..12260e003 100644 --- a/scripts/xyz_grid_on.py +++ b/scripts/xyz_grid_on.py @@ -268,6 +268,7 @@ class XYZGridScript(scripts_manager.Script): log.error(f"XYZ grid: invalid axis values {e}") errors.display(e, 'xyz') active = False + shared.state.end(jobid) return None Image.MAX_IMAGE_PIXELS = None # disable check in Pillow and rely on check below to allow large custom image sizes