Git Product home page Git Product logo

Comments (6)

sloretz avatar sloretz commented on July 24, 2024

Confirmed that demo_nodes_cpp service server can be interrupted no problem, so this is just an rclpy issue

from rclpy.

dirk-thomas avatar dirk-thomas commented on July 24, 2024

I just tried it with sourcing the referenced build on the same Windows machine (windshield) and it was interrupt able without a problem (just tried with the default FastRTPS):

C:\J\workspace>packaging_windows\ws\install\Lib\demo_nodes_py\add_two_ints_server.exe
Traceback (most recent call last):
  File "C:\J\workspace\packaging_windows\ws\install\Lib\demo_nodes_py\add_two_ints_server-script.py", line 11, in <module>
    load_entry_point('demo-nodes-py==0.4.0', 'console_scripts', 'add_two_ints_server')()
  File "C:\J\workspace\packaging_windows\ws\install\Lib\site-packages\demo_nodes_py\services\add_two_ints_server.py", line 39, in main
    rclpy.spin(node)
  File "C:\J\workspace\packaging_windows\ws\install\Lib\site-packages\rclpy\__init__.py", line 108, in spin
    executor.spin_once()
  File "C:\J\workspace\packaging_windows\ws\install\Lib\site-packages\rclpy\executors.py", line 519, in spin_once
    handler, entity, node = self.wait_for_ready_callbacks(timeout_sec=timeout_sec)
  File "C:\J\workspace\packaging_windows\ws\install\Lib\site-packages\rclpy\executors.py", line 505, in wait_for_ready_callbacks
    return next(self._cb_iter)
  File "C:\J\workspace\packaging_windows\ws\install\Lib\site-packages\rclpy\executors.py", line 411, in _wait_for_ready_callbacks
    _rclpy.rclpy_wait(wait_set, timeout_nsec)
KeyboardInterrupt

Same result with the last nightly debug buiild on portable.

from rclpy.

sloretz avatar sloretz commented on July 24, 2024

The windows version between my VM and the build machine are different (10.0.10240 vs 10.0.17324.112). I'm struggling to find any other difference. If a third machine doesn't show the same issue I would vote to close this.

from rclpy.

dirk-thomas avatar dirk-thomas commented on July 24, 2024

On icecube a build from a couple of days works too.

from rclpy.

sloretz avatar sloretz commented on July 24, 2024

Retested using https://ci.ros2.org/view/packaging/job/packaging_windows/1060/ on my VM and on windows_portable. The behavior has changed :(

Using my VM there is no response to CTRL + c using fastrtps and connext, and now there is also no response when using opensplice. I'm still able to interrupt the demo_nodes_cpp server no problem.

Using windows_portable the first time I tried to CTRL + c demo_nodes_py/add_two_ints_server.exe it hung. I tried to interrupt it multiple times over a few minutes and it never responded. I opened another cmd window and every time I am able to interrupt it using any rmw implementation.

Maybe there is a race condition that is made worse on earlier windows 10 versions? Portable is Windows 10 Enterprise v1803 while my VM is enterprise v10240 (older despite being a bigger number)

from rclpy.

sloretz avatar sloretz commented on July 24, 2024

Closing this assuming it is not present on more recent versions of windows.

from rclpy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.