Troubleshooting : Error Messages : Color Problems on Solaris

Color Problems on Solaris
When opening and running Rational Statemate in Solaris CDE, you might see error messages similar to the following:
Warning: Cannot allocate colormap entry for "msg_area_bg"
Xserver could not allocate color: "TAN."
Another application might have allocated this color in
read/ write mode. This is done usually for modifying the
colors. If you are running such an application, please
close it.
Affected Platform:
Solaris
Explanation:
The Solaris CDE default desktop reserves colors that Rational Statemate attempts to use. This conflict causes some elements of Rational Statemate to appear black, making Rational Statemate difficult to use.
Solution 1:
Use an alternate colormap, supplied with your Rational Statemate software, by adding the following line to $STM_ROOT/run_stmm:
setenv STM_ALTERNATE_COLORMAP 1
Generated code runs outside of Rational Statemate and is not affected by the STM_ALTERNATE_COLORMAP variable.
Solution 2:
Change the CDE color settings so the desktop uses fewer colors. Complete the following steps to change the color settings:
1.
2.
3.
Select Number of Colors.
4.
Select Most Colors for Applications in the Number of Colors window. Click OK.
5.
6.
7.
If you still experience a color conflict, particularly within panel editors, try the following: