Jackmoo added the comment:
Hi there, recently I also encounter this in windows(7), and my python program
occasionally crash and the windows pops 'appcrash' message with tcl8.5.dll
error c05 (access violation).
And this end up related to thread safe problem described as above. Since in my
Terry J. Reedy added the comment:
Thanks for the report.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11029
___
___
Python-bugs-list mailing
Terry J. Reedy added the comment:
I have somewhat arbitrary selected #16823 as the issue turned into a tkinter
and threads doc issue. I added a note there about mentioning the use of queue.
--
resolution: - duplicate
status: open - closed
superseder: - Python quits on running tkinter
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
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
Terry J. Reedy tjre...@udel.edu added the comment:
There are other gui libraries with Python interfaces that you can look at. I
agree that something in doc about how to feed data from multiple threads would
be nice.
--
nosy: +terry.reedy
type: crash - behavior
versions: +Python 3.2
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.
Changes by Brian Curtin cur...@acm.org:
--
nosy: +brian.curtin
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11029
___
___
Python-bugs-list
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
Christoph Gohlke cgoh...@uci.edu added the comment:
Tkinter is not thread safe. You are changing UI elements from a thread that is
not the main thread. Use a Queue as described at
http://effbot.org/zone/tkinter-threads.htm.
--
nosy: +cgohlke
___
10 matches
Mail list logo