You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
basically I have an embedded interpreter in the main thread that has to be restarted by scratch. I got crash importing a module the second time
Here is the simplest code to reproduce.
int main() {
py::initialize_interpreter();
py::module_::import("numpy"); //--> it works if I import modules, like 'sys', 'os'.
py::finalize_interpreter();
py::initialize_interpreter();
py::module_::import("numpy"); //--> crash here
py::finalize_interpreter();
return 0;
}
Running this gives: A breakpoint instruction (__debugbreak() statement or a similar call) was executed in test.exe.
I am no expert in debugging, so if I forgot to report something helpful, let me know.
pybind from master branch, python 3.12, win10.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
basically I have an embedded interpreter in the main thread that has to be restarted by scratch. I got crash importing a module the second time
Here is the simplest code to reproduce.
Running this gives:
A breakpoint instruction (__debugbreak() statement or a similar call) was executed in test.exe.
I am no expert in debugging, so if I forgot to report something helpful, let me know.
pybind from master branch, python 3.12, win10.
Beta Was this translation helpful? Give feedback.
All reactions