xfce4-notes consumes 100% CPU with custom color

Bug #690534 reported by ddoxey
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
xfce4-notes-plugin
Confirmed
Medium
xfce4-notes-plugin (Ubuntu)
Triaged
Medium
Unassigned
Focal
New
Undecided
Unassigned
Impish
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: xfce4-notes-plugin

Set the background color to a custom shade and xfce4-notes will consume 100% CPU on the next xfce session.

WORKAROUND:

Stop and restart xfce4-notes.

Revision history for this message
Charlie Kravetz (charlie-tca) wrote :

Thank you for taking the time to report this bug and helping to make Xubuntu better. Unfortunately, we cannot work on this bug because your description didn't include enough information. Please include, if possible:

 1. The release of Xubuntu you are using, via 'lsb_release -rd'.
 2. The version of the package you are using, via 'apt-cache policy package_name' or by checking in Synaptic.
 3. What you expected to happen
 4. What happened instead

Changed in xfce4-notes-plugin (Ubuntu):
status: New → Incomplete
Revision history for this message
ddoxey (dylan-doxey) wrote :

$: ~ lsb_release -rd
Description: Ubuntu 10.10
Release: 10.10

$: ~ apt-cache policy xfce4-notes
xfce4-notes:
  Installed: 1.7.6-1build1
  Candidate: 1.7.6-1build1
  Version table:
 *** 1.7.6-1build1 0
        500 http://us.archive.ubuntu.com/ubuntu/ maverick/universe i386 Packages
        100 /var/lib/dpkg/status

I set a background color for xfce4-notes using the custom option and the color picker. The color changes as expected and xfce4-notes continues to function normally.

After system restart xfce4-notes process uses 100% CPU and the notes icon does not appear on the panel.

Revision history for this message
In , Cjk-6 (cjk-6) wrote :

$: ~ lsb_release -rd
Description: Ubuntu 10.10
Release: 10.10

$: ~ apt-cache policy xfce4-notes
xfce4-notes:
  Installed: 1.7.6-1build1
  Candidate: 1.7.6-1build1
  Version table:
 *** 1.7.6-1build1 0
        500 http://us.archive.ubuntu.com/ubuntu/ maverick/universe i386 Packages
        100 /var/lib/dpkg/status

I set a background color for xfce4-notes using the custom option and the color picker. The color changes as expected and xfce4-notes continues to function normally.

After system restart xfce4-notes process uses 100% CPU and the notes icon does not appear on the panel.

Screenshot of top showing the cpu at 100%:
https://bugs.launchpad.net/ubuntu/+source/xfce4-notes-plugin/+bug/690534/+attachment/1795999/+files/fce4-notes-cpu-screenshot.png

Revision history for this message
Charlie Kravetz (charlie-tca) wrote :

Thanks for reporting this bug and any supporting documentation. Since this bug has enough information provided for a developer to begin work, I'm going to mark it as confirmed and let them handle it from here.

This bug has been reported to the developers of the software. You can track it and make comments at: http://bugzilla.xfce.org/show_bug.cgi?id=7106

Thanks for taking the time to make Ubuntu better!

Changed in xfce4-notes-plugin (Ubuntu):
importance: Undecided → Medium
status: Incomplete → Triaged
Revision history for this message
In , Mmassonnet-0 (mmassonnet-0) wrote :

Please attach your configuration file:

$ cat ~/.config/xfce4/xfce4-notes.gtkrc
$ xfconf-query -c xfce4-panel -p /plugins/notes -lv

I was never able to reproduce such a bug :(

Can you try to install version 1.7.7 and see if it reproduces?

Revision history for this message
Charlie Kravetz (charlie-tca) wrote :

Comments from the Xfce notes developer:

Please attach your configuration file:

$ cat ~/.config/xfce4/xfce4-notes.gtkrc
$ xfconf-query -c xfce4-panel -p /plugins/notes -lv

I was never able to reproduce such a bug :(

Can you try to install version 1.7.7 and see if it reproduces?

Comments from Xubuntu - version 1.7.7 is not yet available in Natty.

Revision history for this message
ddoxey (dylan-doxey) wrote :

$: cat ~/.config/xfce4/xfce4-notes.gtkrc
gtk_color_scheme = "notes_fg_color:#e734ac00d262\nnotes_bg_color:#58f6422f50f3\nnotes_base_color:#e734ac00d262\nnotes_text_color:#58f6422f50f3\nnotes_selected_bg_color:#7a295ae16f29\nnotes_selected_fg_color:#e734ac00d262"
include "/usr/share/xfce4-notes-plugin/gtk-2.0/notes.gtkrc"

$: xfconf-query -c xfce4-panel -p /plugins/notes -lv
/plugins/notes/global/background-color #e734ac00d262
/plugins/notes/global/show-navbar false
/plugins/notes/global/skip-taskbar-hint false
/plugins/notes/global/tabs-position 1
/plugins/notes/new-window/always-on-top false
/plugins/notes/new-window/height 375
/plugins/notes/new-window/sticky false
/plugins/notes/new-window/width 300

An additional comment: If I kill the offending xfce4-notes process, and then restart by selecting Notes on the xfce4 menu the excessive CPU usage does not resume.

Revision history for this message
In , Cjk-6 (cjk-6) wrote :

$: cat ~/.config/xfce4/xfce4-notes.gtkrc
gtk_color_scheme = "notes_fg_color:#e734ac00d262\nnotes_bg_color:#58f6422f50f3\nnotes_base_color:#e734ac00d262\nnotes_text_color:#58f6422f50f3\nnotes_selected_bg_color:#7a295ae16f29\nnotes_selected_fg_color:#e734ac00d262"
include "/usr/share/xfce4-notes-plugin/gtk-2.0/notes.gtkrc"

$: xfconf-query -c xfce4-panel -p /plugins/notes -lv
/plugins/notes/global/background-color #e734ac00d262
/plugins/notes/global/show-navbar false
/plugins/notes/global/skip-taskbar-hint false
/plugins/notes/global/tabs-position 1
/plugins/notes/new-window/always-on-top false
/plugins/notes/new-window/height 375
/plugins/notes/new-window/sticky false
/plugins/notes/new-window/width 300

An additional comment: If I kill the offending xfce4-notes process, and then restart by selecting Notes on the xfce4 menu the excessive CPU usage does not resume.

Revision history for this message
ddoxey (dylan-doxey) wrote :

I'm not having much luck with installing xfce4-notes-plugin-1.7.7.
The gtk+-2.0 dependency is a bit of a hangup.

Revision history for this message
In , Mmassonnet-0 (mmassonnet-0) wrote :

Sorry, I cannot help further.

I believe having reproduced the bug, actually, but it doesn't reproduce easily. It seems to be a race condition, it can be both in GTK+ and the notes plugin. The cause can certainly be the theme, since GTK+ and theming are two things that don't fit well, but I can't change anything about this.

The solution is to simply stop / restart the plugin.

Revision history for this message
Charlie Kravetz (charlie-tca) wrote :

--- Comment #3 from Mike Massonnet <email address hidden> 2011-01-20 20:17:49 CET ---
Sorry, I cannot help further.

I believe having reproduced the bug, actually, but it doesn't reproduce easily.
It seems to be a race condition, it can be both in GTK+ and the notes plugin.
The cause can certainly be the theme, since GTK+ and theming are two things
that don't fit well, but I can't change anything about this.

The solution is to simply stop / restart the plugin.

description: updated
Revision history for this message
In , Mmassonnet-0 (mmassonnet-0) wrote :

By any chance, can you tell me if you are/were using an Aurora based theme?

I have reproduced the same symptom but with a different program and switching to a theme different than Aurora is the only solution currently.

Revision history for this message
In , Sultan Rahi (sultanrahi) wrote :

It doesn't work with a lot of themes (I'm using Darklooks).

By erasing the file home/$user/.gtkrc-2.0 which contains :

# include rc style for the xfce4-notes-plugin

include "/home/nini/.config/xfce4/panel/xfce4-notes-plugin.gtkrc"

# end of automatic change

the problem seems to be solved.

Revision history for this message
In , Mmassonnet-0 (mmassonnet-0) wrote :

(In reply to comment #5)
> It doesn't work with a lot of themes (I'm using Darklooks).
>
> By erasing the file home/$user/.gtkrc-2.0 which contains :
>
> # include rc style for the xfce4-notes-plugin
>
> include "/home/nini/.config/xfce4/panel/xfce4-notes-plugin.gtkrc"
>
> # end of automatic change
>
> the problem seems to be solved.

Thank you for sticking with this problem and finding the issue, this is very helpful.

I didn't expect this could happen, I will prepare a fix in the next version to prevent this situation.

Revision history for this message
In , Stéphane Marguet (stemp) wrote :

I'm sorry to add a +1, but the last comment is more than one year old.
Deleting /home/$USER/.config/xfce4/xfce4-notes.gtkrc before launching it, solve the issue for me.

Revision history for this message
In , Juan Simón (simonbcn) wrote :

It's still unresolved. In my case this happens when I have installed and activated the theme "PRO-Dark-XFCE-Edition 4.14" ( https://www.xfce-look.org/p/1207818/ )

Revision history for this message
In , Andreldm-2 (andreldm-2) wrote :

*** Bug 15870 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Andreldm-2 (andreldm-2) wrote :

For me when using "PRO-Dark-XFCE-Edition 4.14" xfce4-notes get stuck during initialization, while trying to parse xfce4-notes.gtkrc. Switching to another theme (e.g. Greybird) it launches with any issue.

I believe this bug would be solved once this plugin gets ported to gtk3.

Revision history for this message
In , keepitsimpleengr (keepitsimpleengineer) wrote :

No custom color here,

At least once per day I have to kill this runaway notes process.

Changed in xfce4-notes-plugin:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
Sean Davis (bluesabre) wrote :

Upstream reports that this is resolved in 1.9.0.

Changed in xfce4-notes-plugin (Ubuntu Impish):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.