ublox icon indicating copy to clipboard operation
ublox copied to clipboard

Massive error logging on device disconnection ("input buffer read error: End of file, 0")

Open namiota opened this issue 4 years ago • 1 comments

Hello,

I'm using:

  • ROS melodic on Ubuntu 20 docker,
  • ZED F9P evaluation board (C099),
  • connecting to the device via USB (ttyACM device).

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.

namiota avatar Apr 28 '21 09:04 namiota

Hi @namiota, have you found any workaround for the issue?

airuchen avatar Jun 22 '22 11:06 airuchen