• Greg Fuller's avatar
    Truncate error text to fix service lockup / stall · fec2221e
    Greg Fuller authored
    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
    fec2221e
Name
Last commit
Last update
..
codeformer Loading commit data...
hypernetworks Loading commit data...
textual_inversion Loading commit data...
artists.py Loading commit data...
bsrgan_model.py Loading commit data...
bsrgan_model_arch.py Loading commit data...
codeformer_model.py Loading commit data...
deepbooru.py Loading commit data...
devices.py Loading commit data...
errors.py Loading commit data...
esrgan_model.py Loading commit data...
esrgan_model_arch.py Loading commit data...
extras.py Loading commit data...
face_restoration.py Loading commit data...
generation_parameters_copypaste.py Loading commit data...
gfpgan_model.py Loading commit data...
images.py Loading commit data...
img2img.py Loading commit data...
interrogate.py Loading commit data...
ldsr_model.py Loading commit data...
ldsr_model_arch.py Loading commit data...
lowvram.py Loading commit data...
masking.py Loading commit data...
memmon.py Loading commit data...
modelloader.py Loading commit data...
ngrok.py Loading commit data...
paths.py Loading commit data...
processing.py Loading commit data...
prompt_parser.py Loading commit data...
realesrgan_model.py Loading commit data...
safe.py Loading commit data...
safety.py Loading commit data...
scripts.py Loading commit data...
scunet_model.py Loading commit data...
scunet_model_arch.py Loading commit data...
sd_hijack.py Loading commit data...
sd_hijack_optimizations.py Loading commit data...
sd_models.py Loading commit data...
sd_samplers.py Loading commit data...
shared.py Loading commit data...
styles.py Loading commit data...
swinir_model.py Loading commit data...
swinir_model_arch.py Loading commit data...
swinir_model_arch_v2.py Loading commit data...
txt2img.py Loading commit data...
ui.py Loading commit data...
upscaler.py Loading commit data...