This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Turtle/tkinter: NameError crashes ipython with "Tcl_AsyncDelete: async handler deleted by the wrong thread"
Type: Stage: resolved
Components: Tkinter Versions: Python 3.6
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: Rick J. Pelleg, serhiy.storchaka, willingc
Priority: normal Keywords:

Created on 2017-10-08 07:16 by Rick J. Pelleg, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (7)
msg303898 - (view) Author: Rick J. Pelleg (Rick J. Pelleg) Date: 2017-10-08 07:16
On Windows 10 Education, ran:
ipython
Python 3.6.3 (v3.6.3:2c5fed8, Oct  3 2017, 17:26:49) [MSC v.1900 32 bit (Intel)]
Type 'copyright', 'credits' or 'license' for more information
IPython 6.2.1 -- An enhanced Interactive Python. Type '?' for help.
----
After "from turtle import *" and several simple turtle commands:

In [36]: fill()
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-36-4268fc8160e4> in <module>()
----> 1 fill()

NameError: name 'fill' is not defined

Tcl_AsyncDelete: async handler deleted by the wrong thread
Exception ignored in: <bound method Image.__del__ of <tkinter.PhotoImage object at 0x0465AEB0>>
Traceback (most recent call last):
  File "d:\users\yuval\appdata\local\programs\python\python36-32\lib\tkinter\__init__.py", line 3501, in __del__
    self.tk.call('image', 'delete', self.name)
msg303906 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2017-10-08 09:57
Can you reproduce the issue without IPython?
msg303910 - (view) Author: Rick J. Pelleg (Rick J. Pelleg) Date: 2017-10-08 15:24
Mmm... right now I cannot reproduce at all, both in iPython and in python.
Will continue to try.
msg304395 - (view) Author: Rick J. Pelleg (Rick J. Pelleg) Date: 2017-10-14 16:29
Sorry, all reproduction attempts failed, both in plain Python and in
iPython.
I guess you can close this for now.
msg304397 - (view) Author: Rick J. Pelleg (Rick J. Pelleg) Date: 2017-10-14 18:18
Just one more issue: since it happened before I found out that the "turtle"
package already has the pre-defined short version of commands, such as
"fd()", "lt()", etc., the crashed session included four function
definitions, for "fd()", "bk()", "lt()" and "rt()", in the form of:

def fd(val):

    forward(val)
msg319756 - (view) Author: Carol Willing (willingc) * (Python committer) Date: 2018-06-16 15:53
Hi Rick,

I'm closing this issue as not reproducible. Thanks for filing it and using Turtle.
msg319772 - (view) Author: Rick J. Pelleg (Rick J. Pelleg) Date: 2018-06-16 18:24
Thanks!

On Sat, Jun 16, 2018, 18:53 Carol Willing <report@bugs.python.org> wrote:

>
> Carol Willing <willingc@gmail.com> added the comment:
>
> Hi Rick,
>
> I'm closing this issue as not reproducible. Thanks for filing it and using
> Turtle.
>
> ----------
> nosy: +willingc
> resolution:  -> not a bug
> stage:  -> resolved
> status: open -> closed
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <https://bugs.python.org/issue31725>
> _______________________________________
>
History
Date User Action Args
2022-04-11 14:58:53adminsetgithub: 75906
2018-06-16 18:24:39Rick J. Pellegsetmessages: + msg319772
2018-06-16 15:53:08willingcsetstatus: open -> closed

nosy: + willingc
messages: + msg319756

resolution: not a bug
stage: resolved
2017-10-14 18:18:49Rick J. Pellegsetmessages: + msg304397
2017-10-14 16:29:36Rick J. Pellegsetmessages: + msg304395
2017-10-08 15:24:34Rick J. Pellegsetmessages: + msg303910
2017-10-08 09:57:05serhiy.storchakasetnosy: + serhiy.storchaka
messages: + msg303906
2017-10-08 07:16:44Rick J. Pellegcreate