text2image-gui
text2image-gui copied to clipboard
Unhandled Exception Error, when cancelling an image generating
I started receiving this Error after upgrading to 1.5.0 while pressing the cancel button to stop the current generation process. I did get the error while working with a loaded image and just on a pure prompt image generation.
This is a fatal error which it's required to close and relaunch to proceed with the project.
************** Exception Text **************
System.ArgumentException: An item with the same key has already been added.
at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at StableDiffusionGui.Main.TextToImage.<>c__DisplayClass16_0.<WaitForDreamPyCancel>b__1(String x)
at System.Collections.Generic.List`1.ForEach(Action`1 action)
at StableDiffusionGui.Main.TextToImage.<WaitForDreamPyCancel>d__16.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at StableDiffusionGui.Main.TextToImage.<Cancel>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()