-
Following some of the past issue discussions on multiprocessing, it seems the examples show how to use At first I thought the So here I tried starting a server and simulating something, then spawning a bunch of processes that would do some calculation. Run file
the imported class
This results in an error After some testing, I noticed the subprocesses do work when I never create a bullet instance in the main process. From that I found I just had to change the variable name of the main process to get it to work. Changing the internal variable name for the main process only, solves the issue of subprocesses not connecting to the server.
When doing thing, all of the subprocesses have a client id of So when trying to figure out the client id situation, I went back and in the main script duplicated the creation of the client:
And this worked, I assume because the Perhaps this is an obvious python-related programming issue that is expected, but hope to get some confirmation/clarity from some people with experience on this. Or would it make sense for pybullet to catch this error and return a new connection and id? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
So I do think it is an issue of the I tested this by adding some print statements to the bullet_client in the
@erwincoumans am I missing something or misusing the module? If this is not expected behavior I have a fix I could propose. |
Beta Was this translation helpful? Give feedback.
-
Please check this example: Can you modify it and see if the problem persists? |
Beta Was this translation helpful? Give feedback.
-
The solution was provided in #3819 |
Beta Was this translation helpful? Give feedback.
The solution was provided in #3819