-
Notifications
You must be signed in to change notification settings - Fork 54
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
Problem with blocking method waitForNewFrame() #25
Comments
I guess you forgot to call
|
Thanks for your answer! Yes, you have right. But it keeps blocking. No frame grabbed... It's strange couse if I put the code in the "run" method it does not work, but if I exec it in the class init it works. |
Can you paste a code so that I can reproduce the issue? |
This code isn't working: `from multiprocessing import Process class Processor(Process):
p = Processor() On the other hand, this one is working: `from multiprocessing import Process class Processor(Process):
p = Processor() |
umm, I cannot reproduce the issue.. I used the similar code above: https://gist.github.com/r9y9/c64d4500283f6c33aa150d1e89806af8 (removed |
It would be helpful if you can paste a complete log message. |
There isn't any error message, it just doesn't work: it wait indefinitely on waitForNewFrame(). The strange behavior appears only when subclassing multiprocessing. I have just tried subclassing object and it's working. Any idea?
|
Can you share the complete test codes? I don't have the |
The code at https://gist.github.com/r9y9/c64d4500283f6c33aa150d1e89806af8 works without any problem. ..but unfortunately there isn't any window showing the video from the Kinect, unlike your code. |
Thanks for your help!!! |
Hi @0x54 ,I got same problem here. Did you find any way to solve this? |
Same problem here. |
I am also having this problem. Does anyone know a solution? |
In order to run other computations while grabbing frames I put the frame-grabbing related code in the main thread of my script. Looks like this breaks when you run on child processes via multiprocessing I'm afraid. |
waitForNewFrame() is blocking indefinitely. I'm using the code in Python 2.7, in a multiprocessing class.
On the same machine, the multiframe_listener example is working like a charm.
any idea?
The text was updated successfully, but these errors were encountered: