fastwsgi icon indicating copy to clipboard operation
fastwsgi copied to clipboard

Windows exception 0xC0000005

Open drakylar opened this issue 3 years ago • 3 comments
trafficstars

import fastwsgi
import app
import logging
host, port, debug, ssl_context = app.config_prepare()

if __name__ == '__main__':
    host, port, debug, ssl_context = app.config_prepare()
    fastwsgi.run(wsgi_app=app.application, host=host, port=port)

Error:

==== FastWSGI ==== 
Host: 0.0.0.0
Port: 5000
==================

Server listening at http://0.0.0.0:5000

Process finished with exit code -1073741819 (0xC0000005)

Python version: Python 3.9.10 OS version: Windows 10 10.0.19042 19042

Installed with:

pip install fastwsgi==0.0.5

drakylar avatar Jan 20 '22 12:01 drakylar

Hi there,

Are you still facing this issue? I am having some trouble reproducing this error on my side.

Were you able to make any requests before the process finished? Or did it crash before you could make any requests?

If you could, could you install fastwsgi from source and enable the LOGGING flag in fastwsgi.py by setting it to 1 and then start the server and make some requests if you can. If it crashes you can paste the output here. This should give me a little bit more information in order to find the cause of the issue.

Instructions for installing from source:

git clone https://github.com/jamesroberts/fastwsgi.git
cd fastwsgi/
<change LOGGING flag in fastwsgi.py>
python3 setup.py install

jamesroberts avatar Feb 02 '22 21:02 jamesroberts

Hi there,

Are you still facing this issue? I am having some trouble reproducing this error on my side.

Were you able to make any requests before the process finished? Or did it crash before you could make any requests?

If you could, could you install fastwsgi from source and enable the LOGGING flag in fastwsgi.py by setting it to 1 and then start the server and make some requests if you can. If it crashes you can paste the output here. This should give me a little bit more information in order to find the cause of the issue.

Instructions for installing from source:

git clone https://github.com/jamesroberts/fastwsgi.git
cd fastwsgi/
<change LOGGING flag in fastwsgi.py>
python3 setup.py install

I installed last version, turned on LOGGING=1 and nothing changed. It crashes every time after this string (fastwsgi.py):

_fastwsgi.run_server(wsgi_app, host, port, backlog, LOGGING)

drakylar avatar Feb 03 '22 14:02 drakylar

I experienced this too.

It worked with serial requests (1 request/second).

It was terminated if you send too many requests at once (like clicking the reload button repeatedly).

The server did not crash, it was simply terminated.

char101 avatar Apr 22 '22 10:04 char101