UDP Port binding issue using UDPreceive

Patrick Gemayel's icon

Patrick Gemayel

10月 18 2024 | 3:48 午前

I've put my finger on one big issue with the UDPreceive object.

I'm using UDPreceive to receive OSC messages from a certain port (8002 in this case). Everything works fine until I decide to edit the MAX patch from Ableton. As soon as I open it freezes the port and stops receiving messages. It starts working again if I switch ports (for example 8003), but I can't switch back to the previous port.

That was weird enough so I kept digging, and I discovered that this issue only arises when I want to edit the patch from Ableton before the MAX8 app is running...

If it's already running, even without another patch opened, it will work fine, if not, 100% of the time my patch will crash and I'll have to switch ports.

You'll tell me the workaround is easy, just switch the port, or have MAX open before you edit the patch, but I believe there should be a fix for this.

Not sure if it's an Ableton or MAX issue, but seems more likely to me MAX.

Attached is a link with a video capture of the problem for better understanding.

chapelier fou's icon

chapelier fou

10月 18 2024 | 11:09 午前

Yeah, working with UDP with M4L can be a pain when editing devices.

I think it has something to do with the version of Max that is used by Ableton to edit patches. Did you try, in Ableton preferences, to set up Live to use your Max app instead of the bundled one ?


Patrick Gemayel's icon

Patrick Gemayel

10月 18 2024 | 5:25 午後

Yes I have the latest Max version replacing the bundled version. It’s such a niche issue with an easy (but annoying) workaround so I doubt anybody over there paid attention to this. I’ve asked Ableton and they blame it on Max. And Max will probably blame it on Ableton haha.

Who knows, maybe this will get to somebody’s inbox!

chapelier fou's icon

chapelier fou

10月 18 2024 | 6:14 午後

On my computer, if I send UDP from Max to M4L, it stops working on edit mode if I use the bundled version, but works with the same version as the sender.