-
Notifications
You must be signed in to change notification settings - Fork 357
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
dds_take memory leak #2102
Comments
Running into the same issue. Let me create a snippet to demonstrate that |
I am currently using the release 0.10.5 branch's cycleddds, but the dds_rit_impl you provided is the content of the master branch. So should I use the master or release branch of the cyclone? |
Does shared memory support the transmission of dynamic data in this way, where the structure is a sequence type |
你的问题解决了吗? |
你说的是哪个问题,可以加个联系方式交流一下吗?v:17854263171 |
I think I'm seeing the same issue here. An reproducible snippet can be found in the latest commit in my fork that uses https://github.com/t0ny-peng/cyclonedds/tree/bug/dds_take_memory_leak mkdir build install
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_CXX_FLAGS="-O3" -DCMAKE_BUILD_TYPE=Release -DBUILD_EXAMPLES=ON -DBUILD_IDLC=ON -DBUILD_DDSPERF=ON -DENABLE_TYPELIB=ON -DENABLE_TYPE_DISCOVERY=ON -DENABLE_TOPIC_DISCOVERY=ON ..
cmake --build . -j 12 --target all Then run the publisher and subscriber in different terminals. # Terminal 1
./bin/HelloworldPublisher
# Terminal 2
./bin/HelloworldSubscriber I'm not sure if this is a leak in |
Memory footprint:
|
I solved the memory leak problem by joining dds_turn_roan, but there were errors caused by iceoryx: ""ICEORYX error! POPO__CHUNK_SENDER_INVALID_CHUNK_TO_SEND_FROM_USER" or "POSH__MEMPOOL_POSSIBLE-DOUBLE_FREE". I couldn't solve it, so I gave up using shared memory and used UDP with cycleddds for data transmission between different processes on the same host |
@gxl1457628736 Hm? I'm calling Btw I have removed the |
When using cycleddds for shared memory communication, the dds_take call caused a memory leak. After trying, it is necessary to manually call dds_turn_Loan for memory recovery. But I noticed that the example/shmsubscriber. c you provided did not call this function for memory recycling processing
But when I was writing data in publisher, I didn't call dds_land_stample, and I'm not sure if this is the cause
The text was updated successfully, but these errors were encountered: