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

[BUG] [GR] EXCEPTION_ACCESS_VIOLATION in libGR.dll #5003

Closed
inkydragon opened this issue Oct 16, 2024 · 2 comments
Closed

[BUG] [GR] EXCEPTION_ACCESS_VIOLATION in libGR.dll #5003

inkydragon opened this issue Oct 16, 2024 · 2 comments

Comments

@inkydragon
Copy link

Details

The following code crashed julia:
Since the error occurs in libGR, it appears to be an error in the GR backend rather than in julia.

xref: JuliaLang/julia#55883

using Plots

f(x, y) = x + y
x = range(0.93, 0.94, length=500)

p = contour(x, x, f; clabels=true)
display(p)

# p = contour(x, x, (x, y) -> x^2 + y^2; clabels=true)
# display(p)
Exception: EXCEPTION_ACCESS_VIOLATION at 0x71a26af -- gradient.constprop.1 at C:\Users\inkyd\.julia\artifacts\09278fa5603af004623baf9d4731c325b0513e44\bin\libGR.dll (unknown line)
in expression starting at none:0
gradient.constprop.1 at C:\Users\inkyd\.julia\artifacts\09278fa5603af004623baf9d4731c325b0513e44\bin\libGR.dll (unknown line)
...
Full logs
julia> p = contour(x, x, f; clabels=true)

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 0x71a26af -- gradient.constprop.1 at C:\Users\inkyd\.julia\artifacts\09278fa5603af004623baf9d4731c325b0513e44\bin\libGR.dll (unknown line)
in expression starting at none:0
gradient.constprop.1 at C:\Users\inkyd\.julia\artifacts\09278fa5603af004623baf9d4731c325b0513e44\bin\libGR.dll (unknown line)
label_line.constprop.0 at C:\Users\inkyd\.julia\artifacts\09278fa5603af004623baf9d4731c325b0513e44\bin\libGR.dll (unknown line)
gr_draw_contours at C:\Users\inkyd\.julia\artifacts\09278fa5603af004623baf9d4731c325b0513e44\bin\libGR.dll (unknown line)
gr_contour at C:\Users\inkyd\.julia\artifacts\09278fa5603af004623baf9d4731c325b0513e44\bin\libGR.dll (unknown line)
contour at C:\Users\inkyd\.julia\packages\GR\nDZgF\src\GR.jl:2638
unknown function (ip: 00000226e650b929)
gr_draw_contour at C:\Users\inkyd\.julia\packages\Plots\kLeqV\src\backends\gr.jl:1928
unknown function (ip: 00000226e650a3d6)
gr_add_series at C:\Users\inkyd\.julia\packages\Plots\kLeqV\src\backends\gr.jl:1778
gr_display at C:\Users\inkyd\.julia\packages\Plots\kLeqV\src\backends\gr.jl:964
#508 at C:\Users\inkyd\.julia\packages\Plots\kLeqV\src\backends\gr.jl:688
jfptr_YY.508_53169 at C:\Users\inkyd\.julia\compiled\v1.10\Plots\ld3vC_pNpxQ.dll (unknown line)
foreach at .\abstractarray.jl:3097
jfptr_foreach_61651 at C:\Users\inkyd\.julia\compiled\v1.10\Plots\ld3vC_pNpxQ.dll (unknown line)
gr_display at C:\Users\inkyd\.julia\packages\Plots\kLeqV\src\backends\gr.jl:688
gr_display at C:\Users\inkyd\.julia\packages\Plots\kLeqV\src\backends\gr.jl:658 [inlined]
#564 at C:\Users\inkyd\.julia\packages\Plots\kLeqV\src\backends\gr.jl:2114 [inlined]
withenv at .\env.jl:257
_display at C:\Users\inkyd\.julia\packages\Plots\kLeqV\src\backends\gr.jl:2113
display at C:\Users\inkyd\.julia\packages\Plots\kLeqV\src\output.jl:169
unknown function (ip: 00000226e6506aa0)
display at .\multimedia.jl:340
unknown function (ip: 00000226e64a77eb)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
jl_f__call_latest at C:/workdir/src\builtins.c:812
#invokelatest#2 at .\essentials.jl:892 [inlined]
invokelatest at .\essentials.jl:889 [inlined]
print_response at C:\workdir\usr\share\julia\stdlib\v1.10\REPL\src\REPL.jl:315
#57 at C:\workdir\usr\share\julia\stdlib\v1.10\REPL\src\REPL.jl:284
jfptr_YY.57_95850.1 at C:\Users\inkyd\.julia\juliaup\julia-1.10.5+0.x64.w64.mingw32\lib\julia\sys.dll (unknown line)
with_repl_linfo at C:\workdir\usr\share\julia\stdlib\v1.10\REPL\src\REPL.jl:569
jfptr_with_repl_linfo_95925.1 at C:\Users\inkyd\.julia\juliaup\julia-1.10.5+0.x64.w64.mingw32\lib\julia\sys.dll (unknown line)
print_response at C:\workdir\usr\share\julia\stdlib\v1.10\REPL\src\REPL.jl:282
do_respond at C:\workdir\usr\share\julia\stdlib\v1.10\REPL\src\REPL.jl:911
jfptr_do_respond_95999.1 at C:\Users\inkyd\.julia\juliaup\julia-1.10.5+0.x64.w64.mingw32\lib\julia\sys.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
jl_f__call_latest at C:/workdir/src\builtins.c:812
#invokelatest#2 at .\essentials.jl:892 [inlined]
invokelatest at .\essentials.jl:889 [inlined]
run_interface at C:\workdir\usr\share\julia\stdlib\v1.10\REPL\src\LineEdit.jl:2656
jfptr_run_interface_94754.1 at C:\Users\inkyd\.julia\juliaup\julia-1.10.5+0.x64.w64.mingw32\lib\julia\sys.dll (unknown line)
run_frontend at C:\workdir\usr\share\julia\stdlib\v1.10\REPL\src\REPL.jl:1312
#62 at C:\workdir\usr\share\julia\stdlib\v1.10\REPL\src\REPL.jl:386
jfptr_YY.62_95901.1 at C:\Users\inkyd\.julia\juliaup\julia-1.10.5+0.x64.w64.mingw32\lib\julia\sys.dll (unknown line)
jl_apply at C:/workdir/src\julia.h:1982 [inlined]
start_task at C:/workdir/src\task.c:1238
Allocations: 20736328 (Pool: 20710620; Big: 25708); GC: 26

Backends

This bug occurs on

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

Versions

  • Plots.jl version: [91a5bcdd] Plots v1.40.8
  • Backend version (]st -m <backend(s)>):
    • [28b8d3ca] GR v0.73.7
    • [b8865327] UnicodePlots v3.6.5
  • Output of versioninfo(): Maybe this is a windows-only issue.
    • Win11 + Julia 1.10: crash
     Julia Version 1.10.5
     Commit 6f3fdf7b36 (2024-08-27 14:19 UTC)
     Build Info:
       Official https://julialang.org/ release
     Platform Info:
       OS: Windows (x86_64-w64-mingw32)
       CPU: 32 × 13th Gen Intel(R) Core(TM) i9-13900HX
       WORD_SIZE: 64
       LIBM: libopenlibm
       LLVM: libLLVM-15.0.7 (ORCJIT, goldmont)
     Threads: 1 default, 0 interactive, 1 GC (on 32 virtual cores)
    • Win11 + Julia 1.11.0: same crash
    • WSL2-Ubuntu + Julia 1.10.5: no error, works well.
     Julia Version 1.10.5
     Commit 6f3fdf7b362 (2024-08-27 14:19 UTC)
     Build Info:
       Official https://julialang.org/ release
     Platform Info:
       OS: Linux (x86_64-linux-gnu)
       CPU: 32 × 13th Gen Intel(R) Core(TM) i9-13900HX
       WORD_SIZE: 64
       LIBM: libopenlibm
       LLVM: libLLVM-15.0.7 (ORCJIT, goldmont)
     Threads: 1 default, 0 interactive, 1 GC (on 32 virtual cores)
@inkydragon inkydragon added the bug label Oct 16, 2024
@inkydragon inkydragon changed the title [BUG] EXCEPTION_ACCESS_VIOLATION in libGR.dll [BUG] [GR] EXCEPTION_ACCESS_VIOLATION in libGR.dll Oct 16, 2024
@t-bltg
Copy link
Member

t-bltg commented Oct 23, 2024

If this error is GR related and can be (preferably) isolated to plain GR commands, it should be reported upstream to https://github.com/jheinen/GR.jl.

This seems a windows only issue.

@inkydragon
Copy link
Author

Yes this is a GR only issue.

using GR

f(x, y) = x + y
x = range(0.93, 0.94, length=500)

p = contour(x, x, f; clabels=true)  # <- crash

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