Lidar_AI_Solution icon indicating copy to clipboard operation
Lidar_AI_Solution copied to clipboard

error when replace load_images of loading ros msg

Open leslie27ch opened this issue 1 year ago • 6 comments

图片 hello author, when I use this loading ros message of 6 images to replace orin load_images,and keep other code is the same。 i meet a error: 图片

I check load_images, it alse use malloc to store unsigned char image data,and my result.jpg is correct。 only I donot know why the error: double free or corruption (out)

leslie27ch avatar Sep 08 '23 08:09 leslie27ch

How did you free the images pointer.

hopef avatar Sep 08 '23 08:09 hopef

图片

and also try

图片

leslie27ch avatar Sep 08 '23 09:09 leslie27ch

How did you free the images pointer.

图片

also try: 图片

leslie27ch avatar Sep 08 '23 09:09 leslie27ch

all above code is in ros message callback function, when I add ros::spin() in the end of message callback function, it will be correctly running, which is very weird. 图片

leslie27ch avatar Sep 08 '23 09:09 leslie27ch

@leslie27ch I replied to your email and may be able to answer your question.

Gigalomanicx avatar Sep 09 '23 05:09 Gigalomanicx

Is anyone in this convo generous enough to share the resolution? Many thanks in advance!

rayxie11 avatar Mar 12 '24 00:03 rayxie11