Crash when opening configuration after crash from adding Stream Deck button.

First, it's great to see your work released. People will get a lot of use out of it.

I updated. I opened configuration. I went to add the first Stream Deck button to see what the options were. BTT crashed.

Now, BTT can be re-opened, but it hard crashes every time I try to open configuration. If I don't try to open configuration, all my triggers work as expected.

It crashes whether I have the StreamDeck software opened or closed, or if everything is unplugged.

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

Shorter: I can't open configuration, it crashes the app after I started to add a Stream Deck button. The triggers still work.

can you lookup the crashlog in the macos console app under "crash reports"? You can send it to andreas@folivora.ai

Tht should help me see what's wrong

Sure thing.

same problem here

this is what i get by running from command line:

*** Recognized (0x81) family*** (30 cols X 22 rows)
Successfully reset ListenEvent approval status for com.hegenberg.BetterTouchTool
Successfully reset PostEvent approval status for com.hegenberg.BetterTouchTool
*** Recognized (0x81) family*** (30 cols X 22 rows)
2022-06-29 17:37:43.100 BetterTouchTool[72140:7138449] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSTextView setFont:]: nil NSFont given.'
*** First throw call stack:
(
	0   CoreFoundation                      0x00000001a8349198 __exceptionPreprocess + 240
	1   libobjc.A.dylib                     0x00000001a8093e04 objc_exception_throw + 60
	2   CoreFoundation                      0x00000001a8348fe4 +[NSException exceptionWithName:reason:userInfo:] + 0
	3   AppKit                              0x00000001ab09de98 -[NSTextView setFont:] + 208
	4   BetterTouchTool                     0x0000000100e4744c -[BTTFormTextArea setupWithFieldDictionary] + 1500
	5   BetterTouchTool                     0x0000000100f0cda8 -[BTTFormConfigBaseCell setFormItem:] + 68
	6   BetterTouchTool                     0x0000000100caaaf4 -[BTTConfigurationVC configureBaseCellForFormItem:] + 328
	7   BetterTouchTool                     0x0000000100cab718 -[BTTConfigurationVC buildForm] + 760
	8   BetterTouchTool                     0x0000000100cad290 __40-[BTTConfigurationVC activeFormChanged:]_block_invoke + 144
	9   libdispatch.dylib                   0x00000001a80365f0 _dispatch_call_block_and_release + 32
	10  libdispatch.dylib                   0x00000001a80381b4 _dispatch_client_callout + 20
	11  libdispatch.dylib                   0x00000001a80466cc _dispatch_main_queue_drain + 928
	12  libdispatch.dylib                   0x00000001a804631c _dispatch_main_queue_callback_4CF + 44
	13  CoreFoundation                      0x00000001a830aa1c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
	14  CoreFoundation                      0x00000001a82c7ca8 __CFRunLoopRun + 2532
	15  CoreFoundation                      0x00000001a82c6b24 CFRunLoopRunSpecific + 600
	16  HIToolbox                           0x00000001b0eff338 RunCurrentEventLoopInMode + 292
	17  HIToolbox                           0x00000001b0eff0b4 ReceiveNextEventCommon + 564
	18  HIToolbox                           0x00000001b0efee68 _BlockUntilNextEventMatchingListInModeWithFilter + 72
	19  AppKit                              0x00000001aae2d78c _DPSNextEvent + 860
	20  AppKit                              0x00000001aae2c084 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1328
	21  AppKit                              0x00000001aae1e250 -[NSApplication run] + 596
	22  AppKit                              0x00000001aadef96c NSApplicationMain + 1132
	23  dyld                                0x000000010297908c start + 520
)
libc++abi: terminating with uncaught exception of type NSException
[1]    72140 abort      ./BetterTouchTool

I think this should be fixed in 3.802. Seems like the font I was using as default is not installed on all systems for some reason

2 Likes

@Andreas_Hegenberg can confirm it's fixed
thanks for the quick fix :blue_heart:

1 Like

I can open configuration without crashing, after updating to 3.802.

Thanks for the fix! I'll go exploring now :slightly_smiling_face: