StrangeLoopGames / EcoIssues

131 stars 21 forks source link

NullReferenceException after logging out while holding claim tool #25075

Closed AWL-Gaming closed 2 months ago

AWL-Gaming commented 2 months ago

User Id: b3731f52-8996-40cf-6a17-08dc8d1bff58 Version: 0.11.0.0 beta release-693

Steps to Reproduce: Logout while claim tool is equipped then try to rejoin the server.

Expected behavior: Join the server back with no exceptions

Actual behavior: The following error message popped up:

Server encountered an exception:

<size=60.00%>Exception: NullReferenceException
Message:Object reference not set to an instance of an object.
Source:Anonymously Hosted DynamicMethods Assembly

System.NullReferenceException: Object reference not set to an instance of an object.
   at lambda_method93198(Closure, IMvcNetClient, Object)
   at Eco.Core.Controller.ControllerPacker.PackageMember(BsonSerializationContext& context, IController controller, ISyncMemberInfo memberInfo)
Outer Exceptions:
Exception has been thrown by the target of an invocation.
Cannot Convert Argument Type: Eco.Gameplay.Settlements.Settlement to BSON.

Error during packaging property 'Parentage' of 'Eco.Gameplay.Settlements.Settlement'
Error during packaging property 'ChildrenSettlementRoster' of 'Eco.Gameplay.Settlements.SettlementParentage'

Screenshot (2) Screenshot 2024-08-19 055405

Workaround: Restart server.

Crash log: Server encountered an exception copy.txt

D3nnis3n commented 2 months ago

Already fixed in Hotfix 11.0.1.