Bug 387943 - Can only see part of the icons on the home screen
Summary: Can only see part of the icons on the home screen
Status: CONFIRMED
Alias: None
Product: kphotoalbum
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: KPhotoAlbum Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-15 23:59 UTC by Chris
Modified: 2018-01-05 21:11 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot showing home screen icon display (22.51 KB, image/jpeg)
2017-12-15 23:59 UTC, Chris
Details
screenshot ubuntu 17.10 16.04 kubuntu 17.10 and opensuse leap 42.2 (366.62 KB, image/png)
2017-12-17 19:00 UTC, Andreas Schleth
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris 2017-12-15 23:59:10 UTC
Created attachment 109397 [details]
Screenshot showing home screen icon display

On 5.2 in Debian testing, the home screen shows only the tops of the icons.  Was this way on a clean install out of the box.  Attachment screenshot added.
Comment 1 Andreas Schleth 2017-12-17 19:00:44 UTC
Created attachment 109434 [details]
screenshot ubuntu 17.10 16.04 kubuntu 17.10 and opensuse leap 42.2

I saw this with ubuntu 16.04 and now with 17.10 again. But NOT in Kubuntu (and not in opensuse). Thus, some KDE related dependency might be missing in the gnome/unity builds.
Comment 2 Johannes Zarl-Zierl 2017-12-17 21:52:19 UTC
I'm not sure how this can happen. Any additional information that might help is appreciated…
Comment 3 Chris 2017-12-17 22:23:53 UTC
Not a coder at all, if you can tell me some info to get for you I will gladly do it, but I don't know what to send.
Comment 4 Johannes Zarl-Zierl 2018-01-05 11:18:43 UTC
Git commit 7aedd67f61840802bb9d420a00283c6061e70d13 by Johannes Zarl-Zierl.
Committed on 05/01/2018 at 11:16.
Pushed by johanneszarl into branch 'master'.

Workaround for incorrectly displayed icons on Ubuntu.

On Qt5.5 if the last item in the list view of the Browser OverViewPage
has no DecorationRole, then the whole list view "collapses" to the size
of text-only items, cutting off the existing thumbnails.  This can be
triggered by an incomplete icon theme.

M  +13   -1    Browser/OverviewPage.cpp

https://commits.kde.org/kphotoalbum/7aedd67f61840802bb9d420a00283c6061e70d13
Comment 5 Johannes Zarl-Zierl 2018-01-05 12:11:06 UTC
For reference, there is/was also a mailing-list discussion about this issue:
https://mail.kdab.com//pipermail/kphotoalbum/2018-January/thread.html
Comment 6 Andreas Schleth 2018-01-05 17:46:28 UTC
Am 05.01.2018 um 13:11 schrieb Johannes Zarl-Zierl:
> https://bugs.kde.org/show_bug.cgi?id=387943
>
> --- Comment #5 from Johannes Zarl-Zierl <johannes@zarl-zierl.at> ---
> For reference, there is/was also a mailing-list discussion about this issue:
> https://mail.kdab.com//pipermail/kphotoalbum/2018-January/thread.html
>
Hi Johannes,

this seems to fix the view issue more or less. However, the last icon 
seems to be a bit off colour.

At first it shows some real icon, but then switches to something 
everchanging, as if it would show random bits.

I suppose it reads some random memory instead of the image. I checked in 
Ubuntu 16.04, 17.10 and Mint 18.3.

Cheers, Andreas
Comment 7 Johannes Zarl-Zierl 2018-01-05 21:11:37 UTC
(In reply to Andreas Schleth from comment #6)
> At first it shows some real icon, but then switches to something 
> everchanging, as if it would show random bits.
> 
> I suppose it reads some random memory instead of the image. I checked in 
> Ubuntu 16.04, 17.10 and Mint 18.3.

I should have read the api doc - QPixmap just uses uninitialized memory by default. Fixed in git master…