Closed rdtfyg closed 2 years ago
Hi, it appears that a non allocated memory address might be called. Could you build the driver with debug information and run it afterwards again.
cmake -DCMAKE_BUILD_TYPE=Debug ..
make -j8
make install
Then best use gdb
to run the program. If you then can provide a stacktrace from gdb I can determine where the driver crashes and try to fix this.
Closing this due to inactivity
my sicknano running for hours without any error, but after printing the error below, my callbackfunction can't receive laser data anymore and I must restart the program. here is the two times issues log: one log is : 15:03:22 0257 info 797E # Command Method Acknowledged. 21:11:48 0850 error 79D7 # vector::_M_default_append
another log is : 08:59:41 0334 warning 6E35 # Skipping data, sizes do not match, actual size is smaller then expected size! If this occurs please report with a stacktrace if the driver crashes at some other place. 08:59:41 0334 warning 6E35 # Expected minimum size: 34175 08:59:41 0334 warning 6E35 # Actual size: 7315 08:59:41 0334 warning 6E35 # Skipping all data for this message. 08:59:41 0501 error 6E35 # std::bad_alloc
I failed to find where the log shows that " vector::_M_default_append" and "std::bad_alloc" so what happend to the ladar
here is my code: // Sensor IP and Port sick::types::ip_address_t sensor_ip = boost::asio::ip::address_v4::from_string(_laser_address); sick::types::port_t tcp_port{ _tcp_port };