OpenBVE crashes when launching 'Morden-Edgware via ChX' Northern Line route (ListView+ItemControl.ItemsMouseDown)

Bug #995617 reported by Aidan Fell
38
This bug affects 6 people
Affects Status Importance Assigned to Milestone
openbve (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hi, the Northern Line route 'Morden-Edgware via ChX' crashes sometimes when trying to select it as a route in openBVE. It leaves this error:

 at System.Windows.Forms.ListView+ItemControl.ItemsMouseDown (System.Object sender, System.Windows.Forms.MouseEventArgs me) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.OnMouseDown (System.Windows.Forms.MouseEventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.WmLButtonDown (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ListView+ItemControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0

To reproduce this:
1) Make sure you have/download the latest Northern Line route from here: http://www.trainsimstuff.org/lu-northern-line/northern-line-downloads
2) Load up openBVE
3) Select the Northern Line route above.
4) It may or may not crash. If it does, then it will most likely exit with the above error.

Ubuntu 12.04

Paul Sladen (sladen)
summary: OpenBVE crashes when launching 'Morden-Edgware via ChX' Northern Line
- route
+ route (ListView+ItemControl.ItemsMouseDown)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in openbve (Ubuntu):
status: New → Confirmed
Revision history for this message
Alessandro Menti (elgaton) wrote :

Confirmed as another user reported the same bug in bug #1038411.

I'll try to reproduce this issue a second time (it seems to be difficult as the bug occurs randomly).

Revision history for this message
Pierre Rudloff (rudloff) wrote :

It happens every time for me.

Revision history for this message
Alessandro Menti (elgaton) wrote :

Pierre, could you please specify which map you were trying to select? At the time the first report was originally filed, I could not reproduce the issue with the default maps; actually, I'm wondering if it's a map problem or a coding error in OpenBVE. (Unfortunately, the stack trace was optimized out, thus I can't see where the bug lies...)

I'll publish shortly a debug build of OpenBVE for you to install so that it will display debug information and stack traces when it crashes.

Revision history for this message
Pierre Rudloff (rudloff) wrote :

It seems to happen with every map.

Revision history for this message
Aidan Fell (islandmonkey) wrote :

Any progress on this?

Revision history for this message
AlexanderJ (avionyx) wrote :

Confirmed that this also affects me, with any BVE map, 17 out of the last 20 route selections have caused a crash.
This seems to be an OpenBVE issue as I can also get similar results after trying it on a machine running OS X

Revision history for this message
Alessandro Menti (elgaton) wrote :

Could everyone open a terminal, run:
    mono --debug /usr/games/openbve
and paste the output here? (I've tried multiple times to reproduce the bug unsuccessfully, looking at a backtrace might point out where the error occurs).

Revision history for this message
Swordfish (swordfish-designs) wrote :

I crash 19 times out of 20 when clicking on a track name, before even hitting the start button.
Here is what I get from shell:

System.NullReferenceException: Object reference not set to an instance of an object
  at System.Windows.Forms.ListView+ItemControl.ItemsMouseDown (System.Object sender, System.Windows.Forms.MouseEventArgs me) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.OnMouseDown (System.Windows.Forms.MouseEventArgs e) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.WmLButtonDown (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.ListView+ItemControl.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control+ControlWindowTarget.OnMessage (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.Control+ControlNativeWindow.WndProc (System.Windows.Forms.Message& m) [0x00000] in <filename unknown>:0
  at System.Windows.Forms.NativeWindow.WndProc (IntPtr hWnd, Msg msg, IntPtr wParam, IntPtr lParam) [0x00000] in <filename unknown>:0

Revision history for this message
Jonas Obrist (ojiidotch) wrote :

Here's a workaround: When starting the game, go up one folder in the route selection and then click the folder again, let's me play the game.

Revision history for this message
mabuka (martin-bund) wrote :

This bug affects me as well (Ubuntu 14.04). Unfortunately, ojiidotch's workaround does not work for me.

Revision history for this message
Robert Vertesi (robert-vertesi) wrote :

Same here, Ubuntu 14.04. I found two workarounds:
- Click on the route but do not release the mouse button. While holding it, pull the cursor away from the route name to the right so that the route remains highlighted.
- Click on some empty space within the select route field, then navigate with the arrows.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.