Livox-SDK / livox_free_space

Livox-Free-Space is a fast and effective free-space detection package using Livox LiDAR data.
113 stars 16 forks source link

double free or corruption (!prev) #1

Open GuillaumeAnoufa opened 2 years ago

GuillaumeAnoufa commented 2 years ago

Hello,

I have tried to run this node with my lidar (Livox Avia) or with your test bag (data/demo.bag) and with both methods I receive an error 'double free or corruption (!prev)' after the first cloud callback.

My system is:

Ubuntu 20.04 ROS noetic pcl 1.10

image

laszloturanyi commented 2 years ago

Add this line after https://github.com/Livox-SDK/livox_free_space/blob/master/src/FreeSpace.cpp#L255

pVImg = NULL;
HuangVictorAuto commented 2 years ago

@laszloturanyi , i have the same issue above, after i add the line as you mentioned, a new problem come out. free(): invalid pointer. can you give me some advice?

abhishekt711 commented 2 years ago

@laszloturanyi , i have the same issue above, after i add the line as you mentioned, a new problem come out. free(): invalid pointer. can you give me some advice?

hey i am also facing the same issue. if u have solved it, can you please help me out

kimth1757 commented 2 years ago

Hi, I resoved above issue. Please add "return 0" at the end of the function int LivoxFreeSpace::GenerateFreeSpace(float* fPoint_In, int pointNum, std::vector & free_space). Best, Taehan.