Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InvalidOperationException saving lane connection data #1621

Merged

Conversation

krzychu124
Copy link
Member

Other places where ValidateLane is used are ok.

Stacktrace
Info 6,142.5260298: Saving Mod Data.
Error 6,142.5392794: Error occurred while saving data: System.InvalidOperationException: out of sync
  at System.Collections.Generic.Dictionary`2+Enumerator[TrafficManager.Manager.Impl.LaneConnection.LaneEnd,TrafficManager.Manager.Impl.LaneConnection.LaneConnectionData[]].VerifyState () [0x00000] in <filename unknown>:0 
  at System.Collections.Generic.Dictionary`2+Enumerator[TrafficManager.Manager.Impl.LaneConnection.LaneEnd,TrafficManager.Manager.Impl.LaneConnection.LaneConnectionData[]].MoveNext () [0x00000] in <filename unknown>:0 
  at TrafficManager.Manager.Impl.LaneConnection.LaneConnectionSubManager.SaveData (System.Boolean& success) [0x00000] in <filename unknown>:0 
  at TrafficManager.Manager.Impl.LaneConnection.LaneConnectionManager.SaveData (System.Boolean& success) [0x00000] in <filename unknown>:0 
  at TrafficManager.Lifecycle.SerializableDataExtension.Save () [0x00000] in <filename unknown>:0 
   at CSUtil.Commons.Log.LogToFile(System.String log, LogLevel level)
   at CSUtil.Commons.Log.Error(System.String s)
   at TrafficManager.Lifecycle.SerializableDataExtension.Save()
   at TrafficManager.Lifecycle.SerializableDataExtension.OnSaveData()
   at SerializableDataWrapper.OnSaveData()
   at SimulationManager+Data.Serialize(ColossalFramework.IO.DataSerializer s)
   at ColossalFramework.IO.DataSerializer.Serialize(System.IO.Stream stream, Mode mode, UInt32 version, IDataContainer data)
   at LoadingManager+<SaveSimulationData>c__IteratorC.MoveNext()
   at AsyncTask.Execute()
   at SimulationManager.SimulationStep()
   at SimulationManager.SimulationThread()

@krzychu124 krzychu124 added BUG Defect detected LANE ROUTING Feature: Lane arrows / connectors labels Jul 28, 2022
@krzychu124 krzychu124 added this to the 11.6.7.0 milestone Jul 28, 2022
@krzychu124 krzychu124 self-assigned this Jul 28, 2022
@krzychu124 krzychu124 modified the milestones: 11.6.7.0, 11.6.6.1 Jul 30, 2022
@krzychu124 krzychu124 added the confirmed Represents confirmed issue or bug label Jul 30, 2022
@krzychu124 krzychu124 merged commit c7609e8 into master Jul 31, 2022
@krzychu124 krzychu124 deleted the bugfix/invalid-operation-exception-saving-laneconnections branch July 31, 2022 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BUG Defect detected confirmed Represents confirmed issue or bug LANE ROUTING Feature: Lane arrows / connectors
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants