Note: Before bug reporting, please make sure you have tried the latest (alpha) 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.
Describe the bug
When enabling the "Restart BTT after wake from sleep option" and then running a project with lldl debugging enabled in the Lazarus IDE, when the project app closes, BTT restarts as if computer woke from sleep. Does not happen if running the project without debugging.
Affected input device (e.g. MacBook Trackpad, Magic Mouse/Trackpad, Touch Bar, etc.):
Macbook Pro 2021 16" m1 max
Screenshots
N/A
Device information:
- Type of Mac: Macbook pro 2021 m1 max 16"
- macOS version: 13.1
- BetterTouchTool version: (please post the exact version - not just "the latest one") 3.952 2117
Additional information (e.g. StackTraces, related issues, screenshots, workarounds, etc.):
When the test app with debugging quits, log says the following. Disabling "wake from sleep" option in BTT stops BTT from restarting like this. Also, adding an entry to react to "wake from sleep" with "restart BTT" within the app, as an event, does NOT produce this issue. This issue also happens randomly during other events as it seems, but I have been unable to pinpoint which so far. It doesn't crash, just restarting like this. We'll see if these other events also stop triggering the behavior now that I disabled the option.
1671006174.667532|ASL|found|
1671006174.667977|SNAPAREA|return existing (updated)|
1671006174.668007|SNAP|Did recognize 41040 4251086178 dragpoints: 0 - 4|
1671006174.668035|SNAP|Did reset snap areas 1 0|
1671006190.249164|LOGIN|RESTART AFTER LOGIN|
1671006190.253759|xw|should relaunch|
1671006190.254322|xw|BTTRelaunch found|
1671006190.254378|xw|BTTRelaunch call seems successfull|
1671006190.267770|TERMINATE|SHOULDTERMINATE|
1671006190.619228|ASL|NSDocumentController Info.plist warning: The values of CFBundleTypeRole entries must be 'Editor', 'Viewer', 'None', or 'Shell'.|
1671006190.640833|SYS|Running on macOS: 13.1.0|