-
Notifications
You must be signed in to change notification settings - Fork 28
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
can only open more than one gmt session at one time #378
Comments
The responsible is this line |
Is it I think it might be common to use different sessions at one time. For example I have three simulation results need to plot. Each contain the density and temperature of 8 ions species and 7 neutral species at ~2000 time points. Then use It uses I think it might be a solution that Another problem is |
Sorry, your are right, it's line L173 |
No problem. I think the sessions are cleared by |
Just a quick thought, no confirmed with docs. |
The grid is defined by the model and the data is different at each time. Can it speed up this kind of process? I think it's a good idea. To mesh the data outside |
For sure the triangulation done by |
GMT.jl will crash if I run two sessions (
gmtbegin()
,gmtend()
) at one time. Code is proved in the end.The plotting is not problem if I only open one session. But if I open another session which is very common when someone needs to deal with a lot of data, the first one will crash giving the error:
code can reproduce the problem is given below. Please save it as a jl file (e.g., test.jl) and run
julia test.jl
. At the first time it will be OK but if you open another terminal and runjulia test.jl
again before the first one finish. The error above will raise by the first process. If you then open any another session, the second will crash as when it started the first one crashed.psconvert [ERROR]: Failed to truncate file /Users/t/.gmt/sessions/gmt6.1685/gmt_1.ps- (via truncate) back to 22644 bytes
end [ERROR]: Failed to call psconvert
end [ERROR]: process_figures returned error 78
end [ERROR]: No directory named /Users/t/.gmt/sessions/gmt6.1685
ERROR: LoadError: Something went wrong when calling the module. GMT error number = 78
Stacktrace:
[1] error(::String, ::Int32) at ./error.jl:42
[2] gmt(::String) at /Users/t/.julia/packages/GMT/fKV5i/src/gmt_main.jl:241
[3] #gmtend#45 at /Users/t/.julia/packages/GMT/fKV5i/src/gmtbegin.jl:32 [inlined]
[4] gmtend at /Users/t/.julia/packages/GMT/fKV5i/src/gmtbegin.jl:29 [inlined] (repeats 2 times)
using GMT
function plot_one(figname)
@show figname
gmtbegin()
gmtfig(figname, fmt = "png")
rect = [2 2; 2 6; 6 6; 6 2; 2 2];
plot(rect, region = [0 10 0 10], lw = 1, fill = :blue, axis = :a, )
gmtend()
end
function plot_all(path_root)
isdir(path_root) || mkpath(path_root)
for i in 1:100
end
function test()
end
test()
I think it may related to some
global
variable? The second one will delete all sessions directories in~/.gmt
even if the sessions were not started by current process. I personally think it is not very reasonable.The text was updated successfully, but these errors were encountered: