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

[Bug] Duplicate Publishes of Messages When Repeatedly Subscribing / Advertising #214

Open
Carter12s opened this issue Dec 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Carter12s
Copy link

Carter12s commented Dec 3, 2024

Describe the bug

There appears to be a bug in how subscriptions / publishers are cleaned up that can allow duplicate zenoh subscriptions for a single topic to be bridged.

duplicate_messages_v2.mp4

Following the exact steps in the README.md tutorial, but repeatedly killing and restarting rostopic pub and rostopic echo in different orders results in a growing number of duplicate messages showing up per publish. The growth appears unbounded.

To reproduce

  1. Start a bridge on ROS_MASTER_URI 1
  2. Start a bridge on ROS_MASTER_URI 2
  3. Start a rostopic pub on 1
  4. Start a rostopic echo on 2
  5. Kill both rostopic commands
  6. Start a rostopic echo on 2
  7. Start a rostopic pub on 1

Repeating 5-7 and swapping the order in which the commands is run appears to ocassionally but reliably result in multiple zenoh connections being established and multiple copies of the message appearing on the echo side.

System info

Ubuntu 20.04
zenoh-ros1-bridge install from apt: Version 1.0.0-beta.2-1
ROS1 noetic

@Carter12s Carter12s added the bug Something isn't working label Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant