Managing GIL and objects in between different threads #1084
prashant-saxena
started this conversation in
General
Replies: 1 comment
-
This makes no sense to me based on the code you provided. You are only acquiring the GIL, where is it being released? Likely the issue is that you are calling |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
First of all, nanobind is awesome.... :-) and I am just loving it.
I have created a small framework based on taskflow and wrapping it using nanobind.
When framework finishes the graph evaluation, it can send a callback that you can register. I am trying to register a python function but the application is getting crashed.
.def("set_graph_evaluation_finish_callback", &PyScene::set_graph_evaluation_finish_callback)
When lambda function is getting called from framework, the line inside lambda
is responsible for the crash.
I believe because there are two threads, the python one and the one that's calling the lambda or I could be wrong. How do I solve this problem?
Beta Was this translation helpful? Give feedback.
All reactions