Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restarting Connection from vatSys causes crash when ATC online #1

Open
jgolin opened this issue Feb 17, 2021 · 0 comments
Open

Restarting Connection from vatSys causes crash when ATC online #1

jgolin opened this issue Feb 17, 2021 · 0 comments

Comments

@jgolin
Copy link
Collaborator

jgolin commented Feb 17, 2021

Steps to reproduce;

  • start vatSys and log in with other ATC around
  • start vStrips and connect
  • close vStrips
  • in vatSys in the vStrips INTAS settings, click Restart
  • start vStrips again

the plugin errors per below.

Note if NO ATC are online there is no error, the plugin connects to vStrips and data flows fine.

System.ObjectDisposedException
HResult=0x80131622
Message=Cannot access a disposed object.
Object name: 'System.Net.Sockets.UdpClient'.
Source=System
StackTrace:
at System.Net.Sockets.UdpClient.BeginSend(Byte[] datagram, Int32 bytes, IPEndPoint endPoint, AsyncCallback requestCallback, Object state)
at System.Net.Sockets.UdpClient.BeginSend(Byte[] datagram, Int32 bytes, AsyncCallback requestCallback, Object state)
at System.Threading.Tasks.TaskFactory1.FromAsyncImpl[TArg1,TArg2](Func5 beginMethod, Func2 endFunction, Action1 endAction, TArg1 arg1, TArg2 arg2, Object state, TaskCreationOptions creationOptions)
at System.Net.Sockets.UdpClient.SendAsync(Byte[] datagram, Int32 bytes)
at vStripsPlugin.vStripsConnector.SendPacket(String packet) in C:\Users\jgoli\source\repos\vStripsPlugin\vStripsConnector.cs:line 379
at vStripsPlugin.vStripsConnector.SendATCOnline(NetworkATC atc) in C:\Users\jgoli\source\repos\vStripsPlugin\vStripsConnector.cs:line 249
at vStripsPlugin.vStripsConnector.Network_OnlineATCChanged(Object sender, ATCUpdateEventArgs e) in C:\Users\jgoli\source\repos\vStripsPlugin\vStripsConnector.cs:line 68
at System.EventHandler1.Invoke(Object sender, TEventArgs e) at vatsys.Network.AddOnlineATC(NetworkATC atc) at vatsys.Network.VATSIM_ATCPositionReceived(Object sender, DataReceivedEventArgs1 e)
at Metacraft.Vatsim.Network.FSDSession.RaiseATCPositionReceived(PDUATCPosition pdu)
at Metacraft.Vatsim.Network.FSDSession.ProcessData(String data)
at Metacraft.Vatsim.Network.FSDSession.OnDataReceived(IAsyncResult asyn)

This exception was originally thrown at this call stack:
[External Code]
vStripsPlugin.vStripsConnector.SendPacket(string) in vStripsConnector.cs
vStripsPlugin.vStripsConnector.SendATCOnline(vatsys.NetworkATC) in vStripsConnector.cs
vStripsPlugin.vStripsConnector.Network_OnlineATCChanged(object, vatsys.Network.ATCUpdateEventArgs) in vStripsConnector.cs
[External Code]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant