zyadan / phoxi_camera_ros2

This is the development for the ros2 driver of Photoneo Phoxi 3D scanner
3 stars 1 forks source link

After running the phoxi_camera_node, I encountered an 'invalid pointer' error. #1

Open Tsai-Li-Chun opened 8 months ago

Tsai-Li-Chun commented 8 months ago

The operating environment is ROS Galactic. The 'colcon build' process has also passed successfully. When executing the phoxi_camera_node, an error 'free(): invalid pointer' occurs, and the program crashes. Please help me resolve this issue. Thank you very much!

username@username:~/ros2_ws$ colcon build
Starting >>> phoxi_msgs
Starting >>> zj_00_beginner              
Finished <<< zj_00_beginner [0.77s]                                                               
Finished <<< phoxi_msgs [2.38s]                     
Starting >>> phoxi_camera
Finished <<< phoxi_camera [0.69s]                    

Summary: 3 packages finished [4.81s]
username@username:~/ros2_ws$ ros2 run phoxi_camera phoxi_camera_node 
free(): invalid pointer
username@username:~/ros2_ws$
paulijosey commented 8 months ago

Same for me :(

paulijosey commented 8 months ago

So I continued to investigate a bit here. What I got so far is (and I do not know why) that if you run the node with a debugger it does not throw the "invalid pointer" error. This is also a bit unfortunate for the whole debugging process but could potentially be used for a hacky workaround.

ros2 run --prefix 'valgrind' phoxi_camera phoxi_camera_node

The thing that is a problem after this is that I do not get any messages published on the ROS topics. Any ideas what the problem here could be?

(... another thing. At one point this week I did NOT get the pointer error anymore. And then all of a sudden it reappeared. I am somewhat clueless what the main cause here is.)

sgarciav commented 1 month ago

Hello: Has anyone gotten past this error. I am getting the same one. Using ROS 2 Humble.