AirSim-NeurIPS2019-Drone-Racing: Airsim crashes during training for reinforcement learning

I am using reinforcement learning to train my model. But the AirSim engine crashes after a few hundreds of episodes. Before crashing its gives the following error multiple times:

error while optimizing with nlopt: This likely means the optimization aborted early.
error while optimizing with nlopt: This likely means the optimization aborted early.
error while optimizing with nlopt: This likely means the optimization aborted early.
error while optimizing with nlopt: This likely means the optimization aborted early.
error while optimizing with nlopt: This likely means the optimization aborted early.

and finally I have this error:

Signal 11 caught.
Malloc Size=65538 LargeMemoryPoolOffset=65554 
CommonUnixCrashHandler: Signal=11
Malloc Size=65535 LargeMemoryPoolOffset=131119 
Malloc Size=86336 LargeMemoryPoolOffset=217472 
terminating with uncaught exception of type std::__1::bad_weak_ptr: bad_weak_ptr
Signal 6 caught.
Failed to find symbol file, expected location:
"/home/kaveh/AirSim/AirSim_Training/AirSimExe/Binaries/Linux/AirSimExe.sym"
terminating with uncaught exception of type std::__1::bad_weak_ptr: bad_weak_ptr
Signal 6 caught.
Malloc Size=44187 LargeMemoryPoolOffset=261675 
Engine crash handling finished; re-raising signal 11 for the default handler. Good bye.
Segmentation fault (core dumped)

About this issue

  • Original URL
  • State: open
  • Created 5 years ago
  • Comments: 17 (8 by maintainers)

Most upvoted comments

Thank you for the update, I will try this.

Alright, you just need to sleep a bit after the call to simResetRace() and before the call to simStartRace. See updated gist here https://gist.github.com/madratman/e617b53ec20c5f38a7d10633ba3a42c9 When reset is called, the drones lie on top of each other at world origin, then when simResetRace() is called, the drone meshes are teleported to the center of the cages. Now, due to gravity the meshes fall down for a fraction of second before settling down at the bottom. If you call simStartRace before they settle down, I think the spline fitter is perhaps something weird as current position (I need to look a bit more to see why exactly this happened), but sleeping for 0.5 seconds (could be less) b/w reset and simStartRace is not crashing the sim. You can see the diff in the gist from the previous comment to this comment here https://gist.github.com/madratman/e617b53ec20c5f38a7d10633ba3a42c9/revisions