TMSFNCRichEditorEditToolBar causes app crash on MacOS

The TMSFNCRichEditorEditToolbar SOMETIMES causes an app crash on MacOS.

I have mentioned this several times but the problem still excist.
I'm using Delphi 12.1 with the latest version of the FNC components.

Best regards
Anske

Below the error information MacOS produces.

*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array'
*** First throw call stack:
(
0 CoreFoundation 0x00007ff814e9cdc6 __exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007ff81498ce9d objc_exception_throw + 48
2 CoreFoundation 0x00007ff814dcd413 -[NSTaggedPointerString hash] + 0
3 ASBouw 0x0000000107eeb0e2 SignalConverter + 19180722
4 ASBouw 0x0000000107330be2 SignalConverter + 6883250
5 ASBouw 0x0000000107330dfa SignalConverter + 6883786
6 ASBouw 0x00000001079ca802 SignalConverter + 13804498
7 ASBouw 0x0000000107ec7fd8 SignalConverter + 19037096
8 ASBouw 0x0000000107ec5a56 SignalConverter + 19027494
9 ASBouw 0x0000000107ec98d1 SignalConverter + 19043489
10 ASBouw 0x0000000107226fce SignalConverter + 5794718
11 ASBouw 0x0000000107227b36 SignalConverter + 5797638
12 ASBouw 0x00000001071d084c SignalConverter + 5440540
13 ASBouw 0x0000000107227d4e SignalConverter + 5798174
14 ASBouw 0x0000000107ecf872 SignalConverter + 19067970
15 ASBouw 0x0000000107ece42e SignalConverter + 19062782
16 ASBouw 0x0000000106e485ed SignalConverter + 1737149
17 ASBouw 0x0000000106e3d9c8 SignalConverter + 1693080
18 ASBouw 0x0000000106e3e087 SignalConverter + 1694807
19 ASBouw 0x0000000106e3e157 SignalConverter + 1695015
20 ASBouw 0x0000000107eb431e SignalConverter + 18956014
21 ASBouw 0x0000000107eb3611 SignalConverter + 18952673
22 ASBouw 0x000000010700ec37 SignalConverter + 3598343
23 ASBouw 0x0000000107417fe2 SignalConverter + 7830450
24 ASBouw 0x000000010700ecda SignalConverter + 3598506
25 ASBouw 0x0000000107418095 SignalConverter + 7830629
26 ASBouw 0x0000000107224412 SignalConverter + 5783522
27 ASBouw 0x00000001071e3afc SignalConverter + 5519052
28 ASBouw 0x00000001071e3d63 SignalConverter + 5519667
29 ASBouw 0x00000001071d6aa2 SignalConverter + 5465714
30 ASBouw 0x0000000107eeb2df SignalConverter + 19181231
31 AppKit 0x00007ff818680353 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 4582
32 AppKit 0x00007ff8185f9177 -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 313
33 AppKit 0x00007ff8185f8e23 -[NSWindow(NSEventRouting) sendEvent:] + 345
34 AppKit 0x00007ff818dab470 -[NSApplication(NSEventRouting) sendEvent:] + 1456
35 AppKit 0x00007ff8189668de -[NSApplication _handleEvent:] + 65
36 AppKit 0x00007ff81848a09a -[NSApplication run] + 640
37 ASBouw 0x0000000107eeb0e2 SignalConverter + 19180722
38 ASBouw 0x00000001071d25ed SignalConverter + 5448125
39 ASBouw 0x000000010721bec5 SignalConverter + 5749397
40 ASBouw 0x0000000107ed1958 SignalConverter + 19076392
41 dyld 0x00007ff8149c1366 start + 1942
)
libc++abi: terminating due to uncaught exception of type NSException

Which actions do you execute to reproduce the issue?

Only creating the form.
I have a form with only the Richeditor, and a toolbar with the RichEditorEditToolbar and the RichEditorFormatToolbar on it.
The strange thing is doesn't happen every time and when the edittoolbar isn't attached to the richeditor there is no problem

Would it be an idea to attach the toolbar once the form is loaded (in the form show)?

I already do that, unfortunaly without success.

if ByPass
then TMSFNCToolBar_Alternatief.Visible:= True
else TMSFNCRichEditorEditToolbar.RichEditor:= TMSFNCRichEditor;

ByPass is a Flag I can set when the app crashes, if set it ignores the EditToolbar and uses an alternativ I made

In fact BEFORE I create and open the editor form I'm writing the ByPass flag = true into the inifile. On normal App close I'm writing the ByPass flag is false to the inifile.
When the App crashes while opening the edit form, the ByPass flag isn't set to false so when the editor form is created the next time it uses my alternative toobar in stead of the EditToolbar.

So far, I haven't able to reproduce this issue, you might want to take a screenshot of the error, or add some logging to your application. Alternatively please look at console window on macOS for potential errors.

I have send you an e-mail