Closed MasterBe closed 3 months ago
UPDATE
I figured a partial source of the problem, this line boost::python::call
is what is causing issues, wondering if it's a memory thing when copying const boost::python::object& op
. Still stuck on how to make to the above work though.
@stefanseefeld could you please take a look at the above. Still blocked on this for days :)
I'm travelling till the end of the month and thus unable to look into this in depth. I strongly recommend breaking the problem up to get to the bottom of the issue:
On Sun, May 5, 2024, 13:51 MasterBe @.***> wrote:
@stefanseefeld https://github.com/stefanseefeld could you please take a look at the above. Still blocked on this for days :)
— Reply to this email directly, view it on GitHub https://github.com/boostorg/python/issues/434#issuecomment-2094775183, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJPRV52QZYOJBO7TFQ7RITZAYMKLAVCNFSM6AAAAABG4QJRPWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAOJUG43TKMJYGM . You are receiving this because you were mentioned.Message ID: @.***>
@stefanseefeld Thanks very much for the hint. Problem solved it was indeed acquiring/ releasing the GIL
I am using Boost Python to expose a function that holds an internal thread, the class has
start
andstop
functions that only control an internal loop. The code forMyClass
is:I then create a helper function to pass a callback as:
I then create my module:
I use the
draft
module in jupyter as follows attachedThe first run causes a crash as in
The second run is not throwing but produces nothing. Could you please help me make this work.