zer0TF / xyz_plot_script

XYZ Plot Script for Stable Diffusion WebUI
The Unlicense
52 stars 9 forks source link

DecompressionBombError - could be decompression bomb DOS attack. #21

Open ffutlapuztar opened 1 year ago

ffutlapuztar commented 1 year ago

Hi there, I am not sure if your plugin is responsible, but it happened while doing some (quite excessive) creations.

DecompressionBombError: Image size (299658624 pixels) exceeds limit of 178956970 pixels, could be decompression bomb DOS attack.

I already felt that very large jobs end up in quite large pictures (already had a >800mb png), but my PC was able to handle that.

At least it would be nice if some kind of warning would show up BEFORE generating 15 hours long a few thousand pictures that are not very useful in the end- looking for a grid to compare the resultsside by side.

Or it would be at least nice to stitch the sub-grids (x/y) before stopping the whole process with no grid at all...

Error completing request Arguments: ('task(uttvl0jyhqsk114)', 'very detailed realistic painting of ohwx man as a futuristic space soldier by zack snyder, greg rukowski,\nvery detailed, ultra intricate, colorful fantastic mystery apocalyptic city in the background, canon 5d', 'low, bad, worst, ugly, tiling, poorly drawn hands, poorly drawn feet, poorly drawn face, out of frame, extra limbs, disfigured, deformed, body out of frame, blurry, bad anatomy, blurred, watermark, grainy, signature, cut off, draft, amateur, multiple, gross, weird, uneven, furnishing, decorating, decoration, furniture, text, poor, low, basic, worst, juvenile, unprofessional, failure, crayon, oil, label, thousand hands', [], 25, 0, True, False, 4, 2, 15.5, 117716222.0, -1.0, 0, 0, 0, False, 512, 512, False, 0.7, 2, 'Latent', 0, 0, 0, ['Model hash: 5277afa334'], 5, False, False, 'LoRA', 'None', 0, 0, 'LoRA', 'None', 0, 0, 'LoRA', 'None', 0, 0, 'LoRA', 'None', 0, 0, 'LoRA', 'None', 0, 0, 'Refresh models', False, 'none', 'None', 1, None, False, 'Scale to Fit (Inner Fit)', False, False, 64, 64, 64, 1, False, False, 'none', 'None', 1, None, False, 'Scale to Fit (Inner Fit)', False, False, 64, 64, 64, 1, False, False, False, 'positive', 'comma', 0, False, False, '', 'Illustration', 'svg', True, True, False, 0.5, True, 16, True, 16, 1, '', 0, '', True, False, False, 10, 'ohwx_1.5_34_5_680.ckpt,ohwx_1.5_34_5_1360.ckpt,ohwx_1.5_34_5_2040.ckpt,ohwx_1.5_34_5_2720.ckpt,ohwx_1.5_34_5_3400.ckpt,ohwx_1.5_34_5_4080.ckpt,ohwx_1.5_34_5_4760.ckpt,ohwx_1.5_34_5_5440.ckpt,ohwx_1.5_34_5_6120.ckpt,ohwx_1.5_34_5_6800.ckpt,ohwx_1.5_34_5_7480.ckpt,ohwx_1.5_34_5_8160.ckpt,ohwx_1.5_34_5_8840.ckpt,ohwx_1.5_34_5_9520.ckpt,ohwx_1.5_34_5_10200.ckpt,ohwx_1.5_34_5_11560.ckpt,ohwx_1.5_34_5_14960.ckpt', 6, '7,9,10,14,19,24,30', 1, '20,30,40,50,60,70', True, False, True, False, 0, '{inspiration}', None) {} Traceback (most recent call last): File "C:\SD\stable-diffusion-webui\modules\call_queue.py", line 56, in f res = list(func(*args, **kwargs)) File "C:\SD\stable-diffusion-webui\modules\call_queue.py", line 37, in f res = func(*args, **kwargs) File "C:\SD\stable-diffusion-webui\modules\txt2img.py", line 53, in txt2img processed = modules.scripts.scripts_txt2img.run(p, *args) File "C:\SD\stable-diffusion-webui\modules\scripts.py", line 376, in run processed = script.run(p, *script_args) File "C:\SD\stable-diffusion-webui\scripts\xyz_grid.py", line 596, in run processed, sub_grids = draw_xyz_grid( File "C:\SD\stable-diffusion-webui\scripts\xyz_grid.py", line 309, in draw_xyz_grid z_grid = images.draw_grid_annotations(z_grid, sub_grid_size[0], sub_grid_size[1], title_texts, [[images.GridAnnotation()]]) File "C:\SD\stable-diffusion-webui\modules\images.py", line 206, in draw_grid_annotations cell = im.crop((width * col, height * row, width * (col+1), height * (row+1))) File "C:\SD\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 1234, in crop return self._new(self._crop(self.im, box)) File "C:\SD\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 1252, in _crop _decompression_bomb_check(absolute_values) File "C:\SD\stable-diffusion-webui\venv\lib\site-packages\PIL\Image.py", line 3164, in _decompression_bomb_check raise DecompressionBombError(msg) PIL.Image.DecompressionBombError: Image size (299658624 pixels) exceeds limit of 178956970 pixels, could be decompression bomb DOS attack.