Bug 3781

Summary: OpenOffice.org and Wine can't display transparent images in recent Xorg snapshots
Product: xorg Reporter: Giacomo Perale <ghepeu>
Component: * OtherAssignee: Adam Jackson <ajax>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high CC: bugs, dberkholz, gtmisc, herbs, iaindb, martin, pauldv, schnake, soren.sandmann, winter.maik, X_X_L, yuval
Version: 6.8.99.14   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 1690    
Attachments:
Description Flags
9914_all_6.8.2-mmx-gcc4.patch
none
screenshot of openoffice2 under a broken xorg none

Description Giacomo Perale 2005-07-15 05:47:23 UTC
OpenOffice.org and Wine can't display images with transparent background
anymore, on xorg snapshots at least >= 6.8.99.3. This means, for example, that
every icon in OpenOffice has a black background, Impress animation are black too
and Wine buttons are rendered wrongly.

This bug has also been reported in gentoo bugzilla too, because it's triggered
by a patch taken from xorg CVS and recently included in xorg-x11 6.8.2-r2; see
http://bugs.gentoo.org/show_bug.cgi?id=96053.
Comment 1 Giacomo Perale 2005-07-15 05:50:04 UTC
Created attachment 3083 [details] [review]
replacing backslash with slash as it is also done in parse.c in scan_dir

Problem with Wine buttons. Also images with transparent background don't work.
Comment 2 Giacomo Perale 2005-07-15 05:52:24 UTC
Created attachment 3084 [details]
My xorg.conf

Image showing how OpenOffice displays icons.
Comment 3 Giacomo Perale 2005-07-15 05:55:06 UTC
Created attachment 3085 [details]
Xorg.0.log from my working 6.8.2 setup

With this patch applied, xorg 6.8.2 is affected by the same problem of the
recent snapshots.
Comment 4 Donnie Berkholz 2005-07-15 06:29:35 UTC
This looks like the commit:

Thu Jan 13 15:40:29 2005  Søren Sandmann  <sandmann@redhat.com>

	* programs/Xserver/fb/fbmmx.c (fbCompositeSrc_8888x8x8888mmx): Add
	MMX implementation of non-repeating source IN repeating mask, aka
	"translucent window".

	* programs/Xserver/fb/fbmmx.c (fbCopyAreammx,
	fbCompositeCopyAreammx): Add MMX implementation of CopyArea.

	* programs/Xserver/fb/fbcopy.c (fbCopyNtoN): Use MMX
	implementation of CopyArea.

	* programs/Xserver/fb/fbpict.c (fbComposite): Use the new
	implementations.
Comment 5 FreeDesktop Bugzilla Database Corruption Fix User 2005-07-20 09:26:37 UTC
given the commits that were indicated, i figured it couldn't hurt re-emerge the
xorg-x11-6.8.99.14 ebuild, but with USE=-mmx.  didn't seem to make a difference.
 but then again, i don't think i disabled mmx in my CFLAGS....  anyway, just an
extra data point.

is anyone actively working on this, btw?
Comment 6 Donnie Berkholz 2005-07-20 09:56:30 UTC
Gentoo's mmx/sse/3dnow USE flags in xorg only affect Mesa.
Comment 7 FreeDesktop Bugzilla Database Corruption Fix User 2005-07-21 12:59:17 UTC
well, just as an FYI, the bug is still there with the xorg-x11-6.8.99.15 snapshot.
Comment 8 Søren Sandmann Pedersen 2005-08-02 03:18:44 UTC
Have people tried this with a xorg from after this commit:


Wed May 18 21:20:35 2005  Soren Sandmann  <sandmann@redhat.com>

        * programs/Xserver/fb/fbmmx.c (fbCompositeSrc_8888x8x8888mmx):
        s/dst/src that I missed in the previous patch. Pointed out by
        Owen Taylor.

Wed May 18 16:47:44 2005  Soren Sandmann  <sandmann@redhat.com>

        * programs/Xserver/fb/fbmmx.c (fbCompositeSrc_8888x8x8888mmx):
        Actually assign the computed results. (Reported by Michael
        Daenzer, patch by Owen Taylor).
Comment 9 Donnie Berkholz 2005-08-02 03:24:24 UTC
There's a report on here from 6.8.99.15, which is well after that date.
Comment 10 Iain 2005-08-04 10:08:16 UTC
For the record, it also happens with rdesktop to a windows box, using various
apps.  I don't know if this is relavent, but I noticed all the reports mention
wine an openoffice.

rdesktop 1.4.1
xorg 6.8.2-r2
Comment 11 Søren Sandmann Pedersen 2005-08-06 07:26:25 UTC
Has anyone seen this with another distribution than Gentoo?
Comment 12 László Károly 2005-08-13 08:52:19 UTC
(In reply to comment #11)
> Has anyone seen this with another distribution than Gentoo?
FreeBSD 5.4, 6-BETA (x.org was compiled from CVS as of today)
Comment 13 Donnie Berkholz 2005-09-13 23:30:54 UTC
Søren, presume you can't reproduce this on Fedora?
Comment 14 Donnie Berkholz 2005-09-13 23:49:33 UTC
(In reply to comment #3)
> Created an attachment (id=3085) [edit]
> Patch that breaks xorg 6.8.2
> 
> With this patch applied, xorg 6.8.2 is affected by the same problem of the
> recent snapshots.

Want to reattach this? Looks like it got corrupted.
Comment 15 Søren Sandmann Pedersen 2005-09-14 10:23:21 UTC
I haven't seen the problem, no.
Comment 16 Giacomo Perale 2005-09-14 10:37:24 UTC
Created attachment 3267 [details] [review]
9914_all_6.8.2-mmx-gcc4.patch

(In reply to comment #12)
> 
> Want to reattach this? Looks like it got corrupted.

patch reattached. BTW, I didn't mention that the problem is not clearly visible
in oo2 or ximian-openoffice's interface, but only with plain openoffice. in
ximian 1.3.15 I noticed just a few black icons, for example in Calc formula
editor.
Comment 17 Paul de Vrieze 2005-09-15 01:52:24 UTC
Created attachment 3278 [details]
screenshot of openoffice2 under a broken xorg

In the openoffice 2 beta's the problem is not any longer with the icons. But it
is present in smaller widgets like the subwindow close widget. I've attached a
screenshot of openoffice impress 680-m125 that shows the problem. The only
black square that should be on the picture is in the color selection widget.
The other (not text blacks) should be some shades of gray.
Comment 18 Giacomo Perale 2005-09-25 07:17:31 UTC
from a comment in Gentoo bugzilla:
------- Additional Comment #72 From  Matthew Stapleton  2005-09-25 07:11 PDT -------

After looking at 9914_all_6.8.2-mmx-gcc4.patch, I removed the changes to 
fbpict.c and that made no difference.  Then I removed the changes it makes to 
fbcopy and that seemed to fix the problem. 
 
I'm using gcc 3.4.4, CFLAGS="-O3 -march=pentium4 -fomit-frame-pointer -pipe", 
and mmx and sse USE flags for xorg-x11. 
Comment 19 Joshua Baergen 2005-10-01 22:15:33 UTC
A possible solution has been proposed and tested (successfully) by one person.

http://bugs.gentoo.org/show_bug.cgi?id=96053#c83
Comment 20 Adam Jackson 2005-10-02 21:59:44 UTC
*** Bug 4569 has been marked as a duplicate of this bug. ***
Comment 21 Adam Jackson 2005-10-03 00:07:35 UTC
solution looks perfect, will commit in the morning.
Comment 22 Joshua Baergen 2005-10-03 09:35:06 UTC
Alright, I just tested the patch against our latest modular snapshot and it
applied cleanly and fixed the problem.
Comment 23 Adam Jackson 2005-10-03 12:34:05 UTC
applied, thanks!

i think i'm terrified that someone is actually using something besides GXcopy
though.

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.