BVE WorldWide
Would you like to react to this message? Create an account in a few clicks or log in to continue.

1.7.3.0 build crashing after 4-5 seconds of loading up.

2 posters

Go down

1.7.3.0 build crashing after 4-5 seconds of loading up. Empty 1.7.3.0 build crashing after 4-5 seconds of loading up.

Post by SmoIchopper Wed Apr 14, 2021 4:00 pm

On the newest (at the time of this post) 1.7.3.0 stable build, I seem to get this error on whatever route/train combination I use roughly 5 seconds after loading in:

Unhandled exception:

Cannot load Counter Name data because an invalid index " was read from the registry 

Here is the crash log for one of the runs I was on:
Code:
14/04/2021 15:45:00
OpenBVE 1.7.3.0 Crash Log
Program is running on the Windows backend
Current screen resolution is: Windowed 1500px X 800px
Current routefile is: C:\Users\AppData\Roaming\openBVE\LegacyContent\Railway\Route\Uchibo\1157M.csv
Current train is: C:\Users\AppData\Roaming\openBVE\LegacyContent\Train\113_6
Current train plugin is: Ats1.dll
1 file(s) not found
31 error(s), 2 warning(s)
The current routefile caused the following exception:
System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at TrainManager.Car.CarBase.UpdateTopplingCantAndSpring(Double TimeElapsed)
   at OpenBve.TrainManager.<>c__DisplayClass1_0.<UpdateTrains>b__1(Int32 i)
   at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
   at System.Threading.Tasks.Parallel.For(Int32 fromInclusive, Int32 toExclusive, Action`1 body)
   at OpenBve.TrainManager.UpdateTrains(Double TimeElapsed)
   at OpenBve.OpenBVEGame.OnUpdateFrame(FrameEventArgs e)
   at OpenTK.GameWindow.RaiseUpdateFrame(Stopwatch watch, Double elapsed, Double& timestamp) in I:\work\github\opentk\src\OpenTK\GameWindow.cs:line 460
   at OpenTK.GameWindow.DispatchUpdateFrame(Stopwatch watch) in I:\work\github\opentk\src\OpenTK\GameWindow.cs:line 417
   at OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second) in I:\work\github\opentk\src\OpenTK\GameWindow.cs:line 373
   at OpenBve.MainLoop.StartLoopEx(MainDialogResult result)
   at OpenBve.Program.Main(String[] args)
---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.
   at TrainManager.Car.CarBase.UpdateTopplingCantAndSpring(Double TimeElapsed)
   at OpenBve.TrainManager.<>c__DisplayClass1_0.<UpdateTrains>b__1(Int32 i)
   at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)<---
   at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
   at System.Environment.get_StackTrace()
   at OpenBve.Program.Main(String[] args)
Cu

Sorry if this bug has been reported before, It just seems like the first case on the newest build  Very Happy
SmoIchopper
SmoIchopper

Posts : 13
Join date : 2021-01-12

Back to top Go down

1.7.3.0 build crashing after 4-5 seconds of loading up. Empty Re: 1.7.3.0 build crashing after 4-5 seconds of loading up.

Post by leezer3 Wed Apr 14, 2021 8:45 pm

Cannot load Counter Name data because an invalid index " was read from the registry

This tells me you've got some Windows registry corruption issues.
https://docs.microsoft.com/en-US/troubleshoot/windows-server/performance/rebuild-performance-counter-library-values

Follow these steps as a starting point to rebuild the performance counters:

  1. Go to Start, type cmd
  2. Right-click on cmd.exe and choose ‘Run as administrator’.
  3. Type lodctr /r and press enter.


I'm not certain whether it's the direct cause of your troubles or symptomatic of something else.
Your routefile from the crash log is fine here though.

leezer3

Posts : 1967
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

1.7.3.0 build crashing after 4-5 seconds of loading up. Empty Re: 1.7.3.0 build crashing after 4-5 seconds of loading up.

Post by leezer3 Wed Apr 14, 2021 9:03 pm

I think I've found it now....
(Had loading sway turned off, crashed with it on)

1.7.3.1 should be live any time now.
This should also add handling for cases which have the error above, although it's genuine.

leezer3

Posts : 1967
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

1.7.3.0 build crashing after 4-5 seconds of loading up. Empty Re: 1.7.3.0 build crashing after 4-5 seconds of loading up.

Post by SmoIchopper Thu Apr 15, 2021 4:34 pm

I managed to successfully do the above, however rather than showing the error it now closes the window without any error prompt. Here was the crash log from the latest run with the symptoms:

Code:
15/04/2021 16:31:53
OpenBVE 1.7.3.0 Crash Log
Program is running on the Windows backend
Current screen resolution is: Windowed 1500px X 800px
Current routefile is: C:\Users\AppData\Roaming\openBVE\LegacyContent\Railway\Route\Uchibo\1157M.csv
Current train is: C:\Users\AppData\Roaming\openBVE\LegacyContent\Train\113_6
Current train plugin is: Ats1.dll
1 file(s) not found
31 error(s), 2 warning(s)
The current routefile caused the following exception:
System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at TrainManager.Car.CarBase.UpdateTopplingCantAndSpring(Double TimeElapsed)
   at OpenBve.TrainManager.<>c__DisplayClass1_0.<UpdateTrains>b__1(Int32 i)
   at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
   at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.Wait()
   at System.Threading.Tasks.Parallel.ForWorker[TLocal](Int32 fromInclusive, Int32 toExclusive, ParallelOptions parallelOptions, Action`1 body, Action`2 bodyWithState, Func`4 bodyWithLocal, Func`1 localInit, Action`1 localFinally)
   at System.Threading.Tasks.Parallel.For(Int32 fromInclusive, Int32 toExclusive, Action`1 body)
   at OpenBve.TrainManager.UpdateTrains(Double TimeElapsed)
   at OpenBve.OpenBVEGame.OnUpdateFrame(FrameEventArgs e)
   at OpenTK.GameWindow.RaiseUpdateFrame(Stopwatch watch, Double elapsed, Double& timestamp) in I:\work\github\opentk\src\OpenTK\GameWindow.cs:line 460
   at OpenTK.GameWindow.DispatchUpdateFrame(Stopwatch watch) in I:\work\github\opentk\src\OpenTK\GameWindow.cs:line 417
   at OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second) in I:\work\github\opentk\src\OpenTK\GameWindow.cs:line 373
   at OpenBve.MainLoop.StartLoopEx(MainDialogResult result)
   at OpenBve.Program.Main(String[] args)
---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object.
   at TrainManager.Car.CarBase.UpdateTopplingCantAndSpring(Double TimeElapsed)
   at OpenBve.TrainManager.<>c__DisplayClass1_0.<UpdateTrains>b__1(Int32 i)
   at System.Threading.Tasks.Parallel.<>c__DisplayClass17_0`1.<ForWorker>b__1()
   at System.Threading.Tasks.Task.InnerInvoke()
   at System.Threading.Tasks.Task.InnerInvokeWithArg(Task childTask)
   at System.Threading.Tasks.Task.<>c__DisplayClass176_0.<ExecuteSelfReplicating>b__0(Object <p0>)<---
   at System.Environment.GetStackTrace(Exception e, Boolean needFileInfo)
   at System.Environment.get_StackTrace()
   at OpenBve.Program.Main(String[] args)
Current program memory usage: 130.39mb
System memory free: 10028mb
SmoIchopper
SmoIchopper

Posts : 13
Join date : 2021-01-12

Back to top Go down

1.7.3.0 build crashing after 4-5 seconds of loading up. Empty Re: 1.7.3.0 build crashing after 4-5 seconds of loading up.

Post by SmoIchopper Thu Apr 15, 2021 4:36 pm

Update: I managed to fix the error by turning off loading sway.
SmoIchopper
SmoIchopper

Posts : 13
Join date : 2021-01-12

Back to top Go down

1.7.3.0 build crashing after 4-5 seconds of loading up. Empty Re: 1.7.3.0 build crashing after 4-5 seconds of loading up.

Post by leezer3 Thu Apr 15, 2021 7:38 pm

Yes, that figures.

1.7.3.1 fixes the issue & was pushed yesterday Wink

leezer3

Posts : 1967
Join date : 2011-08-23

http://www.bvecornwall.co.uk

Back to top Go down

1.7.3.0 build crashing after 4-5 seconds of loading up. Empty Re: 1.7.3.0 build crashing after 4-5 seconds of loading up.

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum