Bug #1102

grdmath won't calculate PQUANT on Mac

Added by Michael 4 months ago. Updated 4 months ago.

Status:ClosedStart date:2017-05-22
Priority:NormalDue date:
Assignee:Paul% Done:

100%

Category:-
Target version:Candidate for next minor release
Affected version:5.x-svn Platform:Mac OS X

Description

Hello, I just installed the latest version of GMT on my Mac running El Capitan. (5.4.1)

I get an error when trying to calculate PQUANT with a 95 setting. I saw an old issue that said closed, but this is still happening for me.

Perhaps I don't have an environment set up properly? Everything else runs OK.

Mike

ERROR: Caught signal number 11 (Segmentation fault) at
0 libgmt.5.4.1.dylib 0x00000001095da3b9 grd_PQUANT + 329
1 ? 0x0000000000000000 0x0 + 0
Stack backtrace:
0 libgmt.5.4.1.dylib 0x00000001093ea023 sig_handler + 579
1 libsystem_platform.dylib 0x00007fff8cc2e52a _sigtramp + 26
2 ? 0x0000000000000000 0x0 + 0
3 libgmt.5.4.1.dylib 0x00000001095c8927 GMT_grdmath + 12695
4 libgmt.5.4.1.dylib 0x00000001093f8da0 GMT_Call_Module + 272
5 gmt 0x00000001093dd1aa main + 1290
6 libdyld.dylib 0x00007fff927c75ad start + 1

test_grdmath.grd (17.8 KB) Michael, 2017-05-23 07:17

Associated revisions

Revision 18245
Added by Paul 4 months ago

Fix issue #1102 in grdmath PQUANT

History

#1 Updated by Paul 4 months ago

  • Status changed from New to In Progress

Could you show us a command of what you are doing and ideally upload the grid. if it is too big then tell us the output of grdinfo on the grid.

#2 Updated by Michael 4 months ago

Here is the grid.

I just ran:

grdmath test_grdmath.grd 95 PQUANT = test_grdmath_out.grd

The grid was created with xyz2grd.

#3 Updated by Michael 4 months ago

I also ran the grdmath command on my Mac laptop and got a similar issue. Perhaps I haven't set my environment up correctly?

I run in tcsh and here is how I set it up:
  1. GMT
    setenv GMT /Applications/GMT-5.4.1.app/Contents/Resources
    setenv PATH ${PATH}:$GMT/bin
    source $GMT/share/tools/gmt_aliases.csh

#4 Updated by Paul 4 months ago

  • Status changed from In Progress to Resolved
  • Assignee set to Paul
  • Target version set to Candidate for next minor release
  • % Done changed from 0 to 100

Thanks, it was a bug. Fixed in r18245.

#5 Updated by Paul 4 months ago

Closed as fixed.

#6 Updated by Paul 4 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF