BTT Stuck in boot loop

Describe the bug
After adding a system wide condition for checking for specific screen resolutions, my BTT application is stuck in a nasty boot loop where I cannot remove this trigger. I get the following error when running from terminal which points me to this trigger being the issue:

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Can't do regex matching, reason: (Can't open pattern U_REGEX_RULE_SYNTAX (string {{0, 0}, {1728, 1117}}, {{3648, -428}, {1080, 1920}}, {{1728, 37}, {1920, 1080}}, pattern {{0,0}, {1728, 1117}}, {{3648, -428}, {1080, 1920}}, {{1728, 37}, {1920, 1080}}, case 0, canon 0))'

Is there a way for me to be able to remove an advanced condition without removing all my settings and automation tasks?

MacBook Pro M1 Max 2021

Screenshots


Device information:

  • Type of Mac: MacBook Pro M1 Max
  • macOS version: 13.5
  • BetterTouchTool version: 4.184

Additional information (e.g. crash logs, related issues, etc.):
BTT_Logs.zip (14.5 KB)

you could try whether safe mode helps, it can be activated with this terminal command:

defaults write com.hegenberg.BetterTouchTool BTTSafeModeEnabled YES

I'll check & fix it that crash asap!

I tried enabling safemode as well which unfortunately didn't stop this condition from triggering. Thank you Andreas, amazing program and i appreciate the hasty reply. Will keep my eyes out for an update :smiley:

I'll upload an alpha with a fix in 5-6 hours! Thanks flr reporting.

1 Like

4.186 should at least not crash anymore.
I need to figure out how to check for valid regexes though, most likely you selected the "matches" operator, which the system expects a regular expression for. I should show some error message if a invalid regex is entered there.

https://folivora.ai/releases/btt4.186-2405.zip

Ahh that makes sense. Fantastic, BTT now starts up again. Yes, I did use the matches operator. Thank you again!