HashHash icon indicating copy to clipboard operation
HashHash copied to clipboard

[Bug] crash on MacOS: NSInternalInconsistencyException

Open shalva97 opened this issue 2 years ago • 0 comments

Bug Description

Cant pick directories on MacOS

To Reproduce Steps to reproduce the behavior: Run app on MacOS Click on select file App crashes with:

20:32:38.682526  INFO [                main] :        Configuration : Setting configuration using the DSL with append=false
2023-06-22 20:34:01.447 java[10169:5689922] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!'
*** First throw call stack:
(
	0   CoreFoundation                      0x00007ff8127c418a __exceptionPreprocess + 242
	1   libobjc.A.dylib                     0x00007ff8122ea42b objc_exception_throw + 48
	2   CoreFoundation                      0x00007ff8127ec2f6 -[NSException raise] + 9
	3   AppKit                              0x00007ff8158061fe -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 307
	4   AppKit                              0x00007ff8157f2714 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1227
	5   AppKit                              0x00007ff81598b28d -[NSPanel _initContent:styleMask:backing:defer:contentView:] + 50
	6   AppKit                              0x00007ff8157f2242 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 42
	7   AppKit                              0x00007ff81598b246 -[NSPanel initWithContentRect:styleMask:backing:defer:] + 59
	8   AppKit                              0x00007ff8162cd7c0 -[NSSavePanel initWithContentRect:styleMask:backing:defer:] + 91
	9   AppKit                              0x00007ff8162a2141 -[NSOpenPanel initWithContentRect:styleMask:backing:defer:] + 136
	10  AppKit                              0x00007ff815ac18e2 -[NSPanel init] + 69
	11  AppKit                              0x00007ff8162cd758 -[NSSavePanel init] + 226
	12  AppKit                              0x00007ff815f1bdd5 +[NSSavePanel(Instantiation) _crunchyRawUnbonedPanel] + 58
	13  liblwjgl_nfd.dylib                  0x0000000148b20fd1 liblwjgl_nfd.dylib + 12241
	14  ???                                 0x000000011b16853a 0x0 + 4749428026
)
libc++abi: terminating due to uncaught exception of type NSException

Expected behavior A native file dialog opens where I can pick a file

Platform Info

HashHash Version: latest master

Operating System: MacOS

shalva97 avatar Jun 22 '23 16:06 shalva97