[Cross-posted from Julia Discourse forum here ]
For some reason, I cannot get GMT.jl to work. When I attempt to do the “Hello, World” example plot I get the following message:
Error: /undefined in PSL_movie_label_completion
(skipping the stacktrace...)
ERROR: Something went wrong when calling the module. GMT error number = 78
The “Hello round world” plot also only fails on the plot!
command with PNG formatting. I think this is a problem with GMT.jl because I was able to successfully run several of the GMT examples straight from the shell with no errors. I drilled down into the tests and found that I get the exact same error for lines 342 and 343 in runtests.jl
, which are
logo(GMTjulia=2, savefig="logo.PNG")
logo(GMTjulia=2, savefig="logo.PNG", fmt=:PNG)
And line 489
grdcontour(G, axis="a", fmt="png", color=cpt, pen="+c", X=1, Y=1, N=true, U=[])
and line 1224
grdcontour(G, axis="a", color=cpt, pen="+c", fmt=:png, savefig="lixo")
I don’t know nearly enough to diagnose the problem, but it is suspicious to me that they all use PNG format. This is with GMT.jl v0.25.0 on Ubuntu 20.04 with GMT v6.0.0 from the repos. I also compiled Julia from source (to avoid another issue) and the versioninfo()
is
Julia Version 1.5.2
Commit 539f3ce943* (2020-09-23 23:17 UTC)
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: Intel(R) Core(TM) i7-4770 CPU @ 3.40GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-10.0.1 (ORCJIT, haswell)
Environment:
JULIA_NUM_THREADS = 8
Per a suggestion from the other thread, I tried opening the temporary postscript file that gets created, but it just hangs and never opens. Then I attempted to convert it using ps2pdf
and received the same error as above
Error: /undefined in PSL_movie_label_completion
Operand stack:
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1990 1 3 %oparray_pop 1989 1 3 %oparray_pop 1977 1 3 %oparray_pop 1833 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:731/1123(ro)(G)-- --dict:0/20(G)-- --dict:75/200(L)-- --dict:162/250(L)--
Current allocation mode is local
Current file position is 23293
GPL Ghostscript 9.50: Unrecoverable error, exit code 1
I tried to upload the tmp postscript file per the suggestion from the other thread, but Discourse won’t allow me to upload .ps files.
Any thoughts?
Thank you in advance for your help.