-
Notifications
You must be signed in to change notification settings - Fork 201
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jupyter Kernel Notebook Dies After Starting Threaded Class #434
Comments
UPDATE |
@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:
* you probably don't jupyter to see the issue, i.e. try to make this a
standard module or even executable that you then can more easily debug
* what role does the threading play ? perhaps you need to acquire/ release
the GIL not to corrupt the python runtime from your worker thread ?
…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
<#434 (comment)>,
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.
The text was updated successfully, but these errors were encountered: