View Issue Details

IDProjectCategoryView StatusLast Update
0000114Medieval EngineersBugpublic2021-10-01 04:33
Reportergwindalmir Assigned Togwindalmir  
PrioritynormalSeveritycrashReproducibilityalways
Status resolvedResolutionfixed 
PlatformWindowsOS10 2004OS Version10.0.19041
Product Version0.7.3.33D4BB 
Target Version0.7.3.33D4BBFixed in Version0.7.3.33D4BB 
Summary0000114: Standing on the exact opposite side of the planet to the sun crashes game
Description

DynamicSunDefinition crashes with an index error looking up SolarElevation if it's NaN.

This happens if the player is standing on the exact opposite side of the planet, in alignment with the sun vector.

Exception occurred: VRage.MyUpdateSchedulerException: Failed to execute Void RunSingleFrame() on Medieval.MyMedievalGame
 ---> VRage.MyUpdateSchedulerException: Failed to execute Void FixedUpdate() on Medieval.GameSystems.DynamicEnvironment.MyDynamicEnvironmentSystem
 ---> System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
   at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
   at Medieval.GameSystems.DynamicEnvironment.DynamicProperties.Base.MyDynamicPropertyDefinitionBase.GetValue(Single key)
   at Medieval.GameSystems.DynamicEnvironment.MyDynamicEnvironmentSystem.DynamicPropertyData.Update(Single value, Single interpolationTime)
   at Medieval.GameSystems.DynamicEnvironment.MyDynamicEnvironmentSystem.FixedUpdate()
   at VRage.Components.MyUpdateScheduler.RunFixedUpdates()
Steps To Reproduce
  • Disable Sun Rotation (easier to reproduce)
  • Set time of day and season to 0.
  • Stand on the exact Z axis location on the dark side of the planet (should be near a desert canyon region)
  • If you are in the right spot, the SolarObservation.SolarElevation will be NaN, and the DynamicEnvironmentSystem will throw an ArgumentOutOfRangeException.
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2021-09-24 01:46 gwindalmir New Issue
2021-09-24 01:55 gwindalmir Description Updated
2021-09-24 01:55 gwindalmir Steps to Reproduce Updated
2021-09-24 02:08 gwindalmir Steps to Reproduce Updated
2021-09-24 19:45 gwindalmir Assigned To => gwindalmir
2021-09-24 19:45 gwindalmir Status new => assigned
2021-09-24 19:54 gwindalmir Target Version => 0.7.3.33D4BB
2021-10-01 04:33 equinox Status assigned => in progress
2021-10-01 04:33 equinox Status in progress => resolved
2021-10-01 04:33 equinox Resolution open => fixed
2021-10-01 04:33 equinox Fixed in Version => 0.7.3.33D4BB