diff options
author | Greg Fuller <gfuller23@gmail.com> | 2022-10-12 02:29:38 +0000 |
---|---|---|
committer | AUTOMATIC1111 <16777216c@gmail.com> | 2022-10-12 05:30:06 +0000 |
commit | fec2221eeaafb50afd26ba3e109bf6f928011e69 (patch) | |
tree | 896f65fb262e5cb79f653dcfc3f8315e6d3ad136 /modules/shared.py | |
parent | 6ac2ec2b78bc5fabd09cb866dd9a71061d669269 (diff) | |
download | stable-diffusion-webui-gfx803-fec2221eeaafb50afd26ba3e109bf6f928011e69.tar.gz stable-diffusion-webui-gfx803-fec2221eeaafb50afd26ba3e109bf6f928011e69.tar.bz2 stable-diffusion-webui-gfx803-fec2221eeaafb50afd26ba3e109bf6f928011e69.zip |
Truncate error text to fix service lockup / stall
What:
* Update wrap_gradio_call to add a limit to the maximum amount of text output
Why:
* wrap_gradio_call currently prints out a list of the arguments provided to the failing function.
* if that function is save_image, this causes the entire image to be printed to stderr
* If the image is large, this can cause the service to lock up while attempting to print all the text
* It is easy to generate large images using the x/y plot script
* it is easy to encounter image save exceptions, including if the output directory does not exist / cannot be written to, or if the file is too big
* The huge amount of log spam is confusing and not particularly helpful
Diffstat (limited to 'modules/shared.py')
0 files changed, 0 insertions, 0 deletions