BTT Crash after creating a Stream Deck button with custom icon

I was creating a new Stream Deck button then i've selected a custom icon from my disk.

BTT crashed.

I can restart the app, everything works fine but when i click the mentioned button crashes again.

The biggest problem is i cannot select the "broken" button to delete.

So, i wonder if there is any way to delete a button without selecting him?

Here is the debug log:

2022-08-25 11:46:23.479 BetterTouchTool[53798:3042341] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Attempt to insert non-property list object null for key BTTStreamDeckLastUsedBackground'
*** First throw call stack:
(
	0   CoreFoundation                      0x00000001a373d1a8 __exceptionPreprocess + 240
	1   libobjc.A.dylib                     0x00000001a3487e04 objc_exception_throw + 60
	2   CoreFoundation                      0x00000001a380f178 -[__NSCFString characterAtIndex:].cold.1 + 0
	3   CoreFoundation                      0x00000001a3762ea0 _CFPrefsValidateValueForKey + 256
	4   CoreFoundation                      0x00000001a367cd38 createDeepCopyOfValueForKey + 180
	5   CoreFoundation                      0x00000001a367ca18 -[CFPrefsSource setValues:forKeys:count:copyValues:removeValuesForKeys:count:from:] + 344
	6   CoreFoundation                      0x00000001a36c36e4 -[CFPrefsSource setValue:forKey:from:] + 72
	7   CoreFoundation                      0x00000001a36c360c __76-[_CFXPreferences setValue:forKey:appIdentifier:container:configurationURL:]_block_invoke + 60
	8   CoreFoundation                      0x00000001a3666b60 __108-[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:]_block_invoke + 384
	9   CoreFoundation                      0x00000001a37db3a0 -[_CFXPreferences withSearchListForIdentifier:container:cloudConfigurationURL:perform:] + 384
	10  CoreFoundation                      0x00000001a36c35a8 -[_CFXPreferences setValue:forKey:appIdentifier:container:configurationURL:] + 128
	11  CoreFoundation                      0x00000001a36c34e8 _CFPreferencesSetAppValueWithContainerAndConfiguration + 136
	12  Foundation                          0x00000001a45b075c -[NSUserDefaults(NSUserDefaults) setObject:forKey:] + 84
	13  BetterTouchTool                     0x0000000105202468 +[BTTFormConfigStreamDeck loadDefaultsIntoDictionary:] + 1968
	14  BetterTouchTool                     0x00000001051fcc54 __44+[BTTFormConfigStreamDeck streamDeckButton:]_block_invoke_3 + 140
	15  BetterTouchTool                     0x0000000105240de0 -[BTTFormService reloadValuesForTrigger:] + 1140
	16  BetterTouchTool                     0x000000010524095c -[BTTFormService reloadValues] + 44
	17  BetterTouchTool                     0x0000000105241958 -[BTTFormService loadFormForTrigger:showActionConfig:] + 448
	18  BetterTouchTool                     0x0000000105242a10 -[BTTFormService forceReloadConfigurationForCurrentSelectionWithoutDebounce] + 1372
	19  BetterTouchTool                     0x00000001052643d4 __24-[BTTLevel1VC debounced]_block_invoke + 1604
	20  libdispatch.dylib                   0x00000001a342a5f0 _dispatch_call_block_and_release + 32
	21  libdispatch.dylib                   0x00000001a342c1b4 _dispatch_client_callout + 20
	22  libdispatch.dylib                   0x00000001a343a6cc _dispatch_main_queue_drain + 928
	23  libdispatch.dylib                   0x00000001a343a31c _dispatch_main_queue_callback_4CF + 44
	24  CoreFoundation                      0x00000001a36fea2c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
	25  CoreFoundation                      0x00000001a36bbcb8 __CFRunLoopRun + 2532
	26  CoreFoundation                      0x00000001a36bab34 CFRunLoopRunSpecific + 600
	27  HIToolbox                           0x00000001ac2fa338 RunCurrentEventLoopInMode + 292
	28  HIToolbox                           0x00000001ac2fa0b4 ReceiveNextEventCommon + 564
	29  HIToolbox                           0x00000001ac2f9e68 _BlockUntilNextEventMatchingListInModeWithFilter + 72
	30  AppKit                              0x00000001a622251c _DPSNextEvent + 860
	31  AppKit                              0x00000001a6220e14 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1328
	32  AppKit                              0x00000001a6212fe0 -[NSApplication run] + 596
	33  AppKit                              0x00000001a61e46fc NSApplicationMain + 1132
	34  dyld                                0x0000000106c1908c start + 520
)
libc++abi: terminating with uncaught exception of type NSException

Thanks!

weird, which version is this? (I thought I already fixed that crash)

BetterTouchTool 3.839 is currently the newest version available.

And this is the button:

[
  {
    "BTTStreamDeckButtonName" : "DEMO",
    "BTTTriggerType" : 719,
    "BTTTriggerTypeDescription" : "Stream Deck Button",
    "BTTTriggerClass" : "BTTTriggerTypeStreamDeck",
    "BTTPredefinedActionType" : -1,
    "BTTPredefinedActionName" : "No Action",
    "BTTEnabled2" : 1,
    "BTTAlternateModifierKeys" : 0,
    "BTTRepeatDelay" : 0,
    "BTTUUID" : "17626418-E223-4851-8048-418AA6DDEF02",
    "BTTNotesInsteadOfDescription" : 0,
    "BTTEnabled" : 1,
    "BTTModifierMode" : 0,
    "BTTOrder" : 4,
    "BTTDisplayOrder" : 0,
    "BTTMergeIntoTouchBarGroups" : 0,
    "BTTTriggerConfig" : {
      "BTTStreamDeckImageHeight" : 24,
      "BTTStreamDeckCornerRadius" : 12,
      "BTTStreamDeckBackgroundColor" : null,
      "BTTStreamDeckIconColor1" : "127.500000, 127.500000, 127.500000, 255.000000",
      "BTTStreamDeckAlternateImageHeight" : 24,
      "BTTStreamDeckFixedIdentifier" : "e0eb08ff-0c25-42a3-bb42-d6d5a860a156",
      "BTTStreamDeckDisplayOrder" : 0,
      "BTTStreamDeckMainTab" : 1,
      "BTTStreamDeckAlternateIconColor1" : "255, 255, 255, 255",
      "BTTStreamDeckIconColor2" : "255, 255, 255, 255",
      "BTTStreamDeckAlternateIconColor2" : "255, 255, 255, 255",
      "BTTStreamDeckAttributedTitle" : "TEST",
      "BTTStreamDeckAlternateBackgroundColor" : "241.000001, 208.000003, 48.000001, 255.000000",
      "BTTStreamDeckAlternateIconColor3" : "255, 255, 255, 255",
      "BTTStreamDeckAlternateCornerRadius" : 12,
      "BTTStreamDeckIconColor3" : "255, 255, 255, 255",
      "BTTStreamDeckUseFixedRowCol" : 1
    }
  }
]

Note: I was able to delete the button by selecting another one and delete both at the same time.