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

I got Process finished with exit code -1073740791 (0xC0000409) STATUS_STACK_BUFFER_OVERRUN when import trio #3091

Open
kjdsfbchkadwbcuiwbcfiw opened this issue Sep 19, 2024 · 9 comments

Comments

@kjdsfbchkadwbcuiwbcfiw
Copy link

I met a problem when I import trio,it shows Process finished with exit code -1073740791 (0xC0000409) .
I use 3.12 for python and it was unrelated to IDE.
Is there any idea about how it happens ?

@A5rocks
Copy link
Contributor

A5rocks commented Sep 19, 2024

What OS (Windows?)? What happens if you python -X dev -c "import trio"? (I'm not sure anything will change, but...)

@A5rocks
Copy link
Contributor

A5rocks commented Sep 19, 2024

My working hypothesis is that something is incorrect in your Python installation because to my knowledge trio shouldn't cause that.

@kjdsfbchkadwbcuiwbcfiw
Copy link
Author

Thank you for answer!I am using windows and I got blow using python -X dev -c "import trio"

`python -X dev -c "import trio
Windows fatal exception: access violation

Current thread 0x0000ea1c (most recent call first):
Windows fatal exception: access violation`

@kjdsfbchkadwbcuiwbcfiw
Copy link
Author

I just reinstalled a python to replace the old one, but it seems nothing change.

@A5rocks
Copy link
Contributor

A5rocks commented Sep 19, 2024

Thank you for answer!I am using windows and I got blow using python -X dev -c "import trio"

`python -X dev -c "import trio

Windows fatal exception: access violation

Current thread 0x0000ea1c (most recent call first):

Windows fatal exception: access violation`

Well at least you're getting an access violation rather than an error about the stack here. I think -X dev enables faulthandler, but maybe python -X faulthandler -X dev -c "import trio" gets more information?

What major version of Windows are you using? (Probably irrelevant because if I had to suspect anything (now that it wasn't Python) it would be something you installed or drivers but...)

@kjdsfbchkadwbcuiwbcfiw
Copy link
Author

Thank you for reply! It get same output using python -X faulthandler -X dev -c "import trio"
`python -X faulthandler -X dev -c "import trio"
Windows fatal exception: access violation

Current thread 0x00008714 (most recent call first):
Windows fatal exception: access violation`

I am now using windows 11.

@A5rocks
Copy link
Contributor

A5rocks commented Sep 19, 2024

Alright. Does this happen when you run just python -X dev? (This should drop you into a REPL) Does it happen if you try python -X dev -c "import cffi"?

Edit: maybe check in Windows safe mode too?

@kjdsfbchkadwbcuiwbcfiw
Copy link
Author

kjdsfbchkadwbcuiwbcfiw commented Sep 19, 2024 via email

@A5rocks
Copy link
Contributor

A5rocks commented Oct 31, 2024

Did you ever figure this out or did it fix itself?

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

2 participants