Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash if the description exceeds 251 characters #2

Closed
5 tasks done
ehamiter opened this issue Sep 15, 2022 · 2 comments
Closed
5 tasks done

Crash if the description exceeds 251 characters #2

ehamiter opened this issue Sep 15, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@ehamiter
Copy link

ehamiter commented Sep 15, 2022

Prerequisites

  • Using npm
  • Using an up-to-date main branch
  • Using latest version of devtools. Check the docs for how to update
  • Tried solutions mentioned in #400
  • For issue in production release, add devtools output of DEBUG_PROD=true npm run build && npm start

Expected Behavior

You should be able to enter a lengthy prompt, for example:

powerful dark matter mancer, dark soul 3, Extra-Wide Angle, 3d zbrush, trend on ArtStation, Realistic Lighting, Volumetric Lighting, dramatic, 8k, cinematic, super detailed, vfx, symmetrical face and body, full body portrait, cinematic lighting, hyperdetailed, detailed realistic symmetrical eyes, cinematic lighting, hyperdetailed, cgsociety, 8k, high resolution, noah bradley, Billelis, masamune shirow, katsuhiro Otomo, insanely detailed and intricate, dark, dramatic, powerful, poster, cinematic Lighting through volume, Style=render, highly detail render with octane, octane render, color black and gold, photorealistic

and have the image generate.

Current Behavior

Currently, the filename is saved as the description, with spaces replaced with dashes, and .png added to the suffix. If this filename exceeds 255 characters, the following error is thrown and the program halts:

OSError: [Errno 63] File name too long: '<filename here>[25502] Failed to execute script 'txt2img' due to unhandled exception!

Steps to Reproduce

  1. Enter a description greater than 251 characters
  2. Generate
@ehamiter ehamiter added the bug Something isn't working label Sep 15, 2022
@cbh123
Copy link
Owner

cbh123 commented Sep 15, 2022

Thanks! will fix this

@cbh123
Copy link
Owner

cbh123 commented Sep 17, 2022

Fixed in latest!

@cbh123 cbh123 closed this as completed Sep 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants