View Issue Details

IDProjectCategoryView StatusLast Update
0000003Medieval EngineersBugpublic2021-02-28 18:24
Reporterequinox Assigned Toequinox  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version0.7.2 
Target Version0.7.3.33D4BBFixed in Version0.7.3.33D4BB 
Summary0000003: Crash when placing grid-aligned catch blocks
Description

When placing catch blocks with the moving component aligned to the same grid as the catch block is placed on the game crashes.
This isn't present with any vanilla catch block (since they aren't aligned), but is present on modded catch blocks such as Peaceman's More Catch Blocks.

Exception occurred: System.NullReferenceException: Object reference not set to an instance of an object.
   at Havok.HkLimitedHingeConstraintData.GetRuntime(HkConstraint constraint)
   at Havok.HkLimitedHingeConstraintData.SetCurrentAngle(HkConstraint constraint, Single value)
   at Medieval.Entities.Components.Mechanical.MyHingeConstraint.OnActivate(MyPhysicsComponentBase left, MyPhysicsComponentBase right)
   at VRage.Components.Physics.MyConstraint.Activate(MyPhysicsComponentBase left, MyPhysicsComponentBase right)
   at VRage.Components.Physics.MyPhysicsConstraintGroup.Activate(MyConstraint constraint, MyPhysicsComponentBase left, MyPhysicsComponentBase right)
   at VRage.Components.Physics.MyPhysicsConstraintGroup.AddLink(MyConstraintAttachmentComponent left, MyConstraintAttachmentComponent right, MyConstraint constraint)
   at VRage.Scene.MyScene.GroupAddDataLinkInternal[TGroup,TObject,TLink](TGroup group, TObject left, TObject right, TLink link)
   at VRage.Scene.MyScene.GroupAddDataLinkSynchronized[TGroup,TObject,TLink](TGroup group, TObject left, TObject right, TLink link)
   at VRage.Scene.MyScene.Link[TGroup,TObject,TLink](TObject left, TObject right, TLink link)
   at VRage.Components.Physics.MyPhysicsConstraintGroup.RedoConnection(MyConstraintAttachmentComponent left, MyConstraintAttachmentComponent right)
   at VRage.Scene.MyTieredComponentGroup`2.ChildOnParentChange(MyHierarchyComponent target, MyHierarchyComponent oldParent, MyHierarchyComponent newParent)
   at VRage.Game.Components.MyHierarchyComponent.ParentChangedEvent.Invoke(MyHierarchyComponent target, MyHierarchyComponent oldParent, MyHierarchyComponent newParent)
   at VRage.Game.Components.MyHierarchyComponent.RaiseParentChange(MyHierarchyComponent previous, MyHierarchyComponent current)
   at VRage.Game.Components.MyHierarchyComponent.AddChild(MyEntity child, Boolean worldSpaceTransform, Boolean delayedActivation)
   at VRage.Components.Entity.CubeGrid.MyGridHierarchyComponent.OnAfterMerge(MyGridDataComponent finalGridData, MyGridDataComponent otherGridData, List`1 thisBlocks, List`1 otherBlocks)
   at VRage.Components.Entity.CubeGrid.MyGridDataComponent.AfterMergeDelegate.Invoke(MyGridDataComponent finalGridData, MyGridDataComponent otherGridData, List`1 thisBlocks, List`1 otherBlocks)
   at VRage.Components.Entity.CubeGrid.MyGridDataComponent.Merge(MyGridDataComponent otherGridData)
   at Medieval.GameSystems.Building.MyGridPlacer.PerformMerge(MyGridDataComponent gridData1, MyGridDataComponent gridData2)
   at Medieval.GameSystems.Building.MyGridPlacer.DetermineGridMerges(List`1 createdScenes, Boolean autoMergeEnvironment, List`1 outputEntities)
   at Medieval.GameSystems.Building.MyGridPlacer.Server_BuildRequest(MyBuildServerRequest buildRequest)
   at lambda_method(Closure , MyGridPlacer , MyBuildServerRequest , DBNull , DBNull , DBNull , DBNull , DBNull )
   at VRage.Network.MyReplicationLayerBase.InvokeLocally[T1,T2,T3,T4,T5,T6,T7](CallSite`7 site, T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7)
   at VRage.Network.MyReplicationSingle.DispatchEvent[T1,T2,T3,T4,T5,T6,T7,T8](CallSite callSite, EndpointId recipient, Single unreliablePriority, T1& arg1, T2& arg2, T3& arg3, T4& arg4, T5& arg5, T6& arg6, T7& arg7, T8& arg8)
   at VRage.Network.MyReplicationLayerBase.RaiseEvent[T1,T2,T3](T1 arg1, T3 arg3, Func`2 action, T2 arg2, EndpointId endpointId, Single unreliablePriority)
   at Medieval.GameSystems.Building.MyGridPlacer.BuildingPlaceInternal()
   at Medieval.GameSystems.Building.MyGridPlacer.BuildingPlace(ActionEvent& action)
   at VRage.Input.MyFocusManager.Update()
   at VRage.Input.MyGameInput.Update(MyTimeSpan gameTime)
   at Sandbox.MySandboxGame.Update()
   at Sandbox.Engine.Platform.Game.UpdateInternal()
   at Sandbox.Engine.Platform.Game.RunSingleFrame()
   at VRage.Components.MyUpdateScheduler.RunFixedUpdates()
   at VRage.Components.MyUpdateScheduler.RunUpdates(TimeSpan currentTime)
   at Sandbox.Engine.Platform.MySandboxUpdate.<RunLoop>b__18_0()
   at VRage.Utils.FixedLoop.Run(Action tickCallback)
   at Sandbox.Engine.Platform.MySandboxUpdate.RunLoop()
   at Medieval.MyProgram.Main(String[] args)
TagsBlock, Grid, Mod API, Physics

Activities

equinox

2020-04-12 23:08

administrator   #~0000001

image.png (289,201 bytes)   
image.png (289,201 bytes)   

Issue History

Date Modified Username Field Change
2020-04-12 23:02 equinox New Issue
2020-04-12 23:02 equinox Tag Attached: Block
2020-04-12 23:02 equinox Tag Attached: Mod API
2020-04-12 23:02 equinox Tag Attached: Physics
2020-04-12 23:02 equinox File Added: MedievalEngineers_2020-04-12_23-01-15.png
2020-04-12 23:04 equinox Description Updated
2020-04-12 23:05 equinox Description Updated
2020-04-12 23:05 equinox Description Updated
2020-04-12 23:06 equinox Description Updated
2020-04-12 23:07 equinox Description Updated
2020-04-12 23:08 equinox Note Added: 0000001
2020-04-12 23:08 equinox File Added: image.png
2020-04-12 23:08 equinox File Deleted: MedievalEngineers_2020-04-12_23-01-15.png
2020-04-12 23:11 equinox Target Version => 0.7.3.33D4BB
2020-04-13 01:30 equinox Description Updated
2020-04-13 01:34 equinox Description Updated
2020-04-18 00:15 gwindalmir Tag Attached: Grid
2020-09-24 09:14 equinox Target Version 0.7.3.33D4BB => TBD
2020-10-24 22:40 equinox Target Version TBD => 0.7.4 (unreleased)
2021-01-15 23:54 equinox Target Version 0.7.4 (unreleased) => 0.7.3.33D4BB
2021-01-15 23:54 equinox Assigned To => equinox
2021-01-15 23:54 equinox Status new => assigned
2021-01-16 00:28 equinox Status assigned => in progress
2021-02-28 18:24 equinox Status in progress => resolved
2021-02-28 18:24 equinox Resolution open => fixed
2021-02-28 18:24 equinox Fixed in Version => 0.7.3.33D4BB