Solved

How do I fix the error "Cannot allocate colormap entry "?

Posted on 1997-10-07
6
413 Views
Last Modified: 2008-03-17
I am running Linux 2.0.30 (Redhat 4.2) with the Diamond Stealth Video 3D 2200 (2MB RAM) video card. When I have a few applications running, including netscape, and 7 tkgoodstuff icons, I often get the error "Cannot allocate colormap entry <colorname>" if I try to start a new application. For example, if I try to start emacs with a green background, it gives me a couple of colormap error messages, and then fires up with a gray background.

Is there any software fix to this?

Thanks.
0
Comment
Question by:djc2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 4

Accepted Solution

by:
jlms earned 150 total points
ID: 1633723
This is Netscape striking again! Try starting Netscape like this:

netscape -install

this reserves a color map for netscape. unfortunately it makes the screen blink when you go in and out of the Netscape window.
0
 

Author Comment

by:djc2
ID: 1633724
I tried netscape -install, but that messed up the colors even worse. It did more than make the screen blink. The netscape window colors themselves were messed up, as were the colors of pretty much anything else on the screen. Do I have any other options? I've never run into this before on other linux machines with different video cards. Did I choose a bad video card?
Thanks
0
 
LVL 4

Expert Comment

by:jlms
ID: 1633725
No, I am not aware of any other options, I think you should try to isolate the problem, for me it looks like the culprit is Nestcape, but what about if you don't use Netscape? How do the other applications work?
I don't think there is anything wrong with your card, I believe is an unfortunate combination of greedy programs that want all the colors for themselves.
0
Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

 
LVL 51

Expert Comment

by:ahoffmann
ID: 1633726
This is not a Netscape problem.

The X server has a colormap. Any application now may use the predefined colors in this map, or may use a private map (-install option to netscape). If an application grabs colors in this colormap and following applications would do again and again, the X server complains "Cannot allocate ...". I.g. the application then switches to black/white model (better than nothing :-).

A workaround for applications is to use a private colormap. This must be done by the application. Unfortunately this results in blinking, flashing colors when changing the focus to an other application, but the application having the focus, should have its own, right, colors.

To avoid the problem you must either remove the programs which
grab "too much" colors in the X servers colormap, or force them to use their private colormap (if possible).
AFAIK there is no tool to get information about the colormap in the way:  which application uses which color. (tell me if you find one:-).


0
 

Author Comment

by:djc2
ID: 1633727
Give 110 points to ahoffman, whose answer was better (B), but I already offered 150 to jlm.
0
 
LVL 4

Expert Comment

by:jlms
ID: 1633728
I agree ahoffmann's answer was much better than mine, unfortunately you should have rejected my answer if it was not satisfactory, nobody will take insult for an unaccepted answer!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question