Elvas Tower: Potential problem with activity in Monogame V36 - Elvas Tower

Jump to content

  • 2 Pages +
  • 1
  • 2
  • You cannot start a new topic
  • You cannot reply to this topic

Potential problem with activity in Monogame V36 Rate Topic: -----

#1 User is offline   railguy 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 652
  • Joined: 10-October 10
  • Gender:Male
  • Location:Kansas
  • Simulator:Open Rails
  • Country:

Posted 03 November 2019 - 02:23 PM

I've been working on creating an activity for BNSF Seligman (Open Rails), and have been making test runs. I'm running into an intermittent problem with the sim crashing. I've attached the log file. It does show various rolling stock issues, etc., but that does not appear to be the issue. At the bottom of the log, it describes an error with what I think is the precipitation module. I've also attaches a screen shot of the error message. The activity is crashing in heavy snow conditions. The activity has several weather change events set up as location events, but no changes are progress at the time of these crashes. They do seem to occur with some regularity about a minute or so after I do a save of the activity. I don't know whether or not this is a bug or some other issue.

I also have noticed the "shaking" that others have mentioned in V. 36. I've downloaded V 37, but have not installed it just yet. Any help appreciated.

Thanks.

Attached thumbnail(s)

  • Attached Image: screenshot.jpg

Attached File(s)



#2 User is offline   Csantucci 

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

Posted 03 November 2019 - 11:40 PM

This seems to be the same problem like this one
http://www.elvastowe...post__p__252163
so it does not seem to be caused by a specific route...

#3 User is offline   railguy 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 652
  • Joined: 10-October 10
  • Gender:Male
  • Location:Kansas
  • Simulator:Open Rails
  • Country:

Posted 04 November 2019 - 05:57 AM

I'm wondering if it has to with elevation. This first line of the error message makes me wonder (my emphasis in italics):

at Orts.Viewer3D.PrecipitationPrimitive.HeightCache.GetHeight(WorldLocation location, TileManager tiles, SceneryDrawer scenery) in F:\ADRIANA\Carlo\OR_Work\Git_ORTS_source_mio\Source\RunActivity\Viewer3D\Precipitation.cs:line 446

The Seligman Route gets up to around 7,500 ft. elevation, and these crashes started occurring at somewhere around 6,000 ft. elevation and seem to get more frequent as the train climbs above that. I'm wondering if something in the code is causing an exception when the "elevation" of the tile mathematically exceeds what the precipitation module can compute for the "height" of the precipitation particles.

#4 User is offline   Csantucci 

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

Posted 04 November 2019 - 06:07 AM

Thanks for the hint, but looking at the code it rather seems something related to indexing within the tile Height matrix. Does your route have tiles with dimension greater than 2048x2048m?

#5 User is offline   railguy 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 652
  • Joined: 10-October 10
  • Gender:Male
  • Location:Kansas
  • Simulator:Open Rails
  • Country:

Posted 04 November 2019 - 07:14 AM

I don't know. It's an ummodified Streamlines BNSF Seligman (Open Rails) route.

#6 User is offline   Csantucci 

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

Posted 04 November 2019 - 01:57 PM

I did two long runs in autopilot mode (Philly to Washington, Denver to Craig), but I didn't get crashes. I could insert checks in the code to avoid crashes, but I'd prefer to understand why the indices go out of bounds.

#7 User is offline   railguy 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 652
  • Joined: 10-October 10
  • Gender:Male
  • Location:Kansas
  • Simulator:Open Rails
  • Country:

Posted 04 November 2019 - 02:15 PM

One additional note--in my activity, I have precipitationIntensity set at 0.020. My system is 64-bit and I've used this setting without problem before. Could that setting cause any issue with V36?

#8 User is offline   Csantucci 

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

Posted 05 November 2019 - 10:13 AM

Rel 38 of OR NewYear MG logs some data just before the precipitation crash.
Railguy, if you run such release and get the crash, please attach the logfile as you already did: I should get useful data to understand how to avoid the crash.

#9 User is offline   edwardk 

  • Open Rails Developer
  • Group: Status: Elite Member
  • Posts: 1,350
  • Joined: 11-December 09
  • Gender:Male
  • Location:Chula Vista, CA
  • Simulator:MSTS
  • Country:

Posted 05 November 2019 - 03:10 PM

Did this problem happen with the earlier releases such as before 64bit? Just like the shaking wagon issue, it looks as if we are beginning to see issues that are connected with 64bit. My take on this is we could be seeing variable precision issues or something else that is involving the code and the 64bit process.

#10 User is offline   railguy 

  • Engineer
  • Group: Status: Contributing Member
  • Posts: 652
  • Joined: 10-October 10
  • Gender:Male
  • Location:Kansas
  • Simulator:Open Rails
  • Country:

Posted 05 November 2019 - 07:20 PM

View PostCsantucci, on 05 November 2019 - 10:13 AM, said:

Rel 38 of OR NewYear MG logs some data just before the precipitation crash.
Railguy, if you run such release and get the crash, please attach the logfile as you already did: I should get useful data to understand how to avoid the crash.


It will likely be a few days before I can get to it--I'm going to be away from my computer for most of that time. As soon as I do rerun the activity, I'll report on what I find.

  • 2 Pages +
  • 1
  • 2
  • 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