loopier / animatron

Animatron for Godot 4.x <
15 stars 1 forks source link

OSC sender crash #14

Open loopier opened 9 months ago

loopier commented 9 months ago

In the previous version (for Godot 3.x), sending back an OSC message to the sender crashed the app if the args string was too long. We need to check if this happens in this version, also.

totalgee commented 9 months ago

There is a maximum size for UDP packets (on top of which the OSC protocol is usually implemented). It is platform-dependent, and may be as big as nearly 64kb on Windows or ~1500 bytes on some other platforms, like Linux. Can you print out the length of the string you're trying to send back, to have an idea where it's failing on your machine?

totalgee commented 9 months ago

Hmm, try this to see the current MTU on Linux:

$ ifconfig | grep mtu

Here is how you can change it: https://linuxhint.com/how-to-change-mtu-size-in-linux/

totalgee commented 9 months ago

Out of curiosity, another thing you could try is (maybe only 1500 will work on your machine?):

$ ping localhost -f -l 65500 # this works on my Windows machine