amsat-dl / QO-100-Modem

The purpose of this project is to transfer data (pictures...) via a 2,7kHz SSB channel on the narrow band transponder as fast as possible
GNU General Public License v3.0
20 stars 6 forks source link

hsmodem crashes if message too long #6

Open doctorvenables opened 1 year ago

doctorvenables commented 1 year ago

I'm on debian bookworm amd64. Everything works fine, except HSmodem will crash will an error report of 'message too long' in the terminal window

Error messages below: Unhandled Exception: System.Net.Sockets.SocketException (0x80004005): Message too long at System.Net.Sockets.Socket.SendTo (System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.Net.Sockets.SocketFlags socketFlags, System.Net.EndPoint remoteEP) [0x00095] in <a85c1a570f9a4f9f9c3d2cfa5504e34f>:0 at System.Net.Sockets.UdpClient.Send (System.Byte[] dgram, System.Int32 bytes, System.String hostname, System.Int32 port) [0x000e0] in <a85c1a570f9a4f9f9c3d2cfa5504e34f>:0 at oscardata.Udp.Udptxloop () [0x00028] in <511da6986b7241adbc8ea0ba07247e91>:0 at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00017] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x0008d] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00031] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 at System.Threading.ThreadHelper.ThreadStart () [0x0000b] in <12b418a7818c4ca0893feeaaf67f1e7f>:0

biterlemon commented 1 year ago

I work with Ubuntu 22.04.3 - I have the very same error. GUI crashes after max runtime of ~30min. Maybe there is anyone who can have a look on this bug, please? Thank you!

dc1saf commented 1 month ago

Unfortunately same here: Linux 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux

The modem seems to keep on running in the background, as the HTML website is still being updated with spectrum display, DX Cluster and CW Skimmer data. Bulletins and news are stopped after this exception occurs.

Tried to enlarge MTU on my network interfaces, did not solve that issue.

73, Fabian

Unhandled Exception:
System.Net.Sockets.SocketException (0x80004005): Message too long
  at System.Net.Sockets.Socket.SendTo (System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.Net.Sockets.SocketFlags socketFlags, System.Net.EndPoint remoteEP) [0x00095] in <a85c1a570f9a4f9f9c3d2cfa5504e34f>:0 
  at System.Net.Sockets.UdpClient.Send (System.Byte[] dgram, System.Int32 bytes, System.String hostname, System.Int32 port) [0x000e0] in <a85c1a570f9a4f9f9c3d2cfa5504e34f>:0 
  at oscardata.Udp.Udptxloop () [0x00028] in <511da6986b7241adbc8ea0ba07247e91>:0 
  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00017] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x0008d] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00031] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
  at System.Threading.ThreadHelper.ThreadStart () [0x0000b] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.Net.Sockets.SocketException (0x80004005): Message too long
  at System.Net.Sockets.Socket.SendTo (System.Byte[] buffer, System.Int32 offset, System.Int32 size, System.Net.Sockets.SocketFlags socketFlags, System.Net.EndPoint remoteEP) [0x00095] in <a85c1a570f9a4f9f9c3d2cfa5504e34f>:0 
  at System.Net.Sockets.UdpClient.Send (System.Byte[] dgram, System.Int32 bytes, System.String hostname, System.Int32 port) [0x000e0] in <a85c1a570f9a4f9f9c3d2cfa5504e34f>:0 
  at oscardata.Udp.Udptxloop () [0x00028] in <511da6986b7241adbc8ea0ba07247e91>:0 
  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00017] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x0008d] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00031] in <12b418a7818c4ca0893feeaaf67f1e7f>:0 
  at System.Threading.ThreadHelper.ThreadStart () [0x0000b] in <12b418a7818c4ca0893feeaaf67f1e7f>:0