Space Engineers

Space Engineers

Aerodynamic Physics
rusmig29 27 Mar, 2023 @ 11:16am
Bug that ends up eating memory
Utilize Aerodynamic Physics on a nexus server. The drive it is hosted on ran out of memory. Upon checking logs and comparing it to instances with out Aerodynamics. Issue was found to be with Keen logs that were ~3Gb vs a normal 4Mb to 15 Mb. Error repeated itself in endless cycle, had to remove Aerodynamics Physics until this problem can be solved. Issue began 02/25/2023 with log of 390Mb and next day log was to 2.6Gb until today when it ate last of available memory followed by crashing. Aerodynamics runs default parameters.
03:10:10.9383 [DEBUG] Keen: System.IndexOutOfRangeException: Index was outside the bounds of the array.
at SEDrag.WeatherMapGenerator.GetValueAtPointNormalized(Single x, Single y, Int32 offset)
at SEDrag.CoreDrag.GetDirectionalWind(MyPlanet planet, Single longitude, Single latitude, Single multx, Single multy, Single plusl)
at SEDrag.CoreDrag.GetWind(MyPlanet planet, Single longitude, Single latitude)
at SEDrag.CoreDrag.GetWeatherAtPoint(MyPlanet Planet, Vector3D point, Double altitude, IMyEntity Obj)