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

[BUG] Image not displayed, The given key was not present #259

Open
Kluvwen opened this issue Sep 20, 2024 · 3 comments
Open

[BUG] Image not displayed, The given key was not present #259

Kluvwen opened this issue Sep 20, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@Kluvwen
Copy link

Kluvwen commented Sep 20, 2024

Using primarily Novel AI, the error The given key was not present in the dictionary. has been occurring frequently as of some updates from them.
9/20/2024 12:26:56 AM: An error occurred while reading C:\Users\Kluvw\Downloads\AI_{{{{{zero pictured}}}}}, castle s-3338614828.png: The given key was not present in the dictionary.

at System.Text.Json.JsonElement.GetProperty(String propertyName)
at Diffusion.IO.Metadata.ReadFooocusMREParameters(String data)
at Diffusion.IO.Metadata.ReadFromFile(String file)
at Diffusion.IO.MetadataScanner.Scan(IEnumerable`1 files)+MoveNext()
Version:
Diffusion Toolkit 1.7 Fix

Tool:
NovelAI

To Reproduce
This isn't happenning with every image, however it is happening frequently, with no change in prompt or methodology.

Expected behavior
This is not expected, particularly images not showing at all, I was not aware this was an issue for some time until one I'd just added wasn't showing up and checking the log.

Affected Image(s)
_{{{{{zero pictured}}}}}, castle s-3338614828

If possible, it would be preferable to show images even if they're producing an error if error allows for images to be shown.

@RupertAvery
Copy link
Owner

RupertAvery commented Sep 21, 2024

Thanks for finding this.

This build should resolve your issue while I am adding features and bug fixes for the next release.

https://github.com/RupertAvery/DiffusionToolkit/actions/runs/10975406944/artifacts/1962103501

It will also now allow the file to be loaded and viewed even if an error occurs. When a fix does come in, there is an option to Rescan selected images. Images with errors currently are marked with a red warning icon in the thumbnail, and the error information will be viewable in the Metadata as a new tab.

@RupertAvery RupertAvery self-assigned this Sep 21, 2024
@RupertAvery RupertAvery added the bug Something isn't working label Sep 21, 2024
@Kluvwen
Copy link
Author

Kluvwen commented Sep 21, 2024

Thanks so much, that looks to resolve both issues. I can close this or leave it open for visibility until the next release.

@Kluvwen Kluvwen closed this as completed Sep 21, 2024
@Kluvwen Kluvwen reopened this Sep 21, 2024
@RupertAvery
Copy link
Owner

Yes keep it open for now in case anyone else has the same issue, thanks!

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