• 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
.github Loading commit data...
embeddings Loading commit data...
javascript Loading commit data...
models Loading commit data...
modules Loading commit data...
scripts Loading commit data...
textual_inversion_templates Loading commit data...
.gitignore Loading commit data...
CODEOWNERS Loading commit data...
README.md Loading commit data...
artists.csv Loading commit data...
environment-wsl2.yaml Loading commit data...
launch.py Loading commit data...
requirements.txt Loading commit data...
requirements_versions.txt Loading commit data...
screenshot.png Loading commit data...
script.js Loading commit data...
style.css Loading commit data...
txt2img_Screenshot.png Loading commit data...
webui-user.bat Loading commit data...
webui-user.sh Loading commit data...
webui.bat Loading commit data...
webui.py Loading commit data...
webui.sh Loading commit data...