Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'NSInternalInconsistencyException', reason: 'NSWindow drag regions should only be invalidated on the Main Thread!' #9

Open
TimmermanV opened this issue Apr 24, 2021 · 3 comments

Comments

@TimmermanV
Copy link

TimmermanV commented Apr 24, 2021

I have built PCem according to the instructions, on macOS Catalina. While the application does start and I can create a configuration using the PCem Configuration Manager, it crashes when I try to start the config. Just before it crashes it's opening a new window which I guess is for the video output of the emulated machine.

Here is the output when I manually try to launch the executable:

Menu item not found: 1403
Menu item not found: 1404
Menu item not found: 1403
Menu item not found: 1404
2021-04-24 21:06:43.021 pcem[19913:153082] *** 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                      0x00007fff2e4e8727 __exceptionPreprocess + 250
	1   libobjc.A.dylib                     0x00007fff67420a9e objc_exception_throw + 48
	2   CoreFoundation                      0x00007fff2e5110ac -[NSException raise] + 9
	3   AppKit                              0x00007fff2b6f95ec -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 310
	4   AppKit                              0x00007fff2b7088be -[NSThemeFrame _tileTitlebarAndRedisplay:] + 98
	5   AppKit                              0x00007fff2b71c012 -[NSTitledFrame _titleDidChange] + 207
	6   AppKit                              0x00007fff2b71bbb4 -[NSTitledFrame setTitle:] + 703
	7   AppKit                              0x00007fff2b71b846 -[NSThemeFrame setTitle:] + 50
	8   AppKit                              0x00007fff2b71b642 -[NSWindow _dosetTitle:andDefeatWrap:] + 210
	9   libSDL2-2.0.0.dylib                 0x000000011108b9a7 Cocoa_SetWindowTitle + 105
	10  pcem                                0x000000010da5bc1c runpc + 1036
	11  pcem                                0x000000010db449b7 mainthread + 167
	12  libSDL2-2.0.0.dylib                 0x0000000111028fc3 SDL_RunThread + 53
	13  libSDL2-2.0.0.dylib                 0x00000001110910cd RunThread + 9
	14  libsystem_pthread.dylib             0x00007fff687c9109 _pthread_start + 148
	15  libsystem_pthread.dylib             0x00007fff687c4b8b thread_start + 15
)
libc++abi.dylib: terminating with uncaught exception of type NSException
zsh: abort      ./pcem
@TimmermanV
Copy link
Author

I commented out the code that updates the window title in runpc. Now it seems to be working fine. (I just tested 1 machine configuration so far and I didn't get any further than "DISK BOOT FAILURE" for now ;-) but that is a good sign)

@kyr0
Copy link
Member

kyr0 commented Apr 26, 2021

Hi Tim :)
the boot disk failure probably is because there is no floppy disk/cdrom mounted :) (right click, select image to mount for boot)
btw I'd suggest to use our most recent code branch V17 :)
https://github.com/PCemOnMac/PCemV17macOS

@TimmermanV
Copy link
Author

TimmermanV commented Apr 26, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants