Luke Kolin Posted June 5, 2016 at 09:32 PM Posted June 5, 2016 at 09:32 PM I am trying to get back into VATSIM flight again, and installing vPilot 2.0. I get the following error after it attempts to load models for the first time configuration. I cannot save configuration or use vPilot: See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at Metacraft.Vatsim.ModelMatching.ModelScanResult.a.a(ModelScanResultModel A_0) at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate) at Metacraft.Vatsim.ModelMatching.ModelScanResult.a.a(ModelScanResultSubfolder A_0) at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate) at Metacraft.Vatsim.ModelMatching.ModelScanResult.a.a(ModelScanResultFolder A_0) at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source, Func`2 predicate) at Metacraft.Vatsim.ModelMatching.ModelScanResult.c(String A_0) at dt.c() at dt.a(Object A_0, RunWorkerCompletedEventArgs A_1) at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e) at System.ComponentModel.BackgroundWorker.AsyncOperationCompleted(Object arg) ************** 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 ---------------------------------------- vPilot [Mod - Happy Thoughts]embly Version: 2.0.3.0 Win32 Version: 2.0.3.0 CodeBase: file:///d:/Program%20Files/vPilot/vPilot.exe ---------------------------------------- Ninject [Mod - Happy Thoughts]embly Version: 3.2.0.0 Win32 Version: 3.2.2.0 CodeBase: file:///d:/Program%20Files/vPilot/Ninject.DLL ---------------------------------------- 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.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 ---------------------------------------- Ninject.Extensions.Factory [Mod - Happy Thoughts]embly Version: 3.2.0.0 Win32 Version: 3.2.1.0 CodeBase: file:///d:/Program%20Files/vPilot/Ninject.Extensions.Factory.DLL ---------------------------------------- Castle.Core [Mod - Happy Thoughts]embly Version: 3.2.0.0 Win32 Version: 3.2.0.2259 CodeBase: file:///d:/Program%20Files/vPilot/Castle.Core.DLL ---------------------------------------- bbv.Common.EventBroker [Mod - Happy Thoughts]embly Version: 0.0.0.0 Win32 Version: 0.0.0.0 CodeBase: file:///d:/Program%20Files/vPilot/bbv.Common.EventBroker.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 ---------------------------------------- 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 ---------------------------------------- DynamicProxyGen[Mod - Happy Thoughts]embly2 [Mod - Happy Thoughts]embly Version: 0.0.0.0 Win32 Version: 3.2.0.2259 CodeBase: file:///d:/Program%20Files/vPilot/Castle.Core.dll ---------------------------------------- DynamicProxyGen[Mod - Happy Thoughts]embly2 [Mod - Happy Thoughts]embly Version: 0.0.0.0 Win32 Version: 3.2.0.2259 CodeBase: file:///d:/Program%20Files/vPilot/Castle.Core.dll ---------------------------------------- Anonymously Hosted DynamicMethods [Mod - Happy Thoughts]embly [Mod - Happy Thoughts]embly Version: 0.0.0.0 Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400) CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll ---------------------------------------- protobuf-net [Mod - Happy Thoughts]embly Version: 2.0.0.668 Win32 Version: 2.0.0.668 CodeBase: file:///d:/Program%20Files/vPilot/protobuf-net.DLL ---------------------------------------- wlynksiw [Mod - Happy Thoughts]embly Version: 2.0.3.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 ---------------------------------------- Accessibility [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/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll ---------------------------------------- log4net [Mod - Happy Thoughts]embly Version: 1.2.10.0 Win32 Version: 1.2.10.0 CodeBase: file:///d:/Program%20Files/vPilot/log4net.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 ---------------------------------------- SharpDX.DirectInput [Mod - Happy Thoughts]embly Version: 2.6.3.0 Win32 Version: 2.6.3 CodeBase: file:///d:/Program%20Files/vPilot/SharpDX.DirectInput.DLL ---------------------------------------- SharpDX [Mod - Happy Thoughts]embly Version: 2.6.3.0 Win32 Version: 2.6.3 CodeBase: file:///d:/Program%20Files/vPilot/SharpDX.DLL ---------------------------------------- Microsoft.FlightSimulator.SimConnect [Mod - Happy Thoughts]embly Version: 10.0.61259.0 Win32 Version: 10.0.61637.0 (FSX-Xpack.20070926-1421) CodeBase: file:///C:/Windows/[Mod - Happy Thoughts]embly/GAC_32/Microsoft.FlightSimulator.SimConnect/10.0.61259.0__31bf3856ad364e35/Microsoft.FlightSimulator.SimConnect.dll ---------------------------------------- Metacraft.Vatsim.Vpilot.Plugins [Mod - Happy Thoughts]embly Version: 1.1.0.9 Win32 Version: 1.1.0.9 CodeBase: file:///d:/Program%20Files/vPilot/Metacraft.Vatsim.Vpilot.Plugins.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 ---------------------------------------- gssacxrp [Mod - Happy Thoughts]embly Version: 2.0.3.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 ---------------------------------------- p1duxmit [Mod - Happy Thoughts]embly Version: 2.0.3.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 ---------------------------------------- INIFileP[Mod - Happy Thoughts]r [Mod - Happy Thoughts]embly Version: 2.2.2.0 Win32 Version: 2.2.2 CodeBase: file:///d:/Program%20Files/vPilot/INIFileP[Mod - Happy Thoughts]r.DLL ---------------------------------------- z4b_eatj [Mod - Happy Thoughts]embly Version: 2.0.3.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 ---------------------------------------- Cheers! Luke ... I spawn hundreds of children a day. They are daemons because they are easier to kill. The first four remain stubbornly alive despite my (and their) best efforts. ... Normal in my household makes you a member of a visible minority. Link to comment Share on other sites More sharing options...
Board of Governors Don Desfosse Posted June 5, 2016 at 09:39 PM Board of Governors Posted June 5, 2016 at 09:39 PM Ross would likely need to provide more knowledge, but because I recall seeing that error before, I searched the forum for the error text. Here are the threads I found in the vPilot forum; not sure if either/both help. viewtopic.php?f=132&t=70456&p=496063&hilit=Object+reference+set+to+an+instance+of+an+object#p496063 viewtopic.php?f=132&t=70456&p=496063&hilit=Object+reference+set+to+an+instance+of+an+object#p496063 Perhaps interesting to note that that error message has also been found with other members using Euroscope and vATIS. Don Desfosse Vice President, Operations Link to comment Share on other sites More sharing options...
Bradley Grafelman Posted June 5, 2016 at 09:45 PM Posted June 5, 2016 at 09:45 PM @Don: that's a pretty generic error message that could occur in numerous different places in code (and each could have their own cause/solution). Probably better to just wait for Ross to decode the stacktrace and go from there. @Luke: Did you ever have vPilot 2.0 installed beforehand? Might be worth trying to uninstall it, remove the "%LocalAppData%\vPilot" folder altogether, then re-installing it again. EDIT: Looks like you installed vPilot to a different folder... try installing it somewhere other than D:\Program files\ (e.g. try D:\vPilot\ as a test). Link to comment Share on other sites More sharing options...
Luke Kolin Posted June 5, 2016 at 09:53 PM Author Posted June 5, 2016 at 09:53 PM Luke: Did you ever have vPilot 2.0 installed beforehand? Might be worth trying to uninstall it, remove the "%LocalAppData%\vPilot" folder altogether, then re-installing it again. I did a few weeks back (but got the same error) and nuked it. There is no vPilot folder under my %APPDATA%, local or roaming. EDIT: Looks like you installed vPilot to a different folder... try installing it somewhere other than D:\Program files\ (e.g. try D:\vPilot\ as a test). I'm not sure why - the folder isn't protected by UAC. I suspect there's something in the aircraft folders that's making the model generation code unhappy. Cheers! Luke ... I spawn hundreds of children a day. They are daemons because they are easier to kill. The first four remain stubbornly alive despite my (and their) best efforts. ... Normal in my household makes you a member of a visible minority. Link to comment Share on other sites More sharing options...
Ross Carlson Posted June 6, 2016 at 03:36 AM Posted June 6, 2016 at 03:36 AM Luke, thanks for the bug report. It looks like I didn't guard against a null reference when using the "title=" fields from the aircraft.cfg files. You seem to have a model definition with a missing title field. Version 2.0.4 should fix it. Please update and reply back here with the results. You should be able to update to 2.0.4 using the built-in updater, since that happens before the model scan. If not, here's the download link: http://vpilot.metacraft.com/DownloadHandler.ashx?m=0&ver=2.0.4&file=vPilot-Setup-2.0.4.exe Developer: vPilot, VRC, vSTARS, vERAM, VAT-Spy Senior Controller, Boston Virtual ARTCC Link to comment Share on other sites More sharing options...
Luke Kolin Posted June 7, 2016 at 07:11 PM Author Posted June 7, 2016 at 07:11 PM Luke, thanks for the bug report. It looks like I didn't guard against a null reference when using the "title=" fields from the aircraft.cfg files. You seem to have a model definition with a missing title field. Version 2.0.4 should fix it. Please update and reply back here with the results. Thank you for the prompt update. 2.0.4 works without issue. Cheers! Luke ... I spawn hundreds of children a day. They are daemons because they are easier to kill. The first four remain stubbornly alive despite my (and their) best efforts. ... Normal in my household makes you a member of a visible minority. Link to comment Share on other sites More sharing options...
Recommended Posts