-
Notifications
You must be signed in to change notification settings - Fork 1
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
MultiprocessRGB(D)Publisher
cannot instantiate Zed2i
camera
#125
Comments
MultiprocessRGB(D)Publisher
cannot insatiated Zed2i
cameraMultiprocessRGB(D)Publisher
cannot instantiate Zed2i
camera
Creating a |
May be related to #116 |
The probleem seem to be GPU availablity in the Publisher process. Trying to close the camera results in:
I also get:
PyTorch also does not find any GPUs in the created process
|
Adding |
Nevermind, I was confused about the neural_depth optimization. It started because I changed my CUDA version to 12.3, and is not related to multiprocessing. |
This fixes the issue, but requires you to do this in every script with a multiprocessing.set_start_method("spawn") A more elegant solution is inheriting from: multiprocessing.context.SpawnProcess But that does not work and I don't understand why. |
Another downside to |
My experience is that for many libraries, including the Zed SDK, PyTorch, and open3d, you indeed need to use the I'll be doing a lot of multiprocessing stuff in the near future, I'll report here if I find any issues when not using |
Describe the bug
The publisher process hangs when initializing a
Zed2i
camera.To Reproduce
Run one of the multiprocessing scripts.
Expected behavior
Yesterday multiprocessing still worked on my setup, I even recorded some short videos with the
MultiprocessVideoRecorder
.Environment:
Gorilla desktop. Tested with two Zed2i camera. Occasionally got the error code
NO GPU DETECTED
. Rebooted desktop multiple times.The text was updated successfully, but these errors were encountered: