-
Notifications
You must be signed in to change notification settings - Fork 275
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
Run gz sim
on Windows
#2393
Comments
I tried to quickly solve this in #2392, but it turned out to be quite complex to handle correctly the process shutdown, due to intrinsic complexity of Windows signal system and how it is wrapper in Ruby's APIs. Related links: https://blog.simplificator.com/2016/01/18/how-to-kill-processes-on-windows-using-ruby/, https://bugs.ruby-lang.org/issues/17820, https://learn.microsoft.com/en-us/windows/console/generateconsolectrlevent, While I can try to tackle the problem, I wonder if the time may be spent better by working in solving gazebosim/gz-tools#7 for @mjcarroll the last PR on the topic seems #694, could it make sense to try to update that PR or there have been relevant update on the topic? Thanks! Note that to handle easily the routing of Ctrl+C events to the server and/or gui processes, it may be convenient to use a third party library such as |
Actually we can use gazebosim/gz-utils#98, hopefully |
This seems related: gazebosim/gz-utils#127, and I am afraid it is hitting all the problems that I was encountering with propagating Ctrl+C on Windows in Ruby. |
Signal handling and propagation on Windows is incredibly dumb. I honestly think finishing up standalone executables is the better approach. |
I totally agree, the problem that also in that case we need to have the |
I think that tiny_process_library also uses |
I am not sure about that, I never encountered zombie process on Gazebo Classic on Windows, but indeed I did not explicitly checked what is going on. |
I created a package called
(I am using Gazebo 11 on Windows so I need a replacement if it is going EOL.) |
Desired behavior
I would like
gz sim
to work on native Windows, so that all the existing tutorials apply also on native Windows.Alternatives considered
Manually run
gz sim -s
andgz sim -g
on separate terminals forever.Implementation suggestion
See rest of discussion.
Additional context
This is the next steps once #2089 is fixed, that should happen once #2382 is merged (this depends on a new gz-rendering release).
I opened a separate issue as #168 is more broad and covers a lot of Windows support (including fixing all the test suite) while this one covers only running
gz sim
on Windows.The text was updated successfully, but these errors were encountered: