usdot-fhwa-OPS / V2X-Hub

V2X Hub is a message handler that acts as a translator and data aggregator/disseminator for infrastructure components of a connected vehicle deployment.
Apache License 2.0
120 stars 68 forks source link

SPAT Plugin Configuration Warning #637

Open jwillmartin opened 2 months ago

jwillmartin commented 2 months ago

Summary

When the plugin is enabled and a configuration is changed, a warning is thrown to the user. However, functionality is not affected if the plugin is running correctly.

Commit

2303a49

Expected Behavior

The plugin allows for configurations to change without throwing warnings to the user.

Actual Behavior

The plugin accepts and uses new configurations, but warnings are output in the docker logs.

Steps to Reproduce the Actual Behavior

  1. Correctly configure plugin and set LOG level to DEBUG.
  2. Enable Plugin.
  3. While enabled, change LOG level from DEBUG to INFO.
  4. Warning message is printed to docker logs.

Related Work

No response

jwillmartin commented 2 months ago

Warning message:

[2024-08-28 19:45:16.690] Utils/src/PluginClient.cpp (162) - INFO   : Config Changed. LogLevel: INFO
[2024-08-28 19:45:16.690] Utils/src/PluginClient.cpp (405) - WARNING: SPAT encountered unhandled exception: could not bind UDP socket with: "192.168.55.127:6053"
backtrace: (Hint: Use addr2line -C -e <exe> 0x#######) to find line number)
SpatPlugin(+0x41065) [0x55bc6fdbe065]
SpatPlugin(+0x40e3c) [0x55bc6fdbde3c]
SpatPlugin(+0x41fcf) [0x55bc6fdbefcf]
SpatPlugin(+0x13d744) [0x55bc6feba744]
SpatPlugin(+0x9bc19) [0x55bc6fe18c19]
SpatPlugin(+0x93c62) [0x55bc6fe10c62]
SpatPlugin(+0x8b69b) [0x55bc6fe0869b]
SpatPlugin(+0x85fdf) [0x55bc6fe02fdf]
SpatPlugin(+0x7f562) [0x55bc6fdfc562]
SpatPlugin(+0x6fef5) [0x55bc6fdecef5]
SpatPlugin(+0x59c21) [0x55bc6fdd6c21]
SpatPlugin(+0x49a1e) [0x55bc6fdc6a1e]
SpatPlugin(+0x3d964) [0x55bc6fdba964]
SpatPlugin(+0xff9ff) [0x55bc6fe7c9ff]
SpatPlugin(+0x100fbf) [0x55bc6fe7dfbf]
SpatPlugin(+0x10f7f0) [0x55bc6fe8c7f0]
/usr/local/lib/libtmxapi.so(ivp_onConfigChanged+0xe4) [0x7efd6ef3a4b3]
/usr/local/lib/libtmxapi.so(ivp_onMessageReceived+0x1f9) [0x7efd6ef3a345]
/usr/local/lib/libtmxapi.so(ivp_receive+0x372) [0x7efd6ef3a82a]
/lib/x86_64-linux-gnu/libc.so.6(+0x94ac3) [0x7efd6e731ac3]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x44) [0x7efd6e7c2a04]
diagnostic info:
Throw location unknown (consider using BOOST_THROW_EXCEPTION)
Dynamic exception type: tmx::utils::UdpServerRuntimeError
std::exception::what: could not bind UDP socket with: "192.168.55.127:6053"