Skip to content

BindException is not caught when creating YoVariableServer #955

@msavchen-nasa

Description

@msavchen-nasa
Info
Version / Hash 0.14.0-250815 / ffc2ac0
Sim Valkyrie SCS 2 Sim
OS Ubuntu 22.04 (Docker)
Java Version 17.0.16
Gradle Version 8.14.3

Heya folks,
I'm running the Valkyrie's SCS2 and then starting up the networkProcessor with the KST and Directional Toolbox and getting the following error:

250825 16:59:21:300 [INFO] (DirectionalControlController.java:241): Ignoring REA planes is true
250825 16:59:21:302 [INFO] (ToolboxModule.java:193): DirectionalControlModule: Trying to start YoVariableServer using port: 8009.
250825 16:59:25:600 [INFO] (ToolboxModule.java:228): KinematicsStreamingToolboxModule: Successfully started YoVariableServer on port: 8009.
Exception in thread "DirectionalControlModuleToolboxYoVariableServer" java.lang.RuntimeException: io.netty.channel.unix.Errors$NativeIoException: bind(..) failed: Address already in use
	at us.ihmc.robotDataLogger.YoVariableServer.start(YoVariableServer.java:251)
	at us.ihmc.avatar.networkProcessor.modules.ToolboxModule.lambda$startYoVariableServer$0(ToolboxModule.java:198)
	at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: io.netty.channel.unix.Errors$NativeIoException: bind(..) failed: Address already in use
^C250825 16:59:41:811 [INFO] (HumanoidNetworkProcessor.java:117): Shutting down network processor modules.
250825 16:59:41:812 [INFO] (ROS2Node.java:541): Shutting down ROS2 node ihmc_kinematics_streaming_toolbox_message_logger
^C./runNetworkProcessor.sh: line 1: kill: (130128) - No such process

Which should be caught on this line here but isn't...

Instead I tried using

if (e.getCause() instanceof java.io.IOException)

which catches this throw.

Have you seen this before?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions