You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This works fine if the device is launched as part of a standalone yarprobotinterface process, but if this is done as part of a robotinterface instance created with the libYARP_robotinterface, what can happen is that the YARP libraries are unloaded, but the factories are never restored to the non-YARP ones, resulting in segmentation fault if the textlogging or clock functions are used.
The text was updated successfully, but these errors were encountered:
That is kind of a tricky one, as any kind of global state is always tricky to handle. Perhaps we could have an option to enable/disable setting this global state? It may be even more clean to have a dedicated device that only set the logger and the clock, but that would be a bit cumbersome as you would need to remember to insert it in any yarprobotinterface, while the option may be more easy to handle?
See
bipedal-locomotion-framework/devices/YarpRobotLoggerDevice/src/YarpRobotLoggerDevice.cpp
Lines 111 to 123 in 4ea3780
This works fine if the device is launched as part of a standalone
yarprobotinterface
process, but if this is done as part of a robotinterface instance created with thelibYARP_robotinterface
, what can happen is that the YARP libraries are unloaded, but the factories are never restored to the non-YARP ones, resulting in segmentation fault if the textlogging or clock functions are used.The text was updated successfully, but these errors were encountered: