Bug 27548 - Xvfb doesn't handle transparent pixels properly in 8-bit color mode
Summary: Xvfb doesn't handle transparent pixels properly in 8-bit color mode
Status: RESOLVED WONTFIX
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/DDX/Xvfb (show other bugs)
Version: unspecified
Hardware: All Linux (All)
: low minor
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard: 2011BRB_Reviewed
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-09 01:29 UTC by ra85551
Modified: 2011-10-17 02:06 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
GEdit screenshot showing black pixels instead of transparent (9.84 KB, image/png)
2010-04-09 01:29 UTC, ra85551
no flags Details
Corrupt GEdit window when Xvnc not involved (17.71 KB, image/jpeg)
2011-10-15 22:55 UTC, ra85551
no flags Details

Description ra85551 2010-04-09 01:29:49 UTC
Created attachment 34837 [details]
GEdit screenshot showing black pixels instead of transparent

Description:
Xvfb shows wrong colored (e.g. black or grey) pixels instead of transparent when 8-bit color depth is set.
I tested this case on x86_64 Arch Linux 2009.08 with xorg-server 1.7.5.902-1. Also I can confirm this bug at x86_64 Ubuntu 9.10 with xorg 1:7.4+3ubuntu7 and xvfb 2:1.6.4-2ubuntu4.1.

Steps to reproduce (for Arch Linux 2009.08, other Linux distros would feature similar sequence):

Open terminal and issue following commands:

export DISPLAY=:1
Xvfb :1 -screen 0 640x480x8 &
openbox &
x11vnc -display :1 -bg -nopw -listen localhost

Open another (!) terminal and issue:

vncviewer localhost

You can see new VNC viewer window on the screen.
Right-click the mouse somewhere within blank area of that window.
In the drop-down menu select Editors -> GEdit, and you will see the picture similar to one in attached file.
Note that should you change 'x8' to 'x16' snippet in Xvfb command above, GEdit look become normal.
Comment 1 ra85551 2010-06-21 04:35:12 UTC
Can also confirm it on i686 Arch Linux with xorg-server 1.8.1-1.
Comment 2 ra85551 2010-09-30 05:20:17 UTC
(In reply to comment #1)
> Can also confirm it on i686 Arch Linux with xorg-server 1.8.1-1.

And on 1.9.0 too! Why there are no options in bugtracker to report versions higher than 1.7.5?
Comment 3 Jeremy Huddleston Sequoia 2011-10-15 18:49:07 UTC
This is a bug for Xvnc, not Xvfb.  Not our bug.
Comment 4 ra85551 2011-10-15 22:55:09 UTC
Created attachment 52373 [details]
Corrupt GEdit window when Xvnc not involved
Comment 5 ra85551 2011-10-15 22:59:01 UTC
(In reply to comment #3)
> This is a bug for Xvnc, not Xvfb.  Not our bug.

Excuse me, you are not right.
Even when Xvnc is not involved in the case, the GEdit window is corrupt.
The following command sequence would illustrate this:


Xvfb :1 -screen 0 640x480x8 &
gedit --display :1 &
xwd -display :1 -root -out image.xwd
convert image.xwd image.jpg

As you can see, there are no any Xvnc calls there.
You can open image.jpg in your favorite viewer and see GEdit window corrupted.

I have attached image.jpg to this bug report.
Comment 6 Jeremy Huddleston Sequoia 2011-10-16 16:48:12 UTC
Oh, yeah... 8bit is not very well supported in general.  I can reproduce 
problems using your steps (although my results are differently broken).  Xfake 
isn't useful for comparison because it crashes at starup when you request 8bit 
mode.

16bit works.

Why are you trying to use 8bit?
Comment 7 ra85551 2011-10-16 20:49:42 UTC
(In reply to comment #6)
 
> 16bit works.
> 
> Why are you trying to use 8bit?

I am building an application server with VNC access, so I'd like to minimize the network traffic. 8bit is sufficient for my needs and consume much less traffic than 16bit mode do.
Comment 8 Jeremy Huddleston Sequoia 2011-10-16 22:00:27 UTC
Then why are you not using Xvnc?
Comment 9 ra85551 2011-10-17 00:52:34 UTC
(In reply to comment #8)
> Then why are you not using Xvnc?

I am using both x11vnc+Xvfb and Xvnc to test which of these configurations is better for production release. There are no corruptions in 8bit mode in Xvnc, but it would be nice that this bug be fixed in Xvfb too :)
Comment 10 Jeremy Huddleston Sequoia 2011-10-17 02:06:02 UTC
Xvfb is not really "the future" ... Hopefully in the next couple years, kdrive, Xnest, and Xvfb will be removed and the Xorg DDX + xf86-video-nested or xf86-video-dummy will take their place in the same way that Xvnc is now an Xorg DDX driver instead of a separate DDX.

I'm going to close this as WONTFIX unless you want to provide a patch to address this.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.