[dash] Huge performance hit when scrolling search results with accessibility enabled
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| unity-2d |
Fix Released
|
High
|
Michał Sawicz | ||
| qt4-x11 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
| unity-2d (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Bug Description
Steps to reproduce:
1. Open up a lens in the dash that has a lot of results to display
2. Expand the results
3. Scroll up and down using any mean at your disposal (scrollbar, mouse chord, dragging)
The CPU load of unity-2d-places goes through the roof (100%) and visually the scrolling is not smooth at all.
This is a very recent regression. Probably not in the QML code since it has nearly not changed at all recently. Maybe a new bug in QML itself or in Dee?
Related branches
- Albert Astals Cid (community): Approve
- Gerry Boland: Pending requested
- Michał Sawicz: Pending requested
-
Diff: 341 lines (+92/-64) 9 files modifiedapilibunity-2d-private/src/lens.cpp (+15/-3)
libunity-2d-private/src/lenses.cpp (+8/-5)
libunity-2d-private/src/lenses.h (+2/-0)
shell/app/shelldeclarativeview.cpp (+7/-0)
shell/app/shelldeclarativeview.h (+2/-0)
shell/dash/Dash.qml (+25/-17)
shell/dash/LensBar.qml (+20/-19)
shell/dash/LensView.qml (+7/-6)
shell/dash/RendererGrid.qml (+6/-14)
- Albert Astals Cid (community): Approve (fun)
- Gerry Boland (community): Needs Fixing
- Michał Sawicz: Abstain
-
Diff: 341 lines (+92/-64) 9 files modifiedapilibunity-2d-private/src/lens.cpp (+15/-3)
libunity-2d-private/src/lenses.cpp (+8/-5)
libunity-2d-private/src/lenses.h (+2/-0)
shell/app/shelldeclarativeview.cpp (+7/-0)
shell/app/shelldeclarativeview.h (+2/-0)
shell/dash/Dash.qml (+25/-17)
shell/dash/LensBar.qml (+20/-19)
shell/dash/LensView.qml (+7/-6)
shell/dash/RendererGrid.qml (+6/-14)
Hmmm... <small>I changed a few things, for bug 817421</small>
I'll try to revert that patch, and see how things go.
Florian, I'm not sure that I can reproduce it. I just upgraded my system, and I don't notice any performance regressions. I also tried reverting the changes I did for bug 817421, but I don't notice any speed difference.
I tried in VirtualBox, both when the VM has 4 processors, and when it has 1.
I'm using the ubuntu-
Do you have some other PPAs active?
After installing the qt-at-spi package I notice the same performance degradation as well. So, it looks like this bug is related to accessibility.
I'll have a look at how a11y is implemented, to see if there are some obvious improvements we can make.
After a quick investigation, it seems that graphic elements need to notify the accessibility plugin (qt-at-spi) whenever their position changes; I'm not sure how costly this is, and if there are ways to fix it. I'm getting in touch with Qt developers to know more about it.
OTOH, qt-at-spi seems to have changed a lot since June (and the version we are shipping now in Ubuntu is from June); unfortunately I couldn't test the new version, as it requires qt 4.8.
+ [dash] Huge performance hit when scrolling search results with
+ accessibility enable
- accessibility enable
+ accessibility enabled
Status changed to 'Confirmed' because the bug affects multiple users.
The Dash Grid has been re-architectured significantly in commit 788. Please check to see if this change has improved this situation.
Indeed the impact of accessibility seems to have reduced greatly. Unless someone with a slower machine still finds this to be a problem, I'm ok to close this.
Me too, I did a quick test and have no complaints. Marking as Fixed
This bug was fixed in the package unity-2d - 5.2.0-0ubuntu1
---------------
unity-2d (5.2.0-0ubuntu1) precise; urgency=low
[ Didier Roche ]
* New upstream release:
- Select quicklist items with just one right click (LP: #688830)
- Launcher - Dragging and dropping a running application in to the Trash
should quit the application and (if the app is pinned to the Launcher)
un-pin the application from the Launcher (LP: #870143)
- Dash - "See more..." line should be base-aligned with section header
(LP: #748101)
- right click on the dash icon should display a list of the lenses
(LP: #868452)
- Top Bar - rename the "Desktop" title in the Top Bar (displayed when no
window has focus) to "Ubuntu Desktop" (LP: #869873)
- Application title on quicklist should be bold (or more visible)
(LP: #900400)
- unity-2d-launcher crashed with SIGSEGV when opening a folder on a CD
(LP: #831868)
- unity-2d-places crashed with SIGSEGV in QScriptValue:
(LP: #836498)
- unity-2d-launcher crashed with SIGSEGV in geis_finish() (LP: #850893)
- unity-2d-places crashed with SIGABRT in raise() (LP: #857575)
- unity-2d-launcher crashed with SIGSEGV in exit() (LP: #859596)
- [spread] layout broken since bzr revision 799 of lp:unity-2d
(LP: #900895)
- [workspace switcher] keyboard navigation of workspace switcher broken
for accessibility (LP: #744978)
- [spread] workspace switcher performance is poor, especially on low
powered CPUs (LP: #745764)
- Launcher - the rendering of the BFB and Lens squircle does not match the
design (LP: #838708)
- [dash] Huge performance hit when scrolling search results with
accessibility enabled (LP: #862956)
- DBUS_STARTER_
environment making gedit and possibly others fail to start (LP: #873027)
- Win Key can not be disabled in Unity-2d (LP: #873580)
- [dash] Unity-2d dash very slow to open (LP: #881756)
- [tests] LauncherViewTest hanging (LP: #894380)
- [tests] Unit tests failing due to lack of Xserver (LP: #894381)
- [launcher] Alt+F1 broken: does not give the focus to the launcher's
content (LP: #901505)
- [tests] Add Automated User Experience testing (LP: #903495)
- [workspace switcher] Performance can be poor when using the opengl
backend because of window texture sizes that are not limited
(LP: #808716)
- [dash] no way to unmaximize (LP: #860400)
- [launcher] In non-composite mode, background is black (LP: #879288)
- [dash] Unity 2D shows 'Search' instead of 'Run Command' on ALT + F2
(LP: #883392)
- [launcher] Removing icon from launcher makes it hide immediately
(LP: #884410)
- OpenGL disabled regardless of use-opengl setting (LP: #887957)
- if libdir does not equal lib (LP: #888164)
- [launcher] Launcher stuck open while mouse moved to left corner of panel
(LP: #892004)
- [dash] Long results label are truncated instead of elided and a few
pixels of the next line is visible (LP: #901491)
- [launcher] Dash icon missing...