opensatelliteproject / OpenSatelliteProject

Open Satellite Project Information
MIT License
377 stars 38 forks source link

Type Control-C to goesdump results in the program hanging instead of exitting. #1

Open n2cr opened 7 years ago

n2cr commented 7 years ago

Control-C is detected and goesdump appears to close some threads, but it never completely terminates and returns control back to the shell.

Note that sometimes monodevelop exhibits the same behavior when closing. For both it is necessary to put the process into the background via Control-Z and then kill the process.

Mar 18 12:46:18 XRIT Hit Ctrl + C! Closing... Mar 18 12:46:18 XRIT Closing program... Mar 18 12:46:18 XRIT Requested to close Channel Data Thread! Mar 18 12:46:18 XRIT Exception thrown when closing socket: System.ObjectDisposedException: Cannot access a disposed object.#012Object name: 'System.Net.Sockets.Socket'.#012 at System.Net.Sockets.Socket.ThrowIfDisposedAndClosed () <0x41263d30 + 0x0004b> in :0 #012 at System.Net.Sockets.Socket.Shutdown (SocketShutdown how) <0x412f0350 + 0x0001f> in :0 #012 at OpenSatelliteProject.Connector.channelDataLoop () <0x4129af90 + 0x00787> in :0 Ignoring. Mar 18 12:46:18 XRIT Channel Data Thread closed. Mar 18 12:46:18 XRIT Exception thrown when closing socket: System.ObjectDisposedException: Cannot access a disposed object.#012Object name: 'System.Net.Sockets.Socket'.#012 at System.Net.Sockets.Socket.ThrowIfDisposedAndClosed () <0x41263d30 + 0x0004b> in :0 #012 at System.Net.Sockets.Socket.Shutdown (SocketShutdown how) <0x412f0350 + 0x0001f> in :0 #012 at OpenSatelliteProject.Connector.statisticsLoop () <0x4129c8c0 + 0x0085b> in :0 Ignoring. Mar 18 12:46:18 XRIT Statistics Thread closed Mar 18 12:46:18 XRIT Constellation Thread closed.

n2cr commented 7 years ago

Platform: Ubuntu 16.04 running in VMware ESXI virtual machine