openrails / test-launchpad-bugs

TEST repository for Launchpad bug migration exploration
0 stars 0 forks source link

[BUG 1126477] X.1427: System.NullReferenceException at ORTS.Train.ChangeToNextCab (Crash when switching views) #156

Closed twpol closed 11 years ago

twpol commented 11 years ago

Imported from https://bugs.launchpad.net/bugs/1126477

Property Value
Reported by Sid Penstone (penstone)
Date reported Fri, 15 Feb 2013 17:50:14 GMT
Tags crash

OR Version: X1427 Route - Pocohontas; Activity - created with Activity Generator; Location - Bluefield yard.

I switch to Manual mode to back up and open a switch to a siding and then enter to pick up 15 cars from a set of 20. I connect brake hoses, uncouple unwanted cars, release handbrake. Some observations:

  1. The last car shows "State Emergency" until I start to move the cars, then clears to Release.

  2. Bug: the Alt-9 and Alt-3 keys to select which car to view are now selecting only the cars that are left in the siding that were part of the original consist. I cannot get the 2 or 3-views to show the part with the locomotives.

  3. If I now select the 4-view, OR crashes with: Error: System.NullReferenceException: Object reference not set to an instance of an object. at ORTS.Train.ChangeToNextCab() at ORTS.TracksideCamera.Update(ElapsedTime elapsedTime)... etc.

This is reproduceable.

P.S. I had already posted this in the OR Forum on the MSTS site, before I noticed this bug reporting site. Sid P.

twpol commented 11 years ago

Imported from https://bugs.launchpad.net/or/+bug/1126477/comments/1

Property Value
Posted by Sid Penstone (penstone)
Date posted Sat, 16 Feb 2013 23:56:16 GMT

Update - Switching to Manual and uncoupling and recoupling some cars in an already coupled consist does not cause the problem. (i.e. running the Marias Pass - "Auto Train with Setout" activity).

twpol commented 11 years ago

Imported from https://bugs.launchpad.net/or/+bug/1126477/comments/2

Property Value
Posted by James Ross (twpol)
Date posted Sun, 17 Feb 2013 00:09:43 GMT

Thanks for the clear bug report; I would suggest in the future keeping each bug report to a single issue at a time, so that we can track each fix individually.

twpol commented 11 years ago

Imported from https://bugs.launchpad.net/or/+bug/1126477/comments/3

Property Value
Posted by James Ross (twpol)
Date posted Sun, 17 Feb 2013 12:07:56 GMT

Issue 2 might be fixed by V1446.

twpol commented 11 years ago

Imported from https://bugs.launchpad.net/or/+bug/1126477/comments/4

Property Value
Posted by Stewart Larmer (larmers)
Date posted Sun, 24 Feb 2013 03:28:28 GMT

Issue still remains when running X1455. When using front coupler and following a diconnect the view remains with the cars left behind. Rear coupler works okay. Reported in Bug 1127659 I have tried this on three switching activities on Canton and also on Feather River. Regards

twpol commented 11 years ago

Imported from https://bugs.launchpad.net/or/+bug/1126477/comments/5

Property Value
Posted by Sid Penstone (penstone)
Date posted Thu, 28 Feb 2013 16:18:54 GMT

Workaround found: Press 9-key "Jump Back Player". This restores the 2-view and 3-view to the player train. (Version X1455).

twpol commented 11 years ago

Imported from https://bugs.launchpad.net/or/+bug/1126477/comments/6

Property Value
Posted by Jijun Tang (jtang-h)
Date posted Sat, 20 Apr 2013 15:08:30 GMT

Please see if it still crashes using the newest release.

twpol commented 11 years ago

Imported from https://bugs.launchpad.net/or/+bug/1126477/comments/7

Property Value
Posted by Sid Penstone (penstone)
Date posted Sat, 20 Apr 2013 19:10:25 GMT

X1576 - Works OK, no crashes. (There are some strange 4-view eye-locations in crowded switch yard after coupling, but OK after loco moves out of siding.) Looks fine. Bug #1127659 still present - used 9-key to restore 2-view and 3-views.

twpol commented 11 years ago

Imported from https://bugs.launchpad.net/or/+bug/1126477/comments/8

Property Value
Posted by Jijun Tang (jtang-h)
Date posted Tue, 23 Apr 2013 01:56:54 GMT

Fixed in 1582.