X11 Color Map creation problem, XAllocColorCells call throw BadValue error

Alan Coopersmith alan.coopersmith at oracle.com
Mon Apr 17 21:20:55 UTC 2017


On 04/10/17 02:48 AM, Subrata Dasgupta wrote:
> Hello All,
> I have an 32 bit X11 application running on RHEL 7 and use
> libX11-1.6.3-2.el7.i686 rpm X11 library. This application is facing problem
> while creating its own color map. Please suggest what changes need to be made in
> the following code to make it workable.
>
> This X11 application is getting BadValue error while calling XAllocColorCells
> function when I run the application from VNC. But it is working properly on
> Citrix. Application tries to create a new color map by calling XCreateColormap.

Have you compared the output of xdpyinfo on the two Xservers?  Perhaps they
simply offer different visuals or colormaps.

Do you even really need to create a colormap in the modern era instead of
relying on 24-bit TrueColor?   There's not that many 8-bit video cards
still in use.

-- 
	-Alan Coopersmith-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc


More information about the xorg mailing list