Opened 19 years ago

Closed 18 years ago

#471 closed defect (fixed)

Problem in threading during autoreload

Reported by: swaroop@… Owned by: Adrian Holovaty
Component: Core (Management commands) Version:
Severity: minor Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

I'm using django-admin.py runserver and when I edit code, the autoreload module kicks in, and everything works fine, but I repeatedly get this error:

Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/threading.py", line 636, in __exitfunc
    self._Thread__delete()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/threading.py", line 522, in __delete
    del _active[_get_ident()]
KeyError: -1610551400
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/threading.py", line 636, in __exitfunc
    self._Thread__delete()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/threading.py", line 522, in __delete
    del _active[_get_ident()]
KeyError: -1610551400
Validating models...
0 errors found.

Starting server on port 8123 with settings module 'myproject.settings.admin'.
Go to http://127.0.0.1:8123/ for Django.
Quit the server with CONTROL-C (Unix) or CTRL-BREAK (Windows).
[07/Sep/2005 14:13:01] "GET /admin/ HTTP/1.1" 200 3210

I'm not facing problems because of this since the new code *is* being used, but maybe this 'issue' might cause concerns in other situations?

Change History (1)

comment:1 by Adrian Holovaty, 18 years ago

Resolution: fixed
Status: newclosed

This was fixed a while back.

Note: See TracTickets for help on using tickets.
Back to Top