[daip] aips error in TV open

Eric Greisen egreisen at nrao.edu
Thu Jul 13 18:18:10 EDT 2017


On 07/13/2017 02:39 PM, Lu Shen wrote:
> Hi Eric,
>
> I am using TVLOD in aips. There is a error when I input tvinit.
>
>
> UNIXSERVERS: Start XAS1 on localhost, DISPLAY /private/tmp/com.apple.launchd.yv41DKTAXE/org.macosforge.xquartz:0
> XAS: ** TrueColor FOUND!!!
> XAS: ***  Using shared memory option for speed ***
> XAS: Using screen width 1910 height 958,
>      max grey level 8191 in 16 grey-scale memories
> Shared memory id failure: Cannot allocate memory


The use os shared memory is limited (by default) on Macs.  YOu can 
either choose not to use shared memory (in .Xdefaults file - see HELP 
XAS inside AIPS) or better follow the instructions from our FAQ page:

After you follow the instructions below appropriate to your release of 
the Mac operating system, you must re-boot the computer. The control 
file for shared memory is read at boot time only. Note that a re-boot is 
not simply logging the current user out and then back in. You must do a 
full restart.

  On the latest "leopard", "snow leopard", "lion", "mountain lion", and 
"yosemite" (X 10.5-10.10) systems, /etc/rc is gone and creating it will 
have no effect. You need to create an /etc/sysctl.conf file and put the 
values in it,

             kern.sysv.shmmax=10485760
             kern.sysv.shmmin=1
             kern.sysv.shmmni=32
             kern.sysv.shmseg=8
             kern.sysv.shmall=4096


You should use the values you had when you were running tiger. Those 
could be in /Previous\ System/etc/rc, assuming you have "Previous 
System". So three different OS upgrades and three different ways to 
adjust the default shared memory. Note: You will need to reboot the 
system for the change in shared memory to take place. You can check if 
the shared memory changes happened by typing "sysctl kern.sysv" in a 
terminal or xterm window. Look for the kern.sysv.shm* values. If the 
values have not changed, make sure you haven't inadvertently left in 
"sysctl -w" in the /etc/sysctl.conf file or mis-typed one of the values. 
If the /etc/sysctl.conf file is not properly formatted, or shmmax is not 
an integer multiple of shmall, the shared memory will not be adjusted 
after the reboot.

ERic Greisen



More information about the Daip mailing list