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

Image plot in Juno (with GR) crashes Julia #1773

Closed
dlfivefifty opened this issue Oct 2, 2018 · 2 comments
Closed

Image plot in Juno (with GR) crashes Julia #1773

dlfivefifty opened this issue Oct 2, 2018 · 2 comments

Comments

@dlfivefifty
Copy link
Contributor

dlfivefifty commented Oct 2, 2018

julia> using Colors, Plots
julia> img = Gray.(rand(100,100));

julia> plot(img; xlims=(-1,1),ylims=(-1,1))
┌ Warning: You have set `PLOTS_DEFAULT_BACKEND=GR` but `Plots` is not loaded.
└ @ Plots ~/.julia/packages/Plots/UtVfv/src/backends.jl:149
julia(89239,0x7fff9e80e380) malloc: *** mach_vm_map(size=18446744073179414528) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
GKS: can't allocate memory

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

Running in a REPL is fine though. Removing ylims argument prevents the crash.

@dlfivefifty
Copy link
Contributor Author

It doesn't crash in IJulia but the behaviour seems to have changed: before xlims and ylims would stretch an image to fit in the specified box, but now the image is cropped.

@t-bltg
Copy link
Member

t-bltg commented Nov 27, 2022

Cannot reproduce.

@t-bltg t-bltg closed this as not planned Won't fix, can't repro, duplicate, stale Nov 27, 2022
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

2 participants