-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
carla client doesn't wait for server to start even with set_timeout #3707
Comments
Seems to still occur in CARLA 0.9.11 |
This appears to be an issue with the underlying rpclib dependency and requires the entire client to be re-instantiated to proceed if the server isn't up/running/ready to receive connections when the client reaches out to it. |
We implemented a workaround where we basically just try/catch the timeout in the CARLA side of the C++ code, re-initialize the rpc client, and retry a few times. The patch file for CARLA 0.9.8 is below, but this is a stopgap since this inability to recover from a late starting server likely should be addressed at the rpclib level, so not going to create a merge request. Speaking of rpclib, given carla has forked rpclib, likely due to upstream abandonment. @bernatx it might be worth examining another user's fork for fixes, but it doesn't look like this particular shortcoming has been addressed in that fork either (based on commit logs). |
@bernatx are you able to follow up on this please? |
It would appear that the maintainer of the original rpclib is back and looking for someone to takeover. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
When I use
set_timeout
with the CARLA PythonAPI, I expect it to periodically check to see if the carla server specified port (default 2000) is receiving connections and if so, connect to it before the timeout is over and proceed. It doesn't appear to do so... if the carla server isn't up/running before the carla client is called, it appears to simply fail after the timeout... consider the following two scripts to launch a CARLA 0.9.10 server/client pair, with a slightly modifiedtutorial.py
. One attempts to start the client immediately after the server, the other sleeps for several seconds to give the server time to spin up:The first one fails, despite giving plenty of time for the server to start. After killing the server started by the first script, the 2nd script succeeds:
This could be related to Issue #3592 and Issue #3430
The text was updated successfully, but these errors were encountered: