Solved

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

Posted on 1997-10-07
6
396 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
What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

 
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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:

777 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