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

Memory increasing problem #48

Open
OliverShaoPT opened this issue Jul 20, 2023 · 3 comments
Open

Memory increasing problem #48

OliverShaoPT opened this issue Jul 20, 2023 · 3 comments

Comments

@OliverShaoPT
Copy link

Dear Author, thanks for your great work.

I build the sliding window LIO using BALM 2.0. After calling opt_lsv.damping_iter(...) function, the total memory occupancy increase, about 100MB each time. Any advise?

Waiting for your kindly reply.

@OliverShaoPT
Copy link
Author

Problem solved.

In left_evaluate(...) and left_evaluate_acc2(), "vector<PLM(4)*> Cs" was created and use "PLM(4) *Co = new PLM(4)(win_size, Eigen::Matrix4d::Zero());" to push data, but *Co haven't been deleted after calculation.

Add "for (int i=0; i<Cs.size();i++) delete Cs[i];" at the end of function, the memory increasing issue disappear.

@satyajitghana
Copy link

thanks!

@gongjun136
Copy link

@OliverShaoPT Memory will still grow rapidly, and I feel that the algorithm still has some memory leaks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants