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

Rosbridge memory leak when closing a socket without unsubscribing #12

Open
GoogleCodeExporter opened this issue Jul 7, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Start rosbridge
2. Connect and subscribe to a topic (in my case /stereo/left/image/compressed)
3. Close the application that was connected to rosbridge without unsubscribing


This is rosbridge output:

Connection from 10.68.1.131:51067
2 concurrent connections.

------
raw

------
raw socket
------

subscribing to: /stereo/left/image/compressed
closed 9
Socket did not close smoothly.

From the moment the socket is closed the memory usage starts growing at a rate 
of 10MB per minute. Maybe it is related to the bandwidth of topic it was 
subscribed, my wild guess would be that it is storing the messages of the image 
topic.

Anyway, I'd try to unsubscribe before shutting down the application, but I 
can't guarantee that the application won't crash or that it will go out of wifi 
range.

The memory leak goes on forever. I've had it grow to 1.5GB of RAM.

Using Ubuntu 10.04 and latest rosbridge version.

Original issue reported on code.google.com by [email protected] on 14 Feb 2012 at 9:54

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

1 participant