Avid Pro Audio Community

Avid Pro Audio Community

How to Join & Post  •  Community Terms of Use  •  Help Us Help You

Knowledge Base Search  •  Community Search  •  Learn & Support


Avid Home Page

Go Back   Avid Pro Audio Community > Dev > Pro Tools Scripting SDK Toolkit

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-10-2023, 07:19 PM
The Cargo Cult's Avatar
The Cargo Cult The Cargo Cult is offline
The Cargo Cult
 
Join Date: Aug 2005
Posts: 304
Default PTSL fails to connect on Apple Silicon Native

When Pro Tools is running in Apple Silicon Native mode, PTSL fails to connect.
This is true on Monterey and Ventura.

With Pro Tools launched under Rosetta, the connection does work.

macOS13.2 or 12.5.1
PT2022.12

Here's the console output:
This appears to be logged by PTSLC_CPP::CppPTSLClient
Code:
[open] LAUNCH: Launch failure with -10652/ <FSNode 0x6000036bd420> { isDir = y, path = '/Applications/Pro Tools.app' }
This is the response to the OnResponseReceived() callback
Code:
header: taskID= CommandType=60 status: type=4 progress=0 error="[Error]: ProTools is not available yet."
And the CommandResponse returned from AuthorizeConnection() is nullptr
Reply With Quote
  #2  
Old 02-11-2023, 07:22 AM
JamieHardt JamieHardt is offline
Member
 
Join Date: Jan 2023
Location: Los Angeles, CA
Posts: 54
Default Re: PTSL fails to connect on Apple Silicon Native

In the client configutation, have you tried setting this?
Code:
config.skipHostLaunch = true;
Edit: The client's host launch code on MacOS uses system() and I'm pretty sure this is supposed to be sandboxed, it might not be able to see the "/Application" directory, depends on exactly how the build is signed or if it's not getting whitelisted out of Gatekeeper.
__________________
___
Jamie Hardt MPSE
Pro Tools Ultimate 2022.12.0
Mac OS X 12.6.2
Mac Pro (Late 2013)

Last edited by JamieHardt; 02-11-2023 at 09:25 AM.
Reply With Quote
  #3  
Old 02-11-2023, 05:29 PM
The Cargo Cult's Avatar
The Cargo Cult The Cargo Cult is offline
The Cargo Cult
 
Join Date: Aug 2005
Posts: 304
Default Re: PTSL fails to connect on Apple Silicon Native

Pro tools is already running, so I think the "launch" error is just in response to PTSL client being unable to find/connect to PT.
Edit: confirmed that config.skipHostLaunch makes no difference.


The same connection works when PT is running under rosetta.

Have you seen PTSL working with PT under native Apple Silicon?

Last edited by The Cargo Cult; 02-11-2023 at 06:33 PM.
Reply With Quote
  #4  
Old 02-12-2023, 12:21 PM
JamieHardt JamieHardt is offline
Member
 
Join Date: Jan 2023
Location: Los Angeles, CA
Posts: 54
Default Re: PTSL fails to connect on Apple Silicon Native

I haven't tried running on Apple Silicon, you could try running the python client to see what happens (I haven't tried running it on Apple Silicon either but some here might).

it's just odd that the error message would talk about filesystem paths and nodes, the scripting client doesn't talk to Pro Tools through the filesystem (at least not directly), it connects through a localhost TCP port.
__________________
___
Jamie Hardt MPSE
Pro Tools Ultimate 2022.12.0
Mac OS X 12.6.2
Mac Pro (Late 2013)
Reply With Quote
  #5  
Old 02-13-2023, 05:12 AM
jaydeesm jaydeesm is offline
Member
 
Join Date: Dec 2022
Location: Canada
Posts: 33
Default Re: PTSL fails to connect on Apple Silicon Native

lipo -info /Applications/Pro\ Tools.app/Contents/Frameworks/libPTSL.dylib

Non-fat file: /Applications/Pro Tools.app/Contents/Frameworks/libPTSL.dylib is architecture: x86_64

I wasted a few hours on this myself..
Reply With Quote
  #6  
Old 02-13-2023, 09:17 AM
PatrickCusack PatrickCusack is offline
Member
 
Join Date: Apr 2013
Location: Loa Angeles
Posts: 19
Default Re: PTSL fails to connect on Apple Silicon Native

I am not too terribly familiar with CMake, but I don't think that it builds Arm64 builds. The framework it makes on my intel is only x86_64 which I discovered when trying to profile in Instruments. Instruments wouldn't let me profile unless the library included an arm64 build. I disabled the Apple Silicon target in Xcode and then Instruments allowed me to do some testing.
Reply With Quote
  #7  
Old 02-13-2023, 10:26 AM
rmajors's Avatar
rmajors rmajors is offline
Avid
 
Join Date: Aug 2008
Location: WA
Posts: 73
Default Re: PTSL fails to connect on Apple Silicon Native

Hi all - apologies for the confusion. Pro Tools 2022.12 only supports the Pro Tools Scripting SDK on Windows and Mac Intel (including Rosetta) at this time. It is one of a few features still to be completed for full native Apple silicon support in Pro Tools. Work is in progress and we hope to support it in an upcoming release.
__________________
Rob Majors
Avid Software Engineering
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Waves v14 for upcoming PT Apple Silicon Native info swethington AAX Plug-ins 13 11-18-2022 03:16 AM
Pro Tools and Native Apple Silicon use... lowthert macOS 10 07-24-2022 08:01 AM
More Apple Silicon misery Leon77 Pro Tools 2 06-23-2021 03:23 AM
Spectrasonics 2.7 – adds VST3 and native support for Apple Silicon M1 Macs unkJE Virtual Instruments 0 06-17-2021 09:49 PM


All times are GMT -7. The time now is 06:29 PM.


Powered by: vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Limited. Forum Hosted By: URLJet.com