Why this error is occurring "attempted to change the reference count of a Python object while the GIL" #238
Replies: 1 comment 1 reply
-
Does this "HPX" library spawn threads? If so, there is your problem. It's fine to use nanobind API from custom threads, but you need to acquire the GIL first before you do. I suggest compiling in debug mode and setting a breakpoint on "abort". That should give you a backtrace indicating the problem. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
So , I am trying to bind HPX library async function but there is issue with calling it in recursive function . I dont understant it because I am not changing the referece counting manually but for some reason its showing usp and I dont believe HPX will do that
So for example : simple fibonacci funtion
this is the output it gives https://gist.github.com/matrixbot123/82e993bf8b5296b5de8a6af6b44099ae
you can see there this error message
but I have can done that in my bindings . can someone tell whyis that happening
For reference these are the binding
Beta Was this translation helpful? Give feedback.
All reactions