Image-Py / imagepy

Image process framework based on plugin like imagej, it is esay to glue with scipy.ndimage, scikit-image, opencv, simpleitk, mayavi...and any libraries based on numpy
http://imagepy.org
BSD 4-Clause "Original" or "Old" License
1.29k stars 330 forks source link

3D viewer crash with 2 activate window on macos #66

Closed essie-chiang closed 4 years ago

essie-chiang commented 4 years ago

3D viewer weird crash on macos 2019-09-16 21:55:39.526 python[18460:3280750] This application is modifying the autolayout engine from a background thread after the engine was accessed from the main thread. This can lead to engine corruption and weird crashes.

2019-09-16 21:55:39.576 python[18460:3280750] Assertion failure in -[NSDockConnection sendMessage:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1671.60.107/FullScreen.subproj/NSDockConnection.m:227 2019-09-16 21:55:39.594 python[18460:3280750] Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Can only send messages on the main thread' *** First throw call stack: ( 0 CoreFoundation 0x00007fff481fd2fd __exceptionPreprocess + 256 1 libobjc.A.dylib 0x00007fff728cda17 objc_exception_throw + 48 2 CoreFoundation 0x00007fff48218016 +[NSException raise:format:arguments:] + 98 3 Foundation 0x00007fff4a4b7791 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 194 4 AppKit 0x00007fff46085c95 -[NSDockConnection sendMessage:] + 248 5 AppKit 0x00007fff45bd0604 NSFullScreenDockConnectionSendTitleForSpace + 126 6 AppKit 0x00007fff45bf687d -[_NSWindowFullScreenContentController setAsThePrincipalFullScreenWindowInSpace] + 77 7 AppKit 0x00007fff45be2993 -[NSWindow(NSWindowTabbing) _doWindowTabOrderAbove:] + 280 8 AppKit 0x00007fff45fcbbd8 -[NSWindowStackController _doWindowOrderingToSwapPriorWindow:withNewWindow:] + 48 9 AppKit 0x00007fff45fcc0d3 __103-[NSWindowStackController _doTabSelectionAndWindowOrderingAtIndex:makeKeyAndOrderFront:justOrderFront:]_block_invoke + 312 10 AppKit 0x00007fff45775990 NSPerformVisuallyAtomicChange + 132 11 AppKit 0x00007fff45fcbe6b -[NSWindowStackController _doTabSelectionAndWindowOrderingAtIndex:makeKeyAndOrderFront:justOrderFront:] + 627 12 AppKit 0x00007fff45fc8782 -[NSWindowStackController setSelectedWindow:] + 333 13 AppKit 0x00007fff4588eddb -[NSWindow(NSWindowTabbing) _doTabbedWindowOrderFront] + 136 14 AppKit 0x00007fff4588ecb5 -[NSApplication _setKeyWindow:] + 222 15 AppKit 0x00007fff4588e776 -[NSWindow _changeKeyAndMainLimitedOK:] + 760 16 AppKit 0x00007fff4588e369 -[NSWindow _makeKeyRegardlessOfVisibility] + 76 17 AppKit 0x00007fff4588df18 -[NSWindow makeKeyAndOrderFront:] + 40 18 libwx_osx_cocoau_core-3.0.0.4.0.dylib 0x000000010b2df7d4 _ZN25wxNonOwnedWindowCocoaImpl5RaiseEv + 36 19 _core.cpython-36m-darwin.so 0x000000010aca0a86 _ZL19meth_wxWindow_RaiseP7objectS0 + 118 20 python 0x000000010a08e678 _PyCFunction_FastCallDict + 200 21 python 0x000000010a1655ef call_function + 143 22 python 0x000000010a16315c _PyEval_EvalFrameDefault + 46796 23 python 0x000000010a1568c9 _PyEval_EvalCodeWithName + 425 24 python 0x000000010a165a5a fast_function + 362 25 python 0x000000010a16564c call_function + 236 26 python 0x000000010a16315c _PyEval_EvalFrameDefault + 46796 27 python 0x000000010a1659ac fast_function + 188 28 python 0x000000010a16564c call_function + 236 29 python 0x000000010a16315c _PyEval_EvalFrameDefault + 46796 30 python 0x000000010a1568c9 _PyEval_EvalCodeWithName + 425 31 python 0x000000010a057b4d function_call + 125 32 python 0x000000010a0144fe PyObject_Call + 62 33 python 0x000000010a163352 _PyEval_EvalFrameDefault + 47298 34 python 0x000000010a1659ac fast_function + 188 35 python 0x000000010a16564c call_function + 236 36 python 0x000000010a16315c _PyEval_EvalFrameDefault + 46796 37 python 0x000000010a1659ac fast_function + 188 38 python 0x000000010a16564c call_function + 236 39 python 0x000000010a16315c _PyEval_EvalFrameDefault + 46796 40 python 0x000000010a1660ff _PyFunction_FastCallDict + 175 41 python 0x000000010a00ceb0 _PyObject_FastCallDict + 320 42 python 0x000000010a0345b8 method_call + 136 43 python 0x000000010a0144fe PyObject_Call + 62 44 python 0x000000010a1d9b6a t_bootstrap + 122 45 libsystem_pthread.dylib 0x00007fff7428f2eb _pthread_body + 126 46 libsystem_pthread.dylib 0x00007fff74292249 _pthread_start + 66 47 libsystem_pthread.dylib 0x00007fff7428e40d thread_start + 13 ) libc++abi.dylib: terminating with uncaught exception of type NSException /Users/jysjiang/anaconda3/envs/medical/bin/pythonw: line 3: 18460 Abort trap: 6 /Users/jysjiang/anaconda3/envs/medical/python.app/Contents/MacOS/python "$@"

essie-chiang commented 4 years ago

I guess it is not a bug, just feature:)