AirSim icon indicating copy to clipboard operation
AirSim copied to clipboard

simPause crash Airsim

Open gusnitaa opened this issue 8 years ago • 4 comments

Hello,

I have a problem with the simPause function for the car. During the training of my model, if I use this function (which is important for the quality of the simulations), Airsim crash after some simulations. I tested it in Neighbourhood environment and also in an environment that I created myself, the result is the same, Airsim crash after a few episodes. My colleague use this function but for the drone and he doesn't have any problem with this.

Can you find out why this function doesn't work properly for the car?

Thank You for your help.

gusnitaa avatar May 29 '18 14:05 gusnitaa

Hi, i have same problem. I found source of the crash: void UAirBlueprintLib::setUnrealClockSpeed(const AActor* context, float clock_speed). Sometimes GetWorldSettings function returns nullptr (don't know why). I just added nullptr check, and now simPause is working without crash. (But i think it's bad fix)

iquater avatar May 30 '18 07:05 iquater

Hi, I have the same problem in simContinueForTime function. Following image is screen when an error occurs. log6 I use this function for path following simulation. The timing at which a crash occurs differs every time. Thanks.

hashikemu avatar Jun 01 '18 08:06 hashikemu

I have added above check and also put the code to run on render thread. Still, we don't really know why this may be happening.

sytelus avatar Jun 23 '18 04:06 sytelus

This is not happening in the current version Closing due to inactivity. Please, feel free to ask for it to be reopened if you wish to continue posting.

jonyMarino avatar Feb 25 '22 17:02 jonyMarino