System.ArgumentException at ORTS.AI..ctor (X.1665, SOB activity Zug 2423 crashes OR during loading)

Bug #1194690 reported by Lindsay Spellman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Open Rails
Fix Released
Medium
Unassigned

Bug Description

OR version is xV1665, but OR has being doing this on Zug 2423 for quite a while now, ie for months.

Error message in Logfile is........

Error: System.ArgumentException: An item with the same key has already been added.
   at System.ThrowHelper.ThrowArgumentException(ExceptionResource resource)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
   at ORTS.AI..ctor(Simulator simulator, Double activityStartTime)
   at ORTS.Simulator.Start()
   at ORTS.Program.Start(UserSettings settings, String[] args)
   at ORTS.Program.<>c__DisplayClass6.<Main>b__3()
   at ORTS.Program.Main(String[] args)

Tags: ai crash
Revision history for this message
Lindsay Spellman (zlinw) wrote :
Revision history for this message
r.roeterdink (r-roeterdink) wrote :

Could you please check (or upload) the relevant activity file (C:\Games\openrails_SOB\ROUTES\SOB\ACTIVITIES\2423.act)?
It looks like this file has been edited 'manually', and an error has been made in this file with two services being allocated the same Uid.

Below is an example of the 'traffic' part of an activity file, and the UiD must be unique for each service.

  Traffic_Definition ( Coal_Mville_Oneonta
   Service_Definition ( AI_Oneonta_Mechanicville_17 40200
    UiD ( 1 )
   )
   Service_Definition ( AI_Oneonta_Mechanicville_16 43200
    UiD ( 2 )
   )
   Service_Definition ( AI_Oneonta_Mechanicville_15 46200
    UiD ( 3 )
   )
   Service_Definition ( AI_Oneonta_Mechanicville_14 49200
    UiD ( 4 )
   )
   Service_Definition ( AI_Oneonta_Mechanicville_13 52200
    UiD ( 5 )
   )
   Service_Definition ( AI_Oneonta_Mechanicville_12 55200
    UiD ( 6 )
   )
   Service_Definition ( AI_Oneonta_Mechanicville_11 58200
    UiD ( 7 )
   )
   Service_Definition ( AI_Oneonta_Mechanicville_10 61200
    UiD ( 8 )
   )
   Service_Definition ( AI_Oneonta_Mechanicville_1 64200
    UiD ( 9 )
   )
   Service_Definition ( AI_Oneonta_Mechanicville_9 67200
    UiD ( 10 )
   )
   Service_Definition ( AI_Oneonta_Mechanicville_7 70200
    UiD ( 11 )
   )
  )

James Ross (twpol)
summary: - SOB activity Zug 2423 crashes OR during loading
+ System.ArgumentException at ORTS.AI..ctor (X.1665, SOB activity Zug 2423
+ crashes OR during loading)
tags: added: ai crash
Changed in or:
status: New → Triaged
importance: Undecided → Medium
Jijun Tang (jtang-h)
Changed in or:
status: Triaged → Invalid
status: Invalid → Confirmed
James Ross (twpol)
Changed in or:
status: Confirmed → Triaged
Revision history for this message
Cédric GNIEWEK (sharpeserana) wrote :

Does the problem still happen with version 1.4?

Changed in or:
status: Triaged → Incomplete
Revision history for this message
Derek Morton (derek-a) wrote :

no further information provided

Changed in or:
status: Incomplete → Fix Released
James Ross (twpol)
Changed in or:
milestone: none → 1.4
Revision history for this message
Cédric GNIEWEK (sharpeserana) wrote :

@Derek The same: this bug report should have stayed in the Incomplete status.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.