Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mate-appearance-properties loads a CPU core to 100% #71

Closed
flexiondotorg opened this issue Oct 1, 2013 · 19 comments
Closed

mate-appearance-properties loads a CPU core to 100% #71

flexiondotorg opened this issue Oct 1, 2013 · 19 comments

Comments

@flexiondotorg
Copy link
Member

flexiondotorg commented Oct 1, 2013

Hi,

When I start I start System -> Preferences -> Appearance I see that many of the themes don't have thumbnails and show a question mark icon instead.

As a result, mate-appearance-properties tries to generate the required thumbnails. This activity loads a single CPU core to 100% and never completes. Upon closing mate-appearance-properties the window is closed but the process continues to run, indefinitely in the background, occupying 100% of a CPU.

If I kill the process then CPU load returns to normal, but the next time mate-appearance-properties is executed a CPU core is fully utilised again.

Regards, Martin.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/6615051-mate-appearance-properties-loads-a-cpu-core-to-100?utm_campaign=plugin&utm_content=tracker%2F559197&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F559197&utm_medium=issues&utm_source=github).
@raveit65
Copy link
Member

raveit65 commented Oct 7, 2013

Do you have a old .gtkrc or .gtkrc-2.0 file in your user configuration?
see.
http://forums.mate-desktop.org/viewtopic.php?f=2&t=1605
http://forums.mate-desktop.org/viewtopic.php?f=2&t=1674

@raveit65
Copy link
Member

raveit65 commented Oct 7, 2013

Can you remove/save those files for testing?
And what is gtk-theme-switch2?

@raveit65
Copy link
Member

raveit65 commented Oct 7, 2013

This file is broken because it pointed to a missing include "/home/ondra/.gtkrc-2.0.mine"

@flexiondotorg
Copy link
Member Author

There is also a ~/.gtkrc-2.0 on the workstation of mine that exhibits this problem. Here is the content.

gtk-color-scheme = "base_color:#ffffff\nfg_color:#2e3436\ntooltip_fg_color:#ffffff\nselected_bg_color:#4a90d9\nselected_fg_color:#ffffff\ntext_color:#2e3436\nbg_color:#ededed\ntooltip_bg_color:#343434"

gtk-button-images = 1
gtk-menu-images = 1

gtk-xft-antialias = 1
gtk-xft-hinting = 1
gtk-xft-hintstyle = hintmedium
gtk-xft-rgba = none

I am remote from the workstation, but will test it on Monday 14th October.

@infirit
Copy link
Contributor

infirit commented Oct 11, 2013

This may be some other program, like the qt-config tool, that is doing this. I am not sure yet but I'll keep an eye on it.

@flexiondotorg
Copy link
Member Author

I deleted ~/.gtkrc-2.0 and mate-appearance-properties works correctly and no longer hogs a CPU core. I've also re-saved my preferences using qt4-config and can confirm it is not responsible for recreating ~/.gtkrc-2.0.

@infirit
Copy link
Contributor

infirit commented Oct 14, 2013

This is very easilly reproducable with kde's "application appearance" system setting. Go to this and setup a gtk theme that is not the default, for example TraditionalOk. This will create 2 files, a proper gtkrc file and a symlink to this.

-rw-r--r-- 1 mate users 397 14 okt 16:44 .gtkrc-2.0
lrwxrwxrwx 1 mate users  23 14 okt 16:44 .gtkrc-2.0-kde4 -> /home/sander/.gtkrc-2.0

The content of this is:

# File created by KDE Gtk Config
# Configs for GTK2 programs 

include "/usr/share/themes/TraditionalOk/gtk-2.0/gtkrc"
style "user-font"
{
    font_name="Sans Serif "
}
widget_class "*" style "user-font"
gtk-font-name="Sans Serif  9"
gtk-theme-name="TraditionalOk"
gtk-icon-theme-name="oxygen"
gtk-fallback-icon-theme="menta"
gtk-toolbar-style=GTK_TOOLBAR_BOTH
gtk-menu-images=0
gtk-button-images=0

This should be handled more elegantly by mate's appearance property setting :)

@infirit
Copy link
Contributor

infirit commented Oct 14, 2013

After some more testing we found that for me the include line causes the problem. In my example this is the line below, commenting it makes all go back to normal.

include "/usr/share/themes/TraditionalOk/gtk-2.0/gtkrc
I checked and that file does exist, I hope this narrows it down :)

@infirit
Copy link
Contributor

infirit commented Oct 14, 2013

And I tried @flexiondotorg gtkrc and here it is the following line.

tk-color-scheme = "base_color:#ffffff\nfg_color:#2e3436\ntooltip_fg_color:#ffffff\nselected_bg_color:#4a90d9\nselected_fg_color:#ffffff\ntext_color:#2e3436\nbg_color:#ededed\ntooltip_bg_color:#343434"

@infirit
Copy link
Contributor

infirit commented Nov 29, 2014

Related issue mate-desktop/caja#350 (comment)

@RichardNeill
Copy link

For what it's worth, I also just saw this. Deleting the file fixes it:
As these files are generated by KDE... it really would be worth fixing the issue if possible - even with a workaround to simply ignore the file.

--- begin ---
cat ~/.local/share/Trash/files/.gtkrc-2.0

This file was written by KDE

You can edit it in the KDE control center, under "GTK Styles and Fonts"

include "/usr/share/themes/Clearlooks/gtk-2.0/gtkrc"
include "/etc/gtk-2.0/gtkrc"

style "user-font"
{
font_name="Tahoma"
}
widget_class "*" style "user-font"

gtk-theme-name="Clearlooks"
gtk-font-name="Tahoma 9"
---- end ---

@monsta
Copy link
Contributor

monsta commented Mar 30, 2016

Ok, I can also confirm the mentioned config file causes 100% CPU load.

@0181532686cf4a31163be0bf3e6bb6732bf

Same thing here. MATE 1.10.2

@0181532686cf4a31163be0bf3e6bb6732bf

http://forums.mate-desktop.org/viewtopic.php?f=2&t=1674 here it's advised to simply delete all .gtkrc* files

@pirate486743186
Copy link

lol, i had the same thing.... in 2017....
I suspect that was the cause for some glitches in Firefox and Seamonkey. I'll see if they reappear....

Isn't this actually a GTK bug?

@monsta
Copy link
Contributor

monsta commented Feb 28, 2017

Not sure, but might be GTK+ bug, yes. Were there any upstream reports on that?

@monsta
Copy link
Contributor

monsta commented Feb 28, 2017

Or maybe not. We have some old gtkrc parsing code here...

@sc0w
Copy link
Member

sc0w commented Sep 14, 2017

I can reproduce the issue with gtk2 and mate-control-center 1.8.3

I can't reproduce the issue with gtk3 and mate-control-center 1.18.2

It is solved?

@flexiondotorg
Copy link
Member Author

I can no longer reproduce this bug using MATE 1.22, 1.24 or 1.26. I will close this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants