Bug 290971 - Artifacts when scrolling systemsettings view (icon view UI)
Summary: Artifacts when scrolling systemsettings view (icon view UI)
Status: CONFIRMED
Alias: None
Product: frameworks-kitemviews
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.45.0
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: David Edmundson
URL:
Keywords:
: 341003 343601 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-01-08 14:23 UTC by Nikita Skovoroda
Modified: 2019-03-06 18:57 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
Video #1 — Russian language systemsettings. (967.61 KB, application/ogg)
2012-01-08 14:29 UTC, Nikita Skovoroda
Details
Video #2 — English language (891.39 KB, application/ogg)
2012-01-08 14:41 UTC, Nikita Skovoroda
Details
Video #3 — English language, longer (997.63 KB, application/ogg)
2012-01-08 14:45 UTC, Nikita Skovoroda
Details
A screenshot with KDE 4.9.2 + Qt 4.8.3 (151.69 KB, image/png)
2012-11-01 15:40 UTC, Nikita Skovoroda
Details
A testcase against KCategorizedView. (2.87 KB, text/x-c++src)
2014-08-09 18:22 UTC, Nikita Skovoroda
Details
A testcase against KCategorizedView, longer text. (2.93 KB, text/x-c++src)
2014-08-09 18:59 UTC, Nikita Skovoroda
Details
Video showing text being cut of when scrolling (using the mouse wheel) (284.32 KB, video/x-matroska)
2017-01-06 19:39 UTC, Karl Ove Hufthammer
Details
attachment-9780-0.html (991 bytes, text/html)
2017-07-29 16:57 UTC, Nikita Skovoroda
Details
5.12.5 + Qt 5.11.0 (31.25 KB, image/png)
2018-05-26 07:11 UTC, Nikita Skovoroda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Skovoroda 2012-01-08 14:23:16 UTC
Version:           1.0 (using Devel) 
OS:                Linux



Reproducible: Always

Steps to Reproduce:
(See the videos)
Open systemsettings, scroll the view (with scrollbar — better, or with mouse wheel — visible only on some setups, because much less scroll steps).

Actual Results:  
Text is shown partially.
Some icons are sometimes shifted. This depends on the setup, but happens every time. Visible when that group is hovered by mouse. See video #2.

Expected Results:  
No artifacts, all text is shown nicely, icons should not shift on hover

The glitch goes to normal when that group of icons is hovered by a mouse.
Comment 1 Nikita Skovoroda 2012-01-08 14:29:18 UTC
Created attachment 67581 [details]
Video #1 — Russian language systemsettings.

Had to recode this, 1016 KiB did not fit into an attachment.
Comment 2 Nikita Skovoroda 2012-01-08 14:41:54 UTC
Created attachment 67582 [details]
Video #2 — English language
Comment 3 Nikita Skovoroda 2012-01-08 14:45:08 UTC
Created attachment 67583 [details]
Video #3 — English language, longer

Recoded.
Comment 4 Nikita Skovoroda 2012-01-09 04:18:07 UTC
Why did you change version to unspecified?

$ systemsettings --version
Qt: 4.8.0
KDE: 4.7.97 (4.8 RC2 (4.7.97)
Параметры системы: 1.0
Comment 5 Nikita Skovoroda 2012-01-09 18:20:53 UTC
(In reply to comment #4)
> Why did you change version to unspecified?
> 
> $ systemsettings --version
> Qt: 4.8.0
> KDE: 4.7.97 (4.8 RC2 (4.7.97)
> Параметры системы: 1.0

Ah, now i get it. Sorry.

> Product|systemsettings|kdelibs
Comment 6 Nikita Skovoroda 2012-05-22 15:21:46 UTC
I can still confirm it on KDE: 4.8.3 + Qt: 4.8.1.
Comment 7 Nikita Skovoroda 2012-11-01 15:39:21 UTC
Still happens with KDE: 4.9.2 + Qt: 4.8.3.
Comment 8 Nikita Skovoroda 2012-11-01 15:40:47 UTC
Created attachment 74918 [details]
A screenshot with KDE 4.9.2 + Qt 4.8.3
Comment 9 Nikita Skovoroda 2012-11-01 15:42:03 UTC
This does not seem to depend on the videocard used, i can reproduce this with radeon and intel drivers.
Comment 10 Nikita Skovoroda 2013-07-08 05:04:07 UTC
Still reproducible on KDE: 4.10.90 and QT: 4.8.5.
Comment 11 Nikita Skovoroda 2014-08-09 15:19:31 UTC
Still reproducible on Systemsettings 5.0 using KDE Frameworks 5.1.0 and Qt 5.3.1.
Comment 12 Nikita Skovoroda 2014-08-09 16:49:39 UTC
This does not depend on Qt theme or kwin settings.
Comment 13 Nikita Skovoroda 2014-08-09 16:53:54 UTC
Steps to reproduce: open systemsettings, resize it to the smallest possible size, scroll down, slowly scroll up.

«Workspace Theme» becomes just «Workspace», the second word gets truncated.
Comment 14 Nikita Skovoroda 2014-08-09 17:34:38 UTC
Looking at the source, this might be a bug in KCategorizedView with wordWrap == true.
Comment 15 Nikita Skovoroda 2014-08-09 18:19:06 UTC
I nailed it down to d->categoryView->setFrameShape( QFrame::NoFrame );

https://projects.kde.org/projects/kde/workspace/systemsettings/repository/revisions/1f9cc223/entry/icons/IconMode.cpp#L182

Adding setWordWrap(true); and setFrameShape(QFrame::NoFrame); to a simple KCategorizedView with multi-word label names makes it lag.

Is this a bug in systemsettings or kitemviews?
Comment 16 Nikita Skovoroda 2014-08-09 18:22:14 UTC
Created attachment 88185 [details]
A testcase against KCategorizedView.
Comment 17 Christoph Feck 2014-08-09 18:22:47 UTC
Check https://bugs.kde.org/show_activity.cgi?id=290971

I reassigned it to kdeui, because the bug is in KCategorizedView.
Comment 18 Nikita Skovoroda 2014-08-09 18:25:32 UTC
Just a note: removing setFrameShape makes multi-lined elements disappear earlier than they are moved out of view and appear later than they are moved in the view.

But that looks better than corruption.
Comment 19 Nikita Skovoroda 2014-08-09 18:29:31 UTC
Christoph Feck, thanks, I missed that.
Is it in the correct place now?
Comment 20 Nikita Skovoroda 2014-08-09 18:57:48 UTC
The glitches disappear once you move the mouse over the view (excluding the scrollbar). 

If it's over the view, but you don't move it — the glitches are still there.
Comment 21 Nikita Skovoroda 2014-08-09 18:59:41 UTC
Created attachment 88186 [details]
A testcase against KCategorizedView, longer text.
Comment 22 Christoph Feck 2014-11-16 12:26:25 UTC
*** Bug 341003 has been marked as a duplicate of this bug. ***
Comment 23 Christoph Feck 2015-02-01 12:06:12 UTC
*** Bug 343601 has been marked as a duplicate of this bug. ***
Comment 24 Nikita Skovoroda 2015-02-01 12:37:42 UTC
Could you change the Status to CONFIRMED?
Comment 25 John Lindgren 2015-09-04 04:46:20 UTC
I can no longer reproduce this (or at least the specific case of bug #343601) in KDE 5.4.
Comment 26 John Lindgren 2015-09-04 05:23:33 UTC
(In reply to John Lindgren from comment #25)
> I can no longer reproduce this (or at least the specific case of bug
> #343601) in KDE 5.4.

Scratch that, just saw it again.
Comment 27 Nikita Skovoroda 2016-03-24 09:22:52 UTC
Reproducible in systemsettings 5.6.0, KF  5.19, Qt 5.6.0.
Comment 28 Karl Ove Hufthammer 2017-01-06 19:37:07 UTC
This bug is still reproducible in Plasma 5.8.5, running Frameworks 5.29.0 and Qt 5.7.1. I’ll attach a video showing the problem in action.
Comment 29 Karl Ove Hufthammer 2017-01-06 19:39:48 UTC
Created attachment 103243 [details]
Video showing text being cut of when scrolling (using the mouse wheel)

Video showing text being cut of when scrolling (using the mouse wheel). Note that the text for ‘Skjerm og skjermbilete’ and ‘Flyttbare lagringseiningar’ are being trucated until I move the mouse pointer to the icon row.
Comment 30 Albert Astals Cid 2017-07-29 16:44:57 UTC
This seems to work fine for me on systemsettings 5.10.4

Can anyone else confirm it works for them?
Comment 31 Karl Ove Hufthammer 2017-07-29 16:55:24 UTC
(In reply to Albert Astals Cid from comment #30)
> This seems to work fine for me on systemsettings 5.10.4
> 
> Can anyone else confirm it works for them?

No, I can *not* confirm. It still happens for me on 5.10.4, although less often. (I was about to write that I could confirm, but after some more testing (resizing the window and scrolling), the bug reappeared.)
Comment 32 Nikita Skovoroda 2017-07-29 16:57:49 UTC
Created attachment 106953 [details]
attachment-9780-0.html

No, it doesn't work for me in 5.10.4, I just checked — I can still
reproduce the artifacts.
Qt 5.9.1, btw.

2017-07-29 19:44 GMT+03:00 Albert Astals Cid <bugzilla_noreply@kde.org>:

> https://bugs.kde.org/show_bug.cgi?id=290971
>
> --- Comment #30 from Albert Astals Cid <aacid@kde.org> ---
> This seems to work fine for me on systemsettings 5.10.4
>
> Can anyone else confirm it works for them?
>
> --
> You are receiving this mail because:
> You reported the bug.
>
Comment 33 Nikita Skovoroda 2018-05-26 07:06:53 UTC
Can't seem to reproduce on 5.12.5 + Qt 5.11.0.
Can anyobe confirm?
Comment 34 Nikita Skovoroda 2018-05-26 07:09:08 UTC
Ah, no, sorry.

I am still able to reproduce this on 5.12.5 + Qt 5.11.0, just the icons got rearranged so this is harder to notice.
Comment 35 Nikita Skovoroda 2018-05-26 07:11:58 UTC
Created attachment 112874 [details]
5.12.5 + Qt 5.11.0

Each of those should have three lines, «Оформление/Поведение рабочей среды», but they disappear after scrolling.
Comment 36 Karl Ove Hufthammer 2019-03-06 18:57:30 UTC
I can confirm that this bug is still present on:

KDE Plasma Version: 5.15.2
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.0