Elvas Tower: Unhandled Exception -- Overflow in Win7 - Elvas Tower

Jump to content

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

Unhandled Exception -- Overflow in Win7 MG77 --- no problems in MG76 -- Timetable Dispatch Window?? Rate Topic: -----

#1 User is offline   R H Steele 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 3,439
  • Joined: 14-March 13
  • Gender:Male
  • Location:known universe
  • Simulator:Open Rails
  • Country:

Posted 30 November 2020 - 09:03 PM

I'm unable to open the Dispatch Window in MG77 -- getting a Windows Unhandled exception - Overflow Error. Blue Comet Route if that means anything, nothing in the log. No problems opening the Dispatch Window in MG76. Same route, same activity. The only difference appears to be the addition of a Timetable Tab to the Dispatch Viewer. +
Why does Ctrl+9 default to the Timetable Tab when I'm not running a timetable?

Attached File(s)



#2 User is offline   Csantucci 

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

Posted 01 December 2020 - 02:45 AM

Hi Gerry,
are you able to expand the error window so that the whole error stack is shown? This would allow to track down where the error arises. As a minimum request it would be nice to know which code line is indicated in the third error message line starting with "at".
By the way, why aren't you using a more recent version of NewYear?

#3 User is offline   R H Steele 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 3,439
  • Joined: 14-March 13
  • Gender:Male
  • Location:known universe
  • Simulator:Open Rails
  • Country:

Posted 01 December 2020 - 11:51 AM

Hi Carlo, no particular reason for no using MG82, just haven't gotten around to it. I did install MG82 and tried the same route/activity combo on my laptop [Win10] and got the same overflow error when opening dispatch window ctrl+9. So this happens on both Win7 (desktop ) and Win10 on MG revisions I've tried after MG76. I do not get the overflow error using MG76.
Complete exception text follows:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.OverflowException: Overflow error.
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.DrawCurve(Pen pen, PointF[] points)
at Orts.Viewer3D.Debugging.TimetableWindow.DrawTrack(Graphics g, Pen p, PointF& scaledA, PointF& scaledB) in F:\ADRIANA\Carlo\OR_Work\Git_ORTS_source_mio\Source\RunActivity\Viewer3D\Debugging\TimetableWindow.cs:line 454
at Orts.Viewer3D.Debugging.TimetableWindow.GenerateTimetableView(Boolean dragging) in F:\ADRIANA\Carlo\OR_Work\Git_ORTS_source_mio\Source\RunActivity\Viewer3D\Debugging\TimetableWindow.cs:line 338
at Orts.Viewer3D.Debugging.DispatchViewer.GenerateView(Boolean dragging) in F:\ADRIANA\Carlo\OR_Work\Git_ORTS_source_mio\Source\RunActivity\Viewer3D\Debugging\DebugViewerForm.cs:line 577
at Orts.Viewer3D.Debugging.DispatchViewer.UITimer_Tick(Object sender, EventArgs e) in F:\ADRIANA\Carlo\OR_Work\Git_ORTS_source_mio\Source\RunActivity\Viewer3D\Debugging\DebugViewerForm.cs:line 245
at System.Windows.Forms.Timer.OnTick(EventArgs e)
at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4250.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
RunActivity
Assembly Version: 0.0.7636.37929
Win32 Version: 0.0.7636.37929
CodeBase: file:///C:/ORTS/OR_Monogame/REV82/RunActivity.exe
----------------------------------------
ORTS.Settings
Assembly Version: 0.0.7636.37901
Win32 Version: 0.0.7636.37901
CodeBase: file:///C:/ORTS/OR_Monogame/REV82/ORTS.Settings.DLL
----------------------------------------
ORTS.Common
Assembly Version: 0.0.7636.37896
Win32 Version: 0.0.7636.37896
CodeBase: file:///C:/ORTS/OR_Monogame/REV82/ORTS.Common.DLL
----------------------------------------
MonoGame.Framework
Assembly Version: 3.7.1.189
Win32 Version: 3.7.1.189
CodeBase: file:///C:/ORTS/OR_Monogame/REV82/MonoGame.Framework.DLL
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4270.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4200.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4270.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
GNU.Gettext
Assembly Version: 1.1.7017.24626
Win32 Version: 1.0.0.0
CodeBase: file:///C:/ORTS/OR_Monogame/REV82/GNU.Gettext.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
SharpDX
Assembly Version: 4.0.1.0
Win32 Version: 4.0.1
CodeBase: file:///C:/ORTS/OR_Monogame/REV82/SharpDX.DLL
----------------------------------------
System.Runtime
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.dll
----------------------------------------
SharpDX.XAudio2
Assembly Version: 4.0.1.0
Win32 Version: 4.0.1
CodeBase: file:///C:/ORTS/OR_Monogame/REV82/SharpDX.XAudio2.DLL
----------------------------------------
System.Threading
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Threading/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Threading.dll
----------------------------------------
System.Collections
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Collections/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Collections.dll
----------------------------------------
System.Runtime.InteropServices
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.InteropServices/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.InteropServices.dll
----------------------------------------
System.Reflection
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Reflection/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Reflection.dll
----------------------------------------
System.Reflection.Extensions
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Reflection.Extensions/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Reflection.Extensions.dll
----------------------------------------
SharpDX.DXGI
Assembly Version: 4.0.1.0
Win32 Version: 4.0.1
CodeBase: file:///C:/ORTS/OR_Monogame/REV82/SharpDX.DXGI.DLL
----------------------------------------
SharpDX.Direct3D11
Assembly Version: 4.0.1.0
Win32 Version: 4.0.1
CodeBase: file:///C:/ORTS/OR_Monogame/REV82/SharpDX.Direct3D11.DLL
----------------------------------------
Orts.ExternalDevices
Assembly Version: 0.0.7636.37925
Win32 Version: 0.0.7636.37925
CodeBase: file:///C:/ORTS/OR_Monogame/REV82/Orts.ExternalDevices.DLL
----------------------------------------
PIEHid64Net
Assembly Version: 2.2.5.23674
Win32 Version: 2.1
CodeBase: file:///C:/ORTS/OR_Monogame/REV82/PIEHid64Net.DLL
----------------------------------------
Orts.Simulation
Assembly Version: 0.0.7636.37913
Win32 Version: 0.0.7636.37913
CodeBase: file:///C:/ORTS/OR_Monogame/REV82/Orts.Simulation.DLL
----------------------------------------
Orts.Formats.Msts
Assembly Version: 0.0.7636.37905
Win32 Version: 0.0.7636.37905
CodeBase: file:///C:/ORTS/OR_Monogame/REV82/Orts.Formats.Msts.DLL
----------------------------------------
MonoGame.Framework.Content.Pipeline
Assembly Version: 3.7.1.189
Win32 Version: 3.7.1.189
CodeBase: file:///C:/ORTS/OR_Monogame/REV82/MonoGame.Framework.Content.Pipeline.DLL
----------------------------------------
CppNet
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/ORTS/OR_Monogame/REV82/CppNet.DLL
----------------------------------------
SharpDX.D3DCompiler
Assembly Version: 4.0.1.0
Win32 Version: 4.0.1
CodeBase: file:///C:/ORTS/OR_Monogame/REV82/SharpDX.D3DCompiler.DLL
----------------------------------------
System.IO
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.IO/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.IO.dll
----------------------------------------
System.Management
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
ORTS.Content
Assembly Version: 0.0.7636.37900
Win32 Version: 0.0.7636.37900
CodeBase: file:///C:/ORTS/OR_Monogame/REV82/ORTS.Content.DLL
----------------------------------------
Orts.Parsers.Msts
Assembly Version: 0.0.7636.37896
Win32 Version: 0.0.7636.37896
CodeBase: file:///C:/ORTS/OR_Monogame/REV82/Orts.Parsers.Msts.DLL
----------------------------------------
Orts.Formats.OR
Assembly Version: 0.0.7636.37909
Win32 Version: 0.0.7636.37909
CodeBase: file:///C:/ORTS/OR_Monogame/REV82/Orts.Formats.OR.DLL
----------------------------------------
Microsoft.CodeDom.Providers.DotNetCompilerPlatform
Assembly Version: 3.6.0.0
Win32 Version: 3.6.10708.0
CodeBase: file:///C:/ORTS/OR_Monogame/REV82/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.DLL
----------------------------------------
ORTS.IO
Assembly Version: 0.0.7636.37899
Win32 Version: 0.0.7636.37899
CodeBase: file:///C:/ORTS/OR_Monogame/REV82/ORTS.IO.DLL
----------------------------------------
ICSharpCode.SharpZipLib
Assembly Version: 0.81.0.1407
Win32 Version: 0.81.0.1407
CodeBase: file:///C:/ORTS/OR_Monogame/REV82/ICSharpCode.SharpZipLib.DLL
----------------------------------------
System.Globalization
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Globalization/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Globalization.dll
----------------------------------------
GNU.Gettext.WinForms
Assembly Version: 1.0.7017.24627
Win32 Version: 1.0.7017.24627
CodeBase: file:///C:/ORTS/OR_Monogame/REV82/GNU.Gettext.WinForms.DLL
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.



#4 User is offline   Csantucci 

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

Posted 01 December 2020 - 01:06 PM

Maybe Chris can help here. The exception occurs inside of
					g.DrawCurve(p, points);

There are only three points.

#5 User is offline   Csantucci 

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

Posted 02 December 2020 - 06:20 AM

I've generated a workaround patch that I will include in next OR NewYear MG release. It should both avoid the exception and write a log line with the value of the parameters involved, which might offer an insight about what is the cause of the problem.
If this won't lead to a satisfactory result I can modify the startup default until the problem is solved.

#6 User is offline   R H Steele 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 3,439
  • Joined: 14-March 13
  • Gender:Male
  • Location:known universe
  • Simulator:Open Rails
  • Country:

Posted 02 December 2020 - 06:47 AM

http://www.elvastower.com/forums/public/style_emoticons/default/sign_thank_you.gifhttp://www.elvastower.com/forums/public/style_emoticons/default/hi.gif Looks like this bug? was introduced with the Timetable window being added to the Dispatch Viewer window? I hope it doesn't have any other unintended consequences...thanks for your time and effort...Health and happiness to yourself, your loved ones, and even to the relatives you don't like so much. http://www.elvastower.com/forums/public/style_emoticons/default/wink.gif
Best Regards, Gerry

#7 User is offline   Csantucci 

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

Posted 02 December 2020 - 07:03 AM

Yes, the problem is related to the timetable window, but by the moment I don't call it a bug.

#8 User is offline   cjakeman 

  • Vice President
  • PipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 2,867
  • Joined: 03-May 11
  • Gender:Male
  • Location:Peterborough, UK
  • Simulator:Open Rails
  • Country:

Posted 02 December 2020 - 10:56 AM

 Csantucci, on 01 December 2020 - 01:06 PM, said:

Maybe Chris can help here. The exception occurs inside of
					g.DrawCurve(p, points);

There are only three points.

Thanks for coming up with a workaround, Carlo.

I did my best to add the Timetable Tab without disturbing the existing code. I've no idea why this line should cause trouble when other lines are fine.

#9 User is offline   R H Steele 

  • Executive Vice President
  • PipPipPipPipPipPipPipPipPip
  • Group: ET Admin
  • Posts: 3,439
  • Joined: 14-March 13
  • Gender:Male
  • Location:known universe
  • Simulator:Open Rails
  • Country:

Posted 02 December 2020 - 12:17 PM

Chris, Thanks for your time and effort also, much appreciated. Also, health and happiness to you and yours, and even to the relatives you don't like so much. http://www.elvastower.com/forums/public/style_emoticons/default/wink.gif

#10 User is offline   mbm_OR 

  • Fireman
  • Group: Status: Active Member
  • Posts: 236
  • Joined: 03-July 15
  • Gender:Male
  • Location:Spain
  • Simulator:Open Rails
  • Country:

Posted 03 December 2020 - 07:02 AM

Hi Gerry,
It seems that an unattached tracksection generates this issue.

The faulty TrackSection have been found using TrackViewer.
Attached File  Blue Comet Lines.jpg (20.49K)
Number of downloads: 4

The proposed patch, seems to solve this trouble.

Update (2020/12/04)
Attached File  Dispatcher-bad-tracksection-OR-MG-NewYear.diff.txt (3.97K)
Number of downloads: 3

Regards,
Mauricio

  • 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