Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

properly shutdown xml rpc server #2368

Draft
wants to merge 1 commit into
base: noetic-devel
Choose a base branch
from

Conversation

jamesdarrenmuir
Copy link

stop CPU usage spike when a rospy node receives a signals.SIGINT interrupt but before it terminates the process (e.g. pressing CTRL+C while the node is sleeping due to a rospy.sleep() call no longer sends CPU usage of a core to 100%)

should also fix #2238

stop CPU usage spike when a rospy node receives a signals.SIGINT interrupt but before it terminates the process (e.g. pressing CTRL+C while the node is sleeping due to a rospy.sleep() call no longer sends CPU usage of a core to 100%)

should also fix ros#2238
@peci1
Copy link
Contributor

peci1 commented Feb 13, 2024

This apparently causes problems elsewhere - see the timing out unit tests...

@jamesdarrenmuir
Copy link
Author

I looked at the build log but I'm still not sure which test failed.

I saw these lines in the build log:

14:05:56 Scanning dependencies of target _run_tests_rosgraph_nosetests_test
14:05:56 -- run_tests.py: execute commands
14:05:56   "/usr/bin/cmake" -E make_directory /tmp/ws/test_results/rosgraph
14:05:56   /usr/bin/nosetests3 -P --process-timeout=60 --where=/tmp/ws/src/ros_comm/tools/rosgraph/test --with-xunit --xunit-file=/tmp/ws/test_results/rosgraph/nosetests-test.xml
14:05:56 /tmp/ws/src/ros_comm/tools/rosgraph/test/test_names.py:97: SyntaxWarning: "is" with a literal. Did you mean "=="?
14:05:56   if 'ROS_NAMESPACE' is os.environ:
14:05:56 ........ERROR: Invalid remapping argument 'foo:=bar:=baz'
14:05:56 ..........invalid ROS_IP (must be a valid IPv4 or IPv6 address)
14:05:56 invalid ROS_IP (must be a valid IPv4 or IPv6 address)
14:05:56 .invalid ROS_IP (must be a valid IPv4 or IPv6 address)
14:05:56 .invalid ROS_IP (must be a valid IPv4 or IPv6 address)
14:05:56 ................................Build timed out (after 120 minutes). Marking the build as failed.
14:05:56 Build was aborted

But I'm not sure which of these, if any, caused the test failure.

@jamesdarrenmuir
Copy link
Author

I am running the tests on my machine now (catkin test), but I am getting failures when testing the latest noetic-devel branch as well.

@jamesdarrenmuir
Copy link
Author

Ok, it seems like running the tests in the rosgraph package gets stuck. I will look more into this later.

@jamesdarrenmuir jamesdarrenmuir marked this pull request as draft March 25, 2024 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

xmlrpc.XmlRpcNode consumes 100%+ cpu after being shutdown
2 participants