Solved

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

Posted on 1997-10-07
6
404 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
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
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

Suggested Solutions

Title # Comments Views Activity
capture pcap with filtered traffic 1 85
Backup Raspberri Pi over the netowrk to a Windows Share 5 52
linux SFTP 8 62
EXCHANGE. LINUX, SYMANTEC MESSAGING GATEWAY 2 38
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
1. Introduction As many people are interested in Linux but not as many are interested or knowledgeable (enough) to install Linux on their system, here is a safe way to try out Linux on your existing (Windows) system. The idea is that you insta…
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.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

830 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