Closed Barafu closed 1 year ago
@psychedelicious , @blessedcoolant Could you look into this?
@Barafu
Something like what you suggested must be happening. This could be addressed by better error handling in the server.
However, we are not making any changes to the web server as we have just begun a migration to a better server. I don't think we will fix this unless the same issue occurs on the new server, in which case we definitely will fix it.
Thanks for reporting the bug though!
Keep this open, I will re-test when the refactoring is done.
There has been no activity in this issue for 14 days. If this issue is still being experienced, please reply with an updated confirmation that the issue is still being experienced with the latest release.
I could not reproduce it in several tries.
I also have this problem when running bulk images. But for me its a problem that is intermittent.
I just got it again. Quickly deleting multiple files by tapping the red delete button with mouse. It continued to work after that. Files disappeared from the interface, but were not deleted from the output folder, and returned to the interface after pressing F5. Then I deleted them all using the same delete button. Files were removed and disappeared from "output" folder, however theirt counterparts in "output-thumbnails" stayed again. I did not even open the Canvas tab since full reinstallation.
This time it is version 2.3.5 from the installer, (NOT the git version, I removed it).
>> Delete requested "outputs/000171.aa54fb09.4069021259.postprocessed.png"
Traceback (most recent call last):
File "C:\Users\Barafu\invokeai\.venv\lib\site-packages\invokeai\backend\invoke_ai_web_server.py", line 909, in handle_delete_image
send2trash(path)
File "C:\Users\Barafu\invokeai\.venv\lib\site-packages\send2trash\win\legacy.py", line 150, in send2trash
paths = [get_short_path_name(path) for path in paths]
File "C:\Users\Barafu\invokeai\.venv\lib\site-packages\send2trash\win\legacy.py", line 150, in <listcomp>
paths = [get_short_path_name(path) for path in paths]
File "C:\Users\Barafu\invokeai\.venv\lib\site-packages\send2trash\win\legacy.py", line 135, in get_short_path_name
raise WindowsError(err_no, FormatError(err_no), long_path)
FileNotFoundError: [Errno 2] The system cannot find the file specified.: '\\\\?\\C:\\Users\\Barafu\\invokeai\\output\\000171.aa54fb09.4069021259.postprocessed.png'
This is fixed in main
(which is what 3.0 will be based on) - we aren't going to fix this on 2.3 as it's on its way out. Sorry!
Is there an existing issue for this?
OS
Windows
GPU
cuda
VRAM
No response
What happened?
Current git main. Quickly deleting multiple images sometimes produces an error message, and red Error status in UI. My uneducated guess is that the server tries to delete the file while it is still being read for displaying in UI.
Screenshots
Additional context
No response
Contact Details
No response