Bug 340432

Summary: Black areas on screen
Product: [Unmaintained] kdelibs Reporter: Iharob Al Asimi <iharob>
Component: kshareddatacacheAssignee: kdelibs bugs <kdelibs-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: cfeck, mpyne
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: This is how it looks.
attachment-12269-0.html
attachment-16656-0.html

Description Iharob Al Asimi 2014-10-28 16:03:37 UTC
Icons and some areas of widgets appear with a black background, for example in amarok the playlist is completly black except when text is selected, it shows text with `text selected color (white)'.

Icons not only have a black background they also look like if their image was not loaded correctly, I mean the colors are not right the top left offset is wrong too and some scanlines are incomplete.

When i change some icons settings and apply them all the visible icons (and some others but not all) get back to normal.

Reproducible: Sometimes

Steps to Reproduce:
1. Login into KDE desktop
2. Start any application (even openning kickoff menu shows the problems in icons)
3.

Actual Results:  
The icons and widgets have black areas (they seem to be the default background)

Expected Results:  
Icons should have transparent background and widgets should have system palette background color background.

I have an AMD A6 processor with integrated ATI Radeon and same problem occurs with fglrx and the linux driver.

Qt version is 4.8.6
KDE version is 4.14.2 and kde-workspace 4.11.13
Comment 1 Iharob Al Asimi 2014-10-28 16:07:29 UTC
Created attachment 89345 [details]
This is how it looks.
Comment 2 Christoph Feck 2014-10-28 22:15:19 UTC
Please report this issue to the bug tracker of your distribution. They can decide if the bug is with the X server or the video drivers.
Comment 3 Iharob Al Asimi 2014-10-29 02:07:45 UTC
Created attachment 89353 [details]
attachment-12269-0.html

Ok, sorry i have no distribution bug tracker because I built one from the
`Linux from Scratch' book and now it became quite different from the book's
distribution, but i did suspect the X server had something to do, i will
try to rebuild the X server upgrade or downgrade it, since most likely the
video drivers have nothing to do. Thank you for your response, once I find
out what is going on I will write again to inform you. Thank you again.

2014-10-28 17:45 GMT-04:30 Christoph Feck <christoph@maxiom.de>:

> https://bugs.kde.org/show_bug.cgi?id=340432
>
> Christoph Feck <christoph@maxiom.de> changed:
>
>            What    |Removed                     |Added
>
> ----------------------------------------------------------------------------
>          Resolution|---                         |DOWNSTREAM
>              Status|UNCONFIRMED                 |RESOLVED
>                  CC|                            |christoph@maxiom.de
>
> --- Comment #2 from Christoph Feck <christoph@maxiom.de> ---
> Please report this issue to the bug tracker of your distribution. They can
> decide if the bug is with the X server or the video drivers.
>
> --
> You are receiving this mail because:
> You reported the bug.
>
Comment 4 Iharob Al Asimi 2014-10-30 15:55:09 UTC
Created attachment 89385 [details]
attachment-16656-0.html

Hello, it turns out that it seems to be a KDE bug, related to pixmap
caching.

if I do this

rm /var/tmp/kdecache-<username>/icon-cache.kcache

all icons are ok, and amarok thing, is because it uses a background pixmap
in the play list wich I assume is also cached to the filesystem. In fact
there is an Amarok-pixmaps.kcache file in /var/tmp/kdecache-<username> a
deleted it but the problem persists though it goes away for a moment.

If you think this is not a BUG please let me know.

Thanks in advance.
Comment 5 Christoph Feck 2014-10-30 20:36:22 UTC
I have no idea how the pixmap caches work; I had the impression they are converted to QImage and stored as raw image data. It could be a bug in the cache, or a bug in the drivers that are responsible for converting the X11 pixmaps to Xrender images.

Keeping this open, but do not expect anyone to have an idea, until someone knows how to debug it on your system.
Comment 6 Iharob Al Asimi 2014-11-09 21:43:09 UTC
There is no KDE bug. I am developing an application 
that uses a Zebra label printer which stores image 
data in PCX format, i have a custom image format 
plugin for Qt which handles PCX but not all possible  
`QImage::Format formats' only 1BPP monochrome and a 
few color formats `don't remeber which ones right 
now' and it was conflicting with KDE's implementation 
of PCX format since it was in the main Qt plugins 
directory, i found out that the cache data is saved 
as PCX and converted to PNG before rendering and that 
was the cause of the problem. I am very sorry for 
this, I had to investigate it before sending this 
report, but I had no time, so I ended up wasting your 
time instead of mine. I appologize again, sorry and 
thank you very much for your support. And sorry if I 
have spelling errors, english is not my native 
language it is spanish.
Comment 7 Christoph Feck 2014-11-09 22:30:07 UTC
Thanks for the update, let's close this then.