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

2018-05-07 Thread Scott M
Scott M <scott.m...@comcast.net> added the comment: 7 years and counting... My need for a fix is long gone, but I'd like to be able to tell the original group I worked with whether it's now safe to use tkinter from threads. It looks like my original guesses were validated and a fix ha

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

2018-05-07 Thread Scott M
Change by Scott M <scott.m...@comcast.net>: -- nosy: +PythonInTheGrass ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33257> ___

[issue11077] Tkinter is not thread safe

2011-02-05 Thread Scott M
Scott M scott.m...@comcast.net added the comment: I'll look into making the crash easier to reproduce this coming week. Is Tkinter's thread safety new? Because after I started getting crashes, I did my due diligence in Google and found a number of people writing about how it was necessary

[issue11077] Tkinter is not thread safe

2011-02-05 Thread Scott M
Scott M scott.m...@comcast.net added the comment: The new version runs 40 parabolas, then quits. I usually have to run this version 20 times or so to get the crash, so be patient. In general if it's going to crash it does so in the first 6 or so parabolas. Caveat: creates up to 40 threads, so

[issue11077] Tkinter is not thread safe

2011-02-05 Thread Scott M
Scott M scott.m...@comcast.net added the comment: If it helps, over the many iterations of this test code, there have been two kinds of issues: 1. pythonw.exe crashes with the Windows variant of a SEGV. No traceback, just a crash. These are rare. 2. Evidence of confusion over which string

[issue11077] Tkinter is not thread safe. This is a bug.

2011-01-31 Thread Scott M
New submission from Scott M scott.m...@comcast.net: The more I look at GUI support in Python, the more I realize that the lack of basic thread safety in GUI support is simply a bug. I know Java's Swing has the same thread limitation, but that doesn't make it right. Xlib is thread safe

[issue11077] Tkinter is not thread safe (and that's... bad)

2011-01-31 Thread Scott M
Scott M scott.m...@comcast.net added the comment: I don't have an opinion on 1252236. I'm not certain it would help. I have an extension that runs a bunch of (alien) threads into Python code. The threads deliver information for all sorts of real world events, asynchronously. Multiple threads

[issue11029] Crash, 2.7.1, Tkinter and threads and line drawing

2011-01-28 Thread Scott M
Scott M scott.m...@comcast.net added the comment: OK, now all calls to Tkinter are funneled to a single thread, through a queue. (Technically there are two threads in Tkinter - one is parked in .mainloop(), the other makes a call to Canvas.create_line and a call to Label.config.) Different

[issue11029] Crash, 2.7.1, Tkinter and threads and line drawing

2011-01-28 Thread Scott M
Scott M scott.m...@comcast.net added the comment: Alright. More digging turned up the Tkinter after function, aka WM_TIMER for Windowy people like me, and that plus a nonblocking queue get() gets all my drawing operations back into the mainLoop() thread. VoilĂ , no more crashes. Let me suggest

[issue11029] Crash, 2.7.1, Tkinter and threads and line drawing

2011-01-27 Thread Scott M
New submission from Scott M scott.m...@comcast.net: Running on dual core Windows XP. The function should draw a parabolicish shape for each click on launch. But if you click Launch over and over, very fast, you get bizarre crashes instead: Python.exe has encoutered a problem, yadda. tcl85

[issue11029] Crash, 2.7.1, Tkinter and threads and line drawing

2011-01-27 Thread Scott M
Scott M scott.m...@comcast.net added the comment: To make this more interesting, I'm trying to push for adoption of Python at a scripting tool where I work, and I uncovered this crasher in example code I was about to hand out, under the heading of look how easy Python is. For obvious reasons

[issue10909] thread hang, possibly related to print

2011-01-22 Thread Scott M
Scott M scott.m...@comcast.net added the comment: Moving to 3.x means redoing large swaths of the extension I just wrote. It's only a couple thousand lines, but it was my first extension and it cost me a week of my life in Google, and it does a lot with strings. I haven't pulled down

[issue10909] thread hang, possibly related to print

2011-01-21 Thread Scott M
Scott M scott.m...@comcast.net added the comment: It hasn't failed yet when run straight. Here's the issue, though. I'm going to be introducing Python as the scripting language of choice, to a bunch of people who are less than fluent in programming. Because debugging is not an obvious concept

[issue10909] thread hang, possibly related to print

2011-01-14 Thread Scott M
New submission from Scott M scott.m...@comcast.net: New to Python; be gentle if I've simply missed something. i'M running on Windows XP, using a recently downloaded 2.7.1. I'm running by hitting F5 in IDLE. The attached .py creates 2 threads, one which updates a Tkinter label 10 times