RupertAvery / DiffusionToolkit

Metadata-indexer and Viewer for AI-generated images
MIT License
753 stars 46 forks source link

[BUG] Ignore 'System Volume Information' anywhere it might appear #260

Open richardm1 opened 2 weeks ago

richardm1 commented 2 weeks ago

Describe the bug My Stable Diffusion setup includes three different disk volumes mounted to empty folders on a single filesystem. In the *nix world this is called Tuesday but in Windows it's strange and exotic and it uncovers unexpected application behavior once in a while. One side effect of this setup is apps will encounter System Volume Information in locations other than the volume's root.

DiffusionToolkit encounters System Volume Information in a non-root location, throws an error, then exits:

image

Repair requires hand editing config.json to remove the offending path.

Version: 1.7.0

To Reproduce Mount a disk volume to an empty folder:

{9F8AAE8A-F896-41E3-A081-B04BC147854C}

Launch DiffusionToolkit; configure it to scan this path:

{C79257FA-E48E-4E33-A056-F96FF075B700}

image

Expected behavior No crashy-crashy; no errors.

Workaround Manually exclude System Volume Information from scanning. The scan for SD Models (which does not have a user-selectable folder exclusion) will also trigger this bug.

richardm1 commented 2 weeks ago

Also discovered the scan for models/checkpoints will error out on System Volume Information if any root folder is specified in the Model Root field. In other words, it chokes on System Volume Information appearing in its usual location in addition to unusual locations. 😉