lavavu / LavaVu

Lightweight, Automatable Visualisation & Analysis Viewing Utility
Other
53 stars 12 forks source link

crash with lavavu ver >=1.3 on macos #61

Closed arijitlaik closed 5 years ago

arijitlaik commented 5 years ago

v<1.3 work out of the box Here is the dump

2019-03-13 16:02:31.234 Python[19755:244564] *** 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                      0x00007fff4e8dfded __exceptionPreprocess + 256
    1   libobjc.A.dylib                     0x00007fff7a9a7720 objc_exception_throw + 48
    2   CoreFoundation                      0x00007fff4e8f987d -[NSException raise] + 9
    3   AppKit                              0x00007fff4bdfac8e -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 324
    4   AppKit                              0x00007fff4bdf807c -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1488
    5   AppKit                              0x00007fff4bdf7aa6 -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
    6   libLavaVu.dylib                     0x0000000115cb2181 _ZN11CocoaViewer4openEii + 481
    7   libLavaVu.dylib                     0x0000000115b221f6 _ZN6LavaVu13loadModelStepEiib + 1030
    8   libLavaVu.dylib                     0x0000000115b21b22 _ZN6LavaVu3runENSt3__16vectorINS0_12basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEENS5_IS7_EEEE + 2322
    9   _LavaVuPython.so                    0x0000000115a0fa33 _ZL16_wrap_LavaVu_runP7_objectS0_ + 915
    10  Python                              0x000000010a14c004 PyEval_EvalFrameEx + 19550
    11  Python                              0x000000010a14718c PyEval_EvalCodeEx + 1540
    12  Python                              0x000000010a0ed9cd function_call + 327
    13  Python                              0x000000010a0cfde1 PyObject_Call + 97
    14  Python                              0x000000010a14c767 PyEval_EvalFrameEx + 21441
    15  Python                              0x000000010a14718c PyEval_EvalCodeEx + 1540
    16  Python                              0x000000010a0ed9cd function_call + 327
    17  Python                              0x000000010a0cfde1 PyObject_Call + 97
    18  Python                              0x000000010a14c767 PyEval_EvalFrameEx + 21441
    19  Python                              0x000000010a14718c PyEval_EvalCodeEx + 1540
    20  Python                              0x000000010a0ed9cd function_call + 327
    21  Python                              0x000000010a0cfde1 PyObject_Call + 97
    22  Python                              0x000000010a14c767 PyEval_EvalFrameEx + 21441
    23  Python                              0x000000010a15018f fast_function + 190
    24  Python                              0x000000010a14bd90 PyEval_EvalFrameEx + 18922
    25  Python                              0x000000010a15018f fast_function + 190
    26  Python                              0x000000010a14bd90 PyEval_EvalFrameEx + 18922
    27  Python                              0x000000010a14718c PyEval_EvalCodeEx + 1540
    28  Python                              0x000000010a0ed9cd function_call + 327
    29  Python                              0x000000010a0cfde1 PyObject_Call + 97
    30  Python                              0x000000010a0da6d0 instancemethod_call + 163
    31  Python                              0x000000010a0cfde1 PyObject_Call + 97
    32  Python                              0x000000010a14fb28 PyEval_CallObjectWithKeywords + 159
    33  Python                              0x000000010a17bd16 t_bootstrap + 70
    34  libsystem_pthread.dylib             0x00007fff7bc69305 _pthread_body + 126
    35  libsystem_pthread.dylib             0x00007fff7bc6c26f _pthread_start + 70
    36  libsystem_pthread.dylib             0x00007fff7bc68415 thread_start + 13
)
libc++abi.dylib: terminating with uncaught exception of type NSException
arijitlaik commented 5 years ago

Thanks for the fix, unfortunately I cannot test it today, ill close this now :)

OKaluza commented 5 years ago

Thanks for the report! I've released this with a couple of other fixes in 1.3.3