System.InvalidOperationException at ORTS.Popups.TextFlow.Draw (X.1744)

Bug #1225663 reported by hockenberry
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Open Rails
Fix Released
Low
Unassigned

Bug Description

I had this crash a few seconds after activity completion:
Open Rails is starting...
Argument 0 = -resume
Argument 1 = C:\Users\hippo\AppData\Roaming\Open Rails\nnmxdgds 2013-09-15 12.32.42.save
Version = X.1744
Build = 0.0.4997.33105 (2013-09-06 18:23:30Z)
Logfile = C:\Users\hippo\Desktop\OpenRailsLog.txt
--------------------------------------------------------------------------------
AdhesionMovingAverageFilterSize = 10
Alerter = False
AvatarURL = http://openrails.org/images/support-logos.jpg
BrakePipeChargingRate = 21
BreakCouplers = False
Cab2DStretch = 0
CarVibratingLevel = (registry) 3
DataLogger = False
DataLoggerSeparator = comma
DataLogMisc = False
DataLogPerformance = True
DataLogPhysics = False
DataLogSpeedUnits = route
DataLogStart = False
DistantMountains = (registry) True
DistantMountainsLoweringValue = 5
DistantMountainsViewingTiles = 20
DoubleWire = (registry) True
DynamicShadows = (registry) True
FullScreen = False
GraduatedRelease = False
LoadingDelay = 0
LODViewingExtention = (registry) True
Logging = True
LoggingFilename = OpenRailsLog.txt
LoggingPath = C:\Users\hippo\Desktop
Menu_Selection = (registry) C:\Program Files (x86)\MS Train Simulator, C:\Program Files (x86)\MS Train Simulator\ROUTES\USA2, C:\Program Files (x86)\MS Train Simulator\ROUTES\USA2\ACTIVITIES\nnmxdgds.act
MSTSBINSound = False
Multiplayer = False
Multiplayer_Host = 127.0.0.1
Multiplayer_Port = 30000
Multiplayer_UpdateInterval = 10
Multiplayer_User = hippo
MultiplayerClient = False
MultiplayerServer = False
PerformanceTuner = False
PerformanceTunerTarget = 60
Precipitation = (registry) True
Profiling = False
ProfilingFrameCount = 0
ProfilingTime = 0
ReplayPauseBeforeEnd = True
ReplayPauseBeforeEndS = 0
ScreenshotPath = C:\Users\hippo\Pictures\Open Rails
ShaderModel = 0
ShadowAllShapes = False
ShadowMapBlur = True
ShadowMapCount = 4
ShadowMapDistance = 0
ShadowMapResolution = 1024
ShowAvatar = False
ShowErrorDialogs = True
SoundDetailLevel = 5
SoundVolumePercent = 100
SuperElevationGauge = 1435
SuperElevationMinLen = 50
SuppressConfirmations = False
TrainLights = (registry) True
UseAdvancedAdhesion = True
UseSuperElevation = 0
VerticalSync = False
ViewDispatcher = (registry) True
ViewingDistance = 2000
ViewingFOV = 45
WindowGlass = (registry) True
WindowPosition_Activity = (registry) 74, 7
WindowPosition_Compass = 50, 0
WindowPosition_ComposeMessage = 50, 50
WindowPosition_DriverAid = 100, 100
WindowPosition_Help = (registry) 61, 52
WindowPosition_NextStation = 0, 100
WindowPosition_Quit = 50, 50
WindowPosition_Switch = (registry) 5, 42
WindowPosition_TrackMonitor = (registry) 95, 0
WindowPosition_TrainOperations = 50, 50
WindowSize = (registry) 1600x1200
Wire = (registry) True
WorldObjectDensity = 10
--------------------------------------------------------------------------------
Mode = Resume Activity
Activity = C:\Program Files (x86)\MS Train Simulator\ROUTES\USA2\ACTIVITIES\nnmxdgds.act
--------------------------------------------------------------------------------
Loading TRK TDB SIGCFG DAT

Warning: Replaced duplicate TrackSection 360 in C:\Program Files (x86)\MS Train Simulator\GLOBAL\TSECTION.DAT:line 1455

 ACT RDB CARSPAWN SIGSCR

Warning: sigscr-file line 257 : Unknown signal type : TESTSEM_BNSF2LIGHT

WWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW

Warning: Section 243, Pin [1,0] links to section 196 already linked by 243

Information: Platform split by junction at Red Eagle

Warning: Found a suffix 'ft+10in' which could not be parsed as a Distance unit in C:\Program Files (x86)\MS Train Simulator\trains\trainset\Sd40\SD40.eng:line 6

Warning: Found a suffix 'ft+1m' which could not be parsed as a Distance unit in C:\Program Files (x86)\MS Train Simulator\trains\trainset\Sd40\SD40.eng:line 6

 ENV SIGCFG TTYPE

Information: OpenAL 1.1 ALSOFT 1.15.1, device OpenAL Soft by OpenAL Community

TTTTTTTTTLLLLLLLLLLLLLLLLLLLW

Warning: Skipped unknown world block Hazard (0x0000016D) first seen in C:\Program Files (x86)\MS Train Simulator\ROUTES\USA2\World\w-012545+014765.w

SSSSSSSS$WWWSSSSSSSSSSSSS

Information: Skipped unknown lighting model index -1 first seen in shape c:\program files (x86)\ms train simulator\routes\usa2\shapes\bush.s

SSSSSSSSS$WSSSSSSSSSSSSS$WWWSSSSSSSSSSSSS$WSS$CSCCCSCCCCCCCCCCSCCCCCCCCCCSCCCCCCCCCSCCCCCCCC

Information: Ignored missing animations data in shape c:\program files (x86)\ms train simulator\routes\usa2\shapes\us2perspeedl.s

Information: Ignored missing animations data in shape c:\program files (x86)\ms train simulator\routes\usa2\shapes\us2milepost.s

Information: Ignored missing animations data in shape c:\program files (x86)\ms train simulator\routes\usa2\shapes\us2adspeedl.s

TTTWSSSSS$WWSSSSSSSTTTWSSSS$WWTTTWSSSSS$WW
List of commands to replay:
(...) ==> skipped, for full list see attached log
Command: 12:55:54,45 ORTS.NotchedThrottleCommand - step back
Command: 12:56:12,61 ORTS.NotchedThrottleCommand - step forward
Command: 12:56:28,61 ORTS.NotchedThrottleCommand - step back
Command: 12:56:29,21 ORTS.NotchedThrottleCommand - step back
Command: 12:57:29,51 ORTS.SaveCommand to file "nnmxdgds 2013-09-15 13.24.18.replay"

CCCCCCCCCCCCCCCCCCCTTTWWWTTTWWSSSSSSSSSSSSSS$WSSSSSSSSSSSS$SSSSSSSTTTLLLLWWWTTTWSSSSSSS$WSSSS$WTTTWSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS$WWTTTWWWTTTWSS$WSS$WTTTWWWSSSSSSSSSSSS$TTTWSS$WSS$WTTTWWWSSSSSSSSSSSS$TTTWSS$WSS$WSSTTTWSSSSSSSSSS$WWSSTTTWWWTTTLLLLWWSSSSSSSS$WTTTWSSSSSSSS$WSSSSS$WTTTWSSSS$WWTTTWWWSS$TTTWSSSSSSSSSSSSSSSS$WWTTTWWWSSS

Error: System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
   at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
   at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
   at System.Collections.Generic.List`1.Enumerator.MoveNext()
   at ORTS.Popups.TextFlow.Draw(SpriteBatch spriteBatch, Point offset) in D:\play\computing\projects\Open Rails\Code\Bug 1217852 Vacuum brakes will not work at all\dev\Source\RunActivity\Popups\WindowControls.cs:line 218
   at ORTS.Popups.ControlLayout.Draw(SpriteBatch spriteBatch, Point offset) in D:\play\computing\projects\Open Rails\Code\Bug 1217852 Vacuum brakes will not work at all\dev\Source\RunActivity\Popups\WindowControls.cs:line 346
   at ORTS.Popups.ControlLayout.Draw(SpriteBatch spriteBatch, Point offset) in D:\play\computing\projects\Open Rails\Code\Bug 1217852 Vacuum brakes will not work at all\dev\Source\RunActivity\Popups\WindowControls.cs:line 346
   at ORTS.Popups.ControlLayoutScrollboxVertical.Draw(SpriteBatch spriteBatch, Point offset) in D:\play\computing\projects\Open Rails\Code\Bug 1217852 Vacuum brakes will not work at all\dev\Source\RunActivity\Popups\WindowControls.cs:line 562
   at ORTS.Popups.ControlLayout.Draw(SpriteBatch spriteBatch, Point offset) in D:\play\computing\projects\Open Rails\Code\Bug 1217852 Vacuum brakes will not work at all\dev\Source\RunActivity\Popups\WindowControls.cs:line 346
   at ORTS.Popups.ControlLayout.Draw(SpriteBatch spriteBatch, Point offset) in D:\play\computing\projects\Open Rails\Code\Bug 1217852 Vacuum brakes will not work at all\dev\Source\RunActivity\Popups\WindowControls.cs:line 346
   at ORTS.Popups.ControlLayout.Draw(SpriteBatch spriteBatch, Point offset) in D:\play\computing\projects\Open Rails\Code\Bug 1217852 Vacuum brakes will not work at all\dev\Source\RunActivity\Popups\WindowControls.cs:line 346
   at ORTS.Popups.ControlLayout.Draw(SpriteBatch spriteBatch, Point offset) in D:\play\computing\projects\Open Rails\Code\Bug 1217852 Vacuum brakes will not work at all\dev\Source\RunActivity\Popups\WindowControls.cs:line 346
   at ORTS.Popups.ControlLayout.Draw(SpriteBatch spriteBatch, Point offset) in D:\play\computing\projects\Open Rails\Code\Bug 1217852 Vacuum brakes will not work at all\dev\Source\RunActivity\Popups\WindowControls.cs:line 346
   at ORTS.Popups.Window.Draw(SpriteBatch spriteBatch) in D:\play\computing\projects\Open Rails\Code\Bug 1217852 Vacuum brakes will not work at all\dev\Source\RunActivity\Popups\Window.cs:line 272
   at ORTS.Popups.WindowManager.Draw(GraphicsDevice graphicsDevice) in D:\play\computing\projects\Open Rails\Code\Bug 1217852 Vacuum brakes will not work at all\dev\Source\RunActivity\Popups\WindowManager.cs:line 225
   at ORTS.BasicMaterial.Render(GraphicsDevice graphicsDevice, IEnumerable`1 renderItems, Matrix& XNAViewMatrix, Matrix& XNAProjectionMatrix) in D:\play\computing\projects\Open Rails\Code\Bug 1217852 Vacuum brakes will not work at all\dev\Source\RunActivity\Viewer3D\Materials.cs:line 392
   at ORTS.RenderFrame.DrawSequences(GraphicsDevice graphicsDevice, Boolean logging) in D:\play\computing\projects\Open Rails\Code\Bug 1217852 Vacuum brakes will not work at all\dev\Source\RunActivity\Viewer3D\RenderFrame.cs:line 648
   at ORTS.RenderFrame.DrawSimple(GraphicsDevice graphicsDevice, Boolean logging) in D:\play\computing\projects\Open Rails\Code\Bug 1217852 Vacuum brakes will not work at all\dev\Source\RunActivity\Viewer3D\RenderFrame.cs:line 594
   at ORTS.RenderFrame.Draw(GraphicsDevice graphicsDevice) in D:\play\computing\projects\Open Rails\Code\Bug 1217852 Vacuum brakes will not work at all\dev\Source\RunActivity\Viewer3D\RenderFrame.cs:line 426
   at ORTS.RenderProcess.Draw() in D:\play\computing\projects\Open Rails\Code\Bug 1217852 Vacuum brakes will not work at all\dev\Source\RunActivity\Processes\RenderProcess.cs:line 308
   at ORTS.RenderProcess.Draw(GameTime gameTime) in D:\play\computing\projects\Open Rails\Code\Bug 1217852 Vacuum brakes will not work at all\dev\Source\RunActivity\Processes\RenderProcess.cs:line 291
   at Microsoft.Xna.Framework.Game.DrawFrame()
   at Microsoft.Xna.Framework.Game.Tick()
   at Microsoft.Xna.Framework.Game.HostIdle(Object sender, EventArgs e)
   at Microsoft.Xna.Framework.GameHost.OnIdle()
   at Microsoft.Xna.Framework.WindowsGameHost.ApplicationIdle(Object sender, EventArgs e)
   at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FDoIdle(Int32 grfidlef)
   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
   at System.Windows.Forms.Application.Run(Form mainForm)
   at Microsoft.Xna.Framework.WindowsGameHost.Run()
   at Microsoft.Xna.Framework.Game.Run()
   at ORTS.Viewer3D.Run(BinaryReader inf) in D:\play\computing\projects\Open Rails\Code\Bug 1217852 Vacuum brakes will not work at all\dev\Source\RunActivity\Viewer3D\- Viewer3D.cs:line 286
   at ORTS.Program.Resume(UserSettings settings, String[] args) in D:\play\computing\projects\Open Rails\Code\Bug 1217852 Vacuum brakes will not work at all\dev\Source\RunActivity\_Main.cs:line 328
   at ORTS.Program.<>c__DisplayClass6.<Main>b__3() in D:\play\computing\projects\Open Rails\Code\Bug 1217852 Vacuum brakes will not work at all\dev\Source\RunActivity\_Main.cs:line 117
   at ORTS.Program.Main(String[] args) in D:\play\computing\projects\Open Rails\Code\Bug 1217852 Vacuum brakes will not work at all\dev\Source\RunActivity\_Main.cs:line 152

Tags: crash graphics
Revision history for this message
hockenberry (hockenberry32) wrote :
Revision history for this message
Dennis A T (dennisat) wrote :

I have had a similar crash twice. Both times a menu appeared inviting me to look at the Activity Summary. However, the crash prevented me actually selecting anything on this menu. On both occasions I was attempting to move the train after I had received the activity completion message. I've been unable to re-create the crash at will even using the same activity in the same circumstances. If it happens again I'll make more of an attempt to grab any debug data.

Is this Activity Summary a feature not yet fully implemented?

James Ross (twpol)
summary: - OR crash just after activity completion - InvalidOperationException
+ System.InvalidOperationException at ORTS.Popups.TextFlow.Draw (X.1744)
tags: added: graphics
removed: invalidoperationexception system.invalidoperationexception
Changed in or:
status: New → Triaged
importance: Undecided → Low
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 :

not reproduceable

Changed in or:
status: Incomplete → Fix Released
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.