Jump to content

[Beta] Unhandled exception when launching settings dialog


Justin Shannon
 Share

Recommended Posts

I have a hunch it's because the network servers aren't being cached for some reason... Each time I launch vSTARS, it says there was an error downloading the server list. It's not being blocked in my firewall either.

 

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

************** Exception Text **************
System.ArgumentOutOfRangeException: InvalidArgument=Value of '0' is not valid for 'SelectedIndex'.
Parameter name: SelectedIndex
  at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
  at cs.f()
  at cs.g()
  at cs..ctor()
  at cx.a(Object A_0, KeyEventArgs A_1)
  at System.Windows.Forms.Control.OnKeyDown(KeyEventArgs e)
  at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
  at System.Windows.Forms.Form.ProcessKeyPreview(Message& m)
  at System.Windows.Forms.Control.ProcessKeyPreview(Message& m)
  at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
  at System.Windows.Forms.Control.WmKeyChar(Message& m)
  at System.Windows.Forms.Control.WndProc(Message& m)
  at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
  at System.Windows.Forms.ContainerControl.WndProc(Message& m)
  at System.Windows.Forms.UserControl.WndProc(Message& m)
  at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
  at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
  at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded [Mod - Happy Thoughts]emblies **************
mscorlib
   [Mod - Happy Thoughts]embly Version: 2.0.0.0
   Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
   CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
vSTARS
   [Mod - Happy Thoughts]embly Version: 1.1.0.0
   Win32 Version: 1.1.0.0
   CodeBase: file:///C:/Program%20Files%20(x86)/vSTARS/vSTARS.exe
----------------------------------------
System.Windows.Forms
   [Mod - Happy Thoughts]embly Version: 2.0.0.0
   Win32 Version: 2.0.50727.5491 (Win7SP1GDR.050727-5400)
   CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
   [Mod - Happy Thoughts]embly Version: 2.0.0.0
   Win32 Version: 2.0.50727.8686 (QFE.050727-8600)
   CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
   [Mod - Happy Thoughts]embly Version: 2.0.0.0
   Win32 Version: 2.0.50727.5495 (Win7SP1GDR.050727-5400)
   CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Xml
   [Mod - Happy Thoughts]embly Version: 2.0.0.0
   Win32 Version: 2.0.50727.5494 (Win7SP1GDR.050727-5400)
   CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Configuration
   [Mod - Happy Thoughts]embly Version: 2.0.0.0
   Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
   CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
protobuf-net
   [Mod - Happy Thoughts]embly Version: 1.0.0.282
   Win32 Version: 1.0.0.282
   CodeBase: file:///C:/Program%20Files%20(x86)/vSTARS/protobuf-net.DLL
----------------------------------------
yz_dtrky
   [Mod - Happy Thoughts]embly Version: 1.1.0.0
   Win32 Version: 2.0.50727.8686 (QFE.050727-8600)
   CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
Tao.Platform.Windows
   [Mod - Happy Thoughts]embly Version: 1.0.0.5
   Win32 Version: 1.0.0.5
   CodeBase: file:///C:/Program%20Files%20(x86)/vSTARS/Tao.Platform.Windows.DLL
----------------------------------------
System.Core
   [Mod - Happy Thoughts]embly Version: 3.5.0.0
   Win32 Version: 3.5.30729.5420 built by: Win7SP1
   CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
Tao.OpenGl
   [Mod - Happy Thoughts]embly Version: 2.1.0.12
   Win32 Version: 2.1.0.12
   CodeBase: file:///C:/Program%20Files%20(x86)/vSTARS/Tao.OpenGl.DLL
----------------------------------------
Microsoft.DirectX.AudioVideoPlayback
   [Mod - Happy Thoughts]embly Version: 1.0.2902.0
   Win32 Version: 5.04.00.2904
   CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC/Microsoft.DirectX.AudioVideoPlayback/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.AudioVideoPlayback.dll
----------------------------------------
Microsoft.DirectX
   [Mod - Happy Thoughts]embly Version: 1.0.2902.0
   Win32 Version: 5.04.00.2904
   CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC/Microsoft.DirectX/1.0.2902.0__31bf3856ad364e35/Microsoft.DirectX.dll
----------------------------------------
se1yewfv
   [Mod - Happy Thoughts]embly Version: 1.1.0.0
   Win32 Version: 2.0.50727.8686 (QFE.050727-8600)
   CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
hxbwana4
   [Mod - Happy Thoughts]embly Version: 1.1.0.0
   Win32 Version: 2.0.50727.8686 (QFE.050727-8600)
   CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Runtime.Serialization
   [Mod - Happy Thoughts]embly Version: 3.0.0.0
   Win32 Version: 3.0.4506.5463 (Win7SP1GDR.030729-5400)
   CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System.Runtime.Serialization/3.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
----------------------------------------
System.Management
   [Mod - Happy Thoughts]embly Version: 2.0.0.0
   Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
   CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
yvfvvwys
   [Mod - Happy Thoughts]embly Version: 1.1.0.0
   Win32 Version: 2.0.50727.8686 (QFE.050727-8600)
   CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
SharpDX.DirectInput
   [Mod - Happy Thoughts]embly Version: 2.5.0.0
   Win32 Version: 2.5.0
   CodeBase: file:///C:/Program%20Files%20(x86)/vSTARS/SharpDX.DirectInput.DLL
----------------------------------------
SharpDX
   [Mod - Happy Thoughts]embly Version: 2.5.0.0
   Win32 Version: 2.5.0
   CodeBase: file:///C:/Program%20Files%20(x86)/vSTARS/SharpDX.DLL
----------------------------------------
4ymcvmtd
   [Mod - Happy Thoughts]embly Version: 1.1.0.0
   Win32 Version: 2.0.50727.8686 (QFE.050727-8600)
   CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
r7vlvplb
   [Mod - Happy Thoughts]embly Version: 1.1.0.0
   Win32 Version: 2.0.50727.8686 (QFE.050727-8600)
   CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Web.Services
   [Mod - Happy Thoughts]embly Version: 2.0.0.0
   Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
   CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System.Web.Services/2.0.0.0__b03f5f7f11d50a3a/System.Web.Services.dll
----------------------------------------
um0hqo_h
   [Mod - Happy Thoughts]embly Version: 1.1.0.0
   Win32 Version: 2.0.50727.8686 (QFE.050727-8600)
   CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.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.


Controller (C3), Los Angeles ARTCC
Developer: xPilot, vATIS

Link to comment
Share on other sites

CachedServers element is empty. Not sure if this will be of any help, but here's the NetworkStatusURL value:

<NetworkStatusURL>QV3c4DoqB1Y=</NetworkStatusURL>

It seems shorter than what your other apps (vERAM, vPilot) have in their respected config file:

<NetworkStatusURL>pZ9u441bE4a2NCGgqMxKNvwAIy0qEA+AwXB8c3sV90c=</NetworkStatusURL>

I've tried reinstalling vSTARS with an empty config file, but still no luck.

Controller (C3), Los Angeles ARTCC
Developer: xPilot, vATIS

Link to comment
Share on other sites

If by "install" you mean delete and let vSTARS generate a new one, no it does not populate the cached servers. The only way I've been able to get around it was to copy the obfuscated server list URL and cached servers from the vERAM config to the vSTARS config.

Controller (C3), Los Angeles ARTCC
Developer: xPilot, vATIS

Link to comment
Share on other sites

Note that deleting your config file will definitely not work because it won't have the "status URL" to download servers from.

 

If you copied the status URL from vERAM, that should allow you to download new servers. If you're still getting the error, then something is blocking the HTTP request.

Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy

Senior Controller, Boston Virtual ARTCC

Link to comment
Share on other sites

Well now I'm stumped. I just uninstalled and removed all vSTARS files and installed the latest non-beta version then upgraded to the 1.1 beta with no issues. I'm not sure what caused it the first time... I'll keep trying to reproduce it for you, though.

 

But to answer your last post, yes I copied both the status URL and the cached servers from the vERAM config when I first got the error.

Controller (C3), Los Angeles ARTCC
Developer: xPilot, vATIS

Link to comment
Share on other sites

  • 4 weeks later...

I'm getting it on startup

 

 

DateStamp: 3/10/2017 10:09:26 AM
Details: System.NullReferenceException: Object reference not set to an instance of an object.
  at ac.d()
  at ac.h(Object A_0, EventArgs A_1)
  at System.Windows.Forms.Control.OnResize(EventArgs e)
  at System.Windows.Forms.Form.OnResize(EventArgs e)
  at System.Windows.Forms.Control.OnSizeChanged(EventArgs e)
  at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height, Int32 clientWidth, Int32 clientHeight)
  at System.Windows.Forms.Control.UpdateBounds(Int32 x, Int32 y, Int32 width, Int32 height)
  at System.Windows.Forms.Control.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
  at System.Windows.Forms.Form.SetBoundsCore(Int32 x, Int32 y, Int32 width, Int32 height, BoundsSpecified specified)
  at System.Windows.Forms.Control.ScaleControl(SizeF factor, BoundsSpecified specified)
  at System.Windows.Forms.ScrollableControl.ScaleControl(SizeF factor, BoundsSpecified specified)
  at System.Windows.Forms.Form.ScaleControl(SizeF factor, BoundsSpecified specified)
  at System.Windows.Forms.Control.ScaleControl(SizeF includedFactor, SizeF excludedFactor, Control requestingControl)
  at System.Windows.Forms.ContainerControl.Scale(SizeF includedFactor, SizeF excludedFactor, Control requestingControl)
  at System.Windows.Forms.ContainerControl.PerformAutoScale(Boolean includedBounds, Boolean excludedBounds)
  at System.Windows.Forms.ContainerControl.PerformNeededAutoScaleOnLayout()
  at System.Windows.Forms.ContainerControl.OnLayoutResuming(Boolean performLayout)
  at System.Windows.Forms.Control.ResumeLayout(Boolean performLayout)
  at ac.a()
  at ac..ctor(WindowProperties A_0)
  at cx..ctor(String A_0)
  at cz.c()

Link to comment
Share on other sites

Very strange ... I've looked at the code referenced in your crash report, and I can't see any way that it could cause a null reference exception. You mentioned it happens on startup ... do you mean right when you first start vSTARS, or after you select a facility?

Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy

Senior Controller, Boston Virtual ARTCC

Link to comment
Share on other sites

I think I'm going to need a copy of your vSTARSConfig.xml file in order to troubleshoot this. Could you zip up that file and post it somewhere for me to download? Don't post the URL publicly since it will contain an encrypted version of your VATSIM p[Mod - Happy Thoughts]word. You can send me the download URL (dropbox, google drive, whatever) via private message here.

Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy

Senior Controller, Boston Virtual ARTCC

Link to comment
Share on other sites

It was regardless if it was the config file was empty/clean or the one used from the older version it still threw that error. If it was a new config it'd throw a "Error in XML docomeent 2,2"

 

That's a different issue ... I'm not talking about the config file being the cause of this new issue. I'm saying I need a copy of the config file in order to reproduce and troubleshoot this new issue.

Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy

Senior Controller, Boston Virtual ARTCC

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...