TDAbleton - macOs error

i am trying to connect my macbook which is running Ableton to my pc running Touchdesigner. i get this error which i didn’t get before when i was using a windows laptop.

/ABLETON_DATA/tdAbletonPackage/tdAbleton: Requesting connection to Ableton Live.

TDA Remote Script Error

Traceback (most recent call last):
File “/Applications/Ableton Live 12 Suite.app/Contents/App-Resources/MIDI Remote Scripts/TouchDesigner/TDA.py”, line 313, in send
client.send( message)
File “/Applications/Ableton Live 12 Suite.app/Contents/App-Resources/MIDI Remote Scripts/TouchDesigner/OSC3.py”, line 1227, in send
raise TypeError(“‘msg’ argument is not an OSCMessage or OSCBundle object”)
TypeError: ‘msg’ argument is not an OSCMessage or OSCBundle object

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Applications/Ableton Live 12 Suite.app/Contents/App-Resources/MIDI Remote Scripts/TouchDesigner/OSC3.py", line 1240, in send
    self.socket.sendall(msg.getBinary())
OSError: [Errno 55] No buffer space available

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "output/Live/mac_universal_64_static/Release/python-bundle/Python/lib/socketserver.py", line 317, in _handle_request_noblock
  File "output/Live/mac_universal_64_static/Release/python-bundle/Python/lib/socketserver.py", line 348, in process_request
  File "output/Live/mac_universal_64_static/Release/python-bundle/Python/lib/socketserver.py", line 361, in finish_request
  File "output/Live/mac_universal_64_static/Release/python-bundle/Python/lib/socketserver.py", line 755, in __init__
  File "/Applications/Ableton Live 12 Suite.app/Contents/App-Resources/MIDI Remote Scripts/TouchDesigner/OSC3.py", line 1819, in handle
    self._unbundle(decoded)
  File "/Applications/Ableton Live 12 Suite.app/Contents/App-Resources/MIDI Remote Scripts/TouchDesigner/OSC3.py", line 1801, in _unbundle
    self.replies += self.server.dispatchMessage(decoded[0], decoded[1][1:], decoded[2:], self.client_address)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Applications/Ableton Live 12 Suite.app/Contents/App-Resources/MIDI Remote Scripts/TouchDesigner/OSC3.py", line 1762, in dispatchMessage
    reply = self.callbacks[addr](pattern, tags, data, client_address)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Applications/Ableton Live 12 Suite.app/Contents/App-Resources/MIDI Remote Scripts/TouchDesigner/TDA.py", line 385, in onMsgCommand
    self.sendConnectInfo(client)
  File "/Applications/Ableton Live 12 Suite.app/Contents/App-Resources/MIDI Remote Scripts/TouchDesigner/TDA.py", line 548, in sendConnectInfo
    self.sendSongInfo(client)
  File "/Applications/Ableton Live 12 Suite.app/Contents/App-Resources/MIDI Remote Scripts/TouchDesigner/TDA.py", line 619, in sendSongInfo
    self.send(client, chunk, '/info/songDump/chunk')
  File "/Applications/Ableton Live 12 Suite.app/Contents/App-Resources/MIDI Remote Scripts/TouchDesigner/TDA.py", line 317, in send
    client.send(message)
  File "/Applications/Ableton Live 12 Suite.app/Contents/App-Resources/MIDI Remote Scripts/TouchDesigner/OSC3.py", line 1242, in send
    raise OSCClientError("while sending: %s" % str(e))
TouchDesigner.OSC3.OSCClientError: while sending: [Errno 55] No buffer space available 

End TDA Remote Script Error

python >>>

TouchDesigner version 2023.11760 , on Windows 11

Ableton 12.1.1 , running on MacBook Pro 2020, macOS Monterey 12.7.6

Interesting. This is out of the scope of TDAbleton… a udp buffer size problem in Mac OS. I couldn’t find a very clear answer on how to increase that buffer size, but that is probably what you have to do.

If you want to try reducing the allowed message size sent by TDAbleton, you can try changing the actual TouchDesigner Ableton Remote Script. I have no idea if this will work, but this is how you would do it… emphasized textGo to the TouchDesigner Remote Script folder (you can find the path in the Utilities page of the TDAbleton package) and alter the TDA.py file.

Find this line (~line 617):

		for chunk in \
				[songText[i:i+1024] for i in range(0, len(songText), 1024)]:

Try some smaller numbers than 1024 (change both).

So after a lot of stressful troubleshooting

it seems that if there is a lot of stuff inside the arrangement view in Ableton we get the error in TDAbleton “OSError: [Errno 55] No buffer space available”. I dont remember now if this was only MacOS problem, but as soon as we deleted a lot of junk from the arrangement view this problem went away and the file size of ableton decreased dramatically from 12gb to 4gb. even though i was not trying to access any stuff from there.

another issue we encountered was the naming of the Main or Master track. We had a version of Ableton were Main Track was what td ableton was looking for and then downloaded a new trial Ableton and Main Track was renamed to Master Track. I had to go and manually change Main to Master inside TDAbletonExt line 179.

Interesting about the arrangement view. I can look into that but will be difficult without a test case. If you want to post your giant file somewhere (no actual audio necessary, just the .als) I can check it out. 12gb is really giant so certainly something I have not tested.

As far as Main vs Master… that is a change that happened in Ableton Live for version 12. If you were using an older TDAbleton, it wouldn’t be able to handle it. If you were using TDAbleton version 2.5 or up, it should have just worked. Please post your fixed TDAbletonExt file so I can see which case we are looking at.

If you dont’ want to post this stuff here, you can send directly to ivan@derivative.ca