Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
* "Cannot allocate color map entry" error
@ 2000-08-30  4:00 Mike Cooley
  2000-08-30  4:00 ` Jeff Donsbach
  0 siblings, 1 reply; 12+ messages in thread
From: Mike Cooley @ 2000-08-30  4:00 UTC (permalink / raw)


Hi,

When I open Netscape, other applications have trouble with color
resources.  In particular the screen saver goes black and white (no big
deal) and a small motif program I wrote gives the following error:

Warning: Cannot allocate colormap entry for "#ee2222"

I was wondering how to correct this problem.

I'm running CDE under Tru64 4.0D...

thanks,
mike

--
I do not speak for my employer; they'd have to pay extra for that!



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: "Cannot allocate color map entry" error
  2000-08-30  4:00 "Cannot allocate color map entry" error Mike Cooley
@ 2000-08-30  4:00 ` Jeff Donsbach
  2000-08-31 15:49   ` Mike Cooley
  0 siblings, 1 reply; 12+ messages in thread
From: Jeff Donsbach @ 2000-08-30  4:00 UTC (permalink / raw)



I assume you've only got an 8 bit graphics card.

Netscape is a colormap hog. The easiest way is to tell
Netscape to allocate and use it's own colormap by giving it the "-install"
option when you start it up.

Regards,
Jeff Donsbach
Partner Engineering
Compaq Computer Corp


Mike Cooley <mcooley@usa.alcalel.com> wrote in message
news:39AD6880.47DFF872@usa.alcalel.com...
> Hi,
>
> When I open Netscape, other applications have trouble with color
> resources.  In particular the screen saver goes black and white (no big
> deal) and a small motif program I wrote gives the following error:
>
> Warning: Cannot allocate colormap entry for "#ee2222"
>
> I was wondering how to correct this problem.
>
> I'm running CDE under Tru64 4.0D...
>
> thanks,
> mike
>
> --
> I do not speak for my employer; they'd have to pay extra for that!




^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: "Cannot allocate color map entry" error
  2000-08-30  4:00 ` Jeff Donsbach
@ 2000-08-31 15:49   ` Mike Cooley
  2000-09-01 15:53     ` Daniel Schunneman
  0 siblings, 1 reply; 12+ messages in thread
From: Mike Cooley @ 2000-08-31 15:49 UTC (permalink / raw)


Jeff Donsbach wrote:
> 
> I assume you've only got an 8 bit graphics card.
> 
> Netscape is a colormap hog. The easiest way is to tell
> Netscape to allocate and use it's own colormap by giving it the "-install"
> option when you start it up.
> 
> Regards,
> Jeff Donsbach
> Partner Engineering
> Compaq Computer Corp

Thanks Jeff.  Works ok now.  The desktop goes wanky while netscape is
up, but once its minized everything straightens out.

Just out of curiosity, how do I find out about the graphics card?  I
have a manual that came with the computer that says it has a fancy 3-D
graphics option (PBXGB-AA/CA PCI Graphics Option), and I find it hard to
believe its only 8 bit

thanks,
mike

--
I do not speak for my employer; they'd have to pay extra for that!


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: "Cannot allocate color map entry" error
  2000-08-31 15:49   ` Mike Cooley
@ 2000-09-01 15:53     ` Daniel Schunneman
  2000-09-01 21:31       ` Mike Cooley
                         ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Daniel Schunneman @ 2000-09-01 15:53 UTC (permalink / raw)


Mike Cooley (mcooley@usa.alcalel.com) wrote:
: Jeff Donsbach wrote:
: > 
: > I assume you've only got an 8 bit graphics card.
: > 
: > Netscape is a colormap hog. The easiest way is to tell
: > Netscape to allocate and use it's own colormap by giving it the "-install"
: > option when you start it up.
: > 
: > Regards,
: > Jeff Donsbach
: > Partner Engineering
: > Compaq Computer Corp

: Thanks Jeff.  Works ok now.  The desktop goes wanky while netscape is
: up, but once its minized everything straightens out.

: Just out of curiosity, how do I find out about the graphics card?  I
: have a manual that came with the computer that says it has a fancy 3-D
: graphics option (PBXGB-AA/CA PCI Graphics Option), and I find it hard to
: believe its only 8 bit



Try "sizer -gt" to determine the type of graphics adapter. If the response
is COMET, ZLXp2-EV5, or ZLXp2-EV4 your video card is capable of 24-bit color.


--
Daniel.Schunneman@Compaq.com
Compaq Tru64 UNIX Publications
732.577.6037


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: "Cannot allocate color map entry" error
  2000-09-01 15:53     ` Daniel Schunneman
@ 2000-09-01 21:31       ` Mike Cooley
  2000-09-02  4:15       ` Eric Bennett
       [not found]       ` <8p0j77$65p$1@nnrp1.deja.com>
  2 siblings, 0 replies; 12+ messages in thread
From: Mike Cooley @ 2000-09-01 21:31 UTC (permalink / raw)
  To: larry.gensch

> : Thanks Jeff.  Works ok now.  The desktop goes wanky while netscape is
> : up, but once its minized everything straightens out.
> 
> : Just out of curiosity, how do I find out about the graphics card?  I
> : have a manual that came with the computer that says it has a fancy 3-D
> : graphics option (PBXGB-AA/CA PCI Graphics Option), and I find it hard to
> : believe its only 8 bit
> 
> Try "sizer -gt" to determine the type of graphics adapter. If the response
> is COMET, ZLXp2-EV5, or ZLXp2-EV4 your video card is capable of 24-bit color.
> 
> --
> Daniel.Schunneman@Compaq.com
> Compaq Tru64 UNIX Publications
> 732.577.6037

sizer -gt returns: ZLXp2-EV5.  I received an email that attempted to
explain how to determine what resolution and depth would be appropriate
using:

     # startx -- -screen X00xY00 -depth Z

but I can't seem to make it work.  startx doesn't appear to be a
command, and screen and depth aren't options for X.  Once I get these
values I think I can handle editing the /usr/var/dt/Xservers file...
maybe. ;-)

thanks
mike
-- 
Mike Cooley
Alcatel USA - CNOC
mcooley@usa.alcatel.com
972.477.7276


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: "Cannot allocate color map entry" error
  2000-09-01 15:53     ` Daniel Schunneman
  2000-09-01 21:31       ` Mike Cooley
@ 2000-09-02  4:15       ` Eric Bennett
       [not found]       ` <8p0j77$65p$1@nnrp1.deja.com>
  2 siblings, 0 replies; 12+ messages in thread
From: Eric Bennett @ 2000-09-02  4:15 UTC (permalink / raw)


In article <8oojdr$4gk$2@mailint03.im.hou.compaq.com>, 
ds@flash.unx.dec.com (Daniel Schunneman) wrote:

> Mike Cooley (mcooley@usa.alcalel.com) wrote:
> : Jeff Donsbach wrote:
> : > 
> : > I assume you've only got an 8 bit graphics card.
> : > 
> : > Netscape is a colormap hog. The easiest way is to tell
> : > Netscape to allocate and use it's own colormap by giving it the 
> : > "-install"
> : > option when you start it up.
> : > 
> : > Regards,
> : > Jeff Donsbach
> : > Partner Engineering
> : > Compaq Computer Corp
> 
> : Thanks Jeff.  Works ok now.  The desktop goes wanky while netscape is
> : up, but once its minized everything straightens out.
> 
> : Just out of curiosity, how do I find out about the graphics card?  I
> : have a manual that came with the computer that says it has a fancy 3-D
> : graphics option (PBXGB-AA/CA PCI Graphics Option), and I find it hard 
> : to
> : believe its only 8 bit
> 
> 
> 
> Try "sizer -gt" to determine the type of graphics adapter. If the 
> response
> is COMET, ZLXp2-EV5, or ZLXp2-EV4 your video card is capable of 24-bit 
> color.


Perhaps someone can explain to me how all this works.  We have 
PowerStorm 350 graphics (PBXGD-AE) in most of our machines, and when 
running 3D apps we seem to get lots of nice colors (smooth shading vs. 
dithered junk I get on Alphas without 3D cards), but with 2D apps like 
Netscape everything seems to be stuck at 8-bit.  Sometimes people leave 
their desks with a color hog running, and the screen saver comes on and 
instead of a black screen, it turns white.

Are the deep color depths only available for things that the card 
directly renders in 3D itself?  Or is something misconfigured on our 
systems?

-- 
Eric Bennett ( http://www.pobox.com/~ericb/ ) 
Cornell University / Chemistry & Chemical Biology

If I return people's greetings, I do so only to give them their greeting back.
-Karl Kraus


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: "Cannot allocate color map entry" error
       [not found]       ` <8p0j77$65p$1@nnrp1.deja.com>
@ 2000-09-05 19:12         ` waco_johnny_d
  2000-09-05 21:00           ` Jeff Donsbach
  0 siblings, 1 reply; 12+ messages in thread
From: waco_johnny_d @ 2000-09-05 19:12 UTC (permalink / raw)


I believe there were 2 versions of this card: a short 2MB one (PBXGB-AA)
and a long 16MB one (PBXGB-CA).  The former is an 8-plane card and the
latter is 24-plane.


Sent via Deja.com http://www.deja.com/
Before you buy.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: "Cannot allocate color map entry" error
  2000-09-05 19:12         ` waco_johnny_d
@ 2000-09-05 21:00           ` Jeff Donsbach
  2000-09-06  7:21             ` Eric Bennett
  0 siblings, 1 reply; 12+ messages in thread
From: Jeff Donsbach @ 2000-09-05 21:00 UTC (permalink / raw)


Exacly correct. You can't go by just the output of "sizer" as it will not
tell you whether you have the 2 MB/8 plane version (PowerStorm 3D30) or the
16 MB/24 plane version (PowerStorm 4D20).  You can look at the output of
"xdpyinfo" and look to see if there are any Visuals with a depth greater
than 8 bits. If so, you've got a 4D20.

Jeff D

<waco_johnny_d@my-deja.com> wrote in message
news:8p3gik$6mq$1@nnrp1.deja.com...
> I believe there were 2 versions of this card: a short 2MB one (PBXGB-AA)
> and a long 16MB one (PBXGB-CA).  The former is an 8-plane card and the
> latter is 24-plane.
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: "Cannot allocate color map entry" error
  2000-09-05 21:00           ` Jeff Donsbach
@ 2000-09-06  7:21             ` Eric Bennett
  2000-09-06 19:33               ` Tom Leitner
  0 siblings, 1 reply; 12+ messages in thread
From: Eric Bennett @ 2000-09-06  7:21 UTC (permalink / raw)


In article <8p3msq$7s9i$1@lead.zk3.dec.com>, "Jeff Donsbach" 
<jeff.donsbach@nospam.compaq.com> wrote:

> Exacly correct. You can't go by just the output of "sizer" as it will not
> tell you whether you have the 2 MB/8 plane version (PowerStorm 3D30) or 
> the
> 16 MB/24 plane version (PowerStorm 4D20).  You can look at the output of
> "xdpyinfo" and look to see if there are any Visuals with a depth greater
> than 8 bits. If so, you've got a 4D20.


That command reports the following for our machines (PowerStorm 350):

screen #0:
  dimensions:    1280x1024 pixels (280x236 millimeters)
  resolution:    116x110 dots per inch
  depths (6):    1, 4, 8, 12, 24, 32
  root window id:    0x32
  depth of root window:    24 planes
  number of colormaps:    minimum 1, maximum 10
  default colormap:    0x20
  default number of colormap cells:    256



But there are still problems with running out of colors.  Is it possible 
to change the "default number of colormap cells" to something larger 
than 256?  I assume not, but if it is possible it would be nice to know.  
I looked in the Xdec man page and didn't see anything about colormap 
cells.

-- 
Eric Bennett ( http://www.pobox.com/~ericb/ ) 
Cornell University / Chemistry & Chemical Biology

http://play.rbn.com/?url=swave/abc/g2demand/000904bush.rm&proto=rtsp



^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: "Cannot allocate color map entry" error
  2000-09-06  7:21             ` Eric Bennett
@ 2000-09-06 19:33               ` Tom Leitner
  2000-09-11 14:59                 ` Adriano Prado
  0 siblings, 1 reply; 12+ messages in thread
From: Tom Leitner @ 2000-09-06 19:33 UTC (permalink / raw)


Eric Bennett <ericb@pobox.com> wrote:

> That command reports the following for our machines (PowerStorm 350):

> screen #0:
>   dimensions:    1280x1024 pixels (280x236 millimeters)
>   resolution:    116x110 dots per inch
>   depths (6):    1, 4, 8, 12, 24, 32
>   root window id:    0x32
>   depth of root window:    24 planes
>   number of colormaps:    minimum 1, maximum 10
>   default colormap:    0x20
>   default number of colormap cells:    256

> But there are still problems with running out of colors.  Is it possible 
> to change the "default number of colormap cells" to something larger 
> than 256?  I assume not, but if it is possible it would be nice to know.  

[...] You haven't posted the most important information: The supported
and configured visual list! This hardware apparently supports different
colour depths. Now it depends on the configuration which color depth
(or visual) is the default. Many (older) programs programs can only work
with the default visual. If your default visual is 8-bit PseudoColor, you
still run into "out of color" problems. Newer programs either look for
the most appropriate visual for themselves or can be told which visual
to use. For instance netscape has the command line option "-visual"
to dell it which visual to use. So if your hardware supports multiple
visuals and the default is PSeudoColors, your best bet is to start 
netscape with "netscape -visual xx" when XX is the visual number
of some TrueColor visual as listed in "xdpyinfo".

BTW: The default visual can be changed with

X -vclass TrueColor -depth 16

I recommend a default depth of 16 because everything higher requires 
too much memory for pixmaps and does not pay you much in terms of 
the number of available colors.

All this can be set in /etc/dt/config/Xservers (copy from 
/usr/dt/config/Xservers if it doesn't exist yet).

Tom
-- 
Dr. Tom Leitner             Dept. of Communications, Graz Univ. of Technology,
tom@radar.tu-graz.ac.at     Inffeldgasse 12, A-8010 Graz / Austria / Europe
PGP public key @ http://wiis.tu-graz.ac.at/people/tom.html


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: "Cannot allocate color map entry" error
  2000-09-06 19:33               ` Tom Leitner
@ 2000-09-11 14:59                 ` Adriano Prado
  2000-09-11 17:04                   ` Joerg-Uwe Tessmer
  0 siblings, 1 reply; 12+ messages in thread
From: Adriano Prado @ 2000-09-11 14:59 UTC (permalink / raw)


Hi Tom,

I don't have the /etc/dt/config/Xservers file but
the /usr/dt/config/Xservers has just one line, that is:

:0 Local local@console /usr/bin/X11/X :0

And at 'man X' I didn't find any -vclass or -depth parameters. Xdec has
the -vclass only.

I'm using version 4.0d here.

So, where I put the "X -vclass TrueColor -depth 16"?

Thanks,
Adriano

> BTW: The default visual can be changed with
>
> X -vclass TrueColor -depth 16
>
> I recommend a default depth of 16 because everything higher requires
> too much memory for pixmaps and does not pay you much in terms of
> the number of available colors.
>
> All this can be set in /etc/dt/config/Xservers (copy from
> /usr/dt/config/Xservers if it doesn't exist yet).
--
_______________________
Adriano Prado
prado@gmx.net


Sent via Deja.com http://www.deja.com/
Before you buy.


^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: "Cannot allocate color map entry" error
  2000-09-11 14:59                 ` Adriano Prado
@ 2000-09-11 17:04                   ` Joerg-Uwe Tessmer
  0 siblings, 0 replies; 12+ messages in thread
From: Joerg-Uwe Tessmer @ 2000-09-11 17:04 UTC (permalink / raw)


Adriano Prado wrote:
> 
> Hi Tom,
> 
> I don't have the /etc/dt/config/Xservers file but
> the /usr/dt/config/Xservers has just one line, that is:
> 
> :0 Local local@console /usr/bin/X11/X :0
> 
> And at 'man X' I didn't find any -vclass or -depth parameters. Xdec has
> the -vclass only.
> 
> I'm using version 4.0d here.
> 
> So, where I put the "X -vclass TrueColor -depth 16"?
> 
> Thanks,
> Adriano
> 
> > BTW: The default visual can be changed with
> >
> > X -vclass TrueColor -depth 16
> >
> > I recommend a default depth of 16 because everything higher requires
> > too much memory for pixmaps and does not pay you much in terms of
> > the number of available colors.
> >
> > All this can be set in /etc/dt/config/Xservers (copy from
> > /usr/dt/config/Xservers if it doesn't exist yet).
> --
> _______________________
> Adriano Prado
> prado@gmx.net
> 
> Sent via Deja.com http://www.deja.com/
> Before you buy.

Hi,

You can set parameters in

/var/X11/Xserver.conf

for example: 4D10 eg. Elsa Gloria Synergy 8MB, 
resolution 1280x1024,
24-bit true color server,
vertical frequency 75 Hz
add to the line 
...
...
! you specify command line arguments here
args <
        -pn -screen 1280x1024 -depth 24 -vsync 75
>
...
...

and restart the X-server.
/sbin/init.d/xlogin stop
after the screen is blue, hit return and login as root and type
/sbin/init.d/xlogin start

- you have installed O3D?
- your graphic card have more than 2MB video ram (min. 8MB)?

ciao,
	Joerg-Uwe
-- 
Joerg-Uwe Tessmer              Universitaet Potsdam
Tel.: +49+331-9771613          Institut fuer Physik        
Fax.: +49+331-9771142      Lehrstuhl Nichtlineare Dynamik
http://www.agnld.uni-potsdam.de/~joerg


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2000-09-11 17:04 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-08-30  4:00 "Cannot allocate color map entry" error Mike Cooley
2000-08-30  4:00 ` Jeff Donsbach
2000-08-31 15:49   ` Mike Cooley
2000-09-01 15:53     ` Daniel Schunneman
2000-09-01 21:31       ` Mike Cooley
2000-09-02  4:15       ` Eric Bennett
     [not found]       ` <8p0j77$65p$1@nnrp1.deja.com>
2000-09-05 19:12         ` waco_johnny_d
2000-09-05 21:00           ` Jeff Donsbach
2000-09-06  7:21             ` Eric Bennett
2000-09-06 19:33               ` Tom Leitner
2000-09-11 14:59                 ` Adriano Prado
2000-09-11 17:04                   ` Joerg-Uwe Tessmer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox