-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
jMAVSim SITL with Windows Cygwin gets stuck #10098
Comments
@amitmc19 I freshly downloaded the 0.3 toolchain and something seems broken with the simulation on master 😞 I didn't get the errors you have but the simulation binary px4.exe fails to run. As a quick fix I tested to work on my machine:
I need to look into what's broken on the most recent version. |
@MaEtUgR I just ran this using the "clone the PX4 repository, build and run simulation with jMAVSim" option. SIM started fine, but (as usual) the sky is displaying as black in jMAVSim. |
0c5c741 likely introduces multiple problems...
So not so many good news yet but I'll not give up and continue to try and find the causes. |
Update: Ctrl+C and the |
That might need additional signal handling. @bkueng I recall we're doing that in the PX4 posix shell? |
I found something that fixed all the problems for a few tests: replace all the posix shell pipe EDIT: I found a hint: "Opening a FIFO for reading normally blocks until some other process opens the same FIFO for writing, and vice versa." |
Hi, I have the same problem with the sensors as @amitmc19. |
Thank you @julianoes. As I figure it out from #10371, the bug source is in the cygwin and it was not solved yet, but patched... |
No, like written just above: #10098 (comment)
Yes, it doesn't fully support all the named pipe calls introduced with the posix shell changes: #10173 . My pr #10371 aims to fix the startup script problem, please let me know if it works for you. You can read the detailed pr description, it states all my findings so far. I'll keep on debugging now that I'm back from holidays. |
Hi, @MaEtUgR, |
@MaEtUgR evgenee
I use tagged release 1.8.0 |
Thank you @hamishwillee, @MaEtUgR Can you be please more specific about native windows build in 1.8.0. I didn't find something related to this in github... |
@evgenee So all our instructions assume you want to get the latest version of the master branch from either the PX4/Firmware repo or your clone of that repo. But if that latest version does not work, you might want to go back in time and get an older version that does work. The way to do that is to get a specific tag release. You can see all the tags and releases here. So after doing:
To get PX4 code at the time a tag was created you do:
If you have already built this you might need to run There is a note on this at the end of this section: http://dev.px4.io/en/setup/building_px4.html#get_px4_code Hope that helps. If you get stuck, search google for information on git and tags. |
@amitmc19 I'm sorry I think I misinterpreted your problem. It seems the exact problem in your description is still not fixed. I made a workaround for the simulation not starting because of the bash shell startup script. But I still have performance issues see #10693 @evgenee PX4 1.8 release should work fine on Cygwin. If you mean Microsoft Visual C++ build by |
Installed the Windows Cygwin Toolchain, and attempting to run the JMAVSim. I followed the guide https://dev.px4.io/en/setup/dev_env_windows_cygwin.html.

After I start the build and run "make posix jmavsim", the SITL simulation gets stuck in accessing Sensors. Copy pasting the errors I get on the console
Steps to reproduce the behavior:
Expected behavior
Expect the drone to take off in the SITL
Log Files and Screenshots
Always provide a link to the flight log file:
I have attached the screenshot of the cygwin console.
Laptop config: Intel Core i7-7700HQ CPU @ 2.8GHz, 4 cores, 16GB RAM
The text was updated successfully, but these errors were encountered: