Page 1 of 2

Segmentation fault for kvis

Posted: Thu Jun 23, 2016 3:36 am
by bgaensler
Hi all,

I am running OSX El Capitan v10.11.5 on a Mac Pro.

Yesterday kvis was working for me, but today I upgraded XQuartz to 2.7.9 (xorg-server 1.17.4) and now get the following fault:

snake: > kvis
Port allocated: 1915
Segmentation fault (core dumped)

This fault occurs both in an xterm (within XQuartz) but also within OSX Terminal, version 2.6.1 (361.1).

When I roll back to XQuartz 2.7.8, kvis works fine again, both in an xterm and within Terminal

Does anyone know how to fix this, other than sticking with the old version of XQuartz?

regards
Bryan

Re: Segmentation fault for kvis

Posted: Thu Jun 23, 2016 9:32 am
by Mark.Wieringa
Hi Bryan,

yes, we noticed this a couple of weeks back when the new XQuartz version came out.
It seems that the XQuartz developer is unlikely to fix this (see https://bugs.freedesktop.org/show_bug.cgi?id=96292),
instead requiring people to rebuild their software (xdvi was one of the other casualties).
We're looking into that for kvis, but until we manage that, sticking with the old XQuartz 2.7.8 is the solution to keep kvis alive.

Cheers,

Mark

Re: Segmentation fault for kvis

Posted: Thu Jun 23, 2016 12:36 pm
by len067
I had the same problem and had to revert back to the previous version of XQuartz and then everything worked fine again.

Cheers,

Emil.

Re: Segmentation fault for kvis

Posted: Tue Jul 19, 2016 5:05 pm
by Mark.Wieringa
I've just put a new OSX build of kvis on the ftp server, it should fix the XQuartz 2.7.9 issue, at least for El Capitan.
Let me know if it doesn't.
ftp://ftp.atnf.csiro.au/pub/software/karma/README
ftp://ftp.atnf.csiro.au/pub/software/ka ... n-15.5.tgz

Cheers,

Mark

Re: Segmentation fault for kvis

Posted: Wed Jul 20, 2016 12:40 am
by len067
Hi Mark,

That worked fine on El Capitan (well, once I remembered to update the symbolic link to the new binary).

Cheers,

Emil.

Re: Segmentation fault for kvis

Posted: Tue Jan 17, 2017 1:31 pm
by scurran
This worked a treat for me, except I can't overlay any axis labels, with just the message

error opening font file: "/usr/local/karma/share/fonts.dat"

any ideas?

Steve

Re: Segmentation fault for kvis

Posted: Tue Jan 17, 2017 2:13 pm
by ste616
Hi Steve,

In which directory is your karma installed?

Re: Segmentation fault for kvis

Posted: Tue Jan 17, 2017 2:29 pm
by scurran
Hi Jamie

/usr/local/karma

and I've already done

sudo ln -s /usr/local/karma-1.7.20/x86_64_Darwin-15.5/ /usr/local/karma

Cheers
Steve

Re: Segmentation fault for kvis

Posted: Tue Jan 17, 2017 3:25 pm
by ste616
Hi Steve,

I think that's probably where you went awry slightly.

You see, in the x86_64_Darwin-15.5 directory, there is a symbolic link "share" which points to "../share". But since you actually want it to go to "/usr/local/karma-1.7.20/share" where the file is, the fonts.dat can't be found.

You should instead "ln -s /usr/local/karma-1.7.20 /usr/local/karma", and then set the environment variable KARMABASE to "/usr/local/karma/x86_64_Darwin-15.5".

Re: Segmentation fault for kvis

Posted: Tue Jan 17, 2017 4:10 pm
by Mark.Wieringa
Hi Steve,


To add to Jamie's explanations:

Did you download and extract karma-1.7.20-common.tgz as well?
The two tar files overlap, the x86_64_Darwin-15.5 dir should be a subdirectory in the previously extracted karma-1.7.20 directory.
Basically the path /usr/local/karma/share should exist and be one level above the bin directory with the kvis executable.
With your original ln -s statement and 'source /usr/local/karma-1.70.20/.karmarc' it should also work.

I agree it is a bit of a mess which I might try to sort out next time I need to make a change.

Cheers,

Mark