Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows exception 0xC0000005 #15

Open
drakylar opened this issue Jan 20, 2022 · 3 comments
Open

Windows exception 0xC0000005 #15

drakylar opened this issue Jan 20, 2022 · 3 comments

Comments

@drakylar
Copy link

drakylar commented Jan 20, 2022

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 drakylar changed the title Windows exception Windows exception 0xC0000005 Jan 20, 2022
@jamesroberts
Copy link
Owner

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

@drakylar
Copy link
Author

drakylar commented Feb 3, 2022

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)

@char101
Copy link

char101 commented Apr 22, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants