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

Access violation when specifiying json settings #30

Closed
mape1082 opened this issue Feb 20, 2017 · 2 comments
Closed

Access violation when specifiying json settings #30

mape1082 opened this issue Feb 20, 2017 · 2 comments

Comments

@mape1082
Copy link

mape1082 commented Feb 20, 2017

Hi,
Since I don't have the physical RC, I am trying to use the firmware in Ubuntu guest, on host windows 10.

In Ubuntu I get:
INFO [simulator] Waiting for initial data on UDP port 14560. Please start the flight simulator to proceed..

Therefore I try running the simulation in W10. Assign the game mode to SimGameMode, then Play button and then I get an access violation in

UE4Editor-AirSim.dll!mavlinkcom::MavLinkConnection::join(std::shared_ptrmavlinkcom::MavLinkConnection remote, bool) Line 109 C++

settings.jason: (as specified in the readmes:
{ "AirControlCompID": 1, "AirControlSysID": 134, "ExtRendererCompID": 1, "ExtRendererSysID": 167, "ExternalSimPort": 14588, "LocalHostIp": "127.0.0.1", "LogViewerHostIp": "127.0.0.1", "LogViewerPort": 14388, "Pixhawk": { "SerialBaudRate": 115200, "SerialPort": "*", "UdpIp": "127.0.0.1", "UdpPort": 14560, "UseSerial": true }, "QgcHostIp": "127.0.0.1", "QgcPort": 14550, "SimCompID": 42, "SimSysID": 142 }

In UdpIp, instead of 127.0.0.1, i am using the real ip address of my Ubuntu VM.

When I don't specify json file, it goes ok, but it wont connect to PX4 on Ubuntu. If I specify json settings, it seems so far no matter what, it will crash.

Any ideas?

Thanks and regards.

@lovettchris
Copy link
Member

I just checked in this fix.

If you want to run the above posix_sitl in a VirtualBox Ubuntu machine then it will have a different ip address from localhost. So in this case you need to do the following: 1. Run the sitl so it is "listening", you should see the message INFO [simulator] Waiting for initial data on UDP port 14560 2. Edit the settings file so that the UseSerial is false, the UdpIp address is the ip address of your virtual machine and the LocalIpAddress is the address of your host machine running the Unreal engine.

@mape1082
Copy link
Author

Thanks a lot.

devanshdhrafani pushed a commit to castacks/AirSim-ONR that referenced this issue Feb 21, 2023
Delete Unreal/Plugins/AirSim/Source/AssetCode directory
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

No branches or pull requests

2 participants