Skip to content

[BUG] surface errors when called after closing plot window #4070

@nilshg

Description

@nilshg

Details

Happened on this in this Discourse post, where another user can also reproduce: https://discourse.julialang.org/t/unmatched-dimensions-for-3d-plot/75180/15

surface fails when calling it after closing a QtTerm window.

On Windows:

julia> using Plots

julia> x = 1:5; y = 1:10; z = [x + y for x  1:5, y  1:10];

julia> surface(x, y, z') # fine 

# Close the Gtk window

julia> surface(x, y, z')
read: No error
Error showing value of type Plots.Plot{Plots.GRBackend}:
ERROR: GR3 error (/workspace/srcdir/gr/lib/gr3/gr3.c, l. 1886): invalid value

on Linux it doesn't fail but hangs indefinitely and then requires Ctrl+C:

julia> surface(x, y, z')
^C^C^C^C^C^CWARNING: Force throwing a SIGINT
Error showing value of type Plots.Plot{Plots.GRBackend}:
ERROR: InterruptException:

Backends

This bug occurs on ( insert x below )

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

Versions

Plots.jl version: 1.25.6
Backend version (]st -m <backend(s)>): 0.63.1
Output of versioninfo():

Julia Version 1.7.1
Commit ac5cc99908 (2021-12-22 19:35 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-12.0.1 (ORCJIT, sandybridge)

(Also tested on Windows)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions