-
Notifications
You must be signed in to change notification settings - Fork 49
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
Loading aborted due to error reloading workflow data #135
Comments
Alright, I wrote a quick python script to parse the saved workflows and remove any keys where the id does not match, as I looked at my later saves I ended up with A LOT of them! After running the scripts my workflows seem to have no issues at all and are working properly. If you can't identify where the source of these errors is, at least running this script on your save files will keep you progressing!
|
Alright, as the save files continue to accumulate errors I have developed this further to clean them up: Basically what keeps happening is that there are leftover IDs as children/parents and mismatched ID and keys. This basically just goes through the .json, finds all the matching Key/ID pairs, then checks to make sure there are no lonely IDs hanging out anywhere else. This is super clunky, and purely functional, not pretty.
|
Can you elaborate how to run it correctly? I'm nonprogrammer, spent 6 hours trying to build a workflow and files got corrupted by the same issue. By the way, i'm not sure what is bugged, but i know how to easily reproduce it. Start new workflow, add lora x5 template, delete 1 of lora subgraphs, at this point file is corrupted. |
Sorry, I just kind of assumed people using stable diffusion had at least a little bit of experience with code. It's just a basic python program, you already have python installed in order to be able to run stable diffusion, so all you need is a developer environment. You can use visual studio code, or pycharm or something and just copy paste that text in and then run it -- or even more simply you can just copy it to a text file and rename it .py, then execute it from command prompt. It uses just built in functions in python and is super basic - it opens up a file browser, then goes through and collects the trash in the file basically and then resaves it. It also automatically makes a backup of the file. tldr:
Done! |
After spending tons of hours working on a layout, I when I closed it down and reopened, suddenly I was getting an error. Apparently the error had been there for the last 10 saves but it never notified me!
Unfortunately, the error handling is awful and completely useless to help... so I manually dug through the file looking for differences from the most recent working save, and oldest not working save. I managed to find the error and fix it, but it was unpleasant and time consuming to say the least!
This is the error I was getting:
This was what the error ended up being:
There was an ID mismatch, and an ID was duplicated (in red). Deleting the part in yellow allowed the save to be loaded.
Honestly, while this error handling is terrible and you can easily lose hours of work, I'd gladly take occasional errors like this if I could get some additional customizable keyboard shortcuts!!
The text was updated successfully, but these errors were encountered: