livox_free_space icon indicating copy to clipboard operation
livox_free_space copied to clipboard

double free or corruption (!prev)

Open GuillaumeAnoufa opened this issue 3 years ago • 4 comments

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

GuillaumeAnoufa avatar Dec 14 '21 15:12 GuillaumeAnoufa

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

pVImg = NULL;

laszloturanyi avatar Feb 25 '22 10:02 laszloturanyi

@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?

HuangVictorAuto avatar Mar 03 '22 08:03 HuangVictorAuto

@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

abhishekt711 avatar Jun 25 '22 07:06 abhishekt711

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.

kimth1757 avatar Aug 09 '22 06:08 kimth1757