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
You have allocated a thread object on the stack and the thread will be destroyed before a new loop.
So I have to trun the parameter "fit_spline" to 0, so that we can avoid create the issue.
fit_spline: 0
Here is a simple code to reproduct the Signal: SIGABRT (Aborted) issue:
//// Created by Liuyang Li on 30/09/24.//
#include<iostream>
#include<thread>voidtest()
{
for(int i = 0; i < 10000000; i++)
{
std::cout << i << std::endl;
}
}
intmain()
{
std::thread t1(&test);
}
Sorry for my poor understand your SLAM system, I'm afraid of influencing the SLAM progress, so I can't fix this issue by myself.
Maybe you can use "join()" at the end of the loop
or just use "detach()" after creating the thread.
// Fit the spline at the ending segment to avoid high cost
std::thread threadFitSpline;
if (fit_spline)
{
staticbool fit_spline_enabled = false;
if (SwTimeStep.size() >= WINDOW_SIZE && !fit_spline_enabled)
fit_spline_enabled = true;
elseif(fit_spline_enabled)
{
threadFitSpline = std::thread(&Estimator::FitSpline, this);
threadFitSpline.detach();
}
}
The text was updated successfully, but these errors were encountered:
Hi, Thien-Minh Nguyen
Thanks for sharing your great work! I have learned a lot.
I found there may cause Signal: SIGABRT (Aborted) issue, if I turn the parameter "fit_spline" to 1.
I have debugged this issue and found there is a fault usage of std::thread in your code below:
slict/src/Estimator.cpp
Lines 1403 to 1412 in a733e7f
You have allocated a thread object on the stack and the thread will be destroyed before a new loop.
So I have to trun the parameter "fit_spline" to 0, so that we can avoid create the issue.
Here is a simple code to reproduct the Signal: SIGABRT (Aborted) issue:
Sorry for my poor understand your SLAM system, I'm afraid of influencing the SLAM progress, so I can't fix this issue by myself.
Maybe you can use "join()" at the end of the loop
or just use "detach()" after creating the thread.
The text was updated successfully, but these errors were encountered: