[Alpha 5.5.2] Server crash with logs in cart


  • Alpha 5.5.2 is just out but a server can completely be crashed with logs :

    Exception
    System.AggregateException: One or more errors occurred. ---> Eco.Gameplay.Items.InventoryException: Could not apply inventory changes! Logs cannot be placed in that inventory.
    at Eco.Gameplay.Items.InventoryChangeSet.Apply(User user)
    at Eco.Gameplay.Components.FuelSupplyComponent.LoadFuel()
    at Eco.Gameplay.Components.FuelSupplyComponent.TryConsumeFuel(Single joules)
    at System.Collections.Generic.List1.ForEach(Action1 action)
    at Eco.Gameplay.Objects.WorldObject.Tick(Single dtime)
    at System.Threading.Tasks.Parallel.<>c__DisplayClass42_02.<PartitionerForEachWorker>b__1() at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask) at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object ) --- End of inner exception stack trace --- at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions) at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Parallel.PartitionerForEachWorker[TSource,TLocal](Partitioner1 source, ParallelOptions parallelOptions, Action1 simpleBody, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEachWorker[TSource,TLocal](IEnumerable1 source, ParallelOptions parallelOptions, Action1 body, Action2 bodyWithState, Action3 bodyWithStateAndIndex, Func4 bodyWithStateAndLocal, Func5 bodyWithEverything, Func1 localInit, Action1 localFinally) at System.Threading.Tasks.Parallel.ForEach[TSource](IEnumerable1 source, Action1 body) at Eco.Gameplay.Objects.WorldObjectManager.Run() at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart(Object obj) ---> (Inner Exception #0) Eco.Gameplay.Items.InventoryException: Could not apply inventory changes! Logs cannot be placed in that inventory. at Eco.Gameplay.Items.InventoryChangeSet.Apply(User user) at Eco.Gameplay.Components.FuelSupplyComponent.LoadFuel() at Eco.Gameplay.Components.FuelSupplyComponent.TryConsumeFuel(Single joules) at System.Collections.Generic.List1.ForEach(Action1 action) at Eco.Gameplay.Objects.WorldObject.Tick(Single dtime) at System.Threading.Tasks.Parallel.<>c__DisplayClass42_02.<PartitionerForEachWorker>b__1()
    at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
    at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object )


  • 5
    Posts
    548
    Views
    Log in to reply


  • Eric is pushing soon 5.5.3 if it is not fixed in that patch could you let me know and i create an issue for that issue





  • @NoBlackThunder I was able to switch our server to 5.5.3 but this crash is still unfixed.



  • Solution (thanks to Tetramorium on Discord) :

    Edit the file PoweredCart.cs in \Mods\Autogen\Vehicle folder

    Find these lines :

    private static Type[] fuelTypeList = new Type[]
    {
    typeof(PetroleumItem),
    typeof(GasolineItem),
    };

    Add this : typeof(LogItem),


5
Posts
548
Views
Log in to reply

Internal error.

Oops! Looks like something went wrong!