I’m having all kinds of problems with Plots
and PyPlot
. At this time, the following happens:
Pkg.rm("Plots")
Pkg.add("Plots")
Pkg.update()
restart
workspace()
using Plots
plot()
Julia has stopped: null, SIGSEGV
PyPlot
is a little more forgiving. It will allow me to do:
using PyPlot
plot()
But if I first load a module of mine, execute a computation that returns an vector I would like to plot, and then run using PyPlot
, I get a crash. I have updated matplotlib
, XQuartz
, Anaconda
.
Below is the output of a crash after running PyPlot
: I’m getting some segmentation fault:11
crash.
What should I be looking for? Any ideas?
truncated sample:
Process: julia [586]
Path: /Applications/Julia-0.5.app/Contents/Resources/julia/bin/julia
Identifier: julia
Version: ???
Code Type: X86-64 (Native)
Parent Process: Atom Helper [327]
Responsible: Atom [269]
User ID: 502
Date/Time: 2017-06-10 01:17:36.658 +0800
OS Version: Mac OS X 10.10.5 (14F2411)
Report Version: 11
Anonymous UUID: 492C9CB7-BC26-304E-C519-9DAE1A82CD90
Time Awake Since Boot: 460 seconds
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008
VM Regions Near 0x8:
-->
__TEXT 000000010e17f000-000000010e181000 [ 8K] r-x/rwx SM=COW /Applications/Julia-0.5.app/Contents/Resources/julia/bin/julia
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libjulia.0.5.2.dylib 0x000000010e1e2c7e julia_type_to_llvm + 46
1 libjulia.0.5.2.dylib 0x000000010e2019d4 emit_expr(_jl_value_t*, jl_codectx_t*) + 4788
2 libjulia.0.5.2.dylib 0x000000010e1e7d2e emit_function(_jl_lambda_info_t*, _jl_llvm_functions_t*) + 17774
3 libjulia.0.5.2.dylib 0x000000010e1e34c2 jl_compile_linfo + 914
4 libjulia.0.5.2.dylib 0x000000010e202234 emit_expr(_jl_value_t*, jl_codectx_t*) + 6932
5 libjulia.0.5.2.dylib 0x000000010e20287e emit_expr(_jl_value_t*, jl_codectx_t*) + 8542
6 libjulia.0.5.2.dylib 0x000000010e2050f1 emit_stmtpos(_jl_value_t*, jl_codectx_t*) + 161
7 libjulia.0.5.2.dylib 0x000000010e1e871f emit_function(_jl_lambda_info_t*, _jl_llvm_functions_t*) + 20319
8 libjulia.0.5.2.dylib 0x000000010e1e34c2 jl_compile_linfo + 914
9 libjulia.0.5.2.dylib 0x000000010e202234 emit_expr(_jl_value_t*, jl_codectx_t*) + 6932
10 libjulia.0.5.2.dylib 0x000000010e20287e emit_expr(_jl_value_t*, jl_codectx_t*) + 8542
11 libjulia.0.5.2.dylib 0x000000010e2050f1 emit_stmtpos(_jl_value_t*, jl_codectx_t*) + 161
12 libjulia.0.5.2.dylib 0x000000010e1e871f emit_function(_jl_lambda_info_t*, _jl_llvm_functions_t*) + 20319
13 libjulia.0.5.2.dylib 0x000000010e1e34c2 jl_compile_linfo + 914
14 libjulia.0.5.2.dylib 0x000000010e202234 emit_expr(_jl_value_t*, jl_codectx_t*) + 6932
15 libjulia.0.5.2.dylib 0x000000010e206312 emit_call(jl_expr_t*, jl_codectx_t*) + 786
16 libjulia.0.5.2.dylib 0x000000010e201fb8 emit_expr(_jl_value_t*, jl_codectx_t*) + 6296
17 libjulia.0.5.2.dylib 0x000000010e2050f1 emit_stmtpos(_jl_value_t*, jl_codectx_t*) + 161
18 libjulia.0.5.2.dylib 0x000000010e1e871f emit_function(_jl_lambda_info_t*, _jl_llvm_functions_t*) + 20319
19 libjulia.0.5.2.dylib 0x000000010e1e34c2 jl_compile_linfo + 914
20 libjulia.0.5.2.dylib 0x000000010e19c4a6 jl_compile_for_dispatch + 918
21 libjulia.0.5.2.dylib 0x000000010e19b672 jl_apply_generic + 1106
22 libjulia.0.5.2.dylib 0x000000010e1c6b9a jl_module_run_initializer + 282
23 libjulia.0.5.2.dylib 0x000000010e1c30e8 _jl_restore_incremental + 2184
24 libjulia.0.5.2.dylib 0x000000010e1c316c jl_restore_incremental + 76
25 sys.dylib 0x000000010fcbdd12 julia__include_from_serialized_22632 + 242 (.loading.jl:150)
26 sys.dylib 0x000000010fcbe1ec julia__require_from_serialized_22598 + 908 (.loading.jl:187)
27 sys.dylib 0x000000010fe0e011 julia__require_search_from_serialized_32311 + 705 (.loading.jl:217)
28 sys.dylib 0x000000010fe0e341 jlcall__require_search_from_serialized_32311 + 33
29 libjulia.0.5.2.dylib 0x000000010e19b608 jl_apply_generic + 1000
30 sys.dylib 0x000000010fcbf402 julia_require_22458 + 1282 (.loading.jl:371)
31 sys.dylib 0x000000010fcc01dc jlcall_require_22458 + 12
32 libjulia.0.5.2.dylib 0x000000010e19b608 jl_apply_generic + 1000
33 libjulia.0.5.2.dylib 0x000000010e1c5958 read_verify_mod_list + 520
34 libjulia.0.5.2.dylib 0x000000010e1c29e7 _jl_restore_incremental + 391
35 libjulia.0.5.2.dylib 0x000000010e1c316c jl_restore_incremental + 76
36 sys.dylib 0x000000010fcbdd12 julia__include_from_serialized_22632 + 242 (.loading.jl:150)
37 sys.dylib 0x000000010fcbe1ec julia__require_from_serialized_22598 + 908 (.loading.jl:187)
38 sys.dylib 0x000000010fe0e011 julia__require_search_from_serialized_32311 + 705 (.loading.jl:217)
39 sys.dylib 0x000000010fe0e341 jlcall__require_search_from_serialized_32311 + 33
40 libjulia.0.5.2.dylib 0x000000010e19b608 jl_apply_generic + 1000
41 sys.dylib 0x000000010fcbf402 julia_require_22458 + 1282 (.loading.jl:371)
42 sys.dylib 0x000000010fcc01dc jlcall_require_22458 + 12
43 libjulia.0.5.2.dylib 0x000000010e19b608 jl_apply_generic + 1000
44 libjulia.0.5.2.dylib 0x000000010e1c8c95 eval_import_path_ + 565
45 libjulia.0.5.2.dylib 0x000000010e1c780d jl_toplevel_eval_flex + 797
46 libjulia.0.5.2.dylib 0x000000010e1a54fe jl_parse_eval_all + 1214
47 sys.dylib 0x000000010fe44d1e julia_include_string_33641 + 270 (.loading.jl:441)
48 sys.dylib 0x000000010fe44e80 jlcall_include_string_33641 + 16
49 libjulia.0.5.2.dylib 0x000000010e19b608 jl_apply_generic + 1000
50 libjulia.0.5.2.dylib 0x000000010e1b13b8 do_call + 200
51 libjulia.0.5.2.dylib 0x000000010e1af73c eval + 860
52 libjulia.0.5.2.dylib 0x000000010e1b0d5e eval_body + 462
53 libjulia.0.5.2.dylib 0x000000010e1b12a2 jl_interpret_call + 498
54 libjulia.0.5.2.dylib 0x000000010e1c7a3d jl_toplevel_eval_flex + 1357
55 libjulia.0.5.2.dylib 0x000000010e1a9333 jl_toplevel_eval_in_warn + 899
56 sys.dylib 0x000000010fc6c64a julia_eval_19854 + 10 (.boot.jl:234)
57 sys.dylib 0x000000010fc6c660 jlcall_eval_19854 + 16
58 libjulia.0.5.2.dylib 0x000000010e19b608 jl_apply_generic + 1000
59 ??? 0x000000031de62922 0 + 13386524962
60 ??? 0x000000031de62266 0 + 13386523238
61 ??? 0x000000031de623f3 0 + 13386523635
62 libjulia.0.5.2.dylib 0x000000010e19b608 jl_apply_generic + 1000
63 ??? 0x000000031de6202a 0 + 13386522666
64 ??? 0x000000031de62073 0 + 13386522739
65 ??? 0x000000031de5fe43 0 + 13386513987
66 libjulia.0.5.2.dylib 0x000000010e19b608 jl_apply_generic + 1000
67 libjulia.0.5.2.dylib 0x000000010e1b9a54 start_task + 356
Thread 1:
0 libsystem_kernel.dylib 0x00007fff91a8d75a __sigwait + 10
1 libjulia.0.5.2.dylib 0x000000010e1e0ddd signal_listener + 45
2 libsystem_pthread.dylib 0x00007fff940b905a _pthread_body + 131
3 libsystem_pthread.dylib 0x00007fff940b8fd7 _pthread_start + 176
4 libsystem_pthread.dylib 0x00007fff940b63ed thread_start + 13
Thread 2:
0 libsystem_kernel.dylib 0x00007fff91a884de mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff91a8764f mach_msg + 55
2 libsystem_kernel.dylib 0x00007fff91a87f60 mach_msg_server + 468
3 libjulia.0.5.2.dylib 0x000000010e1e02fd mach_segv_listener + 29
4 libsystem_pthread.dylib 0x00007fff940b905a _pthread_body + 131
5 libsystem_pthread.dylib 0x00007fff940b8fd7 _pthread_start + 176
6 libsystem_pthread.dylib 0x00007fff940b63ed thread_start + 13
Thread 3:
0 libsystem_kernel.dylib 0x00007fff91a8d136 __psynch_cvwait + 10
1 libopenblas64_.dylib 0x00000003150754db blas_thread_server + 171
2 libsystem_pthread.dylib 0x00007fff940b905a _pthread_body + 131
3 libsystem_pthread.dylib 0x00007fff940b8fd7 _pthread_start + 176
4 libsystem_pthread.dylib 0x00007fff940b63ed thread_start + 13
Thread 4:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x00007fff91a8e232 kevent64 + 10
1 libdispatch.dylib 0x00007fff8902526e _dispatch_mgr_thread + 52
Thread 5:
0 libsystem_kernel.dylib 0x00007fff91a8d3fa __select + 10
1 libsystem_pthread.dylib 0x00007fff940b905a _pthread_body + 131
2 libsystem_pthread.dylib 0x00007fff940b8fd7 _pthread_start + 176
3 libsystem_pthread.dylib 0x00007fff940b63ed thread_start + 13
Thread 6:
0 libsystem_kernel.dylib 0x00007fff91a884de mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff91a8764f mach_msg + 55
2 com.apple.CoreFoundation 0x00007fff942bacd4 __CFRunLoopServiceMachPort + 212
3 com.apple.CoreFoundation 0x00007fff942ba19b __CFRunLoopRun + 1371
4 com.apple.CoreFoundation 0x00007fff942b99f8 CFRunLoopRunSpecific + 296
5 com.apple.AppKit 0x00007fff9340756b _NSEventThread + 137
6 libsystem_pthread.dylib 0x00007fff940b905a _pthread_body + 131
7 libsystem_pthread.dylib 0x00007fff940b8fd7 _pthread_start + 176
8 libsystem_pthread.dylib 0x00007fff940b63ed thread_start + 13
Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x000000010e418b58 rbx: 0x000000010e418b30 rcx: 0x0000000000000006 rdx: 0x00007fff78015070
rdi: 0x0000000000000010 rsi: 0x0000000000000000 rbp: 0x00007fff51a76190 rsp: 0x00007fff51a76180
r8: 0x0000000000000010 r9: 0x0000000113134670 r10: 0x00007fff51a76e00 r11: 0x0000000113134790
r12: 0x0000000000000010 r13: 0x00007fff51a76898 r14: 0x000000011b4b9990 r15: 0x00007fff51a76898
rip: 0x000000010e1e2c7e rfl: 0x0000000000010202 cr2: 0x0000000000000008
Logical CPU: 2
Error Code: 0x00000004
Trap Number: 14
Binary Images:
0x10e17f000 - 0x10e180fff +julia (???) <14C26D69-968A-330E-A43C-FA7B63AA2B19> /Applications/Julia-0.5.app/Contents/Resources/julia/bin/julia
0x10e189000 - 0x10e312ff7 +libjulia.0.5.2.dylib (0) <4E8849D2-8A7B-3797-9EAC-8CADD9EE1BEE> /Applications/Julia-0.5.app/Contents/Resources/julia/lib/libjulia.0.5.2.dylib
0x10e5f9000 - 0x10f602ff7 +libLLVM-3.7.dylib (0) <05AE218C-1CE2-32C4-A7B2-952F60F4619C> /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/libLLVM-3.7.dylib
0x10fb3b000 - 0x1118eeff7 +sys.dylib (0) <34ABB9C3-A8C2-3924-96FE-CAA963899C1E> /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib
0x3148cd000 - 0x3148cffff +libdSFMT.dylib (0) <7FFA0121-C161-31AA-B74B-9F0E29CDE7A3> /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/libdSFMT.dylib
0x3148d2000 - 0x31490bfe7 +libquadmath.0.dylib (0) <FB40BC93-613B-3268-AC2D-8C25846F7323> /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/libquadmath.0.dylib
0x31491a000 - 0x31491bff7 +libsuitesparseconfig.dylib (0) <E4FB5166-CE72-31F4-A508-84D12F766481> /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/libsuitesparseconfig.dylib
0x31491e000 - 0x31491eff7 +libsuitesparse_wrapper.dylib (0) <244B1012-7E53-3084-A307-69637724EC56> /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/libsuitesparse_wrapper.dylib
0x314ae5000 - 0x314b68ff7 +libpcre2-8.0.dylib (4) <DA720706-FB17-3116-904A-8EA1A46DCAB9> /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/libpcre2-8.0.dylib
0x314c6d000 - 0x314cdafdf +libgmp.10.dylib (14) <07013073-3AE8-38B3-8AD4-7FED2F599623>
truncated here
VM_ALLOCATE (reserved) 7.8G reserved VM address space (unallocated)
__DATA 24.5M
__IMAGE 528K
__LINKEDIT 96.7M
__TEXT 345.2M
__UNICODE 552K
mapped file 98.1M
shared memory 4K
=========== =======
TOTAL 8.9G
TOTAL, minus reserved VM space 1.1G
Model: MacBookAir5,2, BootROM MBA51.00EF.B05, 2 processors, Intel Core i5, 1.8 GHz, 4 GB, SMC 2.5f9
Graphics: Intel HD Graphics 4000, Intel HD Graphics 4000, Built-In
Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1600 MHz, 0x802C, 0x384B54463235363634485A2D3147364D3120
Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1600 MHz, 0x802C, 0x384B54463235363634485A2D3147364D3120
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xE9), Broadcom BCM43xx 1.0 (7.15.166.24.3)
Bluetooth: Version 4.3.6f4 17916, 3 services, 18 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en0
Serial ATA Device: APPLE SSD SM128E, 121.33 GB
USB Device: Hub
USB Device: Hub
USB Device: BRCM20702 Hub
USB Device: Bluetooth USB Host Controller
USB Device: Apple Internal Keyboard / Trackpad
USB Device: Internal Memory Card Reader
USB Device: Hub
USB Device: FaceTime HD Camera (Built-in)
Thunderbolt Bus: MacBook Air, Apple Inc., 23.4