-
Notifications
You must be signed in to change notification settings - Fork 4.2k
matplotlib.pyplot crash on OSX #177
Copy link
Copy link
Closed
Labels
type:bugSomething isn't working as expectedSomething isn't working as expected
Description
Summary
Using Streamlit on OSX without matplotlib installed:
import streamlit as st
st.pyplot()Steps to reproduce
- Run the previous code with streamlit
Expected behavior:
Python should not crash
Actual behavior:
Streamlit and Python is crashing
Is this a regression?
no
Debug info
- Streamlit version: 0.46.0
- Python version: 3.7.4
- PipEnv
- OS version: macOS Mojave 10.14.6
- Browser version: Chrome 76.0.3809.132
Additional information
(lib) bash-3.2$ streamlit run examples/example.py
You can now view your Streamlit app in your browser.
Local URL: http://localhost:3000
Network URL: http://192.168.0.6:3000
2019-09-23 19:04:48.506 python[12881:14857510] *** 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 0x00007fff4acde2fd __exceptionPreprocess + 256
1 libobjc.A.dylib 0x00007fff753b2a17 objc_exception_throw + 48
2 CoreFoundation 0x00007fff4acf7e59 -[NSException raise] + 9
3 AppKit 0x00007fff4829e5ca -[NSWindow(NSWindow_Theme) _postWindowNeedsToResetDragMarginsUnlessPostingDisabled] + 317
4 AppKit 0x00007fff4829b9f7 -[NSWindow _initContent:styleMask:backing:defer:contentView:] + 1479
5 AppKit 0x00007fff4829b42a -[NSWindow initWithContentRect:styleMask:backing:defer:] + 45
6 _macosx.cpython-37m-darwin.so 0x0000000117def6b0 -[Window initWithContentRect:styleMask:backing:defer:withManager:] + 80
7 _macosx.cpython-37m-darwin.so 0x0000000117df2bc7 FigureManager_init + 327
8 Python 0x00000001072e000f wrap_init + 12
9 Python 0x00000001072a75f9 wrapperdescr_call + 337
10 Python 0x00000001072a1918 _PyObject_FastCallKeywords + 358
11 Python 0x0000000107336ef0 call_function + 746
12 Python 0x000000010732fc70 _PyEval_EvalFrameDefault + 6421
13 Python 0x00000001072a1e8c function_code_fastcall + 112
14 Python 0x00000001072a2829 _PyObject_Call_Prepend + 150
15 Python 0x00000001072dff7d slot_tp_init + 80
16 Python 0x00000001072dcc20 type_call + 172
17 Python 0x00000001072a1918 _PyObject_FastCallKeywords + 358
18 Python 0x0000000107336ef0 call_function + 746
19 Python 0x000000010732fc70 _PyEval_EvalFrameDefault + 6421
20 Python 0x00000001072a1e8c function_code_fastcall + 112
21 Python 0x0000000107336ef7 call_function + 753
22 Python 0x000000010732fc70 _PyEval_EvalFrameDefault + 6421
23 Python 0x00000001073377a6 _PyEval_EvalCodeWithName + 1870
24 Python 0x00000001072a16e5 _PyFunction_FastCallDict + 441
25 Python 0x00000001072a2829 _PyObject_Call_Prepend + 150
26 Python 0x00000001072a1bbf PyObject_Call + 136
27 Python 0x000000010732ff43 _PyEval_EvalFrameDefault + 7144
28 Python 0x00000001073377a6 _PyEval_EvalCodeWithName + 1870
29 Python 0x00000001072a1a77 _PyFunction_FastCallKeywords + 225
30 Python 0x0000000107336ef7 call_function + 753
31 Python 0x000000010732fd0b _PyEval_EvalFrameDefault + 6576
32 Python 0x00000001072a1e8c function_code_fastcall + 112
33 Python 0x0000000107336ef7 call_function + 753
34 Python 0x000000010732fd0b _PyEval_EvalFrameDefault + 6576
35 Python 0x00000001073377a6 _PyEval_EvalCodeWithName + 1870
36 Python 0x00000001072a16e5 _PyFunction_FastCallDict + 441
37 Python 0x000000010732ff43 _PyEval_EvalFrameDefault + 7144
38 Python 0x00000001073377a6 _PyEval_EvalCodeWithName + 1870
39 Python 0x00000001072a16e5 _PyFunction_FastCallDict + 441
40 Python 0x000000010732ff43 _PyEval_EvalFrameDefault + 7144
41 Python 0x00000001073377a6 _PyEval_EvalCodeWithName + 1870
42 Python 0x00000001072a16e5 _PyFunction_FastCallDict + 441
43 Python 0x000000010732ff43 _PyEval_EvalFrameDefault + 7144
44 Python 0x00000001073377a6 _PyEval_EvalCodeWithName + 1870
45 Python 0x00000001072a1a77 _PyFunction_FastCallKeywords + 225
46 Python 0x0000000107336ef7 call_function + 753
47 Python 0x000000010732fd0b _PyEval_EvalFrameDefault + 6576
48 Python 0x00000001073377a6 _PyEval_EvalCodeWithName + 1870
49 Python 0x00000001072a1a77 _PyFunction_FastCallKeywords + 225
50 Python 0x0000000107336ef7 call_function + 753
51 Python 0x000000010732fc70 _PyEval_EvalFrameDefault + 6421
52 Python 0x00000001073377a6 _PyEval_EvalCodeWithName + 1870
53 Python 0x00000001072a16e5 _PyFunction_FastCallDict + 441
54 Python 0x000000010732ff43 _PyEval_EvalFrameDefault + 7144
55 Python 0x00000001073377a6 _PyEval_EvalCodeWithName + 1870
56 Python 0x00000001072a1a77 _PyFunction_FastCallKeywords + 225
57 Python 0x0000000107336ef7 call_function + 753
58 Python 0x000000010732fc70 _PyEval_EvalFrameDefault + 6421
59 Python 0x00000001073377a6 _PyEval_EvalCodeWithName + 1870
60 Python 0x000000010732e2b8 PyEval_EvalCode + 51
61 Python 0x000000010732bd1e builtin_exec + 554
62 Python 0x00000001072a252f _PyMethodDef_RawFastCallKeywords + 495
63 Python 0x00000001072a1ab2 _PyCFunction_FastCallKeywords + 44
64 Python 0x0000000107336e82 call_function + 636
65 Python 0x000000010732fd0b _PyEval_EvalFrameDefault + 6576
66 Python 0x00000001072a1e8c function_code_fastcall + 112
67 Python 0x0000000107336ef7 call_function + 753
68 Python 0x000000010732fc57 _PyEval_EvalFrameDefault + 6396
69 Python 0x00000001072a1e8c function_code_fastcall + 112
70 Python 0x00000001072a2829 _PyObject_Call_Prepend + 150
71 Python 0x00000001072a1bbf PyObject_Call + 136
72 Python 0x000000010732ff43 _PyEval_EvalFrameDefault + 7144
73 Python 0x00000001072a1e8c function_code_fastcall + 112
74 Python 0x0000000107336ef7 call_function + 753
75 Python 0x000000010732fc57 _PyEval_EvalFrameDefault + 6396
76 Python 0x00000001072a1e8c function_code_fastcall + 112
77 Python 0x0000000107336ef7 call_function + 753
78 Python 0x000000010732fc57 _PyEval_EvalFrameDefault + 6396
79 Python 0x00000001072a1e8c function_code_fastcall + 112
80 Python 0x00000001072a2829 _PyObject_Call_Prepend + 150
81 Python 0x00000001072a1bbf PyObject_Call + 136
82 Python 0x000000010739e261 t_bootstrap + 71
83 Python 0x0000000107364e95 pythread_wrapper + 25
84 libsystem_pthread.dylib 0x00007fff76d742eb _pthread_body + 126
85 libsystem_pthread.dylib 0x00007fff76d77249 _pthread_start + 66
86 libsystem_pthread.dylib 0x00007fff76d7340d thread_start + 13
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Abort trap: 6Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
type:bugSomething isn't working as expectedSomething isn't working as expected