PlaneAlerter 2.0

Want to post something that doesn't quite fit into the other forums? This is the place for that.
Mac
Posts: 84
Joined: Tue Mar 19, 2013 11:49 am

Re: PlaneAlerter 2.0

Post by Mac » Wed Dec 14, 2016 8:19 pm

Great thanks! :D

Dom2364
Posts: 74
Joined: Sun Aug 09, 2015 4:01 am
Location: Australia
Contact:

Re: PlaneAlerter 2.0

Post by Dom2364 » Fri Dec 16, 2016 12:38 pm

UPDATE!
I've figured out what's causing the memory issues, but I can only fix it by completely redoing the aircraftlist.json decoding. I have reduced the memory usage by changing the json decoding so that it doesn't have to be stored in as many places, and the decoded aircraft data is now stored in custom data structures so only what's needed is stored. Using adsbexchange (about 4000-5000 aircraft), it uses about 250MB max memory.

Changelog:
  • Updated from Newtonsoft.json 7.0.1 to 9.0.1
  • Added status
  • Added a better system to manage checker thread and safely restart checker
  • Optimised aircraft data storage
  • Changed aircraftlist.json decoding to decode directly from download stream
  • Response buffer removed as not needed, should always download the full response now
  • Various other fixes and improvements
Download: http://dom2364.com/planealerter.html
I write software and take photos.
AussieADSB
Full Throttle Photography

Mac
Posts: 84
Joined: Tue Mar 19, 2013 11:49 am

Re: PlaneAlerter 2.0

Post by Mac » Fri Dec 16, 2016 12:40 pm

Excellent I'll give it a go.

Thanks

DeWoert
Posts: 42
Joined: Mon Feb 29, 2016 9:36 pm

Re: PlaneAlerter 2.0

Post by DeWoert » Fri Dec 16, 2016 4:30 pm

Seems to be working fine !
(Also solved the "high CPU" problem i was having with the previous version(s).)

Thanks !!!

Mac
Posts: 84
Joined: Tue Mar 19, 2013 11:49 am

Re: PlaneAlerter 2.0

Post by Mac » Sun Dec 18, 2016 7:05 pm

Works great !

Had this error today, not sure if its an issue worth looking into or a problem on my side

************** Exception Text **************
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
at System.Collections.ArrayList.get_Item(Int32 index)
at System.Windows.Forms.ToolStripItemCollection.get_Item(Int32 index)
at System.Windows.Forms.ToolStrip.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.StatusStrip.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 Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1086.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
PlaneAlerter
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/Admin/Desktop/PlaneAlerter%202.0%20(1)/PlaneAlerter.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2
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.6.1081.0 built by: NETFXREL3STAGE
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.6.1078.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1084.0 built by: NETFXREL3STAGE
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1064.2 built by: NETFXREL3STAGE
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Newtonsoft.Json
Assembly Version: 9.0.0.0
Win32 Version: 9.0.1.19813
CodeBase: file:///C:/Users/Admin/Desktop/PlaneAlerter%202.0%20(1)/Newtonsoft.Json.DLL
----------------------------------------
System.Numerics
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
----------------------------------------
System.Runtime.Serialization
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
----------------------------------------
System.Xml.Linq
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
----------------------------------------
System.Data
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1086.0 built by: NETFXREL4STAGE
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_32/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
Accessibility
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1038.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------

Dom2364
Posts: 74
Joined: Sun Aug 09, 2015 4:01 am
Location: Australia
Contact:

Re: PlaneAlerter 2.0

Post by Dom2364 » Mon Dec 19, 2016 7:18 am

I think that's an error with .net actually, I can't modify the part of code that's causing that. Might be fixed in the next version of .net.
I write software and take photos.
AussieADSB
Full Throttle Photography

TurboCommander
Posts: 17
Joined: Mon Jun 02, 2014 4:06 pm

Upgrading from 1.0 GUI

Post by TurboCommander » Wed Dec 21, 2016 5:34 am

Thank you so much for this amazing program! One question. I thought I had version 2, dropped the latest file into my existing folder and get an unhandled exception. Looking at the properties | details of PlaneAlerter.exe it is version 1.0.0.0 10/26/2015 but GUI. I thought 1.0 was command line. Anyhow, I have over 50 conditions. What is the upgrade / migration path from where I am at to the latest version?

Dom2364
Posts: 74
Joined: Sun Aug 09, 2015 4:01 am
Location: Australia
Contact:

Re: PlaneAlerter 2.0

Post by Dom2364 » Wed Dec 21, 2016 6:04 am

Ah, I see what's happened. I never actually changed the version number in the exe information, that'll be fixed in the next update, so you do actually have the latest version. The reason as to why it's crashing now would be because the newer version uses a different format to save conditions, so it's unable to read the old format and crashing. You would have to unfortunately re-add them in the new version, or if you could pm me the contents of your conditions.json file I can convert it into the new format so you don't have to re-add every condition.
I write software and take photos.
AussieADSB
Full Throttle Photography

TurboCommander
Posts: 17
Joined: Mon Jun 02, 2014 4:06 pm

Re: PlaneAlerter 2.0

Post by TurboCommander » Wed Dec 21, 2016 6:44 am

PM sent. Thank you for taking the time to look at this, it is greatly appreciated.

Mac
Posts: 84
Joined: Tue Mar 19, 2013 11:49 am

Re: PlaneAlerter 2.0

Post by Mac » Fri Dec 23, 2016 9:03 pm

Still getting the above .Net error . I have installed it on a fresh Win 7 machine and am getting the same error. It occurs after a short while of processing maybe 20/30 mins

Anyone else getting this error ?

Post Reply