! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfce4-notes consumes 100% CPU with custom color
Status:
RESOLVED: MOVED
Product:
Xfce4-notes-plugin
Component:
General

Comments

Description charlie-tca 2011-01-16 21:08:57 CET
$: ~ 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
Comment 1 Mike Massonnet editbugs 2011-01-16 21:47:22 CET
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?
Comment 2 charlie-tca 2011-01-16 23:44:28 CET
$: 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.
Comment 3 Mike Massonnet editbugs 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.
Comment 4 Mike Massonnet editbugs 2011-02-20 22:20:48 CET
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.
Comment 5 sultanrahi 2011-02-25 09:47:51 CET
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.
Comment 6 Mike Massonnet editbugs 2011-02-25 20:02:19 CET
(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.
Comment 7 Stéphane Marguet 2012-03-12 21:03:51 CET
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.
Comment 8 Juan Simón 2020-01-04 09:17:55 CET
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/ )
Comment 9 Andre Miranda editbugs 2020-01-05 18:23:28 CET
*** Bug 15870 has been marked as a duplicate of this bug. ***
Comment 10 Andre Miranda editbugs 2020-01-05 18:32:19 CET
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.
Comment 11 Larry Johnson 2020-01-05 23:50:15 CET
No custom color here, 

At least once per day I have to kill this runaway notes process.
Comment 12 Git Bot editbugs 2020-05-23 00:24:05 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/panel-plugins/xfce4-notes-plugin/-/issues/4.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #7106

Reported by:
charlie-tca
Reported on: 2011-01-16
Last modified on: 2020-05-23
Duplicates (1):
  • 15870 Xfce4-notes 1.8.1-4 using excessive CPU

People

Assignee:
Mike Massonnet
CC List:
5 users

Version

Version:
unspecified

Attachments

Additional information