Closed sthoduka closed 5 years ago
I might need to be the below cahne, since some parts seem to rely having it properly set to null once it is deleted.
delete ptr_;
ptr_ = NULL;
Indeed, like Sebastian mentions the problems is in the problib-library. There, for each functionality, pointers are created which can be shared, but shared pointers was not used. Therefore, I updated the libraries and included the shared pointers. In order to get it running, please update the following packages:
The testfile in the problib-library is updated as well and does not give any segfaults or memory leaks. By used the shared pointers, it turned out to be slightly slower (<1%).
I have the code in simulation as wel as on the bagfile which Santosh created and no problems were detected, so time to test it on the robot now.
tested the docking sequence on the robot just now, and there were no crashes (or memory leaks).
This issue refers to the feature/tracking branch of this repository. After launching ed, with this plugin enabled, it segfaults after a while.
Some details about the crash are below.
Bagfile: https://nextcloud.ropod.org/index.php/apps/files/?dir=/ropod_shared/rosbags/2019/06/20190618&fileid=16869#editor
Launch: roslaunch route_navigation route_navigation_brsu.launch
ed config:
Workspace status is shown below.
Note: the following packages had cmake build type set to Debug locally: ed, ed_sensor_integration, ed_gui_server, ed_rviz_plugins, route_navigation, problib. I have also tested without 'Debug' and it results in the same segfault.
GDB output:
GDB output from last week (seems to be slightly different, but is still in PMF)