[issue33257] Race conditions in Tkinter with non-threaded Tcl

Terry J. Reedy report at bugs.python.org
Wed May 2 22:16:55 EDT 2018


Terry J. Reedy <tjreedy at udel.edu> added the comment:

Rerunning 2.7, I sometimes get the following almost immediately without clicking [launch].

Exception in thread Thread-1:
Traceback (most recent call last):
  File "C:\Programs\Python27\lib\threading.py", line 801, in __bootstrap_inner
    self.run()
  File "f:/python/a/tem.py", line 50, in run
    self.deliverToqueue((self.target, z, y))
  File "f:/python/a/tem.py", line 133, in arrival_122
    new_yz[1])
  File "C:\Programs\Python27\lib\lib-tk\Tkinter.py", line 2322, in create_line
    return self._create('line', args, kw)
  File "C:\Programs\Python27\lib\lib-tk\Tkinter.py", line 2310, in _create
    *(args + self._options(cnf, kw))))
TclError: bad option "97380032LrunLocal": must be addtag, bbox, bind, canvasx, canvasy, cget, configure, coords, create, dchars, delete, dtag, find, focus, gettags, icursor, index, insert, itemcget, itemconfigure, lower, move, postscript, raise, scale, scan, select, type, xview, or yview

An automated test would need to fail more consistently, without needing to click.  Running faster would also be good (and perhaps increase failure rate).  The the test would be that the file runs in subprocess without an error (perhaps multiple times).  There may be a test.support function for this.

The TkinterCrash files currently have way too many comments for a non-beginner audience.



The t

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue33257>
_______________________________________


More information about the Python-bugs-list mailing list