View Issue Details

IDProjectCategoryView StatusLast Update
0000081Medieval EngineersBugpublic2022-05-11 21:22
Reportershad Assigned Toequinox  
PrioritynormalSeveritycrashReproducibilityrandom
Status closedResolutionduplicate 
PlatformWindows ServerOS2016 1607OS Version14393
Product Version0.7.2Product Build8CBFD2 
Summary0000081: DS crash while autosaving
Description

Happened mid-session during an autosave.

2020-10-27 09:21:06.824|Main Thread>    Exception occurred: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.ValueCollection.Enumerator.MoveNext()
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Linq.Enumerable.<CastIterator>d__97`1.MoveNext()
   at Sandbox.Game.Entities.MyVoxelMaps.GetVoxelMapsArray(Boolean includeChanged)
   at Sandbox.Game.World.MySandboxSessionDelta.Prepare(MySession session, String saveName)
   at Sandbox.Game.World.MySession.GetSnapshot(String newSaveName)

All following autosaves failed accordingly:

2020-10-27 02:31:06.261|Main Thread> Auto-Save: Started
2020-10-27 02:31:06.261|Main Thread> Auto-Save: Finished

The issue was unnoticed until a player informed me about the lost progress. After a server restart, it rolled back 6 hours:

2020-10-27 03:00:47.925|Main Thread>    Loading session: C:\ProgramData\MedievalEngineersDedicated\ME-Server-1\Saves\Land-of-Seduction
2020-10-27 03:00:47.925|Main Thread>    Save version: 0.7.2.9224146
2020-10-27 03:00:47.943|Main Thread>    Found save lock file, restoring last backup before continuing load.
2020-10-27 03:00:47.967|Main Thread>Backup> Info: Restoring backup 10/27/2020 09:00:24 into C:\ProgramData\MedievalEngineersDedicated\ME-Server-1\Saves\Land-of-Seduction.
2020-10-27 03:00:49.920|Main Thread>Backup> Info: Deleting backup data.
TagsServer, Session, Voxel

Relationships

duplicate of 0000212 closedgwindalmir [DS] Crash: System.InvalidOperationException exception causes auto-save to fail and stop working  

Activities

shad

2022-04-28 05:48

reporter   #~0000217

Duplicate with 0000212 now. Can be merged/closed.

Issue History

Date Modified Username Field Change
2020-10-27 08:12 shad New Issue
2020-10-27 08:12 shad Tag Attached: Server
2020-10-27 08:12 shad Tag Attached: Session
2020-10-27 08:12 shad Tag Attached: Voxel
2022-04-08 14:42 equinox Description Updated
2022-04-08 14:42 equinox Target Version => 0.7.4 (unreleased)
2022-04-28 05:48 shad Note Added: 0000217
2022-04-28 11:44 equinox Assigned To => equinox
2022-04-28 11:44 equinox Status new => closed
2022-04-28 11:44 equinox Resolution open => duplicate
2022-04-28 11:44 equinox Relationship added duplicate of 0000212
2022-05-11 21:22 equinox Target Version 0.7.4 (unreleased) => 0.7.3.968CF8
2022-05-11 21:22 equinox Target Version 0.7.3.968CF8 =>