Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with gr() #385

Closed
ghost opened this issue Jan 25, 2021 · 1 comment
Closed

Problem with gr() #385

ghost opened this issue Jan 25, 2021 · 1 comment

Comments

@ghost
Copy link

ghost commented Jan 25, 2021

Dear all,
When I compile

using Plots
import Contour: contours, levels, level, lines, coordinates
f(x,y) = 2 - (x^2 + y^2)
xs = range(-5, stop=5, length=100)
ys = range(-5, stop=5, length=100)
zs = [f(x,y) for y in ys, x in xs]
gr()
contour(xs, ys, zs, levels = [-1.0, 0.0, 1.0])

a big error message apperars and Julia restart. See:

julia> GKS: file open error (C:\Users\Usuário\.julia\packages\GR\RlE5Y\src\..\deps\gr\FONTS\GKSFONT.DAT)
open: No such file or directory
GKS: svgplugin.dll: can't load library, error 126 (0x7e)
GKS: could not open font file: C:\Users\Usuário\.julia\packages\GR\RlE5Y\src\..\deps\gr\FONTS\CMUSerif-Math.ttf
GKS: could not open font file: C:\Users\Usuário\.julia\packages\GR\RlE5Y\src\..\deps\gr\FONTS\DejaVuSans.ttf
GKS: glyph missing from current font: 73
GKS: could not load glyph: 0


Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0x5bdf5698 -- gks_ft_get_kerning at C:\Users\Usußrio\.julia\packages\GR\RlE5Y\deps\gr\bin\libGKS.dll (unknown line)
in expression starting at none:0
gks_ft_get_kerning at C:\Users\Usußrio\.julia\packages\GR\RlE5Y\deps\gr\bin\libGKS.dll (unknown line)
gks_ft_get_kerning at C:\Users\Usußrio\.julia\packages\GR\RlE5Y\deps\gr\bin\libGKS.dll (unknown line)
gks_ft_get_kerning at C:\Users\Usußrio\.julia\packages\GR\RlE5Y\deps\gr\bin\libGKS.dll (unknown line)
gks_inq_text_extent at C:\Users\Usußrio\.julia\packages\GR\RlE5Y\deps\gr\bin\libGKS.dll (unknown line)
gr_inqtext at C:\Users\Usußrio\.julia\packages\GR\RlE5Y\deps\gr\bin\libGR.dll (unknown line)
inqtext at C:\Users\Usuário\.julia\packages\GR\RlE5Y\src\GR.jl:663 [inlined]
gr_inqtext at C:\Users\Usuário\.julia\packages\Plots\lmp2A\src\backends\gr.jl:225
gr_text_size at C:\Users\Usuário\.julia\packages\Plots\lmp2A\src\backends\gr.jl:666
gr_get_ticks_size at C:\Users\Usuário\.julia\packages\Plots\lmp2A\src\backends\gr.jl:681
unknown function (ip: 0000000008141730)
_update_min_padding! at C:\Users\Usuário\.julia\packages\Plots\lmp2A\src\backends\gr.jl:830
iterate at .\generator.jl:47
_collect at .\array.jl:699
collect_similar at .\array.jl:628
unknown function (ip: 0000000001c12d44)
map at .\abstractarray.jl:2162
_update_min_padding! at C:\Users\Usuário\.julia\packages\Plots\lmp2A\src\layouts.jl:282
prepare_output at C:\Users\Usuário\.julia\packages\Plots\lmp2A\src\plot.jl:189
showjuno at C:\Users\Usuário\.julia\packages\Plots\lmp2A\src\output.jl:255
show at C:\Users\Usuário\.julia\packages\Plots\lmp2A\src\output.jl:212
unknown function (ip: 000000000813933f)
show at .\multimedia.jl:111
displayinplotpane at C:\Users\Usuário\.julia\packages\Atom\MxsDb\src\display\showdisplay.jl:67
displayandrender at C:\Users\Usuário\.julia\packages\Atom\MxsDb\src\display\showdisplay.jl:131
#204 at C:\Users\Usuário\.julia\packages\Atom\MxsDb\src\eval.jl:138
unknown function (ip: 0000000034199673)
jl_f_tuple at C:\Users\Usußrio\AppData\Local\JuliaPro-1.5.3-1\Julia-1.5.3\bin\libjulia.dll (unknown line)        
jl_f__apply_latest at C:\Users\Usußrio\AppData\Local\JuliaPro-1.5.3-1\Julia-1.5.3\bin\libjulia.dll (unknown line)
#invokelatest#1 at .\essentials.jl:710 [inlined]
invokelatest at .\essentials.jl:709 [inlined]
macro expansion at C:\Users\Usuário\.julia\packages\Media\ItEPc\src\dynamic.jl:24 [inlined]
eval at C:\Users\Usuário\.julia\packages\Atom\MxsDb\src\eval.jl:114
unknown function (ip: 00000000341d9943)
jl_f_tuple at C:\Users\Usußrio\AppData\Local\JuliaPro-1.5.3-1\Julia-1.5.3\bin\libjulia.dll (unknown line)
jl_f__apply_latest at C:\Users\Usußrio\AppData\Local\JuliaPro-1.5.3-1\Julia-1.5.3\bin\libjulia.dll (unknown line)
#invokelatest#1 at .\essentials.jl:710
jl_f_tuple at C:\Users\Usußrio\AppData\Local\JuliaPro-1.5.3-1\Julia-1.5.3\bin\libjulia.dll (unknown line)
invokelatest at .\essentials.jl:709
jl_f_tuple at C:\Users\Usußrio\AppData\Local\JuliaPro-1.5.3-1\Julia-1.5.3\bin\libjulia.dll (unknown line)
macro expansion at C:\Users\Usuário\.julia\packages\Atom\MxsDb\src\eval.jl:41 [inlined]
#184 at .\task.jl:356
unknown function (ip: 000000001dfb7783)
jl_finish_task at C:\Users\Usußrio\AppData\Local\JuliaPro-1.5.3-1\Julia-1.5.3\bin\libjulia.dll (unknown line)
Allocations: 193247357 (Pool: 193177243; Big: 70114); GC: 152

Julia has exited.
Press Enter to start a new session.

I am with JuliaPro version 1.5.3 and using the following packages and its versions:

Status `C:\Users\Usuário\.julia\environments\JuliaPro_v1.5.3-1\Project.toml`
  [c52e3926] Atom v0.12.25 ⚲
  [d38c429a] Contour v0.5.7
  [5789e2e9] FileIO v1.4.5
  [2e9cd046] Gurobi v0.9.7
  [7073ff75] IJulia v1.23.1
  [c601a237] Interact v0.10.3        
  [033835bb] JLD2 v0.3.2
  [4076af6c] JuMP v0.21.5
  [e5e0dc1b] Juno v0.8.4 ⚲
  [2fda8390] LsqFit v0.12.0
  [4722fa14] PkgAuthentication v1.1.0
  [91a5bcdd] Plots v1.10.1
  [44d3d7a6] Weave v0.10.6
  [37e2e46d] LinearAlgebra
  [de0858da] Printf
  [9a3f8284] Random
  [10745b16] Statistics

Thank you for the help.

@twavv
Copy link
Member

twavv commented Jan 25, 2021

This is not an interact but. You are not even using Interact.jl in the code snippet above.

Please open this issue against the Plots.jl repository or GR.jl repository.

@twavv twavv closed this as completed Jan 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant