ublox
ublox copied to clipboard
Massive error logging on device disconnection ("input buffer read error: End of file, 0")
Hello,
I'm using:
- ROS
melodicon Ubuntu 20 docker, - ZED
F9Pevaluation board (C099), - connecting to the device via USB (
ttyACMdevice).
After connecting to the device, when I unplug the USB cable from the device, massive error logging occurs (about 3000 logs per second):
[ERROR] [1619601474.127914324]: U-Blox ASIO input buffer read error: End of file, 0
[ERROR] [1619601474.127942722]: U-Blox ASIO input buffer read error: End of file, 0
[ERROR] [1619601474.127965220]: U-Blox ASIO input buffer read error: End of file, 0
[ERROR] [1619601474.127986818]: U-Blox ASIO input buffer read error: End of file, 0
[ERROR] [1619601474.128017641]: U-Blox ASIO input buffer read error: End of file, 0
[ERROR] [1619601474.128053359]: U-Blox ASIO input buffer read error: End of file, 0
[ERROR] [1619601474.128084668]: U-Blox ASIO input buffer read error: End of file, 0
[ERROR] [1619601474.128112069]: U-Blox ASIO input buffer read error: End of file, 0
[ERROR] [1619601474.128142295]: U-Blox ASIO input buffer read error: End of file, 0
A simple solution is to throttle log in that particular situation: https://github.com/KumarRobotics/ublox/blob/master/ublox_gps/include/ublox_gps/async_worker.h#L219
ROS_ERROR_THROTTLE(10, "U-Blox ASIO input buffer read error: %s, %li",
error.message().c_str(),
bytes_transfered);
But still process is trying to read continuously with error and one CPU core has 100% usage.
Could you recommend how to resolve this issue? Best regards, Jacek.
Hi @namiota, have you found any workaround for the issue?