You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I realized that when i use shared memory with less than ~4.2 MB of data Zenoh can use shared memory but when I start publishing large messages I get the error:
WARN ThreadId(06) zenoh_shm: SharedMemoryManager does not have sufficient free memory to allocate 5000010 bytes, try de-fragmenting! at /root/.cargo/git/checkouts/zenoh-cc237f2570fab813/e66745e/commons/zenoh-shm/src/lib.rs:409.
terminate called after throwing an instance of 'rclcpp::exceptions::RCLError'
what(): failed to publish message: Failed to allocate a SHM buffer, even after GCing, at /root/ws_rmw_zenoh/src/rmw_zenoh/rmw_zenoh_cpp/src/rmw_zenoh.cpp:917, at ./src/rcl/publisher.c:284
I tried to use zc_shm_defrag (By the way I cannot find any sort of documentation or reference for zc_shm_gc or zc_shm_defrag functions) function but it did not help. Is this expected behaviour and how can I solve this issue. When I use default fastrtps middleware it can share the messages through shared memory with no problems.
The text was updated successfully, but these errors were encountered:
Hello, I realized that when i use shared memory with less than ~4.2 MB of data Zenoh can use shared memory but when I start publishing large messages I get the error:
I tried to use zc_shm_defrag (By the way I cannot find any sort of documentation or reference for zc_shm_gc or zc_shm_defrag functions) function but it did not help. Is this expected behaviour and how can I solve this issue. When I use default fastrtps middleware it can share the messages through shared memory with no problems.
The text was updated successfully, but these errors were encountered: