CPU Usage > 100% on Catalina

Describe the bug
CPU usage at 100% or greater for BetterTouchTool

Affected input device (e.g. MacBook Trackpad, Magic Mouse/Trackpad, Touch Bar, etc.):
N/A

Device information:

  • Type of Mac: iMac Pro
  • macOS version: 10.15.1
  • BetterTouchTool version: (please post the exact version - not just "the latest one")
    3.207

If you have the experimental dropbox sync enabled, try to disable that :slight_smile:

Seems to work.

Cheers!

Great tool!

Hi there,
I am having the same problem here : BTT eating a full CPU after waking the machine up.
Please find attached a sample of the process while the problem was occuring.

Config

OS: 10.14.6 (18G95)
Hardware: MacBook Pro (13-inch, 2017, Four Thunderbolt 3 Ports) - MacBookPro14,2
Version of BTT: 3.209 (1386)
Some config details:

  • Mostly keyboard shortcuts
  • Exprimental dropbox sync: off
  • BetterTouchTool Webserver: off
  • Allow external BetterTouchTool scripting: on
  • Automatically switch to old keyboard implementation: on
  • Restart BTT after wake from sleep: on
  • BTT remote: off
  • window snapping: off
  • Touch bar support: on

Let me know if you need some more info, or some experiment that could help !

Sample of BetterTouchTool.txt.zip (68.5 KB)

Same here.

Device information:

  • Type of Mac: mbp 2018
  • macOS version: 10.15.3
  • BetterTouchTool version: (please post the exact version - not just "the latest one")
    3.284

Sample of BetterTouchTool.txt.zip (70.9 KB)

In your case it looks like some apple scripts triggering recursively, but I can't tell for sure. Are you using any touch bar presets?

Yes, I am using aqua preset currently, guess I have to change the polling rate of applescripts by myself.

Just wondering, is it possible to run the applescripts on events instead run repeatedly?

Depends, what kind of events are you looking for?

However the aqua touch preset should be ok, I haven't heard of excessive CPU usage for that one yet. Did you change any of the configs for that preset?

Yes, I played it around for some time, such as changing applescript widgets into touch bar buttons, disabled/deleted some buttons I don't need, and test some applescripts in the Script Editor. All I'm trying to do is to decrease the usage, I don't know where it went wrong.

As for the events, I'm looking for bluetooth/wifi togge events, for instance, if my airpods are disconnected, I hope BTT can catch the event and run some applescripts.

There's one more thing I want to ask you, if I move a group into another group (trying to organise the presets), open touch bar group actions doesn't work anymore, is it expected?

Groups inside of groups are currently not supported (I need to fix the possibility to drag them into each other :see_no_evil:). I plan to add support for them at some point.

Bluetooth toggle events are currently not available, however there is a very lightweight way to check the bluetooth connection state for a specific device, see this: Compact AirPods widget with User-Friendly Setup

I'm currently adding more notification based triggers, bluetooth and wifi are good candidates. (Wifi is already possible using a conditional activation group, but I'll make it a bit easier soon)

If you are not on the latest alpha I'd also try that before making changes - there have been some good performance improvements lately.

1 Like

Thanks for the info.

BTW, restart the BTT seems to fix the high usage problem.

Imprint | Privacy Policy