-
Notifications
You must be signed in to change notification settings - Fork 36
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
Subscriber terminating crashes publisher with SHM #220
Comments
Can you please give a configuration/setup where we could enable shared memory? At present I'm not sure how to do this. |
DEFAULT_RMW_ZENOH_ROUTER_CONFIG.json5
DEFAULT_RMW_ZENOH_SESSION_CONFIG.json5
|
I'm working on a reproducible container for this issue, but unfortunately it doesn't seem to be an issue with the simple pub/sub demo from the docs. The issue occurred when streaming images so much larger bandwidth, working on a reproducible example that does something similar |
Ah my hunch is that your payload exceeds the 10MB we allocate to the SHM buffer. rmw_zenoh/rmw_zenoh_cpp/src/rmw_init.cpp Lines 41 to 43 in cdea502
We tried making this configurable in the zenoh configs but at the time custom key-value pairs were not supported. |
@Yadunund yes I can confirm bumping the |
However, it still occurs when a larger number of connections are made/unmade in rapid succession. zenoh-2024-06-30_01.20.52.mp4 |
Thanks for the update. From the video attached, it seems like some memory is not being freed. We don't have any plans to get the existing SHM implementation working as of now as we will likely need to re-implement things once zenoh-1.0 is released. In the meanwhile, we'd be happy to review any of your PRs that fix this behavior. |
No point I think spending resources now to fix this if it will be reimplemented soon, will wait for the zenoh-1.0 integration. |
When using shared-memory between a publisher and subscriber, when the subscriber terminates either gracefully or not, the publisher crashes with:
Tested with commit e73df29 of
rmw_zenoh
with the Jazzy distro.The text was updated successfully, but these errors were encountered: