photoneo / phoxi_camera

ROS Package for PhoXi Scanner/Camera. If you like us, STAR US! :P
MIT License
44 stars 32 forks source link

Invalid Pointer when running roslaunch phoxi_camera.launch #62

Open neerja123-gupta opened 2 years ago

neerja123-gupta commented 2 years ago

Hello,

I am using Ubuntu 20.04 and ros noetic. I installed this package and downloaded the latest PhoXi ControlPhoxi Control APP for ubuntu 20. I am able to build this package using catkin build. However, when I am running "roslaunch phoxi_camera phoxi_camera.launch" its giving an error free(): invalid pointer process has died. Any help would be highly appreciated. Thanks.

minghui97 commented 2 years ago

I get the same issue, have you found solution? Thanks for any suggestion!

g6014552898 commented 1 year ago

I got the same in ROS Noetic, debug information form valgrind are below.

Linux Station 5.15.0-52-lowlatency #58~20.04.1-Ubuntu SMP PREEMPT gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0

setting /run_id to f9c887d4-624e-11ed-b763-2b491f4dd0ae process[rosout-1]: started with pid [57058] started core service [/rosout] process[phoxi_camera-2]: started with pid [57062] ==57062== Memcheck, a memory error detector ==57062== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al. ==57062== Using Valgrind-3.15.0 and LibVEX; rerun with -h for copyright info ==57062== Command: /home/user/work_ws/devel/lib/phoxi_camera/phoxi_camera name:=phoxi_camera __log:=/home/user/.ros/log/f9c887d4-624e-11ed-b763-2b491f4dd0ae/phoxi_camera-2.log ==57062== ==57062== Thread 2: ==57062== Conditional jump or move depends on uninitialised value(s) ==57062== at 0x4D19B0B: std::cxx11::basic_string<char, std::char_traits, std::allocator >::_M_append(char const, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28) ==57062== by 0x116224: boost::system::system_error::what() const (in /home/user/work_ws/devel/lib/phoxi_camera/phoxi_camera) ==57062== by 0x56F58D7: boost::filesystem::filesystem_error::what() const (in /opt/Photoneo/PhoXiControl/API/lib/libPhoXi_API_gcc9.3.0_Release.so.1.9.1) ==57062== by 0x5580181: pho::LogCleanup::removeLogsOverSizeLimit() const [clone .cold] (in /opt/Photoneo/PhoXiControl/API/lib/libPhoXi_API_gcc9.3.0_Release.so.1.9.1) ==57062== by 0x4CABDE3: ??? (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28) ==57062== by 0x4896608: start_thread (pthread_create.c:477) ==57062== by 0x4EF1132: clone (clone.S:95) ==57062== Uninitialised value was created by a stack allocation ==57062== at 0x556B2E0: ??? (in /opt/Photoneo/PhoXiControl/API/lib/libPhoXi_API_gcc9.3.0_Release.so.1.9.1) ==57062== ==57062== Conditional jump or move depends on uninitialised value(s) ==57062== at 0x4D19B10: std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_append(char const, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28) ==57062== by 0x116224: boost::system::system_error::what() const (in /home/user/work_ws/devel/lib/phoxi_camera/phoxi_camera) ==57062== by 0x56F58D7: boost::filesystem::filesystem_error::what() const (in /opt/Photoneo/PhoXiControl/API/lib/libPhoXi_API_gcc9.3.0_Release.so.1.9.1) ==57062== by 0x5580181: pho::LogCleanup::removeLogsOverSizeLimit() const [clone .cold] (in /opt/Photoneo/PhoXiControl/API/lib/libPhoXi_API_gcc9.3.0_Release.so.1.9.1) ==57062== by 0x4CABDE3: ??? (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28) ==57062== by 0x4896608: start_thread (pthread_create.c:477) ==57062== by 0x4EF1132: clone (clone.S:95) ==57062== Uninitialised value was created by a stack allocation ==57062== at 0x556B2E0: ??? (in /opt/Photoneo/PhoXiControl/API/lib/libPhoXi_API_gcc9.3.0_Release.so.1.9.1) ==57062== ==57062== Use of uninitialised value of size 8 ==57062== at 0x4D19B2C: std::__cxx11::basic_string<char, std::char_traits, std::allocator >::_M_append(char const, unsigned long) (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28) ==57062== by 0x116224: boost::system::system_error::what() const (in /home/user/work_ws/devel/lib/phoxi_camera/phoxi_camera) ==57062== by 0x56F58D7: boost::filesystem::filesystem_error::what() const (in /opt/Photoneo/PhoXiControl/API/lib/libPhoXi_API_gcc9.3.0_Release.so.1.9.1) ==57062== by 0x5580181: pho::LogCleanup::removeLogsOverSizeLimit() const [clone .cold] (in /opt/Photoneo/PhoXiControl/API/lib/libPhoXi_API_gcc9.3.0_Release.so.1.9.1) ==57062== by 0x4CABDE3: ??? (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28) ==57062== by 0x4896608: start_thread (pthread_create.c:477) ==57062== by 0x4EF1132: clone (clone.S:95) ==57062== Uninitialised value was created by a stack allocation ==57062== at 0x556B2E0: ??? (in /opt/Photoneo/PhoXiControl/API/lib/libPhoXi_API_gcc9.3.0_Release.so.1.9.1) ==57062== ==57062== Conditional jump or move depends on uninitialised value(s) ==57062== at 0x116232: boost::system::system_error::what() const (in /home/user/work_ws/devel/lib/phoxi_camera/phoxi_camera) ==57062== by 0x56F58D7: boost::filesystem::filesystem_error::what() const (in /opt/Photoneo/PhoXiControl/API/lib/libPhoXi_API_gcc9.3.0_Release.so.1.9.1) ==57062== by 0x5580181: pho::LogCleanup::removeLogsOverSizeLimit() const [clone .cold] (in /opt/Photoneo/PhoXiControl/API/lib/libPhoXi_API_gcc9.3.0_Release.so.1.9.1) ==57062== by 0x4CABDE3: ??? (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28) ==57062== by 0x4896608: start_thread (pthread_create.c:477) ==57062== by 0x4EF1132: clone (clone.S:95) ==57062== Uninitialised value was created by a stack allocation ==57062== at 0x556B2E0: ??? (in /opt/Photoneo/PhoXiControl/API/lib/libPhoXi_API_gcc9.3.0_Release.so.1.9.1) ==57062== ==57062== Conditional jump or move depends on uninitialised value(s) ==57062== at 0x483CF75: operator delete(void) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==57062== by 0x11623C: boost::system::system_error::what() const (in /home/user/work_ws/devel/lib/phoxi_camera/phoxi_camera) ==57062== by 0x56F58D7: boost::filesystem::filesystem_error::what() const (in /opt/Photoneo/PhoXiControl/API/lib/libPhoXi_API_gcc9.3.0_Release.so.1.9.1) ==57062== by 0x5580181: pho::LogCleanup::removeLogsOverSizeLimit() const [clone .cold] (in /opt/Photoneo/PhoXiControl/API/lib/libPhoXi_API_gcc9.3.0_Release.so.1.9.1) ==57062== by 0x4CABDE3: ??? (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28) ==57062== by 0x4896608: start_thread (pthread_create.c:477) ==57062== by 0x4EF1132: clone (clone.S:95) ==57062== Uninitialised value was created by a stack allocation ==57062== at 0x556B2E0: ??? (in /opt/Photoneo/PhoXiControl/API/lib/libPhoXi_API_gcc9.3.0_Release.so.1.9.1) ==57062== ==57062== Invalid free() / delete / delete[] / realloc() ==57062== at 0x483CFBF: operator delete(void*) (in /usr/lib/x86_64-linux-gnu/valgrind/vgpreload_memcheck-amd64-linux.so) ==57062== by 0x11623C: boost::system::system_error::what() const (in /home/user/work_ws/devel/lib/phoxi_camera/phoxi_camera) ==57062== by 0x56F58D7: boost::filesystem::filesystem_error::what() const (in /opt/Photoneo/PhoXiControl/API/lib/libPhoXi_API_gcc9.3.0_Release.so.1.9.1) ==57062== by 0x5580181: pho::LogCleanup::removeLogsOverSizeLimit() const [clone .cold] (in /opt/Photoneo/PhoXiControl/API/lib/libPhoXi_API_gcc9.3.0_Release.so.1.9.1) ==57062== by 0x4CABDE3: ??? (in /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28) ==57062== by 0x4896608: start_thread (pthread_create.c:477) ==57062== by 0x4EF1132: clone (clone.S:95) ==57062== Address 0x4db5ce0 is in the BSS segment of /usr/lib/x86_64-linux-gnu/libstdc++.so.6.0.28 ==57062== [ WARN] [1668232691.205532407]: Node is not connected to scanner

kbrameld commented 2 weeks ago

I had the same issue, and while debugging, found that linking against the Debug build of PhoxiControl gets around this problem.

ie. Linking against. ${PHOXI_LIB_DEBUG} instead of ${PHOXI_LIBRARY}