Elvas Tower: Index was outside the bounds of the array - Elvas Tower

Jump to content

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

Index was outside the bounds of the array V2797 Rate Topic: -----

#1 User is offline   Genma Saotome 

  • Owner Emeritus and Admin
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 15,308
  • Joined: 11-January 04
  • Gender:Male
  • Location:United States
  • Simulator:Open Rails
  • Country:

Posted 17 January 2015 - 10:04 PM

With V2797 I'm seeing a lot of warning messages of "System.IndexOutOfRangeException: Index was outside the bounds of the array" followed by a failure to display a shape -- a shape that's been displaying since day 1. Many shapes actually.

I've no problem w/additional checks but I do object to failing to display stuff that's been displaying perfectly fine for years.

That said, being curious I thought the warning might also tell me where in the .s file it thought there was a problem... alas no information was provided that might lead me to understand what was going on.

Which leads to the cheeky question: Other than getting my attention, what's this trying to do?

#2 User is offline   vince 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,312
  • Joined: 18-June 14
  • Gender:Male
  • Location:West of the Contental Divide
  • Simulator:ORTS_Running MSTS_Editing
  • Country:

Posted 17 January 2015 - 11:04 PM

 Genma Saotome, on 17 January 2015 - 10:04 PM, said:

With V2797 I'm seeing a lot of warning messages of "System.IndexOutOfRangeException: Index was outside the bounds of the array" followed by a failure to display a shape -- a shape that's been displaying since day 1. Many shapes actually.

I've no problem w/additional checks but I do object to failing to display stuff that's been displaying perfectly fine for years.

That said, being curious I thought the warning might also tell me where in the .s file it thought there was a problem... alas no information was provided that might lead me to understand what was going on.

Which leads to the cheeky question: Other than getting my attention, what's this trying to do?

Ditto here at X2800 on grabbing my attention.
The LIRR Budd RDC is now invisible. The diesel smoke however still shows up nicely as do the headlights and cabview. Many of the custom shapes I constructed using SketchUp are gone! Shapes as simple as a small 12 poly sign. I see it complaining about nits in shape files mostly.

vince

#3 User is offline   Genma Saotome 

  • Owner Emeritus and Admin
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 15,308
  • Joined: 11-January 04
  • Gender:Male
  • Location:United States
  • Simulator:Open Rails
  • Country:

Posted 17 January 2015 - 11:09 PM

Yeah, that's about right.

Warnings are suppose to warn only and load the shape anyways. I expect it'll get corrected right away. But I would like to know what it caught its toe on when it stumbled.

#4 User is offline   Jeffrey Kraus-Yao 

  • Banned
  • PipPipPipPip
  • Group: Status: Fired
  • Posts: 282
  • Joined: 25-July 08
  • Gender:Male
  • Location:Madison
  • Simulator:Microsoft Train Simulator
  • Country:

Posted 18 January 2015 - 01:19 AM

Erased.

#5 User is offline   gpz 

  • Superintendant
  • Group: Status: Elite Member
  • Posts: 1,771
  • Joined: 27-October 12
  • Gender:Male
  • Location:Budapest
  • Simulator:OpenRails
  • Country:

Posted 18 January 2015 - 01:31 AM

 Jeffrey Kraus-Yao, on 18 January 2015 - 01:19 AM, said:

When I wrote these checks I had to intentionally create broken shapes since none of my default routes had broken shapes.

I would wonder, who and when gave you svn access, and how you felt yourself free to commit code that was communicated by the development team for a long time as non-wanted behavior, without trying to make the consent first. Can you please answer these questions?

#6 User is offline   Jeffrey Kraus-Yao 

  • Banned
  • PipPipPipPip
  • Group: Status: Fired
  • Posts: 282
  • Joined: 25-July 08
  • Gender:Male
  • Location:Madison
  • Simulator:Microsoft Train Simulator
  • Country:

Posted 18 January 2015 - 01:47 AM

Erased.

#7 User is online   James Ross 

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

Posted 18 January 2015 - 01:47 AM

 Genma Saotome, on 17 January 2015 - 10:04 PM, said:

With V2797 I'm seeing a lot of warning messages of "System.IndexOutOfRangeException: Index was outside the bounds of the array" followed by a failure to display a shape -- a shape that's been displaying since day 1. Many shapes actually.


Dave, can we have a log file please? System.IndexOutOfRangeException is not the exception you get when code has found a problem with a shape, it's one that happens when there's a bug in the code, so we need to know where it is to fix it.

#8 User is online   James Ross 

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

Posted 18 January 2015 - 03:04 AM

I have made all the shape checks into pure warnings in X2802, so they won't prevent any shapes loading. Some of the checks are good, in that they prevent Open Rails crashing and hanging later, but we need to figure out which criteria are strictly necessary for that and which are just to aid in producing good shape files.

We still need Dave's log file to see what's up with the System.IndexOutOfRangeException, although I might have fixed that in X2801.

#9 User is offline   Genma Saotome 

  • Owner Emeritus and Admin
  • PipPipPipPipPipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 15,308
  • Joined: 11-January 04
  • Gender:Male
  • Location:United States
  • Simulator:Open Rails
  • Country:

Posted 18 January 2015 - 09:05 AM

 James Ross, on 18 January 2015 - 03:04 AM, said:

We still need Dave's log file to see what's up with the System.IndexOutOfRangeException, although I might have fixed that in X2801.


Here it is. I'll provide Jeff some files later this morning after I've had my coffee and can figure out what to forward.

Attached File  Open Rails - X2799 - 1.17.2015 9.49.36 PM.txt.zip (6.9K)
Number of downloads: 172

#10 User is offline   Jeffrey Kraus-Yao 

  • Banned
  • PipPipPipPip
  • Group: Status: Fired
  • Posts: 282
  • Joined: 25-July 08
  • Gender:Male
  • Location:Madison
  • Simulator:Microsoft Train Simulator
  • Country:

Posted 18 January 2015 - 09:52 AM

Erased.

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