poiuyqwert / PyMS

Broodwar Modding Suite
47 stars 18 forks source link

TclError is sometimes thrown when closing PyDAT #142

Open neivv opened 1 year ago

neivv commented 1 year ago

I have no idea how this happened, and wasn't able to reproduce it, though it had happened before when i checked the mapdata changes (Think it only happened once that time too.) So not sure if this is fixable based on stack trace, or how to narrow it down.

Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Ohjelmia\Python27\lib\lib-tk\Tkinter.py", line 1542, in __call__
    return self.func(*args)
  File "C:\Pelei\scbw_yms\Ohjelmia\PyMS\PyMS\PyDAT\PyDAT.py", line 502, in exit
    self.destroy()
  File "C:\Pelei\scbw_yms\Ohjelmia\PyMS\PyMS\Utilities\UIKit\Components\MainWindow.py", line 66, in destroy
    return Tk.destroy(self)
  File "C:\Ohjelmia\Python27\lib\lib-tk\Tkinter.py", line 1864, in destroy
    for c in self.children.values(): c.destroy()
  File "C:\Ohjelmia\Python27\lib\lib-tk\Tkinter.py", line 2101, in destroy
    for c in self.children.values(): c.destroy()
  File "C:\Ohjelmia\Python27\lib\lib-tk\Tkinter.py", line 2101, in destroy
    for c in self.children.values(): c.destroy()
  File "C:\Ohjelmia\Python27\lib\lib-tk\Tkinter.py", line 2101, in destroy
    for c in self.children.values(): c.destroy()
  File "C:\Ohjelmia\Python27\lib\lib-tk\Tkinter.py", line 2105, in destroy
    Misc.destroy(self)
  File "C:\Ohjelmia\Python27\lib\lib-tk\Tkinter.py", line 445, in destroy
    self.tk.deletecommand(name)
TclError: can't delete Tcl command
poiuyqwert commented 1 year ago

Yeah I've seen this before and am not really sure what is going on. I have not really dug into it too much. Maybe once I'm done updating to Python 3 I will take a closer look.