Occasional Editor crash on Mac when create MacPlatformSettings

My Env:

  • Mac mini M2 arm64
  • MacOS 14.5
  • Xcode latest
  • FlaxEditor release: build from github master branch
  • Reproduce: Firstly I cooked the game for Mac in release mode without a MacPlatformSettings, then I create MacPlatformSettings in Editor, it shows a dialog to select settings type, after I click the ‘create’ button , It throws:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow geometry should only be modified on the main thread!'
*** First throw call stack:
(
	0   CoreFoundation                      0x000000019f98b2ec __exceptionPreprocess + 176
	1   libobjc.A.dylib                     0x000000019f472788 objc_exception_throw + 60
	2   CoreFoundation                      0x000000019f9b0268 _CFBundleGetValueForInfoKey + 0
	3   AppKit                              0x00000001a3196298 -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 240
	4   AppKit                              0x00000001a31a2264 -[NSThemeFrame _tileTitlebarAndRedisplay:] + 88
	5   AppKit                              0x00000001a31b1220 -[NSTitledFrame _titleDidChange] + 116
	6   AppKit                              0x00000001a3ba3c38 -[NSTitledFrame setTitle:subtitle:] + 420
	7   AppKit                              0x00000001a31b0f8c -[NSThemeFrame setTitle:] + 52
	8   AppKit                              0x00000001a377b204 -[NSFrameView _updateTitleProperties:animated:] + 44
	9   AppKit                              0x00000001a3b96b80 -[NSThemeFrame _updateTitleProperties:animated:] + 156
	10  CoreFoundation                      0x000000019f90b144 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 148
	11  CoreFoundation                      0x000000019f99f3d8 ___CFXRegistrationPost_block_invoke + 88
	12  CoreFoundation                      0x000000019f99f320 _CFXRegistrationPost + 440
	13  CoreFoundation                      0x000000019f8d9678 _CFXNotificationPost + 768
	14  Foundation                          0x00000001a09f64e4 -[NSNotificationCenter postNotificationName:object:userInfo:] + 88
	15  AppKit                              0x00000001a392e378 -[NSWindowTitleController _propertiesChanged:] + 128
	16  AppKit                              0x00000001a31b0da4 -[NSWindow _dosetTitle:andDefeatWrap:] + 156
	17  FlaxEngine.dylib                    0x000000010289a0e4 _ZN9MacWindow8SetTitleERK10StringView + 72
	18 FlaxEngine.dylib                    0x00000001028a399c WindowBaseInternal_SetTitle + 56
	19  ???                                 0x0000000302a26194 0x0 + 12929098132
	20  ???                                 0x0000000302a260c0 0x0 + 12929097920
	21  ???                                 0x000000030408849c 0x0 + 12952568988
	22  ???                                 0x0000000302a2981c 0x0 + 12929112092
	23  ???                                 0x00000003040b72ec 0x0 + 12952761068
	24  ???                                 0x00000003040dbb8c 0x0 + 12952910732
	25  ???                                 0x00000003040dbb18 0x0 + 12952910616
	26  ???                                 0x00000003041384d8 0x0 + 12953289944
	27  ???                                 0x00000003041381e4 0x0 + 12953289188
	28  ???                                 0x0000000304137a50 0x0 + 12953287248
	29  ???                                 0x000000030032b3f8 0x0 + 12888224760
	30  ???                                 0x000000030033616c 0x0 + 12888269164
	31  libcoreclr.dylib                    0x0000000107b77444 CallDescrWorkerInternal + 132
	32  libcoreclr.dylib                    0x00000001079f2450 _Z18DispatchCallSimplePmjyj + 268
	33  libcoreclr.dylib                    0x0000000107a05794 _ZN12ThreadNative20KickOffThread_WorkerEPv + 148
	34  libcoreclr.dylib                    0x00000001079c4988 _ZL31ManagedThreadBase_DispatchOuterP22ManagedThreadCallState + 256
	35  libcoreclr.dylib                    0x00000001079c4ee0 _ZN17ManagedThreadBase7KickOffEPFvPvES0_ + 32
	36  libcoreclr.dylib                    0x0000000107a0586c _ZN12ThreadNative13KickOffThreadEPv + 172
	37  libcoreclr.dylib                    0x00000001078dda40 _ZN7CorUnix10CPalThread11ThreadEntryEPv + 380
	38  libsystem_pthread.dylib             0x000000019f836f94 _pthread_start + 136
	39  libsystem_pthread.dylib             0x000000019f831d34 thread_start + 8
)
libc++abi: terminating due to uncaught exception of type NSException
zsh: abort      ./FlaxEditor -project xxx