BTT v4.9999 crashes when trying to open configuration

I have updated Better Touch Tool to version v4.9999 this morning. After restarting my system, when I try to access the configuration menu of BTT, it crashes.

See attached crash log.
btt-crash-report.txt.zip (13.4 KB)

unfortunately the crash log is too vague to find the reason it crashes :frowning:
It might happen due to a specific configuration in a specific trigger category. Can you tell me what this command does output?

defaults read com.hegenberg.BetterTouchTool BTTLastSelectedTriggerType

Are you able to open BTT config again after running this command while BTT is quit?

defaults write com.hegenberg.BetterTouchTool BTTLastSelectedTriggerType 0

If so, could you go to Help => Export Diagnostic Debug Information and send the result to me? (andreas@folivora.ai)

I assume htis is the same issue: BTT v4.9999 crashes when trying to open configuration

Hi Andreas,

BTTLastSelectedTriggerType was 11. After quitting BTT and setting it back to 0 like you suggested, I am able to open the BTT config app again.

I've sent my debug data to you per email.

Thanks for the quick help!

thanks a lot!
Does it crash again if you open the "Automations, Named & Other Triggers" section? It's really weird because it doesn't seem to crash here, I must be missing one part.

Indeed it crashes again when I open "Automations, Named & Other Triggers".

I have some triggers there that react to certain URLs, e.g. GitHub pull requests, being called in applications like Slack, Miro, etc., to make it so that they are opened not in the browser, but rather in progressive web apps I've created with the Safari feature "Add to doc".

So when someone shares a PR in Slack and I click on it, it opens up in my GitHub app.

To do this, I've set the system's default browser to BTT.

The trigger still works, but I can't make changes to the config because BTT crashes when I try.

the v5.0x alpha versions probably don't help with that, right? I really wonder what it could be because I can't reproduce it yet

I really don't understand any of this, so forgive me if this is nonsense.

If BTT crashes, something was triggered, this something should be visible in “Recently Used”. You should be able to deactivate it there. if that's what you need for now.

I've installed 5.0.1 alpa, the problem persists, I'm afraid.

Thanks Frank1, but I think Andreas and I are already a step further in debugging this. He's the developer of BTT

@pabund, maybe it’s something that is not even caught in the extensive debug data :-/

Could you send me a zip of the BTT config folder (~/Library/Application Support/BetterTouchTool )? Unfortunately it could be pretty big.

I'm seeing exactly the same problem after upgrading today; I even tried 5.02. I started by replacing my database from a backup, but have eventually concluded that clicking on a Clipboard Manager / Java Script Transformer so that it loads into the right sidebar promptly crashes BTT – even making a new one. In fact, if I choose an app for which there are no triggers whatsoever, go to Automations & Named & Other Triggers and then hit the + button BTT promptly crashes.

Sure thing! I've sent if by WeTransfer to email address andreas@folivora.ai

In the mean time, is there a terminal command to set BTT as default browser without opening the configuration UI? I really miss being able to open GitHub links directly in my GitHub PWA…

I have tried so many things, but I'm running out of ideas. (I just installed a fresh copy of macOS 14.7.2, set it to german and tried to replicate your whole setup - but it just doesn't want to crash :frowning: )

Does it crash immediately when you click the "Automations, Named & Other Triggers" section? Do you still see the list of triggers flashing before it crashes or something like that?

In 5.05 I have added all sort of extra checks for the "Automations, Named & Other Triggers" section, would be great if you could try that.

5.05 has fixed it for me – macOS 15.2, English (UK). Thank you!

(Before, I was seeing the list of triggers flash up as it attempted to build the window, which would then vanish when I imagine it was starting to load the selected trigger into the right side bar.)

I have the same issue:

Installed BTT yesterday, did set up two keyboard shortcuts. Today I opened the config, clicked on the "Others" sections and added a single trigger by clicking on the Plus sign. Boom, it crashed. When opening it again, then trying to open the config it instantly crashes again.

BTTLastSelectedTriggerType was empty, so I closed the app and set it to 0. Then opened it again, same crash when heading to the config. BTTLastSelectedTriggerType keeps being 0.

Can I even get at the config to save the two triggers I added yesterday? I wasted 2 hours to set them up and now I can't get to the config... this is nuts.

Exception Name: NSInvalidArgumentException
Description: *** -[__NSArrayM insertObject:atIndex:]: object cannot be nil
User Info: (null)

0 CoreFoundation 0x000000019adaae80 __exceptionPreprocess + 176
1 libobjc.A.dylib 0x000000019a892cd8 objc_exception_throw + 88
2 CoreFoundation 0x000000019acd95bc -[__NSArrayM insertObject:atIndex:] + 1276
3 BetterTouchTool 0x0000000100787148 BetterTouchTool + 3354952
4 BetterTouchTool 0x00000001007a6b4c BetterTouchTool + 3484492
5 BetterTouchTool 0x0000000100794fc0 BetterTouchTool + 3411904
6 BetterTouchTool 0x000000010079474c BetterTouchTool + 3409740
7 BetterTouchTool 0x00000001005ccbc4 BetterTouchTool + 1543108
8 BetterTouchTool 0x0000000100996240 BetterTouchTool + 5513792
9 BetterTouchTool 0x0000000100997dd0 BetterTouchTool + 5520848
10 BetterTouchTool 0x00000001009bd284 BetterTouchTool + 5673604
11 libdispatch.dylib 0x000000019aa9b854 _dispatch_call_block_and_release + 32
12 libdispatch.dylib 0x000000019aa9d5b4 _dispatch_client_callout + 20
13 libdispatch.dylib 0x000000019aaac040 _dispatch_main_queue_drain + 984
14 libdispatch.dylib 0x000000019aaabc58 _dispatch_main_queue_callback_4CF + 44
15 CoreFoundation 0x000000019ad779c0 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 16
16 CoreFoundation 0x000000019ad375ac __CFRunLoopRun + 1996
17 CoreFoundation 0x000000019ad36724 CFRunLoopRunSpecific + 588
18 HIToolbox 0x00000001a628e530 RunCurrentEventLoopInMode + 292
19 HIToolbox 0x00000001a6294348 ReceiveNextEventCommon + 676
20 HIToolbox 0x00000001a6294508 _BlockUntilNextEventMatchingListInModeWithFilter + 76
21 AppKit 0x000000019e8a1034 _DPSNextEvent + 660
22 AppKit 0x000000019f2052d4 -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 688
23 AppKit 0x000000019e894060 -[NSApplication run] + 480
24 AppKit 0x000000019e86a854 NSApplicationMain + 888
25 dyld 0x000000019a8d0274 start + 2840

try v5.05 :wink:

Well, I'm on the Setapp version so that won't work I guess :-/