Elvas Tower: Route crashes in OR but not in R.E or A.E - Elvas Tower

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Route crashes in OR but not in R.E or A.E Runs in MSTS in explore mode only Rate Topic: -----

#1 User is offline   Coolhand101 

  • Foreman Of Engines
  • Group: Status: Contributing Member
  • Posts: 998
  • Joined: 13-June 15
  • Gender:Male
  • Simulator:MSTS
  • Country:

Posted 01 September 2019 - 07:38 AM

This is a really new one for me.

Been editing a route for quite a few years. However today, OR will not load the route. I get a CTD with a log report.

1. Route loads in Route Editor

2. Route loads in Activity Editor

3. MSTS loads in explore mode from activity

4. MSTS CTD in the activity

5. OR crashes in explore and activity.

Here is the log below, which is all of it:

This is a log file for Open Rails. Please include this file in bug reports.
--------------------------------------------------------------------------------
Date/time  = 01/09/2019 16:30:28 (2019-09-01 15:30:28Z)


Error: Orts.Viewer3D.Processes.ThreadHangException: Thread 'Loader Process' has hung; the consistent stack trace is shown below:
   at System.Management.IWbemLocator.ConnectServer_(String strNetworkResource, String strUser, IntPtr strPassword, String strLocale, Int32 lSecurityFlags, String strAuthority, IWbemContext pCtx, IWbemServices& ppNamespace)
   at System.Management.ManagementScope.InitializeGuts(Object o)
   at System.Management.ManagementScope.Initialize()
   at System.Management.ManagementObject.Initialize(Boolean getObject)
   at System.Management.ManagementClass.GetInstances(EnumerationOptions options)
   at System.Management.ManagementClass.GetInstances()
   at ORTS.Common.SystemInfo.WriteEnvironment(TextWriter output) in E:\Documents\Coding\Jenkins\jobs\Open Rails Unstable (git)\workspace\Source\ORTS.Common\SystemInfo.cs:line 47
   at ORTS.Common.SystemInfo.WriteSystemDetails(TextWriter output) in E:\Documents\Coding\Jenkins\jobs\Open Rails Unstable (git)\workspace\Source\ORTS.Common\SystemInfo.cs:line 36
   at Orts.Viewer3D.Processes.GameStateRunActivity.InitLogging(UserSettings settings, String[] args, Boolean appendLog) in E:\Documents\Coding\Jenkins\jobs\Open Rails Unstable (git)\workspace\Source\RunActivity\Viewer3D\Processes\GameStateRunActivity.cs:line 763
   at Orts.Viewer3D.Processes.GameStateRunActivity.<>c__DisplayClass35_0.<Load>b__3() in E:\Documents\Coding\Jenkins\jobs\Open Rails Unstable (git)\workspace\Source\RunActivity\Viewer3D\Processes\GameStateRunActivity.cs:line 158
   at Orts.Viewer3D.Processes.GameStateRunActivity.Load() in E:\Documents\Coding\Jenkins\jobs\Open Rails Unstable (git)\workspace\Source\RunActivity\Viewer3D\Processes\GameStateRunActivity.cs:line 200
   at Orts.Viewer3D.Processes.LoaderProcess.Load() in E:\Documents\Coding\Jenkins\jobs\Open Rails Unstable (git)\workspace\Source\RunActivity\Viewer3D\Processes\LoaderProcess.cs:line 158
   at Orts.Viewer3D.Processes.LoaderProcess.DoLoad() in E:\Documents\Coding\Jenkins\jobs\Open Rails Unstable (git)\workspace\Source\RunActivity\Viewer3D\Processes\LoaderProcess.cs:line 138
   at Orts.Viewer3D.Processes.LoaderProcess.LoaderThread() in E:\Documents\Coding\Jenkins\jobs\Open Rails Unstable (git)\workspace\Source\RunActivity\Viewer3D\Processes\LoaderProcess.cs:line 109
   at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

   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 (git)\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 (git)\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 (git)\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()




Just need to know what might be causing this, so I can look in R.E!

Thanks

#2 User is offline   Csantucci 

  • Member, Board of Directors
  • Group: Status: Elite Member
  • Posts: 7,000
  • Joined: 31-December 11
  • Gender:Male
  • Country:

Posted 01 September 2019 - 08:37 AM

This is a loader thread hang, that is loading is too slow. Try with OR NewYear MG or with perpetualKid's Ultimate version, by unchecking the "Watchdog" general option.

#3 User is offline   Coolhand101 

  • Foreman Of Engines
  • Group: Status: Contributing Member
  • Posts: 998
  • Joined: 13-June 15
  • Gender:Male
  • Simulator:MSTS
  • Country:

Posted 01 September 2019 - 06:24 PM

I'm still on XP Carlo!

My problem appears to fixed. Can a certain 'windows' service cause this problem? The newer OR log which I did not save, reported that RPC server is unavailable ?

So I rebooted the computer and everything is working like before. Odd bug that was!

Thanks

#4 User is offline   James Ross 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 5,491
  • Joined: 30-June 10
  • Gender:Not Telling
  • Simulator:Open Rails
  • Country:

Posted 05 September 2019 - 12:12 PM

View PostCoolhand101, on 01 September 2019 - 07:38 AM, said:

Error: Orts.Viewer3D.Processes.ThreadHangException: Thread 'Loader Process' has hung; the consistent stack trace is shown below:
at System.Management.IWbemLocator.ConnectServer_(String strNetworkResource, String strUser, IntPtr strPassword, String strLocale, Int32 lSecurityFlags, String strAuthority, IWbemContext pCtx, IWbemServices& ppNamespace)
at System.Management.ManagementScope.InitializeGuts(Object o)
at System.Management.ManagementScope.Initialize()
at System.Management.ManagementObject.Initialize(Boolean getObject)
at System.Management.ManagementClass.GetInstances(EnumerationOptions options)
at System.Management.ManagementClass.GetInstances()
at ORTS.Common.SystemInfo.WriteEnvironment(TextWriter output) in E:\Documents\Coding\Jenkins\jobs\Open Rails Unstable (git)\workspace\Source\ORTS.Common\SystemInfo.cs:line 47

I'm glad this was fixed with a reboot!

As the hang was inside the SystemInfo class, this isn't a problem with OR loading the route/content, but instead a problem with querying some basic system information from Windows.

This is done via Windows Management Instrumentation (WMI) which runs as a system service. Usually we encounter issues when anti-virus (and similar tools) decide that blocking access to WMI is somehow sensible, but in this case the service may have simply failed by itself.

If you disabling logging in OR, we skip this code entirely, so that at least provides a workaround if you can't figure out or fix this in the future.

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users