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

RuntimeError: main thread is not in main loop #99

Open
wkgit88 opened this issue Jan 2, 2024 · 1 comment
Open

RuntimeError: main thread is not in main loop #99

wkgit88 opened this issue Jan 2, 2024 · 1 comment

Comments

@wkgit88
Copy link

wkgit88 commented Jan 2, 2024

When I was training in BDD100k , error occurred. I changed the num_workers from 8 to 1 but this still happened:

xception ignored in: <function Image.del at 0x000001E7CCBA4040>
Traceback (most recent call last):
File "C:\anaconda\envs\multi\lib\tkinter_init_.py", line 4017, in del
self.tk.call('image', 'delete', self.name)
RuntimeError: main thread is not in main loop
xception ignored in: <function Variable.del at 0x000001E7CBD56700>
Traceback (most recent call last):
File "C:\anaconda\envs\multi\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 0x000001E7CBD56700>
Traceback (most recent call last):
File "C:\anaconda\envs\multi\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 0x000001E7CBD56700>
Traceback (most recent call last):
File "C:\anaconda\envs\multi\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 0x000001E7CBD56700>
Traceback (most recent call last):
File "C:\anaconda\envs\multi\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
Tcl_AsyncDelete: async handler deleted by the wrong thread

Anyone can help me? Thanks a lot

@AntonioConsiglio
Copy link

Try to set num_worker to 0. Then let us know if you have same error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants