-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
UnityTimeOutException: Couldn't start socket communication because worker number 10 is still in use. You may need to manually close a previously opened environment or use a different worker number. #3942
Comments
I encountered this bug too, I have to wait for about 20 seconds to run again. |
Hi @ShivanshuPurohit @Locke637 -- there is a known issue with some Linux distributions where a port is reserved for up to 60 seconds after the application is closed. We can't do much about that issue, unfortunately. @ShivanshuPurohit are you instantiating the environment multiple times? or will an environment never actually launch? We'd appreciate any specific steps to reproduce the issue. |
Sorry for the delay. Steps to reproduce the error (I encountered this error in colab):
This leads to the following error message:
|
Hi ShivanshuPurohit, I managed to run it after shutting down run time on Colab and then running just env = UnityEnvironment(file_name='Reacher_Linux_NoVis/Reacher.x86_x64') |
I realize this has been stale for over a year, but as a side effect of #5553 this should not longer occur since it allows socket re-use. Once it is included in releases (release 19+) this should go away. |
Closing since this should be resolved as mentioned above. Please re-open if release 19 comes out and you still have this issue. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
When I run the following code in colab
env = UnityEnvironment(file_name='/content/Reacher_Linux_NoVis/Reacher.x86_64', worker_id=10, seed=10)
I get the aforementioned error
UnityTimeOutException: Couldn't start socket communication because worker number 10 is still in use. You may need to manually close a previously opened environment or use a different worker number.
I get the error no matter what worker_id I set it just says the passed worker_id is in use.
The text was updated successfully, but these errors were encountered: