BTT closes/restarts on switching from Chrome to a window on another screen

Describe the bug
I have a number of keyboard shortcuts set up to switch apps. I generally work in a two-screen setup, with my MacBook Pro screen and an external monitor. Since upgrading to 2.645 I have observed the following behavior:

  • Switching away from one app to another app on the same screen works fine
  • Switching away from one app to an app on a different screen works fine EXCEPT
  • Switching away from Google Chrome on the MacBook Pro screen to any app on the external screen causes BTT to disappear from the menu bar (no crash dialog is displayed) and restart 5-10 seconds later. Note: The restart happens after successfully switching to the other app but before running a second action that moves mouse pointer (see attached screenshot for example of how shortcut is defined).

This seems to happen completely consistently, and Chrome is the only "from" app that I've found so far that triggers this behavior. It doesn't seem to matter what the "to" app is, only that it is on the other monitor.

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

Screenshots

Device information:

  • Type of Mac: MacBook Pro (15-inch, 2017)
  • macOS version: High Sierra 10.13.6 (17G65)
  • BetterTouchTool version: 2.645

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

  • Workaround seems to be to remember to switch to another app on the same screen before switching to the app I really want when using keyboard shortcuts when Chrome is the currently active app.

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.

Could you check whether there is a crashlog in the macOS console app under "User Reports"?

No, I've tried reproducing a few times now and I don't see any reports listed under "User Reports". However, under system.log I have:

Oct  1 12:32:58 <machine name redacted> com.apple.xpc.launchd[1]: Host-level exception raised: pid = 9332, thread = 0xb0fd3, exception type = 0xd, codes = { 0 }, states = { 0 }
Oct  1 12:32:58 <machine name redacted> systemstats[60]: assertion failed: 17G65: systemstats + 914800 [D1E75C38-62CE-3D77-9ED3-5F6D38EF0676]: 0x40
Oct  1 12:32:59 <machine name redacted> com.apple.xpc.launchd[1] (com.hegenberg.BTTRelaunch.28300[9336]): Service exited due to signal: Terminated: 15 sent by BetterTouchTool[9337]
Oct  1 12:32:59 <machine name redacted> systemstats[60]: assertion failed: 17G65: systemstats + 914800 [D1E75C38-62CE-3D77-9ED3-5F6D38EF0676]: 0x40
Oct  1 12:33:01 <machine name redacted> BetterTouchTool[9337]: assertion failed: 17G65: libxpc.dylib + 75013 [0BC7AD67-671D-31D4-8B88-C317B8379598]: 0x89

A couple further data points:

  • This seems directly related to moving the mouse pointer. If I disable the second action in the example above, I can't reproduce the problem.
  • Adding a 1.0 second delay between launching the app and moving the mouse pointer also seems to mitigate the problem. Smaller delays help to some extent; for instance, a 0.5 second delay seems to prevent the restart about half the time, while a 0.1 second delay had no apparent effect.
  • Still happening in 2.646.

Thanks for taking a look!

I just wanted to update this with latest logs, as some of the offsets, etc., have changed with new versions (now on 2.652):

Oct 29 11:35:21 <hostname> systemstats[60]: assertion failed: 17G65: systemstats + 914800 [D1E75C38-62CE-3D77-9ED3-5F6D38EF0676]: 0x40
Oct 29 11:35:23 --- last message repeated 1 time ---
Oct 29 11:35:23 <hostname> com.apple.xpc.launchd[1]: Host-level exception raised: pid = 39913, thread = 0xae20b, exception type = 0xd, codes = { 0 }, states = { 0 }
Oct 29 11:35:23 <hostname> systemstats[60]: assertion failed: 17G65: systemstats + 914800 [D1E75C38-62CE-3D77-9ED3-5F6D38EF0676]: 0x40
Oct 29 11:35:30 <hostname> com.apple.xpc.launchd[1] (com.hegenberg.BTTRelaunch.29368[39917]): Service exited due to signal: Terminated: 15 sent by BetterTouchTool[39920]
Oct 29 11:35:30 <hostname> systemstats[60]: assertion failed: 17G65: systemstats + 914800 [D1E75C38-62CE-3D77-9ED3-5F6D38EF0676]: 0x40
Oct 29 11:35:31 <hostname> BetterTouchTool[39920]: assertion failed: 17G65: libxpc.dylib + 75013 [0BC7AD67-671D-31D4-8B88-C317B8379598]: 0x89