plugdata icon indicating copy to clipboard operation
plugdata copied to clipboard

[netsend] cause plugdata crash

Open mimicras opened this issue 1 year ago • 5 comments

Any correct use of [netsend] cause plugdata (app.) to crash. Any (allowed) port and address (localhost or 127…) or external (192…) cause crash. The best way to check this is just open help for [netsend] and run :)

I think this is much harder to catch …

best,

m.

mimicras avatar Jan 03 '25 17:01 mimicras

Maybe it helps: The same thing on Linux (Mint 22 Wilma, Ubuntu 24.04 noble) does not crash but reports in Console: Connection reset by peer (104) And on next try: Connection refused (111)

best,

m.

mimicras avatar Jan 04 '25 18:01 mimicras

The same thing on Linux

What is the OS in the first post then?

dromer avatar Jan 04 '25 18:01 dromer

First time tested on MacOS (three different computers with BigSur (11.6.5 - M1) and High Sierra and Sierra (Intel Macs). Also with Universal and Legacy versions of plugdata. The problem could be also with [netreceive]. I will try to do more test to point right object.

mimicras avatar Jan 06 '25 15:01 mimicras

Here are more. Adding a -u flag will not cause crash, but there are no communication still. I created similar patch in MaxMSP and and when sending from Max to plugd - no communication, no crash Sending from plugd to Max - two errors in Max:

  • OSC bad message name string: DataAfterAlignedString Unreasonably long string. Dropping
    and
  • OSC packet size (5) not a multiple of 4 bytes. Dropping.

I am not expert in this, but to me it looks like instead of actual data plugd is sending some variable name or other elements of opcode…

If there is any more I can test - let my know.

mimicras avatar Jan 06 '25 15:01 mimicras

Sending from plugd to Max - two errors in Max:

OSC bad message name string: DataAfterAlignedString Unreasonably long string. Dropping and OSC packet size (5) not a multiple of 4 bytes. Dropping.

Max's [udpreceive] expects an OSC-formatted message, so in plugdata, it has to be [oscformat] --> [netsend -u -b] -- Max won't understand it otherwise.

jamshark70 avatar Mar 08 '25 06:03 jamshark70