Welcome to iraf.net Friday, March 29 2024 @ 01:26 PM GMT


 Forum Index > Help Desk > Applications New Topic Post Reply
 xgterm crashing when using commands like splot or identify
   
evantuck
 02/13/2015 02:13PM (Read 2552 times)  
+----
Newbie

Status: offline


Registered: 01/12/2015
Posts: 4
I had iraf working fine on my MacBook Pro until I updated to Yosemite. In a previous post I received help in getting my login.cl file to work properly. Now however, I'm having issues displaying spectra. Whenever I run a command like splot xgterm crashes. X11 doesn't quit, just the xgterm window closes. After the window crashes the terminal in which I launched xgterm from displays
PHP Formatted Code
Bus error: 10
. Like I said, this issue only started after I updated my OS to Yosemite.

Cheers,
Evan

 
Profile Email
 Quote
fitz
 02/13/2015 05:05PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
There are no know issues with XGterm under Yosemite, however I haven't/can't yet updated to the OSX 10.10.2 patch. If you're using 10.10.2 then you can see whether there is a missing shared library problem by doing

% /usr/bin/otool -L //xgterm

Otherwise, is it possible you're using an older binary? The v2.16.1 release contains the latest binary in the iraf$vendor/x11iraf/bin.macintel directory which should have been installed when you installed IRAF, but it's possible your path may be pocking up a different binary first.

Note I'm assuming this is strictly an XGterm crashing issue, do the tasks work with XTerm (remember to do something like "stty xtermjh" to reset the terminal type and a "flpr 0" (zero)).

 
Profile Email
 Quote
paulartcoelho
 09/21/2015 05:14PM  
++---
Junior

Status: offline


Registered: 03/09/2006
Posts: 18
hi mike,

i only recently managed to install iraf on a new mac, with yosemite. But I now run into exactly the same problem described above: xgterm crashing with splot, reporting Bus Error: 10.

I verified that it works well with xterm (as well as xterm can Smile).

Also:
~\$this->_split2($m[0]) which xgterm
/usr/local/bin/xgterm
~\$this->_split2($m[0]) ls -las /usr/local/bin/xgterm
8 lrwxr-xr-x 1 root staff 45B Jun 7 02:04 /usr/local/bin/xgterm@ -\$this->_split2($m[0]) /iraf/iraf/vendor/x11iraf/bin.macintel/xgterm

And otool says:
~\$this->_split2($m[0]) otool -L /usr/local/bin/xgterm
/usr/local/bin/xgterm:
/usr/X11R6/lib/libXpm.4.dylib (compatibility version 4.11.0, current version 4.11.0)
/usr/X11R6/lib/libXmu.6.dylib (compatibility version 6.2.0, current version 6.2.0)
/usr/X11R6/lib/libXt.6.dylib (compatibility version 6.0.0, current version 6.0.0)
/usr/X11R6/lib/libSM.6.dylib (compatibility version 6.0.0, current version 6.0.0)
/usr/X11R6/lib/libICE.6.dylib (compatibility version 6.3.0, current version 6.3.0)
/usr/X11R6/lib/libXext.6.dylib (compatibility version 6.4.0, current version 6.4.0)
/usr/X11R6/lib/libX11.6.dylib (compatibility version 6.2.0, current version 6.2.0)
/usr/lib/libncurses.5.4.dylib (compatibility version 5.4.0, current version 5.4.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 88.3.10)

Any hints?
Thx in advance.
Paula



 
Profile Email
 Quote
fitz
 09/21/2015 07:29PM  
AAAAA
Admin

Status: offline


Registered: 09/30/2005
Posts: 4040
I still can't reproduce the problem on my 10.10.3 system, but there are a few things you can check:

1) The XTerm binary is owned by root and in the past has been required to be a setuid binary, try executing as

% sudo /usr/local/bin/xgterm

to see if running as root fixes the problem. If so, use "sudo chown root:wheel /iraf/iraf/vendor/x11iraf/bin.macintel/xgterm" to change the ownership.

2) Some applications reporting similar problems were fixed by going to the 'Security & Privacy" panel of System Preferences to change the "Allow apps downloaded from:" option to be "Anywhere", starting the task at least one time. This normally applies only to native OSX apps but may affect the X server in this case.

3) If you recent updated to Yosemite but are using an older XQuartz installation you might install the latest XQuartz from their site at http://xquartz.macosforge.org Since X is no longer distributed as part of the OSX base system it must be installed separately, and I remember other issues being fixed by reinstalling XQuartz after a Yosemite update. See also https://iraf.net/forum/viewtopic.php?showtopic=1468688

 
Profile Email
 Quote
paulartcoelho
 09/21/2015 08:11PM  
++---
Junior

Status: offline


Registered: 03/09/2006
Posts: 18
oh gosh I've found it!

the whole story: i tried 1), same result; 2) was already set to Anywhere (guess I had a permission problem before); 3) I checked and I had the last version.

I was about to reinstall XQuartz anyway before reporting here (who knows? fresh start...) when I remembered that, for no real good reason, I was fine tuning some configurations and among them I changed:

X11 -\$this->_split2($m[0]) Preferences -\$this->_split2($m[0]) Output -\$this->_split2($m[0]) Colors
from "From Display" to "256 colors"

I set it back to the default "From Display" and cheers! splot worked Big Grin

 
Profile Email
 Quote
   
Content generated in: 0.18 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content 
dog allergies remedies cialis 20 mg chilblain remedies


Privacy Policy
Terms of Use

User Functions

Login