Skip to content
Discussion options

You must be logged in to vote

@rsatapat it looks like you might have forgotten to capture the GIL with the ObserveOnGIL operator.

Whenever you have an observable sequence running asynchronously to Python you will need to use it (just once at the point you want to switch contexts, just before the Python call).

Be aware acquiring the GIL is a mutually exclusive region: it will likely affect performance if your camera is running too fast, and will also bottleneck if you are running multiple cameras at the same time.

In upcoming versions we will likely be able to configure Python contexts to run without the GIL, but this is not working yet.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rsatapat
Comment options

@banchan86
Comment options

Answer selected by rsatapat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants