#27766 closed Bug (needsinfo)
runserver crashes because of auto-reloader (Py3 + PowerShell)
Reported by: | oTree-org | Owned by: | nobody |
---|---|---|---|
Component: | Utilities | Version: | 1.10 |
Severity: | Normal | 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 (last modified by )
Repro steps:
- Install Python 3.x (doesn't happen on 2.x)
- Open Windows PowerShell (only happens with PowerShell, not CMD or bash)
pip install django
django-admin startproject foobar
cd foobar
python manage.py runserver
This causes a Windows crash with a window that says: "Python has stopped working": http://imgur.com/dOt6eKE
However, python manage.py runserver --noreload
works fine, so it seems related to the auto-reloader.
Here is the info from the Windows Event Viewer:
Faulting application name: python.exe, version: 3.5.1150.1013 Faulting module name: ucrtbase.dll, version: 10.0.14393.0 Exception code: 0xc0000005 Faulting module path: C:\WINDOWS\System32\ucrtbase.dll
I have seen it happen with at least 5 people using Py3 & PowerShell, with Windows 8 or 10, and various PC models. (Though most people seem unaffected.)
Occurs with Django 1.8/1.10 and Python 3.5/3.6, maybe others also.
Change History (9)
comment:1 by , 8 years ago
Description: | modified (diff) |
---|
comment:2 by , 8 years ago
Component: | Uncategorized → Utilities |
---|---|
Type: | Uncategorized → Bug |
comment:3 by , 8 years ago
Resolution: | → needsinfo |
---|---|
Status: | new → closed |
comment:4 by , 8 years ago
Resolution: | needsinfo |
---|---|
Status: | closed → new |
Same situation here, windows 10 pro 1607 pyhton 3.6 Django 1.10.5
Thanks @oTree-org for the workaround with --noreload
comment:5 by , 8 years ago
Resolution: | → needsinfo |
---|---|
Status: | new → closed |
As I said before, "To accept the ticket, we need an explanation of why Django (and not, for example, Python or PowerShell) is at fault." Please don't reopen the ticket without that explanation.
comment:6 by , 8 years ago
Description: | modified (diff) |
---|
comment:7 by , 8 years ago
Description: | modified (diff) |
---|
comment:8 by , 8 years ago
@urbanit: I think this issue is related: https://youtrack.jetbrains.com/issue/PY-17069#comment=27-1804561&tab=Comments
comment:9 by , 8 years ago
Same issue, with both Powershell and PyCharm. Sorry, can't confirm if the bug lies with Django, or Powershell and Pycharm.
To accept the ticket, we need an explanation of why Django (and not, for example, Python or PowerShell) is at fault. In similar tickets, (#27657, #27586) no one has been able to provide that.