Orts.Viewer3D.Processes.ThreadHangException at Orts.Program.Main (program crashes when sound file is missing)

Bug #1556236 reported by Dave Nelson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Open Rails
New
Undecided
Unassigned

Bug Description

Thread problem when sound file is missing. Program crashes to desktop..

Warning: File ../../GP38/sound/x_gp_airb_auto3.wav missing from E:\Bin\Open Rails - US West 1930-1952\trains\trainset\SP_S2\sound

Error: Orts.Viewer3D.Processes.ThreadHangException: Thread 'Render Process' has hung; the consistent stack trace is shown below:
   at System.Threading.Thread.SleepInternal(Int32 millisecondsTimeout)
   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.Program.Main(String[] args) in e:\Documents\Coding\Jenkins\jobs\Open Rails Unstable\workspace\Source\RunActivity\Program.cs:line 50

   at Orts.Common.ORTraceListener.TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, String format, Object[] args) in e:\Documents\Coding\Jenkins\jobs\Open Rails Unstable\workspace\Source\Orts.Simulation\Common\ErrorLogger.cs:line 123
   at System.Diagnostics.TraceInternal.TraceEvent(TraceEventType eventType, Int32 id, String format, Object[] args)
   at System.Diagnostics.Trace.TraceError(String format, Object[] args)
   at Orts.Common.ORTraceListener.WriteLine(Object o) in e:\Documents\Coding\Jenkins\jobs\Open Rails Unstable\workspace\Source\Orts.Simulation\Common\ErrorLogger.cs:line 205
   at System.Diagnostics.TraceInternal.WriteLine(Object value)
   at System.Diagnostics.Trace.WriteLine(Object value)
   at Orts.Viewer3D.Processes.WatchdogProcess.WatchdogThread() in e:\Documents\Coding\Jenkins\jobs\Open Rails Unstable\workspace\Source\RunActivity\Viewer3D\Processes\WatchdogProcess.cs:line 132
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

Tags: crash
Revision history for this message
Carlo Santucci (carlosanit1) wrote :

Hi Dave,
I'm not sure the missing file and the thread hang are linked with a cause-effect connection.
I've often seen such missing file warning with no following thread hang.
If you haven't already done it, I'd suggest you to repeat the test with and without the sound file, and to check if you see a difference regarding the thread hang.

James Ross (twpol)
summary: - Program crashes when sound file is missing.
+ Orts.Viewer3D.Processes.ThreadHangException at Orts.Program.Main
+ (program crashes when sound file is missing)
tags: added: crash
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.