Bug 957363

Summary: /etc/gdm/Xsession[1400]: (gnome-shell:1634): Clutter-CRITICAL **: clutter_text_set_text: assertion `CLUTTER_IS_TEXT (self)' failed
Product: [Fedora] Fedora Reporter: Mykola Dvornik <mykola.dvornik>
Component: gnome-shellAssignee: Owen Taylor <otaylor>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: 21CC: admiller, anthony.horton, bpeck, bugs, cschalle, danielsun3164, dedourek, dev, dimitris.on.linux, eddie.kuns, edgar.hoch, fedora, fmuellner, gc, jh.xsnrg, kparal, luvilla, mertensb.mazda, m.gruys, michael.wiktowy, mnowak, mszpak, mvadkert, oranenj, otaylor, pat, redhat-bugzilla, samkraju, thozza, tpeplt, turgut, twillber, udovdh, walters, wasfv
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-12-02 02:46:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Mykola Dvornik 2013-04-27 17:15:26 UTC
Description of problem:

gnome-shell CPU consumption >20% when idle.

gnome-shell does not respond to user requests for a few seconds (perhaps due to enormous CPU consumption). It happens randomly.

the /var/log/messages is constantly (few times per second) pumped with the following message:
"godsic /etc/gdm/Xsession[1400]: (gnome-shell:1634): Clutter-CRITICAL **: clutter_text_set_text: assertion `CLUTTER_IS_TEXT (self)' failed"


Version-Release number of selected component (if applicable):

gnome-shell-3.8.1-1

How reproducible:

In every single boot

Steps to Reproduce:

1. Install Fedora 19 Alpha + latest updates from updates testing
2. Restart gnome-shell
3. Work for some time
  
Actual results:

Gnome-shell randomly hangs

Expected results:

Smooth gnome-shell experience without noticeable hangs

Additional info:

powered by gen6 (Sandy Bridge) Intel GPU via i915 module.

Comment 1 Jarkko Oranen 2013-06-29 20:46:49 UTC
I had a similar issue. It was caused by an extension that failed to set the "text" attribute on a label it created. The fix was to simply place an empty string as the initial value for that attribute.

You should check if disabling any of your extensions fixes the problem.

Possibly either gnome-shell or clutter could be made more resistant against nulls where strings are expected, so that badly behaving applications do not spam users' logs. At the very least, it would be useful if the log messages contained the name of the offending extension, so that bugs can be filed against the correct component.

Comment 2 Christian Stadelmann 2013-07-06 18:46:09 UTC
Same issue here on F19 final. Disabling all extensions fixed the problem, though enabling them again didn't reproduce this bug. Don't really know what happened.

Comment 3 Christian Stadelmann 2013-07-07 11:28:36 UTC
Ok, I have to correct myself. What fixed it yesterday was NOT disabling all extensions but logging off and on again (as does restarting gnome shell). This bug is not caused by any gnome shell extensions: I manually disabled each of them and still keep getting those errors. Only restarting gnome-shell works around this bug.
I haven't found a way to reproduce but it looks like gnome shell needs to be running >2 hours to make this bug happen.

Comment 4 Michael Wiktowy 2013-07-11 20:23:32 UTC
I can confirm this is happening to me as well. It makes the entire screen and all apps freeze for a few seconds every few minutes.

Doing an Alt-F2 + r clears it up and stops the flood of messages in my /var/log/messages and I don't know what brings the problem back but it does return within the same session (no logouts, no reboots).

Comment 5 Pat Gardner 2013-07-12 21:58:27 UTC
Same issue here on F19 with all updates as of 12/07. Constant errors logged by systemd-journald:

/etc/gdm/Xsession[1455]: (gnome-shell:1727): Clutter-CRITICAL **: clutter_text_set_text: assertion `CLUTTER_IS_TEXT (self)' failed

Every 5-10 seconds gnome-shell uses 50-100% of CPU and everything freezes.

Please make it stop...

Comment 6 Dimitris 2013-07-12 22:28:04 UTC
Same log-spamming issue here:  gnome-shell-3.8.3-3.fc19.x86_64

Idle gnome-shell CPU usage doesn't quite rise to 20%, more like 5% and below.

I see two variants of the logspam message:

Jul 12 15:21:32 gaspode /etc/gdm/Xsession[5092]: (gnome-shell:5209): Clutter-CRITICAL **: clutter_text_get_editable: assertion `CLUTTER_IS_TEXT (self)' failed

Jul 12 15:21:42 gaspode /etc/gdm/Xsession[5092]: (gnome-shell:5209): Clutter-CRITICAL **: clutter_text_get_text: assertion `CLUTTER_IS_TEXT (self)' failed

Actions that trigger it so far:

- Lock/unlock desktop.  Doesn't seem to matter whether lockscreen notifications are enabled or not in privacy settings.

- Change focus between windows that are each maximized on different monitors.  This one doesn't always cause the cascade of log messages, and I've only been able to reproduce it with focus-follows-mouse in the tweak tool, and not with the (default) of focus-follows-click.

Comment 7 Jim 2013-07-16 03:09:01 UTC
Verified, a reset of the shell stops the issue for me.  A screen lock/unlock cycle starts it up again.

Fedora 19 all patches current:

3.9.9-301.fc19.x86_64 #1 SMP Thu Jul 4 15:10:36 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Jul 15 22:04:15 neptune /etc/gdm/Xsession[6145]: (gnome-shell:6409): Clutter-CRITICAL **: clutter_text_get_editable: assertion `CLUTTER_IS_TEXT (self)' failed
Jul 15 22:04:15 neptune /etc/gdm/Xsession[6145]: (gnome-shell:6409): Clutter-CRITICAL **: clutter_text_get_text: assertion `CLUTTER_IS_TEXT (self)' failed
Jul 15 22:04:15 neptune /etc/gdm/Xsession[6145]: (gnome-shell:6409): Clutter-CRITICAL **: clutter_text_set_text: assertion `CLUTTER_IS_TEXT (self)' failed


gnome-shell-extension-common-3.8.3-2.fc19.noarch
gnome-shell-3.8.3-3.fc19.x86_64
gnome-shell-extension-user-theme-3.8.3-2.fc19.noarch

Comment 8 Christian Stadelmann 2013-07-17 11:42:04 UTC
Thanks for this hint. I found the extension triggering this bug by try-and-error:
sensors:
https://extensions.gnome.org/extension/82/cpu-temperature-indicator/
https://github.com/xtranophilist/gnome-shell-extension-sensors

This is also a known bug to sensors extension: https://github.com/xtranophilist/gnome-shell-extension-sensors/issues/83

As a workaround I suggest disabling the sensors extension.

Comment 9 Pat Gardner 2013-07-19 09:33:52 UTC
(In reply to Christian Stadelmann from comment #8)
> Thanks for this hint. I found the extension triggering this bug by
> try-and-error:
> sensors:
> https://extensions.gnome.org/extension/82/cpu-temperature-indicator/
> https://github.com/xtranophilist/gnome-shell-extension-sensors
> 
> This is also a known bug to sensors extension:
> https://github.com/xtranophilist/gnome-shell-extension-sensors/issues/83
> 
> As a workaround I suggest disabling the sensors extension.

Yes the extension does cause excessive logging and higher cpu usage of gnome-shell, but even with the extension now uninstalled the desktop still becomes laggy and unresponsive after a period of time, again with high cpu usage for gnome-shell process. The only temporary fix is alt-F2 and "r" until the next time about 20-30 minutes later.

Comment 10 Christian Stadelmann 2013-07-19 13:40:08 UTC
@Pat Gardner:
Do you still see those messages in /var/log/messages ?
If yes: do you have other extensions installed that may trigger this bug?
If no: Seems like you ran into a different but potentially similar bug. You should report it separately.

Comment 11 udo 2013-07-20 10:53:21 UTC
Should messages like these really end up in /var/log/messages?
What is .xsession-errors supposed to be in Fedora 19?

Comment 12 Turgut Kalfaoglu 2013-08-08 17:28:42 UTC
I am plagued by the same error on Fedora 19.
I get a dozen of these errors every 10 seconds..

I toggled each addon using gnome-tweak-tool and disabling them never helped.

Comment 13 Michal Nowak 2013-08-08 17:58:48 UTC
(In reply to Turgut Kalfaoglu from comment #12)
> I toggled each addon using gnome-tweak-tool and disabling them never helped.

I think one needs to disable sensors extension and then restart GNOME Shell (or perhaps the whole GNOME session).

Comment 14 Turgut Kalfaoglu 2013-08-09 08:07:45 UTC
Correct -- thank you. After disabling sensors applet and restarting gnome, the errors have stopped..

Comment 15 udo 2013-08-09 10:45:31 UTC
Comment 11 has not really been answered yet.
I have no sensors extension, just a system-monitor which has been configured correctly.
AFAIK thiese messages do not belong in /var/log/messages but in a file ~/.xsession-errors or whatever it was called.
It appears that this file has been obsolted for no reason.
This is a very unfortunate action and has to be reversed.

Comment 16 udo 2013-08-16 15:30:37 UTC
See comment 15.

Comment 17 Christian Stadelmann 2013-08-17 19:40:22 UTC
@udo: I think you should report a separate bug for that.

Comment 18 Michael Gruys 2013-08-18 15:43:37 UTC
The bug occurs even when no gnome-shell extension installed

Comment 19 Michael Gruys 2013-08-26 04:08:23 UTC
I want to take back my words back of the above comment 18:
After NOT loading the Extensions 'Sensors', 'Weather' and 'System-monitor' NO 'Clutter-CRITICAL' messages appear anymore in the messages log file after restarting the gnome-shell.

Comment 20 mertensb.mazda 2013-09-01 12:39:30 UTC
Disabling the sensors extension and restarting (kill -HUP) the gnome-shell stopped the flood of messages on my system as well.
But on my system I noticed higher memory consumption more than higher CPU consumption.

Comment 21 Miroslav Vadkerti 2013-09-24 07:10:46 UTC
I see the same issue with:
kernel-3.10.7-200.fc19.x86_64
gnome-shell-3.8.4-2.fc19.x86_64

It doesn't matter if I have extensions enabled or not.

Comment 23 Michal Nowak 2013-09-24 07:15:02 UTC
(In reply to Miroslav Vadkerti from comment #21)
> It doesn't matter if I have extensions enabled or not.

One needs to restart GNOME Shell before it takes effect.

Comment 24 linux4fun 2013-09-26 12:53:33 UTC
I get the same issue : after a long period of use (over 2 hours) I get those messages in the log file :
Sep 26 14:46:44 localhost gnome-session[1491]: (gnome-shell:1771): Clutter-CRITICAL **: clutter_text_get_editable: assertion `CLUTTER_IS_TEXT (self)' failed
Sep 26 14:46:44 localhost gnome-session[1491]: (gnome-shell:1771): Clutter-CRITICAL **: clutter_text_get_text: assertion `CLUTTER_IS_TEXT (self)' failed
Sep 26 14:46:44 localhost gnome-session[1491]: (gnome-shell:1771): Clutter-CRITICAL **: clutter_text_set_text: assertion `CLUTTER_IS_TEXT (self)' failed

There are around 10 messages every 2 seconds. Sometimes, Gnome hangs for a few seconds then comes back, it is really annoying.

After reading all the previous comments, I managed to "fix" it when it happens using Alt-F2 and "r", but it comes back after another couple of hours and after each reboot.

Is there is proper fix I could apply ? Long time ?

Comment 25 Toni Willberg 2013-10-09 09:02:16 UTC
As a workaround comment #20 (disabling the Sensors extension) stopped the flood for me.

Comment 26 Jarkko Oranen 2013-10-31 21:19:41 UTC
Today, I fixed yet another instance of this issue in the transmission-daemon-indicator Gnome Shell extension.

The root cause was that upon init, an object was created that connected a signal from a global object to itself, but neglected to disconnect that signal when it was destroyed upon disable. This caused the object to stay alive, but somehow two of its instance variables (Labels) were nulled, causing the errors.

if someone wants to debug this issue with an extension where the problem is easily reproducible, use the revision prior to this: https://github.com/Chousuke/gnome-shell-extension-transmission-daemon/compare/clutter-fix

in particular, without the "destroy" connection, two assignments occur in updateOptions which trigger the spam after the extension has been disabled and re-enabled once. The first is "this._status.text = stats_text"; and the second is via this.menu.controls.setInfo(info_text);

Comment 27 Edward Kuns 2013-12-11 15:29:49 UTC
I see this as well, using the Cinnamon desktop.  So far as I can tell, I don't have any extensions running or enabled.  This is incredibly annoying.  My /var/log/messages got to well over 4 GB in a single week.  Well over 1000 times its usual size.  Yes, 99.99% of /var/log/messages for that week is the three lines:

Dec 11 09:21:22 localhost /etc/gdm/Xsession[1746]: (cinnamon:1977): Clutter-CRITICAL **: clutter_text_get_editable: assertion `CLUTTER_IS_TEXT (self)' failed
Dec 11 09:21:22 localhost /etc/gdm/Xsession[1746]: (cinnamon:1977): Clutter-CRITICAL **: clutter_text_get_text: assertion `CLUTTER_IS_TEXT (self)' failed
Dec 11 09:21:22 localhost /etc/gdm/Xsession[1746]: (cinnamon:1977): Clutter-CRITICAL **: clutter_text_set_text: assertion `CLUTTER_IS_TEXT (self)' failed

Comment 28 steve 2014-02-11 03:25:03 UTC
Just adding a 'me too' here. My experience is the same as comment #9. Additionally I noticed that this behaviour (ie: excessive logging and higher cpu usage of gnome-shell) is also triggered on a resume after a system suspend.

Comment 29 Alex. H. F. 2014-02-11 10:17:21 UTC
I come together with you all.
Although this is clearly a problem to address at GNOME-project...

Hello Red Hat maintainers! Please, mark the issue as "confirmed" and help us all bring more impact at Gnome-guys.

The lack of an API for gnome-extensions is a MAJOR mistake in the whole project!

Unfortunately Gnome project-managers can't prove competence to admin their project.

Help!

Comment 31 John DeDourek 2014-08-27 17:05:50 UTC
Please move to Fedora 20.  I now have 20 GB of /var/log/messages.
It's taking over the drive. The journal is probably now a monster.

Comment 32 Fedora End Of Life 2015-01-09 17:59:26 UTC
This message is a notice that Fedora 19 is now at end of life. Fedora 
has stopped maintaining and issuing updates for Fedora 19. It is 
Fedora's policy to close all bug reports from releases that are no 
longer maintained. Approximately 4 (four) weeks from now this bug will
be closed as EOL if it remains open with a Fedora 'version' of '19'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 19 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 33 Xiaofeng 2015-03-16 16:10:16 UTC
(gnome-shell:3847): Clutter-CRITICAL **: clutter_text_get_editable: assertion 'CLUTTER_IS_TEXT (self)' failed
(gnome-shell:3847): Clutter-CRITICAL **: clutter_text_get_text: assertion 'CLUTTER_IS_TEXT (self)' failed
(gnome-shell:3847): Clutter-CRITICAL **: clutter_text_set_text: assertion 'CLUTTER_IS_TEXT (self)' failed

This happens to me about every 10 minutes.
gnome-shell-3.8.4-45

Comment 34 udo 2015-03-16 16:32:30 UTC
(In reply to Morris from comment #33)
> This happens to me about every 10 minutes.
> gnome-shell-3.8.4-45

I have seen that too. Does not belong in /var/log/messages but other people have decided otherwise without explaining this wisdom.

This stuff belongs in a log like ~/.xsession-errors or very similar.

Comment 35 Fedora End Of Life 2015-05-29 09:01:29 UTC
This message is a reminder that Fedora 20 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 20. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '20'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 20 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 36 Fedora End Of Life 2015-11-04 11:40:11 UTC
This message is a reminder that Fedora 21 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 21. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '21'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 21 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 37 Fedora End Of Life 2015-12-02 02:46:43 UTC
Fedora 21 changed to end-of-life (EOL) status on 2015-12-01. Fedora 21 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.