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

pyplot crushes Julia [BUG] #3928

Closed
hurricane007 opened this issue Nov 8, 2021 · 3 comments
Closed

pyplot crushes Julia [BUG] #3928

hurricane007 opened this issue Nov 8, 2021 · 3 comments

Comments

@hurricane007
Copy link

I accidentally uninstalled miniconda, then reinstalled everything back but got this bug. Then I deleted all the packages (delete the whole folder) and reinstalled everything. Plots.jl was installed in v1.6.8, it was another error.

Then ]update Plots updated it to v1.15.2. by ] add Plots@1.23.5, the Plots.jl was updated to the latest version, but the bug came back:

Details

julia> pyplot()
Plots.PyPlotBackend()

julia> plot(sin, 1:0.1:10)

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 0x7ff9143487f7 -- unknown function (ip: 00007ff9143487f7)
in expression starting at none:0
unknown function (ip: 00007ff9143487f7)
unknown function (ip: 00007ff91434202f)
unknown function (ip: 00007ff91434c223)
unknown function (ip: 00007ff922b34e01)
unknown function (ip: 00007ff922b39dd8)
PyMethodDef_RawFastCallKeywords at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyMethodDef_RawFastCallKeywords at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyEval_EvalCodeWithName at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyMethodDef_RawFastCallKeywords at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyEval_EvalCodeWithName at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyMethodDef_RawFastCallKeywords at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyEval_EvalCodeWithName at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyMethodDef_RawFastCallKeywords at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyEval_EvalCodeWithName at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyMethodDef_RawFastCallKeywords at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyEval_EvalCodeWithName at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyMethodDef_RawFastCallKeywords at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyEval_EvalCodeWithName at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyFunction_FastCallDict at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PySlice_New at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyEval_EvalCodeWithName at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyMethodDef_RawFastCallKeywords at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyEval_EvalCodeWithName at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyMethodDef_RawFastCallKeywords at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyEval_EvalCodeWithName at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyFunction_FastCallDict at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PySlice_New at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyEval_EvalCodeWithName at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyFunction_FastCallDict at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PySlice_New at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyEval_EvalCodeWithName at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyMethodDef_RawFastCallKeywords at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyEval_EvalCodeWithName at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyMethodDef_RawFastCallKeywords at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyFunction_FastCallDict at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PySlice_New at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyEval_EvalCodeWithName at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyFunction_FastCallDict at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PySlice_New at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyEval_EvalFrameDefault at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyEval_EvalCodeWithName at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyFunction_FastCallDict at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyMethodDef_RawFastCallDict at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
PyObject_Call at C:\Users\hez\.julia\conda\3\python37.dll (unknown line)
macro expansion at C:\Users\hez\.julia\packages\PyCall\3fwVL\src\exception.jl:95 [inlined]
#107 at C:\Users\hez\.julia\packages\PyCall\3fwVL\src\pyfncall.jl:43 [inlined]
disable_sigint at .\c.jl:458 [inlined]
__pycall! at C:\Users\hez\.julia\packages\PyCall\3fwVL\src\pyfncall.jl:42 [inlined]
_pycall! at C:\Users\hez\.julia\packages\PyCall\3fwVL\src\pyfncall.jl:29
_pycall! at C:\Users\hez\.julia\packages\PyCall\3fwVL\src\pyfncall.jl:11 [inlined]
#_#114 at C:\Users\hez\.julia\packages\PyCall\3fwVL\src\pyfncall.jl:86 [inlined]
PyObject at C:\Users\hez\.julia\packages\PyCall\3fwVL\src\pyfncall.jl:86
py_drawfig at C:\Users\hez\.julia\packages\Plots\1RWWg\src\backends\pyplot.jl:287
_before_layout_calcs at C:\Users\hez\.julia\packages\Plots\1RWWg\src\backends\pyplot.jl:1458
prepare_output at C:\Users\hez\.julia\packages\Plots\1RWWg\src\plot.jl:217
showjuno at C:\Users\hez\.julia\packages\Plots\1RWWg\src\output.jl:251
show at C:\Users\hez\.julia\packages\Plots\1RWWg\src\output.jl:210
unknown function (ip: 00000000972aaa6f)
show at .\multimedia.jl:111
displayinplotpane at C:\Users\hez\.julia\packages\Atom\bfwsW\src\display\showdisplay.jl:67
display at C:\Users\hez\.julia\packages\Atom\bfwsW\src\display\showdisplay.jl:118
display at .\multimedia.jl:328
jl_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\julia.h:1703 [inlined]
jl_f__call_latest at /cygdrive/c/buildbot/worker/package_win64/build/src\builtins.c:714
#invokelatest#2 at .\essentials.jl:708 [inlined]
invokelatest at .\essentials.jl:706 [inlined]
print_response at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\REPL\src\REPL.jl:247
#40 at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\REPL\src\REPL.jl:231
jfptr_YY.40_55978.clone_1 at C:\Users\hez\Downloads\julia-1.6\lib\julia\sys.dll (unknown line)
with_repl_linfo at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\REPL\src\REPL.jl:462
print_response at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\REPL\src\REPL.jl:229
do_respond at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\REPL\src\REPL.jl:798
unknown function (ip: 000000005e12f5a7)
jl_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\julia.h:1703 [inlined]
jl_f__call_latest at /cygdrive/c/buildbot/worker/package_win64/build/src\builtins.c:714
#invokelatest#2 at .\essentials.jl:708 [inlined]
invokelatest at .\essentials.jl:706 [inlined]
run_interface at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\REPL\src\LineEdit.jl:2441
jfptr_run_interface_56082.clone_1 at C:\Users\hez\Downloads\julia-1.6\lib\julia\sys.dll (unknown line)
run_frontend at C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\REPL\src\REPL.jl:1126
#44 at .\task.jl:411
jfptr_YY.44_54905.clone_1 at C:\Users\hez\Downloads\julia-1.6\lib\julia\sys.dll (unknown line)
jl_apply at /cygdrive/c/buildbot/worker/package_win64/build/src\julia.h:1703 [inlined]
start_task at /cygdrive/c/buildbot/worker/package_win64/build/src\task.c:833
Allocations: 116731946 (Pool: 116698161; Big: 33785); GC: 100

Backends

This bug occurs on ( insert x below ) only for pyplot

Backend yes no untested
gr (default)
pyplot x
plotlyjs
pgfplotsx
unicodeplots
inspectdr
gaston

Versions

Plots.jl version: v1.23.5
Backend version (]st -m <backend(s)>): PyPlot v2.10.0
Output of versioninfo():

versioninfo()
Julia Version 1.6.3
Commit ae8452a9e0 (2021-09-23 17:34 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, skylake)
Environment:
  JULIA_EDITOR = "C:\Users\hez\AppData\Local\atom\app-1.58.0\atom.exe"  -a
  JULIA_NUM_THREADS = 4
@t-bltg
Copy link
Member

t-bltg commented Nov 29, 2021

Try to run:

(@v1.6) pkg> build PyCall

@hurricane007
Copy link
Author

Thanks for the reply. Actually, I tried this many times but didn't work.

@hurricane007
Copy link
Author

This problem has been solved by install Microsoft Visual C++ Redistributable Package.
https://stackoverflow.com/questions/63410060/dll-load-failed-while-importing-ft2font-the-specified-module-could-not-be-found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants