trio icon indicating copy to clipboard operation
trio copied to clipboard

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

Open kjdsfbchkadwbcuiwbcfiw opened this issue 1 year ago • 8 comments

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 ?

kjdsfbchkadwbcuiwbcfiw avatar Sep 19 '24 13:09 kjdsfbchkadwbcuiwbcfiw

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

A5rocks avatar Sep 19 '24 13:09 A5rocks

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

A5rocks avatar Sep 19 '24 14:09 A5rocks

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 avatar Sep 19 '24 14:09 kjdsfbchkadwbcuiwbcfiw

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

kjdsfbchkadwbcuiwbcfiw avatar Sep 19 '24 14:09 kjdsfbchkadwbcuiwbcfiw

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...)

A5rocks avatar Sep 19 '24 15:09 A5rocks

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.

kjdsfbchkadwbcuiwbcfiw avatar Sep 19 '24 15:09 kjdsfbchkadwbcuiwbcfiw

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?

A5rocks avatar Sep 19 '24 15:09 A5rocks

No, it won’t happen

---- Replied Message ---- | From | @.> | | Date | 09/19/2024 23:23 | | To | python-trio/trio @.> | | Cc | kjdsfbchkadwbcuiwbcfiw @.>, Author @.> | | Subject | Re: [python-trio/trio] I got Process finished with exit code -1073740791 (0xC0000409) STATUS_STACK_BUFFER_OVERRUN when import trio (Issue #3091) |

Alright. Does this happen when you run just python -X dev? Does it happen if you try python -X dev -c "import cffi"?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

kjdsfbchkadwbcuiwbcfiw avatar Sep 19 '24 15:09 kjdsfbchkadwbcuiwbcfiw

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

A5rocks avatar Oct 31 '24 12:10 A5rocks

I'll close this, let me know if you get this again/feel free to reopen.

A5rocks avatar Nov 19 '24 04:11 A5rocks