Segmentation fault for kvis

Do you use (or want to use) other tools to reduce ATCA data?

Moderator: Mark.Wieringa

Segmentation fault for kvis

Postby bgaensler » Thu Jun 23, 2016 3:36 am

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
bgaensler
 
Posts: 5
Joined: Thu Aug 15, 2013 11:46 am

Re: Segmentation fault for kvis

Postby Mark.Wieringa » Thu Jun 23, 2016 9:32 am

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
Mark.Wieringa
ATCA Expert
 
Posts: 257
Joined: Mon Feb 08, 2010 1:37 pm

Re: Segmentation fault for kvis

Postby len067 » Thu Jun 23, 2016 12:36 pm

I had the same problem and had to revert back to the previous version of XQuartz and then everything worked fine again.

Cheers,

Emil.
len067
ATCA Expert
 
Posts: 66
Joined: Mon Feb 08, 2010 2:35 pm

Re: Segmentation fault for kvis

Postby Mark.Wieringa » Tue Jul 19, 2016 5:05 pm

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/karma/karma-1.7.20-x86_64_Darwin-15.5.tgz

Cheers,

Mark
Mark.Wieringa
ATCA Expert
 
Posts: 257
Joined: Mon Feb 08, 2010 1:37 pm

Re: Segmentation fault for kvis

Postby len067 » Wed Jul 20, 2016 12:40 am

Hi Mark,

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

Cheers,

Emil.
len067
ATCA Expert
 
Posts: 66
Joined: Mon Feb 08, 2010 2:35 pm

Re: Segmentation fault for kvis

Postby scurran » Tue Jan 17, 2017 1:31 pm

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
scurran
 
Posts: 4
Joined: Tue Jan 17, 2017 11:42 am

Re: Segmentation fault for kvis

Postby ste616 » Tue Jan 17, 2017 2:13 pm

Hi Steve,

In which directory is your karma installed?
cheers
Jamie Stevens
ATCA Senior System Scientist
ste616
Site Admin
 
Posts: 206
Joined: Thu Feb 04, 2010 3:27 pm
Location: Paul Wild Observatory Narrabri NSW

Re: Segmentation fault for kvis

Postby scurran » Tue Jan 17, 2017 2:29 pm

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
scurran
 
Posts: 4
Joined: Tue Jan 17, 2017 11:42 am

Re: Segmentation fault for kvis

Postby ste616 » Tue Jan 17, 2017 3:25 pm

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".
cheers
Jamie Stevens
ATCA Senior System Scientist
ste616
Site Admin
 
Posts: 206
Joined: Thu Feb 04, 2010 3:27 pm
Location: Paul Wild Observatory Narrabri NSW

Re: Segmentation fault for kvis

Postby Mark.Wieringa » Tue Jan 17, 2017 4:10 pm

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
Mark.Wieringa
ATCA Expert
 
Posts: 257
Joined: Mon Feb 08, 2010 1:37 pm

Next

Return to Other Tools

Who is online

Users browsing this forum: No registered users and 1 guest

cron