Solved

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

Posted on 1997-10-07
6
385 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
  • 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
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
LINUX ZIP - UNCOMPRESS WINDOWS PATH 3 59
Bash Script-Trigger email when server reboots 11 55
Issue to mail 11 40
nagios 1 12
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now