Lag / High CPU after 5.820

BTT got slow after upgrading to 5.820 (still on 5.821). It lags before executing triggers, CPU usage is higher than previous versions. Reinstalling 5.818 fix the behaviour.

Is there a known incompatibility or setting change? Mac Mini M4 Pro (26.2)

K.

possibility (most likely) some trigger you recently configured. (when downgrading BTT also uses an old version of your configuration database, so previous versions wouldn't have any trigger you configured in 5.820)

You could check the recently used section in BTT (5.820) to see whether e.g. something is triggering unexpectedly.

In general there are no known issues with 5.820 that could cause this

Or does the higher cpu usage / lag only happen with the choose from list action?

No difference in “Recently Used” triggers between both versions, seems like nothing weird is getting triggered.

The lag occurs since launching BTT and seems to be everywhere, sometimes even seems to skip triggering shortcuts. CPU usage is 2-3X, I guess that’s causing the lag.

Is there something specific to look in a log/console file? Do you think resetting/rebuilding the database would help? How could this be done from the working 5.818?

K.

Would be great if you could open up 5.820 and go to Help => Export Diagnostic Debug Information and send the result to me (andreas@folivora.ai).

I don't think rebuilding the database would help (unless maybe if you have the experimental dropbox / icloud sync active because that could corrupt the database)

Thanks for sending the logs! I need to leave now but will look into them tomorrow. You mentioned the experimental iCloud sync being active. In case of corrupted cloud or local data that has often caused lags and other weird behavior in the past, so it could definitely be related. I would recommend to disable that sync completely and restart BTT. I have recently implemented a much more modern syncing solution that I plan to rollout end of January.

No change after disabling Sync and resetting. We’ll check tomorrow. Thanks Andreas.

had a very quick first look: the issue seems to be related to some trigger condition or conditional activation group. Maybe some corrupted condition or something like this.
In that case quitting BTT and going to ~/Library/Application Support/BetterTouchTool and deleting the database files newer than 5_818 might help (to go back to the 5.818 state). The database files are named like this:

btt_data_store.version_5_821_build_2025122801
btt_data_store.version_5_821_build_2025122801-shm
btt_data_store.version_5_821_build_2025122801-wal

BTT will automatically fall back to the 5.818 files if no newer is available

Got an error “migrating data file” after deleting the 5_821 files:

BetterTouchTool was unable to migrate its data file to the newest version. This can be caused by wrong / broken file permissions for the ~/Library/Application Support/BetterTouchTool folder. ….

The following error was returned by the system:

No such file

Old: btt_data_store.version_5_821_build_2025122801

btt_data_store.version_5_821_build_2025122801New:

Maybe Is there some plist or setting that stores the list of database buildings and expect them instead of recreate them?

K.

you might have missed some of the newer database files. make sure to delete / move all of them

Every version's database consists of three files like this:
btt_data_store.version_5_821_build_2025122801
btt_data_store.version_5_821_build_2025122801-shm
btt_data_store.version_5_821_build_2025122801-wal

It still seems to find some part from 5.821

Fixed! Now working ok with 5.821 after properly deleting the “5_821” files (Instead of moving them to a “Backup” folder. Maybe BTT looks recursively for them?)

Thanks Andreas!

K.