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

2015-05-24 Thread Jackmoo
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

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

2015-05-24 Thread Terry J. Reedy
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

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

2013-03-08 Thread Terry J. Reedy
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

[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-28 Thread Terry J. Reedy
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

[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.

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

2011-01-27 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11029 ___ ___ Python-bugs-list

[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

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

2011-01-27 Thread Christoph Gohlke
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 ___