Bug 155753 - PPC: images in qt4 appear with wrong color channels
Summary: PPC: images in qt4 appear with wrong color channels
Status: RESOLVED UPSTREAM
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
: 163028 171785 193345 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-01-14 15:51 UTC by Jacopo Ghiglieri
Modified: 2009-05-20 23:17 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jacopo Ghiglieri 2008-01-14 15:51:09 UTC
Version:            (using KDE KDE 4.0.0)
Installed from:    Debian testing/unstable Packages
OS:                Linux

A picture is worth a thousand words: http://utenti.lycos.it/nedellis/snapshot1.png . Look in particular at the buttons in konqueror, at the google logo in konqueror and note that firefox displays it correctly, at the K-menu at the bottom left (it should be blue) and analogously for the laptop icon at the bottom right.
The bug seems to have a certain randomness: sometimes icons in dolphin appear blue, as they should be, and sometimes appear orange, for example.
Gtk apps, such as firefox, work fine.
System info:
Debian testing/unstable on a ppc machine (Apple Powerbook G4 12 inches)
kde4 installed with the debian experimental packages.
Xorg server 1.4 with nv driver.
I have never seen anything like that with gnome or xfce4. I have never tried kde3 on this laptop. I put "kde" as the involved component because this bug seems to happen in all kde4 applications. It is debatable whether this is a kde4 or a qt4 bug (also the swapped colors makes me think of a possible endiannes issue, but this could be a long shot). Anyhow I've checked debian's bugzilla for a similar bug, both in kde4 and in qt4, with no results.
If needed I can provide other screenshots.
Comment 1 Benjamin Reed 2008-01-14 18:12:39 UTC
It sounds like an endianness issue.  On OSX I've seen similar issues if libpng got cross-compiled.  Not sure how you would go about fixing it, but I would bet that endianness is the culprit.
Comment 2 Davide Bettio 2008-01-14 18:30:19 UTC
I see the same bug with debian testing on a 12" G4 iBook that runs Debian Testing. I'm using instead of nv an ati r300 videocard with Xorg's ati drivers.
I'm running a compiled KDE 4 but Qt4 comes from a debian package (libqt4-* 4.3.3-2).
If I remember well I hadn't this bug with a previous Qt4 version (4.3.1-2).
Comment 3 Vladimir Ananiev 2008-02-22 21:04:48 UTC
I saw the same bug with KDE 4.0.1 on Gentoo x86
X11 config [xorg.conf]:
Section "Extensions"
 Option "Composite" "Enable"
 Option "RENDER" "Enable"
 Option "DAMAGE" "Enable"
 Option "XVideo" "Enable"
EndSection

Section "Device"
 Identifier "ATI HD2400"
 Driver "fglrx"
 Busid "PCI:1:0:0"
Option "XAANoOffscreenPixmaps" "on" 
Option "VideoOverlay" "on" 
Option "TexturedVideo" "on" 
Option "Textured2D" "on" 
Option "TexturedXrender" "on" 
Option "UseFastTLS" "1" 
Option "BackingStore" "on" 
Option "MaxGARTSize" "256" 
EndSection

If the "Desktop Settings -> Visual effects" are all off then I see this bug.
If I turn Visual effects on - then the bug is gone.
Comment 4 Médéric Boquien 2008-11-08 21:55:48 UTC
Hello,

As pure Qt apps suffer from this bug too, it is very likely it is a Qt problem. Please report to the Qt bug tracker.

Thanks.
Comment 5 Pino Toscano 2008-11-10 09:30:46 UTC
*** Bug 171785 has been marked as a duplicate of this bug. ***
Comment 6 Laurent G. 2009-02-15 21:37:36 UTC
As #4 says it is a Qt thing, I bump here, as getting to Qt 4.5 does no better.
And I can not find a tracker entry at QtSoftware that handles the case.
Has anyone spotted an ID or URL ? Thanks in advance.
By the way, I can not see is this tracker entry nor in Bug 171785 what indicates it is a Qt thing in stead of a KDE thing.
Comment 7 penaz 2009-04-13 18:53:38 UTC
Can I confirm, is a Qt4 bug and it has scheduled for 4.5.x. Follow the link
http://www.qtsoftware.com/developer/task-tracker/index_html?method=entry&id=196152
Comment 8 penaz 2009-04-17 19:03:06 UTC
Good news, this bug is fixed for Qt 4.5.2.
Comment 9 Dario Andres 2009-05-10 01:04:49 UTC
*** Bug 163028 has been marked as a duplicate of this bug. ***
Comment 10 Pino Toscano 2009-05-20 12:04:56 UTC
*** Bug 193345 has been marked as a duplicate of this bug. ***
Comment 11 Christian Schmitt 2009-05-20 12:25:21 UTC
(In reply to comment #8)
> Good news, this bug is fixed for Qt 4.5.2.

Can you tell me if the patch from here: http://qt.gitorious.org/qt/qt/commit/e018b82432055d9a5f13be7c17e31502830b9fa7
is sufficient to get it working? I applied it to 4.5.1 but it does not change a thing. Also tried qt-copy to no avail. Any hints?
Comment 12 Christian Schmitt 2009-05-20 23:17:46 UTC
Ok, works for me now, too. I had to remove the KDE cache files.