"Selected Tracks: Touch/Latch" macro times out in large session
"Selected Tracks: Touch/Latch" macro times out in large session
System Information
SoundFlow 5.1.5
OS: darwin 19.6.0
ProductName: Mac OS X
ProductVersion: 10.15.7
BuildVersion: 19H2026
Steps to Reproduce
- Select track
- Initiate Macro "Selected Tracks: Touch/Latch"
Expected Result
Selected tracks arm in Touch/Latch automation mode
Actual Result
this error:
24.08.2022 10:24:25.67 [Backend]: #Key: ctrl+command+alt+a (0) -> Selected Tracks: Touch/Latch [ck1wxrj62000sdz10tb40qj2q]
24.08.2022 10:24:25.67 [Backend]: >> Command: Selected Tracks: Touch/Latch [user:ckp49i4j60000a2100yfwywgf:ckux8btgj0000xq104p36odzz#ckux8sfzm000dxq103kyid3os]
Checking for running apps with bundle 'com.avid.ProTools'
24.08.2022 10:24:25.67 [Backend]: NSArray.ArrayFromHandle count = 1
24.08.2022 10:24:25.75 [Backend]: Mouse current pos is: (1454.55078125, 963.24609375)
Clicking with mouse here: (12, 60)
24.08.2022 10:24:25.76 [Backend]: Moving mouse back to: (1454.55078125, 963.24609375)
24.08.2022 10:24:25.76 [Backend]: Position is now: (1454.55078125, 963.24609375)
24.08.2022 10:24:25.88 [Backend]: Executing AutomationModeAction
24.08.2022 10:24:25.88 [Backend]: Checking for running apps with bundle 'com.avid.ProTools'
24.08.2022 10:24:25.88 [Backend]: NSArray.ArrayFromHandle count = 1
24.08.2022 10:24:25.96 [Backend]: Mouse current pos is: (1454.55078125, 963.24609375)
Clicking with mouse here: (12, 60)
24.08.2022 10:24:25.97 [Backend]: Moving mouse back to: (1454.55078125, 963.24609375)
24.08.2022 10:24:25.98 [Backend]: Position is now: (1454.55078125, 963.24609375)
24.08.2022 10:24:26.09 [Backend]: Mouse current pos is: (1454.55078125, 963.24609375)
Clicking with mouse here: (72, 30)
24.08.2022 10:24:26.10 [Backend]: Moving mouse back to: (1454.55078125, 963.24609375)
24.08.2022 10:24:26.10 [Backend]: Position is now: (1454.55078125, 963.24609375)
24.08.2022 10:24:26.23 [Backend]: Mouse current pos is: (1454.55078125, 963.24609375)
Clicking with mouse here: (289, 982)
24.08.2022 10:24:26.24 [Backend]: Moving back...
24.08.2022 10:24:26.25 [Backend]: Position is now: (1454.55078125, 963.24609375)
24.08.2022 10:24:30.16 [Backend]: Logging error in action (01) WaitForPopupMenuAction: Popup window was not found after waiting 2000 ms
Logging error in action (01) OpenPopupMenuFromElementAction: Popup menu was not found
24.08.2022 10:24:30.16 [Backend]: Logging error in action (01) PopupMenuSelectAction: Could not open popup menu
Logging error in action (01) AutomationModeAction: Could not open preset selector
Logging unknown error in action (02) RunCommandAction: Automation Modes: Line 11
24.08.2022 10:24:30.16 [Backend]: !! Command Error: Selected Tracks: Touch/Latch [user:ckp49i4j60000a2100yfwywgf:ckux8btgj0000xq104p36odzz#ckux8sfzm000dxq103kyid3os]:
Could not open preset selector (Automation Modes: Line 11)
Could not open popup menu
Popup menu was not found
Popup window was not found after waiting 2000 ms
<< Command: Selected Tracks: Touch/Latch [user:ckp49i4j60000a2100yfwywgf:ckux8btgj0000xq104p36odzz#ckux8sfzm000dxq103kyid3os]
Workaround
Manually enter touch/latch on a track.
Other Notes
This macro works as expected on smaller sessions, but fails randomly in larger sessions. There are other macros that fail as well, but this is one is built by SoundFlow
Links
User UID: fhqoD9fuxmh8TBhfHk32aFRFdsb2
Feedback Key: sffeedback:fhqoD9fuxmh8TBhfHk32aFRFdsb2:-NAKiAUd-EGXDXNaDXLT
- Christian Scheuer @chrscheuer2022-08-25 16:37:27.310Z
Thanks for posting here, Jeff.
This sounds like Pro Tools is slow at showing the popup menus in some cases? I have never heard about before that this would take more than 2 seconds to show up, but it sounds like we may need to adjust the timeout.
Do you know about the HUI integration/simulation SF has? If you set up SF's HUI simulation, then this particular command (automation mode changes) can be done more instantly without the popup menu, so it should provide more stability for you in this particular case.
Christian Scheuer @chrscheuer2022-08-25 16:38:09.175Z
See more here:
https://soundflow.org/commands/pro-tools/automation-modes/proTools-automation-modes-readCurrentPlease note you may need to reverse the order of the setup, ie. first add SF in MIDI Input (towards the bottom of the article) and then afterwards set it up in HUI peripherals.
- JJeff Schmidt @Jeff_Schmidt
Thank you. I have SF set up in PT peripherals as the article instructed, but I'm not clear on how to create an SF macro that uses the HUI protocol rather than the PT UI approach. Is there an article for that?
Christian Scheuer @chrscheuer2022-08-26 22:17:10.163Z
Hi Jeff,
If it's correctly set up, the built-in macro will automatically use the HUI simulation instead of opening popup menus.
Christian Scheuer @chrscheuer2022-08-26 22:17:36.163Z
You may need to restart SF and/or PT if you've just set up HUI emulation
- JJeff Schmidt @Jeff_Schmidt
Hi - so I've followed this procedure and restarted everything including the machine. SF just doesn't seem to use the HUI integration. It's still trying to use the pop-ups and will intermittently time out.
I thought it might conflict with Eucon, so I disabled that too, but it still won't work. Any thoughts?Christian Scheuer @chrscheuer2022-09-03 01:17:54.371Z
Can you share a screenshot of the HUI peripherals setup page?
Christian Scheuer @chrscheuer2022-09-03 01:18:31.583Z
And do you see this with other automation modes? I'm starting to think perhaps touch/latch is a different beast that isn't supported in HUI, which may explain why it always goes for the popup menu.
- JJeff Schmidt @Jeff_Schmidt
I changed the SF macro to trigger the other Automation types, and they work rapidly, without fail. So it seems Touch/Latch is indeed different. Thanks for helping me with the HUI integration - helps on large sessions.
Christian Scheuer @chrscheuer2022-09-04 18:50:54.672Z
Thanks, Jeff.
Just double checked and this makes sense, we don't currently support touch/latch mode via HUI (because I think HUI doesn't support that, or we haven't figured out how to get HUI to support that yet).
You should be able to make a manual script with something like this code to overwrite the timeout to be larger (here 10 seconds):
sf.ui.proTools.selectedTrack.automationModeButton.popupMenuSelect({ menuPath: ['touch/latch'], timeout: 10000, });
It'll still be slow in your larger sessions, but at least it shouldn't report an error after 2 secs.
Note, haven't tested this, just writing it from memory.