[issue43263] threading module unable to run

2021-02-25 Thread twoone3
twoone3 <3197653...@qq.com> added the comment: That's a pity. I'm going to send the Python source code to my project to compile it, and see if it can solve the problem. Of course, I can also try compiling it into a static library -- ___ Python

[issue43263] threading module unable to run

2021-02-25 Thread Steve Dower
Steve Dower added the comment: Sorry, I can't help. My employer has strict rules about reviewing GPL code like that in your linked repository. I'd suggest checking your thread management in native code. Each new thread created in Python will create a new native thread, and they're all

[issue43263] threading module unable to run

2021-02-25 Thread twoone3
Change by twoone3 <3197653...@qq.com>: -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware resolution: works for me -> wont fix type: -> behavior ___ Python tracker

[issue43263] threading module unable to run

2021-02-25 Thread twoone3
twoone3 <3197653...@qq.com> added the comment: After adding GIL, the problem still exists. If you think this problem is incomprehensible, it may be because I used Google Translation .. -- Added file: https://bugs.python.org/file49835/Screenshot_20210225_224118.jpg

[issue43263] threading module unable to run

2021-02-25 Thread Mark Dickinson
Change by Mark Dickinson : -- nosy: -mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43263] threading module unable to run

2021-02-25 Thread Mark Dickinson
Mark Dickinson added the comment: @twoone3: Shouldn't you be calling PyGILState_Ensure() before calling into Python from the C++ code? In any case, I'm removing myself from the nosy list on this issue, because I don't have access to Windows to try to reproduce. --

[issue43263] threading module unable to run

2021-02-25 Thread twoone3
twoone3 <3197653...@qq.com> added the comment: Run Project1\x64\Release\Project2.exe -- ___ Python tracker ___ ___ Python-bugs-list

[issue43263] threading module unable to run

2021-02-23 Thread twoone3
twoone3 <3197653...@qq.com> added the comment: After my test, when the exe calls the dll, the dll calls Python. If the Python code involves multiple threads, the process will be stuck. -- Added file: https://bugs.python.org/file49831/test.zip ___

[issue43263] threading module unable to run

2021-02-23 Thread Mark Dickinson
Mark Dickinson added the comment: [twoone3] > Have you been studying this problem? Not personally, no. Sorry, but I'm afraid this really isn't an actionable bug report as it stands: we still don't have an effective way to reproduce, and it's far from clear that this is actually a bug in

[issue43263] threading module unable to run

2021-02-23 Thread twoone3
twoone3 <3197653...@qq.com> added the comment: Have you been studying this problem? -- ___ Python tracker ___ ___ Python-bugs-list

[issue43263] threading module unable to run

2021-02-19 Thread twoone3
twoone3 <3197653...@qq.com> added the comment: Sorry, I didn't make the question clear yesterday. My operating system is Windows and the compiler used is VS2019. My project address: https://github.com/twoone-3/BDSpyrunner When I use Python.dll to import Python files, the program is stuck.

[issue43263] threading module unable to run

2021-02-19 Thread Mark Dickinson
Change by Mark Dickinson : -- resolution: -> works for me status: open -> pending ___ Python tracker ___ ___ Python-bugs-list

[issue43263] threading module unable to run

2021-02-19 Thread Mark Dickinson
Mark Dickinson added the comment: Sorry, but as Ronald says there's not nearly enough information here. Some questions: - What do you mean by "embedded Python"? - What is "the exe" that you refer to in your second mesasge? Is that python.exe? Is that an executable you compiled from your

[issue43263] threading module unable to run

2021-02-19 Thread twoone3
twoone3 <3197653...@qq.com> added the comment: I use cpython to running .py file,the file created a new thread,but the exe can't continue to run -- ___ Python tracker ___

[issue43263] threading module unable to run

2021-02-19 Thread Ronald Oussoren
Ronald Oussoren added the comment: Please add more information about what you're doing. Your report does not contain enough information to try to reproduce the problem. This is supposed to work just fine, and does work for me. -- nosy: +ronaldoussoren

[issue43263] threading module unable to run

2021-02-19 Thread twoone3
New submission from twoone3 <3197653...@qq.com>: When I use embedded Python to import and use threading module,The program will hang,I tested it in versions 3.6.5 and 3.9.1. -- components: C API messages: 387293 nosy: twoone3 priority: normal severity: normal status: open title: