I just upgraded Winston to version 0.13.1 and it does not work anymore. Tk may be the culprit, it has been upgraded to 0.5.2 and Cairo to 0.3.1. I am using julia version 0.6.1.
julia> using Winston
julia> plot(x -> sin(x), -pi,pi)
error during Tk callback:
ERROR: objects of type Cairo.#destroy cannot be finalized
error during Tk callback:
ERROR: error during Tk callback: objects of type Cairo.#destroy cannot be finalized
Stacktrace:ERROR:
objects of type Cairo.#destroy cannot be finalized [1]
finalizer
signal (11): segmentation fault
while loading no file, in expression starting on line 0
TkEventDeadWindow at /usr/lib/x86_64-linux-gnu/libtk8.6.so (unknown line)
Tk_DestroyWindow at /usr/lib/x86_64-linux-gnu/libtk8.6.so (unknown line)
Tk_DestroyWindow at /usr/lib/x86_64-linux-gnu/libtk8.6.so (unknown line)
Tk_DestroyWindow at /usr/lib/x86_64-linux-gnu/libtk8.6.so (unknown line)
unknown function (ip: 0x7ff793cd963f)
TclNRRunCallbacks at /usr/lib/x86_64-linux-gnu/libtcl8.6.so (unknown line)
unknown function (ip: 0x7ff79c3c9e6b)
TclNRRunCallbacks at /usr/lib/x86_64-linux-gnu/libtcl8.6.so (unknown line)
unknown function (ip: 0x7ff79c3c9843)
TclServiceIdle at /usr/lib/x86_64-linux-gnu/libtcl8.6.so (unknown line)
Tcl_DoOneEvent at /usr/lib/x86_64-linux-gnu/libtcl8.6.so (unknown line)
tcl_doevent at ~/.julia/v0.6/Tk/src/tkwidget.jl:20
#300 at ./event.jl:436
unknown function (ip: 0x7ff79ee76aff)
jl_call_fptr_internal at ~/langages/julia/src/julia_internal.h:339 [inlined]
jl_call_method_internal at ~/langages/julia/src/julia_internal.h:358 [inlined]
jl_apply_generic at ~/langages/julia/src/gf.c:1926
jl_apply at ~/langages/julia/src/julia.h:1424 [inlined]
start_task at ~/langages/julia/src/task.c:267
unknown function (ip: 0xffffffffffffffff)
Allocations: 16695939 (Pool: 16694045; Big: 1894); GC: 35
Process julia segmentation fault at Tue Dec 5 11:55:43 2017
I just upgraded Winston to version 0.13.1 and it does not work anymore. Tk may be the culprit, it has been upgraded to 0.5.2 and Cairo to 0.3.1. I am using julia version 0.6.1.
EDIT: Cairo is probably the culprit and this is discussed there: https://github.com/JuliaGraphics/Cairo.jl/issues/212
EDIT2: the problem is solved by upgrading Cairo to 0.4.0.