Skip to content
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

Subscriptions stop working after longer periods of time #829

Closed
lkeselman opened this issue Dec 16, 2022 · 5 comments
Closed

Subscriptions stop working after longer periods of time #829

lkeselman opened this issue Dec 16, 2022 · 5 comments

Comments

@lkeselman
Copy link

Description
Periodically after relatively long periods of time, my Javascript client webpage no longer receives messages from subscriptions.

  • I can echo the messages using rostopic echo so they are in fact published.

  • When refreshing the webpage, the rosbridge logs indicate a successful subscription is made.

  • No messages from any subscriptions are received - so it's not just 1 broken one.

  • Services and parameters continue to work

  • Refreshing the webpage doesn't do anything

  • The only fix is to restart rosbridge server which works immediately.

  • Library Version: ros-noetic

  • ROS Version: Noetic

  • Platform / OS: Ubuntu 20

Thanks for the help, I'm not sure how to go about debugging this one.

@remod
Copy link

remod commented Jul 14, 2023

Can you reliably reproduce this? Did you find a solution? We are sporadically experiencing the same issue.

@lkeselman
Copy link
Author

Can you reliably reproduce this? Did you find a solution? We are sporadically experiencing the same issue.

Unfortunately not reliably. I did try to create a minimal scenario and stress test it but could not reproduce it after a couple weeks of continuous running.

My only solution has been to add some automation that allowed the JavaScript client to restart rosbridge when it notices the issue.

@jtbandes
Copy link
Member

jtbandes commented Jul 14, 2023

Hi folks, not sure if it is relevant to you, but you might be interested in checking out foxglove_bridge which is more performant and more actively maintained. There is a JS/TS client library you can use to interact with it from a webpage (or just use Foxglove Studio which supports it natively).

@remod
Copy link

remod commented Jul 20, 2023

Thank you! I've had a first success with setting queue_length to 1 instead of 0 which is the default when a topic is created it roslibjs. This helped me to solve an "entangled connection status" between two clients: When one client disconnected (e.g. disable WiFi), the other client stopped receiving messages as well. Not exactly the issue here, but related.

Copy link

This issue has been marked as stale because there has been no activity in the past 12 months. Please add a comment to keep it open.

@github-actions github-actions bot added the stale label Jul 19, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants