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

./sims NSInternalInconsistencyException #1

Open
lungerjo opened this issue Jan 19, 2024 · 2 comments
Open

./sims NSInternalInconsistencyException #1

lungerjo opened this issue Jan 19, 2024 · 2 comments

Comments

@lungerjo
Copy link

I'm getting this exception after building and executing sims

NThreads: 4 go max procs: 8 num cpu:8
NThreads: 4 go max procs: 8 num cpu:8
2024-01-19 17:09:53.231 sims[6198:66971] *** Assertion failure in -[NSMenu _setMenuName:], NSMenu.m:772
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'API misuse warning: setting the main menu on a non-main thread. Main menu contents should only be modified from the main thread.'
*** First throw call stack:
(
0 CoreFoundation 0x0000000188324570 __exceptionPreprocess + 176
1 libobjc.A.dylib 0x0000000187e15eb4 objc_exception_throw + 60
2 Foundation 0x000000018946c43c -[NSCalendarDate initWithCoder:] + 0
3 AppKit 0x000000018ba67d54 -[NSMenu _setMenuName:] + 488
4 AppKit 0x000000018ba7c8f8 -[NSApplication setMainMenu:] + 372
5 sims 0x00000001013ef108 newMainMenu + 368
6 sims 0x00000001013ee814 _cgo_21fe0b179b7b_Cfunc_doNewMainMenu + 36
7 sims 0x00000001003648cc runtime.asmcgocall.abi0 + 124
)

I'm on MacOS 14.2.1. I've installed Go and VulkanSDK and I am able to build and run widgets.go from Goki examples and ra25 from emergent examples.

@rcoreilly
Copy link
Contributor

You need to update the go.mod dependencies -- see https://github.com/CompCogNeuro/sims for example. may need to tweak a few things to get it to build -- lmk if you can't get it to work and I could fix it..

@lungerjo
Copy link
Author

I don't understand the project structure enough to update the dependencies without breaking something. Can you take a look?

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