Comments (6)
Confirmed that demo_nodes_cpp
service server can be interrupted no problem, so this is just an rclpy issue
from rclpy.
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.
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.
On icecube a build from a couple of days works too.
from rclpy.
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.
Closing this assuming it is not present on more recent versions of windows.
from rclpy.
Related Issues (20)
- Clock documentation missing (rolling, iron) HOT 1
- `wait_for_message` sporadically fails on a msg_info that is None HOT 1
- StaticSingleThreadedExecutor HOT 3
- wait_for_message Accumulating CPU Load After Repeated Calls HOT 11
- Service client sometimes deadlock due to 'client will not receive response' of newly launched service server node HOT 9
- Log files are given base name `python3....` instead of node name HOT 3
- Humble has higher CPU usage compared to Foxy HOT 15
- Service Client wait_for_service incorrectly returns True HOT 4
- Ros2 Humble is installed on the Ubuntu 22.04 but I get error for no module named rclpy._rclpy_pybind11 while the package is installed (also rclpy is installed for Python 3.10 not Python 3.11) HOT 7
- Exception when instantiating ActionServer as part of ROS package tests HOT 2
- CMake Error (Non-existent Path) When Building From Source HOT 4
- Cannot log in ROS2 node after building with cython HOT 6
- ReadtheDocs page is missing a lot of documentation for API. HOT 7
- SIGINT signal on parent not terminated Turtlesim GUI application HOT 1
- ros2 topic HZ option is not predictable for report freq values when using default rmw_fastrtps_cpp rmw implementation HOT 3
- MultiThreadExecutor may throw exception after destroying subscription with non-default callback group
- Failed to send request: cannot publish data HOT 5
- Lifecycle node `Transition is not registered` exception kills node HOT 1
- debian12 humble source build: invalid use of incomplete type ‘PyFrameObject’
- failed to create domain error when spawning many python nodes at once from launch file with cyclonedds HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rclpy.