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

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow should only be instantiated on the main thread!' #53

Open
digizhu opened this issue Apr 14, 2024 · 2 comments

Comments

@digizhu
Copy link

digizhu commented Apr 14, 2024

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'NSWindow should only be instantiated on the main thread!'
*** First throw call stack:
(
0 CoreFoundation 0x0000000189464540 __exceptionPreprocess + 176
1 libobjc.A.dylib 0x0000000188f55eb4 objc_exception_throw + 60
2 CoreFoundation 0x000000018948988c _CFBundleGetValueForInfoKey + 0
3 AppKit 0x000000018cbdd7c0 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 188
4 AppKit 0x000000018cbdd6f8 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 48
5 _macosx.cpython-311-darwin.so 0x00000002ee7e84fc -[Window initWithContentRect:styleMask:backing:defer:withManager:] + 52
6 _macosx.cpython-311-darwin.so 0x00000002ee7eb498 FigureManager_init + 224
7 python3.11 0x00000001049e27b8 wrap_init + 20
8 python3.11 0x0000000104960e08 wrapperdescr_call + 636
9 python3.11 0x0000000104a956c4 _PyEval_EvalFrameDefault + 192680
10 python3.11 0x0000000104951c78 _PyFunction_Vectorcall + 476
11 python3.11 0x00000001049540b4 _PyObject_Call_Prepend + 164
12 python3.11 0x00000001049e2584 slot_tp_init + 212
13 python3.11 0x00000001049d7e3c type_call + 136
14 python3.11 0x0000000104a956c4 _PyEval_EvalFrameDefault + 192680
15 python3.11 0x0000000104951c78 _PyFunction_Vectorcall + 476
16 python3.11 0x00000001049573a8 method_vectorcall + 296
17 python3.11 0x0000000104a99d5c _PyEval_EvalFrameDefault + 210752
18 python3.11 0x0000000104951c78 _PyFunction_Vectorcall + 476
19 python3.11 0x0000000104a99d5c _PyEval_EvalFrameDefault + 210752
20 python3.11 0x0000000104951c78 _PyFunction_Vectorcall + 476
21 python3.11 0x00000001049573a8 method_vectorcall + 296
22 python3.11 0x0000000104a99d5c _PyEval_EvalFrameDefault + 210752
23 python3.11 0x0000000104951c78 _PyFunction_Vectorcall + 476
24 python3.11 0x0000000104957324 method_vectorcall + 164
25 python3.11 0x0000000104a99984 _PyEval_EvalFrameDefault + 209768
26 python3.11 0x0000000104951c78 _PyFunction_Vectorcall + 476
27 python3.11 0x0000000104a99984 _PyEval_EvalFrameDefault + 209768
28 python3.11 0x0000000104951c78 _PyFunction_Vectorcall + 476
29 python3.11 0x00000001049573ec method_vectorcall + 364
30 python3.11 0x0000000104b804b8 thread_run + 228
31 python3.11 0x0000000104b0b15c pythread_wrapper + 48
32 libsystem_pthread.dylib 0x0000000189312034 _pthread_start + 136
33 libsystem_pthread.dylib 0x000000018930ce3c thread_start + 8
)
libc++abi: terminating due to uncaught exception of type NSException
zsh: abort python main.py

@peteromallet
Copy link
Collaborator

Can you update all your nodes/Comfy and check if this is still happening?

@kingkongsy
Copy link

kingkongsy commented Apr 20, 2024

I have the same problem with all nodes updated. This seems to be Mac-specific. I am on a M3 Pro Max and I can't find any solution to do by myself. If I understood it right, this is due to some Apple-induced coding restrictions and needs to be solved in the code, but doesn't seem too complicated. -> https://scampsters.marcevanstein.com/t/nswindow-should-only-be-instantiated-on-the-main-thread/451/4

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

3 participants