** Also affects: variety (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: variety (Ubuntu)
       Status: New => Fix Released

** Description changed:

  Version:0.5.4
  DE:Cinnamon 2.6.13
  OS:Linux Mint 17.2
  
  When you chnage the backgroud in the history panel or scroll in it the CPU 
utilisation goes up to 100% and stay there.
  I need to close the panel and reopen it to restore the utilisation back to 
normal.
  The problem seem also to be in the download history panel and the selection 
of background too.
+ 
+ ----
+ 
+ Below is the SRU information by James Lu
+ (https://launchpad.net/~tacocat)
+ 
+ [Impact]
+ 
+  * The autoscroll feature in Variety's Wallpaper Selector dialog before
+ commit https://bazaar.launchpad.net/~variety/variety/trunk/revision/592
+ consumes excessive amounts of CPU after leaving the autoscroll area.
+ This affects both the "History" and "Wallpaper Selector" options found
+ in Variety's menu.
+ 
+  * Although this bug doesn't cause any serious damage, pegging a
+ machine's CPU is quite annoying and users will notice whirring fans and
+ reduced battery life as a result.
+ 
+  * The proposed fix adds a missing line to clear the autoscroll state
+ when leaving the wallpaper selector. This way, the code in
+ _autoscroll_thread() (which polls for whether the mouse is over the
+ wallpaper selector) doesn't instantly succeed and create an infinite
+ loop.
+ 
+ [Test Case]
+ 
+  1) Select one or more wallpaper sources so that in the Wallpaper
+ Selector, scrolling is needed to show all items.
+ 
+  2) Open the wallpaper selector, either by focusing on a wallpaper
+ source in the preferences dialog, or by choosing the "Wallpaper
+ Selector" option in Variety's tray menu.
+ 
+  3) Move the mouse over any of the images in the wallpaper selector.
+ 
+  4) Move the mouse away from the wallpaper selector. A CPU spike in Variety 
should appear now.
+    - Note that this CPU spike is different from any initial CPU spikes when 
the wallpaper selector first opens, as that is due to Variety generating all 
the thumbnails on the spot. The CPU spike mentioned in this bug lasts as long 
as the wallpaper selector is open and the mouse is not over it, while the 
initial spikes are temporary (they always last less than 5 seconds for me)
+ 
+ [Regression Potential]
+ 
+  * This patch affects the autoscroll portion of the wallpaper selector.
+ Should this patch be erroneous, some symptoms could include autoscroll
+ or the entire wallpaper selector not working entirely.
+ 
+  * Syntax or variable name errors will, on the other hand, raise Python
+ exceptions and possibly cause Variety to fail to start entirely.
+ 
+  * The original patch fixing this bug was included in Debian release
+ 0.6.3-5, which has been in Debian stretch for about 2 months and artful
+ for a similar time (I don't remember the exact date of the relevant
+ sync). No new bugs related to this issue have been opened since in
+ Debian and Ubuntu.

** Description changed:

  Version:0.5.4
  DE:Cinnamon 2.6.13
  OS:Linux Mint 17.2
  
  When you chnage the backgroud in the history panel or scroll in it the CPU 
utilisation goes up to 100% and stay there.
  I need to close the panel and reopen it to restore the utilisation back to 
normal.
  The problem seem also to be in the download history panel and the selection 
of background too.
  
  ----
  
  Below is the SRU information by James Lu
  (https://launchpad.net/~tacocat)
  
  [Impact]
  
-  * The autoscroll feature in Variety's Wallpaper Selector dialog before
+  * The autoscroll feature in Variety's Wallpaper Selector dialog before
  commit https://bazaar.launchpad.net/~variety/variety/trunk/revision/592
  consumes excessive amounts of CPU after leaving the autoscroll area.
  This affects both the "History" and "Wallpaper Selector" options found
  in Variety's menu.
  
-  * Although this bug doesn't cause any serious damage, pegging a
+  * Although this bug doesn't cause any serious damage, pegging a
  machine's CPU is quite annoying and users will notice whirring fans and
  reduced battery life as a result.
  
-  * The proposed fix adds a missing line to clear the autoscroll state
+  * The proposed fix adds a missing line to clear the autoscroll state
  when leaving the wallpaper selector. This way, the code in
  _autoscroll_thread() (which polls for whether the mouse is over the
  wallpaper selector) doesn't instantly succeed and create an infinite
  loop.
  
  [Test Case]
  
-  1) Select one or more wallpaper sources so that in the Wallpaper
+  1) Select one or more wallpaper sources so that in the Wallpaper
  Selector, scrolling is needed to show all items.
  
-  2) Open the wallpaper selector, either by focusing on a wallpaper
+  2) Open the wallpaper selector, either by focusing on a wallpaper
  source in the preferences dialog, or by choosing the "Wallpaper
  Selector" option in Variety's tray menu.
  
-  3) Move the mouse over any of the images in the wallpaper selector.
+  3) Move the mouse over any of the images in the wallpaper selector.
  
-  4) Move the mouse away from the wallpaper selector. A CPU spike in Variety 
should appear now.
-    - Note that this CPU spike is different from any initial CPU spikes when 
the wallpaper selector first opens, as that is due to Variety generating all 
the thumbnails on the spot. The CPU spike mentioned in this bug lasts as long 
as the wallpaper selector is open and the mouse is not over it, while the 
initial spikes are temporary (they always last less than 5 seconds for me)
+  4) Move the mouse away from the wallpaper selector. A CPU spike in Variety 
should appear now.
+    - Note that this CPU spike is different from any initial CPU spikes when 
the wallpaper selector first opens, as that is due to Variety generating all 
the thumbnails on the spot. The CPU spike mentioned in this bug lasts as long 
as the wallpaper selector is open and the mouse is not over it, while the 
initial spikes are temporary (they always last less than 5 seconds for me)
  
  [Regression Potential]
  
-  * This patch affects the autoscroll portion of the wallpaper selector.
+  * This patch affects the autoscroll portion of the wallpaper selector.
  Should this patch be erroneous, some symptoms could include autoscroll
  or the entire wallpaper selector not working entirely.
  
-  * Syntax or variable name errors will, on the other hand, raise Python
+  * Syntax or variable name errors will, on the other hand, raise Python
  exceptions and possibly cause Variety to fail to start entirely.
  
-  * The original patch fixing this bug was included in Debian release
+ [Other Info]
+ 
+  * The original patch fixing this bug was included in Debian release
  0.6.3-5, which has been in Debian stretch for about 2 months and artful
  for a similar time (I don't remember the exact date of the relevant
  sync). No new bugs related to this issue have been opened since in
  Debian and Ubuntu.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1494992

Title:
  100% CPU when the History or Wallpaper Selector panels are open

To manage notifications about this bug go to:
https://bugs.launchpad.net/variety/+bug/1494992/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to