songweige / rich-text-to-image

Rich-Text-to-Image Generation

Home Page:https://rich-text-to-image.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RuntimeError: main thread is not in main loop

pcxdi opened this issue · comments

Exception ignored in: <function Variable.del at 0x000001CBE63F3B80>
Traceback (most recent call last):
File "D:\anaconda\envs\pytorch\rich-text-to-image-main\lib\tkinter_init_.py", line 363, in del
if self._tk.getboolean(self._tk.call("info", "exists", self.name)):
RuntimeError: main thread is not in main loop
Exception ignored in: <function Variable.del at 0x000001CBE63F3B80>
Traceback (most recent call last):
File "D:\anaconda\envs\pytorch\rich-text-to-image-main\lib\tkinter_init
.py", line 363, in del
if self._tk.getboolean(self._tk.call("info", "exists", self._name)):
RuntimeError: main thread is not in main loop
How do I solve this threading problem

Does this also happen when you try to launch the gradio demo? Could you paste the entire error log so that I could know where the code causes the error?