relax icon indicating copy to clipboard operation
relax copied to clipboard

GMT fatal error

Open rzinke opened this issue 5 years ago • 16 comments

I receive a "fatal error" when running the practice file for a left-lateral strike slip fault. I copied and pasted the code from Figure 6 in the user documentation. When I run the launch file, I get the message:

GMT Fatal Error: No SI/US keyword in GMT configuration file (FONT_LABEL = 12p,Helvetica,black )

None of the .grd files are produced. Has anyone encountered this error before?

Thanks

rzinke avatar Jun 22 '20 21:06 rzinke

Hi Rob,

This is probably caused by running Relax when have the libraries for GMT 5.0 or a superior version in your PATH. Do Relax behave correctly otherwise? Does it produce the right output and can you visualize it okay?

Sylvain


From: rzinke [email protected] Sent: Monday, June 22, 2020 2:50:17 PM To: geodynamics/relax [email protected] Cc: Subscribed [email protected] Subject: [geodynamics/relax] GMT fatal error (#1)

I receive a "fatal error" when running the practice file for a left-lateral strike slip fault. I copied and pasted the code from Figure 6 in the user documentation. When I run the launch file, I get the message:

GMT Fatal Error: No SI/US keyword in GMT configuration file (FONT_LABEL = 12p,Helvetica,black )

Is this a concern?

Thanks

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/geodynamics/relax/issues/1__;!!LIr3w8kk_Xxm!9IaSyCD6i6M9NYoplLAXb3EINFuDPKcnAz7IIFmFFajUS3KWjbKzFShXEQF5HOQ$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ABJHTWHHLQPXHUAZEFZKJQLRX7GZRANCNFSM4OFCBY6A__;!!LIr3w8kk_Xxm!9IaSyCD6i6M9NYoplLAXb3EINFuDPKcnAz7IIFmFFajUS3KWjbKzFShXvNAiz-E$.

sbarbot avatar Jun 22 '20 23:06 sbarbot

Hi @sbarbot, I removed the paths to GMT 6.0 in my shell. Relax does not produce the necessary files. It only produces these: cgrid.vtp report.txt rfaults-001.vtp rfaults-001.xy

The error message looks like this: coseismic event 001 I | Dt | tm(ve) | tm(pl) | tm(as) | t/tmax | power | C:E^i | GMT Fatal Error: No SI/US keyword in GMT configuration file (FONT_LABEL = 12p,Helvetica,black )

This is strange to me, because a few weeks ago I was able to run the example script successfully.

rzinke avatar Jun 23 '20 04:06 rzinke

Hi Rob,

Are you running the binary files? If so, you need to first run

source ./setup.sh

to set the environment variables correctly.

S.


From: rzinke [email protected] Sent: Monday, June 22, 2020 9:50:08 PM To: geodynamics/relax [email protected] Cc: Sylvain Barbot [email protected]; Mention [email protected] Subject: Re: [geodynamics/relax] GMT fatal error (#1)

Hi @sbarbothttps://urldefense.com/v3/__https://github.com/sbarbot__;!!LIr3w8kk_Xxm!_s5pHnZAvw8voqo8dPbyYQh6clnz4647ZRYnSqkYRBiEAdembuVI8lC6AZ4b8Us$, I removed the paths to GMT 6.0 in my shell. Relax does not produce the necessary files. It only produces these: cgrid.vtp report.txt rfaults-001.vtp rfaults-001.xy

The error message looks like this: coseismic event 001 I | Dt | tm(ve) | tm(pl) | tm(as) | t/tmax | power | C:E^i | GMT Fatal Error: No SI/US keyword in GMT configuration file (FONT_LABEL = 12p,Helvetica,black )

This is strange to me, because a few weeks ago I was able to run the example script successfully.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/geodynamics/relax/issues/1*issuecomment-647905516__;Iw!!LIr3w8kk_Xxm!_s5pHnZAvw8voqo8dPbyYQh6clnz4647ZRYnSqkYRBiEAdembuVI8lC6XRp7X-U$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ABJHTWDSV7SCQASFRNQIZLDRYAYABANCNFSM4OFCBY6A__;!!LIr3w8kk_Xxm!_s5pHnZAvw8voqo8dPbyYQh6clnz4647ZRYnSqkYRBiEAdembuVI8lC6TssUK6Y$.

sbarbot avatar Jun 23 '20 04:06 sbarbot

Yes, in the Relax folder I first ran $ source setup.sh and it reported "Ready to run Relax." Here is my path /Users/rzinke/Relax:/Users/rzinke/Relax/util:/Users/rzinke/Relax:/Users/rzinke/Relax/util:/anaconda3/condabin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin

rzinke avatar Jun 23 '20 04:06 rzinke

Check LD_LIBRARY_PATH. You may have another gmt version libraries in there. S.


From: rzinke [email protected] Sent: Monday, June 22, 2020 9:57:03 PM To: geodynamics/relax [email protected] Cc: Sylvain Barbot [email protected]; Mention [email protected] Subject: Re: [geodynamics/relax] GMT fatal error (#1)

Yes, in the Relax folder I first ran $ source setup.sh and it reported "Ready to run Relax." Here is my path /Users/rzinke/Relax:/Users/rzinke/Relax/util:/Users/rzinke/Relax:/Users/rzinke/Relax/util:/anaconda3/condabin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/geodynamics/relax/issues/1*issuecomment-647907350__;Iw!!LIr3w8kk_Xxm!_26lqICR1G_roLvll0RW2FC_EIerHbdJkh18TVkg28aSUZmJon_4RqRZNawgZxQ$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ABJHTWCSUVSAJKLISZ2WW2LRYAYZ7ANCNFSM4OFCBY6A__;!!LIr3w8kk_Xxm!_26lqICR1G_roLvll0RW2FC_EIerHbdJkh18TVkg28aSUZmJon_4RqRZn3xiKZw$.

sbarbot avatar Jun 23 '20 04:06 sbarbot

Hm, using $ echo $LD_LIBRARY_PATH? How do I check it?

Thanks

rzinke avatar Jun 23 '20 05:06 rzinke

Yes, like that. S.


From: rzinke [email protected] Sent: Monday, June 22, 2020 10:02 PM To: geodynamics/relax Cc: Sylvain Barbot; Mention Subject: Re: [geodynamics/relax] GMT fatal error (#1)

Hm, using $ echo $LD_LIBRARY_PATH? How do I check it?

Thanks

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/geodynamics/relax/issues/1*issuecomment-647908948__;Iw!!LIr3w8kk_Xxm!8U8gMhsABrJfbC7J934z2tDIpxk6n_S9NWw1cRYIVd3Wl0xNe1gsk78VTwcMeE0$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ABJHTWGGSX6KCFVRDU6HEUDRYAZOVANCNFSM4OFCBY6A__;!!LIr3w8kk_Xxm!8U8gMhsABrJfbC7J934z2tDIpxk6n_S9NWw1cRYIVd3Wl0xNe1gsk78VRMlcG-s$.

sbarbot avatar Jun 23 '20 05:06 sbarbot

MT-109587:RobzTests rzinke$ echo $LD_LIBRARY_PATH

returns nothing (blank)

rzinke avatar Jun 23 '20 05:06 rzinke

Have you run

source ./setup.sh

?


From: rzinke [email protected] Sent: Monday, June 22, 2020 10:23 PM To: geodynamics/relax Cc: Sylvain Barbot; Mention Subject: Re: [geodynamics/relax] GMT fatal error (#1)

MT-109587:RobzTests rzinke$ echo $LD_LIBRARY_PATH

returns nothing (blank)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/geodynamics/relax/issues/1*issuecomment-647915311__;Iw!!LIr3w8kk_Xxm!-kdwUZnGn_HHx77x56o45C45iwrTb3CrnHXI053N3GzY5XcX3DuWhlgbIIVcX6A$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ABJHTWF3S6TLKMO2EGMMED3RYA36TANCNFSM4OFCBY6A__;!!LIr3w8kk_Xxm!-kdwUZnGn_HHx77x56o45C45iwrTb3CrnHXI053N3GzY5XcX3DuWhlgbI6rjRd4$.

sbarbot avatar Jun 23 '20 05:06 sbarbot

Yes, and received the message "Ready to run Relax"

rzinke avatar Jun 23 '20 05:06 rzinke

I'll take a look tomorrow and try rebooting some things.

rzinke avatar Jun 23 '20 05:06 rzinke

What about

echo GMT_SHAREDIR echo PROJ_LIB

?


From: rzinke [email protected] Sent: Monday, June 22, 2020 10:48 PM To: geodynamics/relax Cc: Sylvain Barbot; Mention Subject: Re: [geodynamics/relax] GMT fatal error (#1)

I'll take a look tomorrow and try rebooting some things.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/geodynamics/relax/issues/1*issuecomment-647923305__;Iw!!LIr3w8kk_Xxm!5ZApjaas06WGczpT4iNYPyZREDKyoWf7EcP1jkSM01FEa47Qu_zgjBuMJvZti0s$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ABJHTWHWYA4O337CT5KX3H3RYA63NANCNFSM4OFCBY6A__;!!LIr3w8kk_Xxm!5ZApjaas06WGczpT4iNYPyZREDKyoWf7EcP1jkSM01FEa47Qu_zgjBuMyvaHntw$.

sbarbot avatar Jun 23 '20 05:06 sbarbot

MT-109587:Relax rzinke$ echo $GMT_SHAREDIR /Users/rzinke/Relax/share

MT-109587:Relax rzinke$ echo $PROJ_LIB /Users/rzinke/Relax/share

rzinke avatar Jun 23 '20 05:06 rzinke

Here is a somewhat related problem I am having. I tried using Relax on our server, using the GitHub repo. I did: git clone https://github.com/geodynamics/relax.git cd relax source setup.sh

but I got the following error message: *** Error! ***

Source this script from the top-level Relax directory:

cd [directory containing 'setup.sh']
source setup.sh

I don't understand because I am already in the directory containing the setup.sh file, i.e., /u/sar-r2/rzinke/relax

rzinke avatar Jun 23 '20 20:06 rzinke

Hi Rob,

I you're running binaries built from source, you shouldn't use the ./setup.sh script. You should simply update the LD_LIBRARY_PATH and PATH environment variables. There are several examples in the INSTALL files about how to do this for various systems. If you're unfamiliar with the procedure, please ask your system admin. This is pretty standard.

Cheers, Sylvain


From: rzinke [email protected] Sent: Tuesday, June 23, 2020 1:56 PM To: geodynamics/relax Cc: Sylvain Barbot; Mention Subject: Re: [geodynamics/relax] GMT fatal error (#1)

Here is a somewhat related problem I am having. I tried using Relax on our server, using the GitHub repo. I did: git clone https://github.com/geodynamics/relax.githttps://urldefense.com/v3/__https://github.com/geodynamics/relax.git__;!!LIr3w8kk_Xxm!5fnCe2n_HeJ2nUG5YEJWQvLUNiP03VoQnVjl1WN98_o7287u_wjeWVUFSERXxRg$ cd relax source setup.sh

but I got the following error message: *** Error! ***

Source this script from the top-level Relax directory:

cd [directory containing 'setup.sh'] source setup.sh

I don't understand because I am already in the directory containing the setup.sh file, i.e., /u/sar-r2/rzinke/relax

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https://github.com/geodynamics/relax/issues/1*issuecomment-648413275__;Iw!!LIr3w8kk_Xxm!5fnCe2n_HeJ2nUG5YEJWQvLUNiP03VoQnVjl1WN98_o7287u_wjeWVUF2pJenYM$, or unsubscribehttps://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/ABJHTWGWUWRYIJ62RIEHHD3RYEJHXANCNFSM4OFCBY6A__;!!LIr3w8kk_Xxm!5fnCe2n_HeJ2nUG5YEJWQvLUNiP03VoQnVjl1WN98_o7287u_wjeWVUFUH1WAl8$.

sbarbot avatar Jun 23 '20 21:06 sbarbot

Okay, I removed the old version of Relax and replaced it with a fresh copy. Now the examples work.

Something must have gotten mangled up wrt GMT, possibly in the /Users/rzinke/Relax/RobzTests/gmt.conf or /Users/rzinke/Relax/share/gmt.conf files (?). I am not sure.

Thanks for the help, @sbarbot!

rzinke avatar Jun 23 '20 22:06 rzinke