coldmayo / 40kAI

Warhammer 40k AI
1 stars 0 forks source link

Sometimes when training a thread error apears #34

Open coldmayo opened 1 week ago

coldmayo commented 1 week ago

Error below: Exception ignored in: <function Image.del at 0x76e1523ede40> Traceback (most recent call last): File "/usr/lib/python3.12/tkinter/init.py", line 4117, in del self.tk.call('image', 'delete', self.name) RuntimeError: main thread is not in main loop Exception ignored in: <function Variable.del at 0x76e152d33560> Traceback (most recent call last): File "/usr/lib/python3.12/tkinter/init.py", line 414, 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 0x76e152d33560> Traceback (most recent call last): File "/usr/lib/python3.12/tkinter/init.py", line 414, 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 0x76e152d33560> Traceback (most recent call last): File "/usr/lib/python3.12/tkinter/init.py", line 414, 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 0x76e152d33560> Traceback (most recent call last): File "/usr/lib/python3.12/tkinter/init.py", line 414, 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 ./train.sh: line 3: 3646 Aborted (core dumped) python -u train.py

coldmayo commented 1 week ago

I have a few comments about this:

  1. I am not using Tkinter so I am curious why this error is even happening
  2. When restarting the training it works fine