After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 755442 - Constant high CPU usage when searching or selecting text
Constant high CPU usage when searching or selecting text
Status: RESOLVED FIXED
Product: evince
Classification: Core
Component: general
3.18.x
Other Linux
: Normal normal
: ---
Assigned To: Evince Maintainers
Evince Maintainers
: 756366 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2015-09-22 21:47 UTC by Sebastian Keller
Modified: 2015-10-12 16:03 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
libview: Save/restore context when getting colors for a different state different state (1.90 KB, patch)
2015-09-22 21:47 UTC, Sebastian Keller
committed Details | Review

Description Sebastian Keller 2015-09-22 21:47:15 UTC
Created attachment 311911 [details] [review]
libview: Save/restore context when getting colors for a  different state different state

libview is using the style context to get colors for a different state of the widget without saving/restoring the context from its draw call. This can trigger an invalidation and a redraw. And since this is happening from the draw call there is a redraw loop resulting in constant high CPU usage.

This is happening for example when selecting text or if some search result is visible on the current page.
Comment 1 Carlos Garcia Campos 2015-09-24 10:47:28 UTC
Comment on attachment 311911 [details] [review]
libview: Save/restore context when getting colors for a  different state different state

Pushed to git master, thanks!
Comment 2 Germán Poo-Caamaño 2015-10-12 16:03:50 UTC
*** Bug 756366 has been marked as a duplicate of this bug. ***