Skip to content

Juno.@enter exits with error when running PyPlot.plot() #219

Closed
@zhopan77

Description

@zhopan77

I have a very simple script as shown below:

ENV["MPLBACKEND"] = "qt4agg";
using PyPlot

function main()
x = LinRange(0, 3, 10);
y = sin.(x);
plot(x, y);
end

main();

This script runs fine in Juno IDE. Note I have to set up environmental variable MPLBACKEND to "qt4agg" for my Anaconda Python 2.7 matplotlib to work with Julia properly.

However, if I start debugging it by executing
Juno.@Enter main()

I can step until I reach "plot(x, y)", upon executing which the plot shows up (I'm not using Juno plot plane so it's a standalone window), then the debugger exits with the following error message:

julia> Juno.@Enter main()
debug> ERROR: sigatomic_end called in non-sigatomic region
Stacktrace:
[1] #evaluate_call_recurse!#37(::Bool, ::Function, ::Any, ::JuliaInterpreter.Frame, ::Expr) at C:\Users\zpan.julia\packages\JuliaInterpreter\8bMSs\src\interpret.jl:209
[2] evaluate_call_recurse! at C:\Users\zpan.julia\packages\JuliaInterpreter\8bMSs\src\interpret.jl:198 [inlined]
[3] eval_rhs(::Any, ::JuliaInterpreter.Frame, ::Expr) at C:\Users\zpan.julia\packages\JuliaInterpreter\8bMSs\src\interpret.jl:364
[4] step_expr!(::Any, ::JuliaInterpreter.Frame, ::Any, ::Bool) at C:\Users\zpan.julia\packages\JuliaInterpreter\8bMSs\src\interpret.jl:497
[5] step_expr!(::Any, ::JuliaInterpreter.Frame, ::Bool) at C:\Users\zpan.julia\packages\JuliaInterpreter\8bMSs\src\interpret.jl:536
[6] finish!(::Any, ::JuliaInterpreter.Frame, ::Bool) at C:\Users\zpan.julia\packages\JuliaInterpreter\8bMSs\src\commands.jl:14
[7] finish_and_return! at C:\Users\zpan.julia\packages\JuliaInterpreter\8bMSs\src\commands.jl:29 [inlined]
[8] #evaluate_call_recurse!#37(::Bool, ::Function, ::Any, ::JuliaInterpreter.Frame, ::Expr) at C:\Users\zpan.julia\packages\JuliaInterpreter\8bMSs\src\interpret.jl:235
... (the last 7 lines are repeated 5 more times)
[44] evaluate_call_recurse! at C:\Users\zpan.julia\packages\JuliaInterpreter\8bMSs\src\interpret.jl:198 [inlined]
[45] eval_rhs(::Any, ::JuliaInterpreter.Frame, ::Expr) at C:\Users\zpan.julia\packages\JuliaInterpreter\8bMSs\src\interpret.jl:364
[46] step_expr!(::Any, ::JuliaInterpreter.Frame, ::Any, ::Bool) at C:\Users\zpan.julia\packages\JuliaInterpreter\8bMSs\src\interpret.jl:492
[47] step_expr!(::Any, ::JuliaInterpreter.Frame, ::Bool) at C:\Users\zpan.julia\packages\JuliaInterpreter\8bMSs\src\interpret.jl:536
[48] next_line!(::Any, ::JuliaInterpreter.Frame, ::Bool) at C:\Users\zpan.julia\packages\JuliaInterpreter\8bMSs\src\commands.jl:217
[49] debug_command(::Any, ::JuliaInterpreter.Frame, ::Symbol, ::Bool) at C:\Users\zpan.julia\packages\JuliaInterpreter\8bMSs\src\commands.jl:424
[50] debug_command at C:\Users\zpan.julia\packages\JuliaInterpreter\8bMSs\src\commands.jl:477 [inlined]
[51] (::getfield(Atom.JunoDebugger, Symbol("##45#47")){Bool})() at C:\Users\zpan.julia\packages\Atom\mngyX\src\debugger\stepper.jl:81
[52] evalscope(::getfield(Atom.JunoDebugger, Symbol("##45#47")){Bool}) at C:\Users\zpan.julia\packages\Atom\mngyX\src\debugger\stepper.jl:315
[53] startdebugging(::JuliaInterpreter.Frame, ::Bool) at C:\Users\zpan.julia\packages\Atom\mngyX\src\debugger\stepper.jl:55

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions