[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

20021126: Persistent X error



Lewis,

It appears that you have a color resource allocation problem.
Check to see the depth of your display using the "xdpyinfo"
command and looking at the depth of the default visual id.

The distribution you have should be GEMPAK 5.6.h, which does support
24 bit displays, so you should not see color allocation errors
if you are running in 24 bit / true color mode. If you are not
running in 24 bit mode, then you can as one option. In particular,
this solves many problems with trying to manage color intensive
applications under 8 bit displays.

If you are running with your display as 8 bit / pseudocolor, then
you will need to ensure that you have enough writeable color cells.
Try running the GEMPAK program "freeColors". It will report the
number of available colors on your system. The XFree86 server 4.2.0 
that came with RedHat 7.3 had a known bug that eats all available colors. 
You can use the search page from the gempak home page. The Xfree86 for 
RH 7.3 is discussed at:
http://www.unidata.ucar.edu/glimpse/gempak/5085

Another problem with Linux in 8 bits is the gnome window manager 
tends to use all available colors as well. The alternative is to use KDE,
twm, or fvwm, or use a second desktop server.


Steve Chiswell



>From: "Poulin,Lewis [CMC]" <address@hidden>
>Organization: UCAR/Unidata
>Keywords: 200211261941.gAQJfH427034

>This message is in MIME format. Since your mail reader does not understand
>this format, some or all of this message may not be legible.
>
>------_=_NextPart_001_01C29583.AC7E7BE0
>Content-Type: text/plain;
>       charset="iso-8859-1"
>
>Dear Unidata Support
>
>We installed a Gempak5.6 program on a Linux box with the binaries that date
>on or after Sept 15, 2002.
>
>We are having difficulty running completely and successfully the scripts in
>the Gempak5.6/scripts/ez  directory. 
>
>I even tried hardcoding some parameters to reduce the chance of errors.
>
>The sample script included below in the message, runs o.k. up to the point
>after which the map is drawn and colored and then the map almost instantly
>disappears. giving us the following error message which I included here
>
>ERROR MESSAGE STARTS HERE
>Enter <cr> to accept parameters or type EXIT:X Error of failed request:
>BadAccess (attempt to access private resource denied)
>  Major opcode of failed request:  89 (X_StoreColors)
>  Serial number of failed request:  1066
>  Current serial number in output stream:  1103
>END ERROR MESSAGE
>
>A search on the internet resulted in a suggestion that we update our gempak
>binaries to make sure they were dated on or after sept 15 2002. We did this
>but the error continues. 
>
>Do you have any further suggestions? 
>
>A copy of the modified ezrelh script is included below. I hardcoded and/or
>changed some variables so that it would run with our own data here. The
>script still would not run using either our own local gempak data or the
>$GEMDATA/hrcbob.grd data.
>
>Many thanks in advance
>
>Lewis Poulin
>MSC-CMC
>Montreal, Quebec
>Canada
>514-421-7266
>
>
>start of modified script here
>
>#!/bin/ksh
>#
># EZRELH
>#
># This script displays the relative humidity, winds and temperature at a
># given level.
>#
># The user must supply the level.
>#
>#      Syntax:  ezrelh level
>#
>#      Example: ezrelh 750
>#
>##
># Log:
># B. Colman/SEA                 1994
># R. Miller/COMET       1994
># S. Jacobs/NMC                10/94   Clean up
>#
>
>#commented out as part of debugging process
>#if ( ${1}x == x ) then
>#   echo " GEMPAK shell script to plot relative humidity, winds, and temp."
>#   echo " The user must supply the level, "
>#   echo " either on the command line or by prompting."#
>#
>#   echo " "
>#   echo " Enter the pressure level (e.g. 700)."
>#   set lvl=$<#
>
>#else
>#   set lvl  = $1
>#endif
>
># Source the file called settings.  This file contains commands to set
># environment variables for the model name and device driver.
>
># the linux way to source the Gemenviron file
>. /data/vortex/ops/GEMPAK5.6Linux/Gemenviron_ksh
>
>gdcntr << EOF
>GDATTIM = all
>GLEVEL  = 700
>GDFILE  = $GEMDATA/hrcbob.grd
>GVCORD  = pres
>GFUNC   = tmpc
>CINT    = 2
>LINE    = 22/2/2
>TITLE   = 1=white/-3/@ RH (SHADED FOR 70, 80 and 90%)
>DEVICE  = xw
>CLEAR   = yes
>PANEL   = 0
>SCALE   = 0
>CONTUR  =
>HILO    =
>SKIP    = /1
>FLINE   = 101;21-23
>CTYPE   = f/c
>r
>
>ex
>EOF
>
>#various lines commented out for now until the script runs properly
>#CLEAR   = no
>#GFUNC   = tmpc
>#CINT    = 4/-44
>#SCALE   = 0
>#LINE    = 2/-2/2
>#TITLE   = 1=white/-2/TEMPERATURE (C) AND WINDS (KTS)
>#CTYPE   = c
>#r
>
#gdwind << EOFF
>#GVECT   = wnd
>#WIND    = bk20/1.0/2
>#TITLE   = 1=white/-1/~  $model
>#r
>
>#;2
>#;l
>#ex
>#EOFF
>end of modified script here..
>
>
>------_=_NextPart_001_01C29583.AC7E7BE0
>Content-Type: text/html;
>       charset="iso-8859-1"
>Content-Transfer-Encoding: quoted-printable
>
><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
><HTML>
><HEAD>
><META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
>charset=3Diso-8859-1">
><META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
>5.5.2653.12">
><TITLE>Persistent X error</TITLE>
></HEAD>
><BODY>
>
><P><FONT SIZE=3D2 FACE=3D"Arial">Dear Unidata Support</FONT>
></P>
>
><P><FONT SIZE=3D2 FACE=3D"Arial">We installed a Gempak5.6 program on a =
>Linux box with the binaries that date on or after Sept 15, 2002.</FONT>
></P>
>
><P><FONT SIZE=3D2 FACE=3D"Arial">We are having difficulty running =
>completely and successfully the scripts in the =
>Gempak5.6/scripts/ez&nbsp; directory. </FONT>
></P>
>
><P><FONT SIZE=3D2 FACE=3D"Arial">I even tried hardcoding some =
>parameters to reduce the chance of errors.</FONT>
></P>
>
><P><FONT SIZE=3D2 FACE=3D"Arial">The sample script included below in =
>the message, runs o.k. up to the point after which the map is drawn and =
>colored and then the map almost instantly disappears. giving us the =
>following error message which I included here</FONT></P>
>
><P><FONT SIZE=3D2 FACE=3D"Arial">ERROR MESSAGE STARTS HERE</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">Enter &lt;cr&gt; to accept parameters =
>or type EXIT:X Error of failed request:&nbsp; BadAccess (attempt to =
>access private resource denied)</FONT></P>
>
><P><FONT SIZE=3D2 FACE=3D"Arial">&nbsp; Major opcode of failed =
>request:&nbsp; 89 (X_StoreColors)</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp; Serial number of failed =
>request:&nbsp; 1066</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">&nbsp; Current serial number in =
>output stream:&nbsp; 1103</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">END ERROR MESSAGE</FONT>
></P>
>
><P><FONT SIZE=3D2 FACE=3D"Arial">A search on the internet resulted in a =
>suggestion that we update our gempak binaries to make sure they were =
>dated on or after sept 15 2002. We did this but the error continues. =
></FONT></P>
>
><P><FONT SIZE=3D2 FACE=3D"Arial">Do you have any further suggestions? =
></FONT>
></P>
>
><P><FONT SIZE=3D2 FACE=3D"Arial">A copy of the modified ezrelh script =
>is included below. I hardcoded and/or changed some variables so that it =
>would run with our own data here. The script still would not run using =
>either our own local gempak data or the $GEMDATA/hrcbob.grd =
>data.</FONT></P>
>
><P><FONT SIZE=3D2 FACE=3D"Arial">Many thanks in advance</FONT>
></P>
>
><P><FONT SIZE=3D2 FACE=3D"Arial">Lewis Poulin</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">MSC-CMC</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">Montreal, Quebec</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">Canada</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">514-421-7266</FONT>
></P>
><BR>
>
><P><FONT SIZE=3D2 FACE=3D"Arial">start of modified script here</FONT>
></P>
>
><P><FONT SIZE=3D2 FACE=3D"Arial">#!/bin/ksh</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial"># EZRELH</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial"># This script displays the relative =
>humidity, winds and temperature at a</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial"># given level.</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial"># The user must supply the =
>level.</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
>Syntax:&nbsp; ezrelh level</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
>Example: ezrelh 750</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">##</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial"># Log:</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial"># B. Colman/SEA =
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1994</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial"># R. =
>Miller/COMET&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1994</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial"># S. Jacobs/NMC =
>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10/94&nbsp;&nbsp; Clean =
>up</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#</FONT>
></P>
>
><P><FONT SIZE=3D2 FACE=3D"Arial">#commented out as part of debugging =
>process</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#if ( ${1}x =3D=3D x ) then</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; echo &quot; GEMPAK =
>shell script to plot relative humidity, winds, and temp.&quot;</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; echo &quot; The user =
>must supply the level, &quot;</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; echo &quot; either on =
>the command line or by prompting.&quot;#</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; echo &quot; =
>&quot;</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; echo &quot; Enter the =
>pressure level (e.g. 700).&quot;</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; set lvl=3D$&lt;#</FONT>
></P>
>
><P><FONT SIZE=3D2 FACE=3D"Arial">#else</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#&nbsp;&nbsp; set lvl&nbsp; =3D =
>$1</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#endif</FONT>
></P>
>
><P><FONT SIZE=3D2 FACE=3D"Arial"># Source the file called =
>settings.&nbsp; This file contains commands to set</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial"># environment variables for the model =
>name and device driver.</FONT>
></P>
>
><P><FONT SIZE=3D2 FACE=3D"Arial"># the linux way to source the =
>Gemenviron file</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">. =
>/data/vortex/ops/GEMPAK5.6Linux/Gemenviron_ksh</FONT>
></P>
>
><P><FONT SIZE=3D2 FACE=3D"Arial">gdcntr &lt;&lt; EOF</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">GDATTIM =3D all</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">GLEVEL&nbsp; =3D 700</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">GDFILE&nbsp; =3D =
>$GEMDATA/hrcbob.grd</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">GVCORD&nbsp; =3D pres</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">GFUNC&nbsp;&nbsp; =3D tmpc</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">CINT&nbsp;&nbsp;&nbsp; =3D 2</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">LINE&nbsp;&nbsp;&nbsp; =3D =
>22/2/2</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">TITLE&nbsp;&nbsp; =3D 1=3Dwhite/-3/@ =
>RH (SHADED FOR 70, 80 and 90%)</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">DEVICE&nbsp; =3D xw</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">CLEAR&nbsp;&nbsp; =3D yes</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">PANEL&nbsp;&nbsp; =3D 0</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">SCALE&nbsp;&nbsp; =3D 0</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">CONTUR&nbsp; =3D</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">HILO&nbsp;&nbsp;&nbsp; =3D</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">SKIP&nbsp;&nbsp;&nbsp; =3D /1</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">FLINE&nbsp;&nbsp; =3D =
>101;21-23</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">CTYPE&nbsp;&nbsp; =3D f/c</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">r</FONT>
></P>
>
><P><FONT SIZE=3D2 FACE=3D"Arial">ex</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">EOF</FONT>
></P>
>
><P><FONT SIZE=3D2 FACE=3D"Arial">#various lines commented out for now =
>until the script runs properly</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#CLEAR&nbsp;&nbsp; =3D no</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#GFUNC&nbsp;&nbsp; =3D tmpc</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#CINT&nbsp;&nbsp;&nbsp; =3D =
>4/-44</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#SCALE&nbsp;&nbsp; =3D 0</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#LINE&nbsp;&nbsp;&nbsp; =3D =
>2/-2/2</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#TITLE&nbsp;&nbsp; =3D =
>1=3Dwhite/-2/TEMPERATURE (C) AND WINDS (KTS)</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#CTYPE&nbsp;&nbsp; =3D c</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#r</FONT>
></P>
>
><P><FONT SIZE=3D2 FACE=3D"Arial">#gdwind &lt;&lt; EOFF</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#GVECT&nbsp;&nbsp; =3D wnd</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#WIND&nbsp;&nbsp;&nbsp; =3D =
>bk20/1.0/2</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#TITLE&nbsp;&nbsp; =3D =
>1=3Dwhite/-1/~&nbsp; $model</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#r</FONT>
></P>
>
><P><FONT SIZE=3D2 FACE=3D"Arial">#;2</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#;l</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#ex</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">#EOFF</FONT>
><BR><FONT SIZE=3D2 FACE=3D"Arial">end of modified script here..</FONT>
></P>
>
></BODY>
></HTML>
>------_=_NextPart_001_01C29583.AC7E7BE0--
>