Constant app crashes with latest alpha

Describe the bug
Crashes and needs to be restarted about every hour or so, sometimes within minutes. Sometimes partially crashes, only showing some Touch Bar items.

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

Screenshots
If applicable, add screenshots to help explain your problem. (You can just paste or drag them here)

Device information:

  • Type of Mac: MBP 2016 15" Touchbar
  • macOS version: 10.14.5
  • BetterTouchTool version: 3101 (1208)

Additional information (e.g. StackTraces, related issues, screenshots, workarounds, etc.):

Note: Before bug reporting, please make sure you have the latest version of BetterTouchTool and that you have already tried to restart your system :-). If you encounter a crash, please attach a crash log from the macOS Console.app from the "User Diagnostic Reports" section.

What do you mean by crashes? Does it quit?

Could you check whether there are crashlogs in the macOS console app under "User Reports"?

user-report.crash (89.4 KB)

Hi Andreas,

I got one User-Report from the console app.
The version seems an old one.
I still continue experiencing crash, but I can't get the User-Report from recent crash.

The touchbar shows nothing when crash (even the esc button)
(There is a very thin line in the touchbar though~)

Thanks!

Sorry, I mean BTT quits by itself. No crash reports.

—Dave

So it's not shown in the macOS menubar anymore? There should be crashlogs in that case :-/

Sorry I’m not using the right terminology. The menu bar icon shows and allows me to restart BTT. The symptom is that the touch bar items don’t show and revert to the default OS items. I think this is the same symptom that was happening for quite a while a few months ago but it happens more frequently.

ah that makes more sense :slight_smile:

Does this maybe happen when touching the very left side of the Touch Bar?

Well, it does happen when I touch the "x" on the left side but didn't it always do that? I don't think I'm accidentally touching the x so often.

it might have become more sensitive too accidental touches on the left side due to a recent change (will be improved with next update).

If you can find any pattern (e.g. a specific app that causes it), or specific touches, please let me know.

I tried disabling the new GUI and it hasn't crashed since which is longer than usual. I really doubt it has to do with accidental presses since I think it sometimes happens when the MBP is just sitting on the table. I'll keep you informed on this and anything else I discover, and pay more attention to when it happens. Thanks.

I made some changes in v3.102 alpha, would be great if you'd check whether that helps in your case.

OK. I reenabled the new UI and will let you know what happens. Thanks!

The Touch Bar items have not disappeared for the past couple of days. Problem solved. Thanks!

--Dave

Hi Andreas,
I'm a long time user, unfortunately I forgot all my old account info, so just created a new account to report this.
I am getting a very reproducible crash here on a MacPro 5,1 running Mojave.
BTT crashes whenever I try to select the new UI.
Here is an excerpt from the important part of the crash log.
Hopefully this helps, and keep up the great work !
Thanks.

  • Jay
    _______________________________________-
    Process: BetterTouchTool [958]
    Path: /Users/USER/*/BetterTouchTool.app/Contents/MacOS/BetterTouchTool
    Identifier: com.hegenberg.BetterTouchTool
    Version: 3.140 (1307)
    Code Type: X86-64 (Native)
    Parent Process: ??? [1]
    Responsible: BetterTouchTool [958]
    User ID: 503

Date/Time: 2019-07-15 17:56:50.323 -0400
OS Version: Mac OS X 10.14.5 (18F132)
Report Version: 12
Anonymous UUID:

Time Awake Since Boot: 4400 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSDictionaryM setObject:forKey:]: object cannot be nil (key: autoInvertIcon)'
abort() called
terminating with uncaught exception of type NSException

Application Specific Backtrace 1:
0 CoreFoundation 0x00007fff2bfb9e39 __exceptionPreprocess + 256
1 libobjc.A.dylib 0x00007fff567023c6 objc_exception_throw + 48
2 CoreFoundation 0x00007fff2bff93f0 -[CFPrefsConfigurationFileSource initWithConfigurationPropertyList:containingPreferences:] + 0
3 CoreFoundation 0x00007fff2bf0ae69 -[__NSDictionaryM setObject:forKey:] + 933
4 BetterTouchTool 0x000000010d05c4d8 __46+[BTTFormConfigApp configForTrigger:isAction:]_block_invoke_3.151 + 1075
5 BetterTouchTool 0x000000010d1f82eb -[BTTFormService reloadValuesForTrigger:] + 360
6 BetterTouchTool 0x000000010d1f8170 -[BTTFormService reloadValues] + 57
7 BetterTouchTool 0x000000010d1f971a -[BTTFormService loadFormForTrigger:showActionConfig:] + 608
8 BetterTouchTool 0x000000010d1fb11c __66-[BTTFormService loadConfigurationForCurrentSelectionForceReload:]_block_invoke + 590
9 libdispatch.dylib 0x00007fff57e795f8 _dispatch_call_block_and_release + 12
10 libdispatch.dylib 0x00007fff57e7a63d _dispatch_client_callout + 8
11 libdispatch.dylib 0x00007fff57e8568d _dispatch_main_queue_callback_4CF + 1135
12 CoreFoundation 0x00007fff2bf03f56 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9
13 CoreFoundation 0x00007fff2bf03683 __CFRunLoopRun + 2300
14 CoreFoundation 0x00007fff2bf02b35 CFRunLoopRunSpecific + 459
15 HIToolbox 0x00007fff2b1e196b RunCurrentEventLoopInMode + 292
16 HIToolbox 0x00007fff2b1e16a5 ReceiveNextEventCommon + 603
17 HIToolbox 0x00007fff2b1e1436 _BlockUntilNextEventMatchingListInModeWithFilter + 64
18 AppKit 0x00007fff2957b987 _DPSNextEvent + 965
19 AppKit 0x00007fff2957a71f -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1361
20 AppKit 0x00007fff2957483c -[NSApplication run] + 699
21 AppKit 0x00007fff29563d7c NSApplicationMain + 777
22 libdyld.dylib 0x00007fff57ec73d5 start + 1

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x00007fff580022c6 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff580bdbf1 pthread_kill + 284
2 libsystem_c.dylib 0x00007fff57f6c6a6 abort + 127
3 libc++abi.dylib 0x00007fff55151641 abort_message + 231
4 libc++abi.dylib 0x00007fff551517df default_terminate_handler() + 267
5 libobjc.A.dylib 0x00007fff5670477b _objc_terminate() + 97
6 libc++abi.dylib 0x00007fff5515d19e std::__terminate(void (*)()) + 8
7 libc++abi.dylib 0x00007fff5515d213 std::terminate() + 51
8 libdispatch.dylib 0x00007fff57e7a651 _dispatch_client_callout + 28
9 libdispatch.dylib 0x00007fff57e8568d _dispatch_main_queue_callback_4CF + 1135
10 com.apple.CoreFoundation 0x00007fff2bf03f56 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9
11 com.apple.CoreFoundation 0x00007fff2bf03683 __CFRunLoopRun + 2300
12 com.apple.CoreFoundation 0x00007fff2bf02b35 CFRunLoopRunSpecific + 459
13 com.apple.HIToolbox 0x00007fff2b1e196b RunCurrentEventLoopInMode + 292
14 com.apple.HIToolbox 0x00007fff2b1e16a5 ReceiveNextEventCommon + 603
15 com.apple.HIToolbox 0x00007fff2b1e1436 _BlockUntilNextEventMatchingListInModeWithFilter + 64
16 com.apple.AppKit 0x00007fff2957b987 _DPSNextEvent + 965
17 com.apple.AppKit 0x00007fff2957a71f -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1361
18 com.apple.AppKit 0x00007fff2957483c -[NSApplication run] + 699
19 com.apple.AppKit 0x00007fff29563d7c NSApplicationMain + 777
20 libdyld.dylib 0x00007fff57ec73d5 start + 1

It needs to be restarted after wake from sleep:3.151(1321).

Similar bug. Here is btt.crash (97.6 KB)

Crashes seem to be fixed here with version 3.160 (1333) !
Thanks !

  • Jay