RayProudfoot Posted July 5, 2017 Share Posted July 5, 2017 Up to a couple of days ago EFB was just fine. Trying to load a flight plan today results in the error in the title of this topic and the following details:- Am I really meant to understand what all this means? Searching this forum for the same message results in no solutions being offered. This is a standard P3D flight plan created by PFPX. Please help. ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at AivlaSoft.FlightplanHandlers.P3D.P3DHandler.ReadP3DTypeFlightPlan(String filenameSource) at AivlaSoft.FlightplanHandlers.P3D.P3DHandler.Read(String filenameSource) at yz.a(IFlightplanHandler A_0) at yz.w() at yz.p(Object A_0, EventArgs A_1) at System.Windows.Forms.Control.OnClick(EventArgs e) at DevExpress.XtraEditors.BaseButton.OnClick(EventArgs e) at DevExpress.XtraEditors.BaseButton.OnMouseUp(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at DevExpress.Utils.Controls.ControlBase.WndProc(Message& m) at DevExpress.XtraEditors.BaseControl.WndProc(Message& msg) 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 Assemblies ************** mscorlib Assembly Version: 4.0.0.0 Win32 Version: 4.7.2053.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll ---------------------------------------- AivlaSoft.Efb.DisplayUnit Assembly Version: 1.6.8.33245 Win32 Version: 1.6.8.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/AivlaSoft.Efb.DisplayUnit.exe ---------------------------------------- System.Windows.Forms Assembly Version: 4.0.0.0 Win32 Version: 4.7.2053.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll ---------------------------------------- System Assembly Version: 4.0.0.0 Win32 Version: 4.7.2053.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll ---------------------------------------- System.Drawing Assembly Version: 4.0.0.0 Win32 Version: 4.7.2053.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll ---------------------------------------- Castle.Windsor Assembly Version: 3.3.0.0 Win32 Version: 3.3.0.2412 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/Castle.Windsor.DLL ---------------------------------------- DevExpress.BonusSkins.v15.1 Assembly Version: 15.1.5.0 Win32 Version: 15.1.5.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/DevExpress.BonusSkins.v15.1.DLL ---------------------------------------- DevExpress.Utils.v15.1 Assembly Version: 15.1.5.0 Win32 Version: 15.1.5.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/DevExpress.Utils.v15.1.DLL ---------------------------------------- AivlaSoft.Efb.Common Assembly Version: 1.6.7.33244 Win32 Version: 1.6.7.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/AivlaSoft.Efb.Common.DLL ---------------------------------------- Castle.Core Assembly Version: 3.3.0.0 Win32 Version: 3.3.3.2300 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/Castle.Core.DLL ---------------------------------------- DevExpress.Data.v15.1 Assembly Version: 15.1.5.0 Win32 Version: 15.1.5.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/DevExpress.Data.v15.1.DLL ---------------------------------------- DevExpress.XtraEditors.v15.1 Assembly Version: 15.1.5.0 Win32 Version: 15.1.5.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/DevExpress.XtraEditors.v15.1.DLL ---------------------------------------- AivlaSoft.Efb.WeatherServices Assembly Version: 1.6.0.0 Win32 Version: 1.6.0.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/AivlaSoft.Efb.WeatherServices.DLL ---------------------------------------- System.Core Assembly Version: 4.0.0.0 Win32 Version: 4.7.2053.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll ---------------------------------------- System.Configuration Assembly Version: 4.0.0.0 Win32 Version: 4.7.2053.0 built by: NET47REL1 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.7.2053.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll ---------------------------------------- System.Data Assembly Version: 4.0.0.0 Win32 Version: 4.7.2053.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll ---------------------------------------- DevExpress.XtraGrid.v15.1 Assembly Version: 15.1.5.0 Win32 Version: 15.1.5.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/DevExpress.XtraGrid.v15.1.DLL ---------------------------------------- System.ComponentModel.DataAnnotations Assembly Version: 4.0.0.0 Win32 Version: 4.7.2053.0 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.ComponentModel.DataAnnotations/v4.0_4.0.0.0__31bf3856ad364e35/System.ComponentModel.DataAnnotations.dll ---------------------------------------- AivlaSoft.Efb.IFlightplanHandler Assembly Version: 1.6.0.0 Win32 Version: 1.6.0.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/AivlaSoft.Efb.IFlightplanHandler.DLL ---------------------------------------- AivlaSoft.FlightPlanHandlers.A320Series Assembly Version: 1.6.0.0 Win32 Version: 1.6.0.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/plugins/AivlaSoft.FlightPlanHandlers.A320Series.dll ---------------------------------------- Microsoft.VisualBasic Assembly Version: 10.0.0.0 Win32 Version: 14.7.2053.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll ---------------------------------------- System.Web Assembly Version: 4.0.0.0 Win32 Version: 4.7.2053.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_32/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll ---------------------------------------- AivlaSoft.FlightPlanHandlers.AAXE Assembly Version: 1.6.0.0 Win32 Version: 1.6.0.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/plugins/AivlaSoft.FlightPlanHandlers.AAXE.dll ---------------------------------------- AivlaSoft.FlightPlanHandlers.FSC Assembly Version: 1.6.0.0 Win32 Version: 1.6.0.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/plugins/AivlaSoft.FlightPlanHandlers.FSC.dll ---------------------------------------- AivlaSoft.FlightPlanHandlers.iFly-747_V2 Assembly Version: 1.6.0.0 Win32 Version: 1.6.0.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/plugins/AivlaSoft.FlightPlanHandlers.iFly-747_V2.dll ---------------------------------------- AivlaSoft.FlightPlanHandlers.iFly Assembly Version: 1.6.0.0 Win32 Version: 1.6.0.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/plugins/AivlaSoft.FlightPlanHandlers.iFly.dll ---------------------------------------- AivlaSoft.FlightplanHandlers.iFms Assembly Version: 1.6.0.0 Win32 Version: 1.6.0.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/plugins/AivlaSoft.FlightplanHandlers.iFms.dll ---------------------------------------- AivlaSoft.FlightPlanHandlers.ISG Assembly Version: 1.6.0.0 Win32 Version: 1.6.0.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/plugins/AivlaSoft.FlightPlanHandlers.ISG.dll ---------------------------------------- AivlaSoft.FlightPlanHandlers.KML Assembly Version: 1.6.0.0 Win32 Version: 1.6.0.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/plugins/AivlaSoft.FlightPlanHandlers.KML.dll ---------------------------------------- AivlaSoft.FlightPlanHandlers.LevelD Assembly Version: 1.6.0.0 Win32 Version: 1.6.0.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/plugins/AivlaSoft.FlightPlanHandlers.LevelD.dll ---------------------------------------- AivlaSoft.FlightplanHandlers.MsFs Assembly Version: 1.6.0.0 Win32 Version: 1.6.0.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/plugins/AivlaSoft.FlightplanHandlers.MsFs.dll ---------------------------------------- AivlaSoft.FlightplanHandlers.P3D Assembly Version: 1.6.0.0 Win32 Version: 1.6.0.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/plugins/AivlaSoft.FlightplanHandlers.P3D.dll ---------------------------------------- AivlaSoft.FlightPlanHandlers.PmdgRte Assembly Version: 1.6.0.0 Win32 Version: 1.6.0.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/plugins/AivlaSoft.FlightPlanHandlers.PmdgRte.dll ---------------------------------------- AivlaSoft.FlightplanHandlers.ProSim737 Assembly Version: 1.6.0.0 Win32 Version: 1.6.0.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/plugins/AivlaSoft.FlightplanHandlers.ProSim737.dll ---------------------------------------- AivlaSoft.FlightplanHandlers.SimAvionics Assembly Version: 1.6.0.0 Win32 Version: 1.6.0.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/plugins/AivlaSoft.FlightplanHandlers.SimAvionics.dll ---------------------------------------- AivlaSoft.FlightplanHandlers.Squawkbox2 Assembly Version: 1.6.0.0 Win32 Version: 1.6.0.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/plugins/AivlaSoft.FlightplanHandlers.Squawkbox2.dll ---------------------------------------- DevExpress.XtraRichEdit.v15.1 Assembly Version: 15.1.5.0 Win32 Version: 15.1.5.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/DevExpress.XtraRichEdit.v15.1.DLL ---------------------------------------- DevExpress.RichEdit.v15.1.Core Assembly Version: 15.1.5.0 Win32 Version: 15.1.5.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/DevExpress.RichEdit.v15.1.Core.DLL ---------------------------------------- DevExpress.Office.v15.1.Core Assembly Version: 15.1.5.0 Win32 Version: 15.1.5.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/DevExpress.Office.v15.1.Core.DLL ---------------------------------------- DevExpress.XtraPdfViewer.v15.1 Assembly Version: 15.1.5.0 Win32 Version: 15.1.5.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/DevExpress.XtraPdfViewer.v15.1.DLL ---------------------------------------- DevExpress.Pdf.v15.1.Core Assembly Version: 15.1.5.0 Win32 Version: 15.1.5.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/DevExpress.Pdf.v15.1.Core.DLL ---------------------------------------- DevExpress.XtraBars.v15.1 Assembly Version: 15.1.5.0 Win32 Version: 15.1.5.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/DevExpress.XtraBars.v15.1.DLL ---------------------------------------- DevExpress.Pdf.v15.1.Drawing Assembly Version: 15.1.5.0 Win32 Version: 15.1.5.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/DevExpress.Pdf.v15.1.Drawing.DLL ---------------------------------------- DevExpress.Printing.v15.1.Core Assembly Version: 15.1.5.0 Win32 Version: 15.1.5.0 CodeBase: file:///C:/Program%20Files%20(x86)/AivlaSoft/EFB/DevExpress.Printing.v15.1.Core.DLL ---------------------------------------- WindowsBase Assembly Version: 4.0.0.0 Win32 Version: 4.7.2053.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll ---------------------------------------- UIAutomationClient Assembly Version: 4.0.0.0 Win32 Version: 4.7.2053.0 built by: NET47REL1 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/UIAutomationClient/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationClient.dll ---------------------------------------- System.Data.Linq Assembly Version: 4.0.0.0 Win32 Version: 4.7.2053.0 CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Data.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Data.Linq.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. Link to comment Share on other sites More sharing options...
RayProudfoot Posted July 5, 2017 Author Share Posted July 5, 2017 I have discovered the cause of this problem. I installed a freeware moving map utility yesterday. I loaded this plan and it seems it has added a comment section near the top of the plan. This was sufficient to cause EFB problems. But wouldn't a more meaningful error message have helped? Like "unknown data in flight plan". This is what EFB objected to. The offending text in red. Why can't EFB just ignore a comment? <?xml version="1.0"?> <SimBase.Document Type="AceXML" version="1,0"> <Descr>AceXML Document</Descr> <!-- LNMDATA _lnm=Created by Little Navmap Version 1.4.3 (revision 7359ce8) on 05 July 2017 11:44:02| speed=100.0000 --> <FlightPlan.FlightPlan> <Title>ENGM to EGLL</Title> Link to comment Share on other sites More sharing options...
RayProudfoot Posted July 5, 2017 Author Share Posted July 5, 2017 After discussion with the author of Little Navmap he points to this article about adding comments to an XML file. It should not cause any program reading it to fail. Hopefully a fix to EFB can be provided. Link to comment Share on other sites More sharing options...
aivlasoft Posted July 5, 2017 Share Posted July 5, 2017 Hi Ray, Quote Am I really meant to understand what all this means? No, it's only meant for the programmer who should have the source code at hand. Without that, it's more or less like gazing in a crystal ball. Quote This is a standard P3D flight plan created by PFPX. Could you provide this flight plan for further testing? Thanks. Link to comment Share on other sites More sharing options...
RayProudfoot Posted July 5, 2017 Author Share Posted July 5, 2017 Hi Urs, Flight plan attached. This includes the comment added by the 3rd party program. Given that these error messages are unfathomable by anyone other than the programmer is it possible for you to output more meaningful ones? In this case it was because the flight plan could not be read. I was uninstalling and reinstalling both elements of EFB thinking something was corrupted. All completely unnecessary as it turned out, ENGMEGLL01.pln Link to comment Share on other sites More sharing options...
aivlasoft Posted July 5, 2017 Share Posted July 5, 2017 Hi Ray, thank you for the plan. In your second post, you are talking about a plan for P3D created by PFPX. Why is the comment reading " ... created by Little Navmap ..."? If I let PFPX generate a flight plan for P3D, there is no such comment at all in the resulting file. Quote Given that these error messages are unfathomable by anyone other than the programmer is it possible for you to output more meaningful ones? Such error messages are created by the underlying .NET framework, not by EFB. Such error messages are thrown if an error happens at a location in the program where the programmer has not taken precautions against an error. It's kind of a fallback mechanism. If an error happens at a location where the programmer is expecting any errors, then the error text usually is more meaningful. Link to comment Share on other sites More sharing options...
RayProudfoot Posted July 5, 2017 Author Share Posted July 5, 2017 Hi Urs, The original was created by PFPX but as I stated in my second post I loaded it into Little Navmap - a moving map utility - and because I was experimenting learning the program made a change which resulted in the pln being saved with a comment section. No change was made to the actual waypoints or other key data. So why did EFB reject this when the comment section has been created in line with XML standards? It seems you are unable to capture these errors before .NET so cannot output a more meaningful message. Pity. But as I said before the comment was to an agreed standard so why is .NET not ignoring it? Link to comment Share on other sites More sharing options...
aivlasoft Posted July 5, 2017 Share Posted July 5, 2017 Hi Ray, Quote So why did EFB reject this when the comment section has been created in line with XML standards? You're right, it's according to the standards, but it is just not to be expected there. I have never seen a P3D/FSX flight plan with a comment line before. Quote It seems you are unable to capture these errors before .NET so cannot output a more meaningful message. Pity. I don't have the intention to start a discussion about what's "good programming" and/or what's "bad programming". A programmer takes some precaution (error handling) at places where errors are usual, or to be expected (e.g. checking for a valid filename before a file is being read), but a programmer does not take precautions for errors at any place in an application, because this would lead to a noticeable slowing down of the program. Error handling is always a balancing of competing interests. Link to comment Share on other sites More sharing options...
RayProudfoot Posted July 5, 2017 Author Share Posted July 5, 2017 Hi Urs, Now that I know EFB cannot read a flight plan that contains comments I will make sure none do in future. You appear to have read my comments as an accusation of bad programming. I meant nothing of the sort. As a former programmer myself I know it can be difficult to capture all errors and output a meaningful message. I'm now aware of the situation so this problem should not reoccur. Link to comment Share on other sites More sharing options...
Recommended Posts