-
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
gmtread fails #176
Comments
Hi. Yes, this is the right place for reporting. Though the problem is apparently occurring inside the gmt.dll lib itself. I mean the GMT program, not the GMT.jl wrapper. Another thing is that I'll need an example file to debug this crash. You can also do this other test. On the Windows command line (not Julia) please run this and tell me what it prints (assuming that you are running it from the same dir as the tif file)
|
No problems |
Hmm, so all looks fine in that side. Now I really need a file to debug. My quick test case that I actually run before posting in the forum worked perfectly fine. |
This is not going very well! Looks like Github opened the file to display it. |
You can try to zip it and post the compressed file.
|
OK, I could download the image (renamed to
I find strange that in your stack frame I cannot find any reference to the |
Thankyou. I think GMT did not install properly. |
Aha! pkg> test GMT fails |
This fails also gmtwrite("lixo.tif", rand(UInt8,32,32,3), driver=:GTiff) There must be something wrong in the way I installed the Windows gmt6 package. |
Had to drive home too. So all points out to a lack of communication between Having to manually had the GMT bin directory to your PATH is a sad limitation of the NSIS program that is used to create the GMT installer but that should just be a minor annoyance and cannot explain the mystery since your test on Windows cmd (or was ir PowerShell?) worked fine. Did you install GMT in the default location (c:\programs\gmt6)? I mean, you didn't install it in a directory with spaces in the name, right? I also guess that this works fine for you
but not
|
Works for me: julia> run( |
gmt fails ulia> gmt("psxy -") usage: psxy [ ] -J -R///[//][+r] [-A[m|p|x|y]][-B] [-C] [-D/] [-E[x|y|X|Y][+a][+c[l|f]][+n][+p][+w]] [-F] [-G] [-I] [-K] [-L[+b|d|D][+xl|r|x0][+yb|t|y0][+p]] [-N[c|r]] [-O] [-P] [-S[][[unit]]] [-T] [-U[][+c][+j][+o/]] [-V[]] [-W[][]] [-X[a|c|r][]] [-Y[a|c|r][]] [-a=[,...]] [-bi[][t][w][+l|b]] [-di] [-e[~]] [-f[i|o]] [-g[a]x|y|d|X|Y|D|[]z[-|+][]] [-h[i|o][][+c][+d][+r][+t<title>]] [-i[+l][+s][+o][,...]] [-p[x|y|z][/[/]][+w/[/][+v/]] [-t] [-:[i|o]] [--PAR=] ERROR: Something went wrong when calling the module. GMT error number = 1 |
GMT is installed in c:\programs\gmt6 |
No, the When you run the tests it seemed to me that it failed in the first one. Can you please repeat it on the REPL. Just this
Confess that I'm confused. Tested the same GMT binaries in a different machine and it worked fine there too. |
No problems! julia> G = gmt("grdmath -R-2/2/-2/2 -I0.5 X Y MUL"); |
get_grid is being called with get_grid(::Ptr{Nothing}, ::Ptr{Nothing}) |
I did a pkg> remove GMT ┌ Warning: Unknown units request (lolo) Ignoring it |
Arggh. Sorry for wasting your time. I did not have Ghostscript installed. ┌ Warning: Unknown units request (lolo) Ignoring it |
Clearly I have to also download dcw-gmt and gshhg-gmt |
The gmtread is working now. I have not unpacked and installed dcw-gmt or gshhg-gmt |
Fine. Don't understand why it was not working before (the same tests are run by Travis CI whenever I make a commit) but good that it's working now. About the ghostscritp ... the README warns that it's needed. Maybe you could post in the forum that things are solved and it works? |
Thankyou for the patience and all the help. Closed! |
I really am not sure this is the correct place to file this issue. So apologies if GMT.jl is not at fault!
Environment - Julia 1.1.0 Windows 10 OS
I installed GMT version 6.0.0 from https://w3.ualg.pt/~jluis/mirone/downloads/gmt.html
I run :
I = gmtread("world.tif", img=true);
then it crashes
[Command: julia C:\Users\hearn\Documents\Satellite\Crawley\gmtread.jl]
Please submit a bug report with steps to reproduce this fault, and any error messages that follow (in their entirety). Thanks.
Exception: EXCEPTION_ACCESS_VIOLATION at 0xb30e4c0 -- getindex at .\array.jl:730 [inlined]
macro expansion at .\multidimensional.jl:671 [inlined]
macro expansion at .\cartesian.jl:64 [inlined]
macro expansion at .\multidimensional.jl:666 [inlined]
_unsafe_getindex! at .\multidimensional.jl:662 [inlined]
_unsafe_getindex at .\multidimensional.jl:656
in expression starting at C:\Users\hearn\Documents\Satellite\Crawley\gmtread.jl:3
macro expansion at .\multidimensional.jl:669 [inlined]
macro expansion at .\cartesian.jl:64 [inlined]
macro expansion at .\multidimensional.jl:666 [inlined]
_unsafe_getindex! at .\multidimensional.jl:662 [inlined]
_unsafe_getindex at .\multidimensional.jl:656
getindex at .\multidimensional.jl:642 [inlined]
getindex at .\abstractarray.jl:927
unknown function (ip: 000000000B30E1CA)
jl_fptr_trampoline at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1864
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2219
get_image at C:\Users\hearn.julia\packages\GMT\v32Hn\src\gmt_main.jl:519
GMTJL_Get_Object at C:\Users\hearn.julia\packages\GMT\v32Hn\src\gmt_main.jl:850
gmt at C:\Users\hearn.julia\packages\GMT\v32Hn\src\gmt_main.jl:264
#gmtread#46 at C:\Users\hearn.julia\packages\GMT\v32Hn\src\gmtreadwrite.jl:120
jl_fptr_trampoline at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1864
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2219 [inlined]
jl_apply at /home/Administrator/buildbot/worker/package_win64/build/src\julia.h:1571 [inlined]
jl_invoke at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:56
#gmtread at .\none:0
unknown function (ip: 000000000B2E104A)
jl_fptr_trampoline at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:1864
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2219
do_call at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:323
eval_value at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:411
eval_stmt_value at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:362 [inlined]
eval_body at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:755
jl_interpret_toplevel_thunk_callback at /home/Administrator/buildbot/worker/package_win64/build/src\interpreter.c:885
unknown function (ip: FFFFFFFFFFFFFFFE)
unknown function (ip: 00000000062F2C6F)
unknown function (ip: 0000000000000004)
jl_toplevel_eval_flex at /home/Administrator/buildbot/worker/package_win64/build/src\toplevel.c:764
jl_toplevel_eval_flex at /home/Administrator/buildbot/worker/package_win64/build/src\toplevel.c:713
jl_parse_eval_all at /home/Administrator/buildbot/worker/package_win64/build/src\ast.c:883
jl_load at /home/Administrator/buildbot/worker/package_win64/build/src\toplevel.c:826 [inlined]
jl_load at /home/Administrator/buildbot/worker/package_win64/build/src\toplevel.c:833
include at .\boot.jl:326 [inlined]
include_relative at .\loading.jl:1038
include at .\sysimg.jl:29
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2219
exec_options at .\client.jl:267
_start at .\client.jl:436
jl_apply_generic at /home/Administrator/buildbot/worker/package_win64/build/src\gf.c:2219
jl_apply at /home/Administrator/buildbot/worker/package_win64/build/src\julia.h:1571 [inlined]
true_main at /home/Administrator/buildbot/worker/package_win64/build/ui\repl.c:96
wmain at /home/Administrator/buildbot/worker/package_win64/build/ui\repl.c:217
__tmainCRTStartup at /usr/src/debug/mingw64-x86_64-runtime-5.0.3-1/crt\crtexe.c:329
mainCRTStartup at /usr/src/debug/mingw64-x86_64-runtime-5.0.3-1/crt\crtexe.c:212
BaseThreadInitThunk at C:\WINDOWS\System32\KERNEL32.DLL (unknown line)
RtlUserThreadStart at C:\WINDOWS\SYSTEM32\ntdll.dll (unknown line)
Allocations: 12000481 (Pool: 11997593; Big: 2888); GC: 26
[Finished in 9.899s]
The text was updated successfully, but these errors were encountered: