.xsession-errors fills with '(cinnamon:????): Clutter-CRITICAL...' error messages.

Bug #1336311 reported by Manuel Iglesias Alonso
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Linux Mint
Fix Committed
Undecided
Unassigned

Bug Description

Cinnamon Mint 17 Qiana, x86_64, nvidia GeForce GT 220, proprietary driver: nvidia-331.

Always happens: Sometimes shortly after graphical login but usually after a few hours of work.

Once the error messages start, they continue until I log out. The rate of new messages increases exponentially with time. It starts with about 100Bytes/second but after a couple of hours it is 10KB/second.

Messages are of the type:
'(cinnamon:4771): Clutter-CRITICAL **: clutter_text_get_editable: assertion 'CLUTTER_IS_TEXT (self)' failed'
'4771' being 'cinnamon --replace's pid.
Not sure if it is related but memory usage by 'cinnamon --replace' process increases, with the increase of 'Clutter-CRITICAL' errors, starting with 400MB and ending (when I have to log out because .xsession-errors file reaches 700MB) with 1.2GB.

Very occasionally this type of message:
'Window manager warning: Log level 8: g_main_context_find_source_by_id: assertion 'source_id > 0' failed'
appears among reams of 'Clutter-CRITICAL's.

I am trying cinnamon 17 on an external drive and this bug, a problem with MDM (https://bugs.launchpad.net/linuxmint/+bug/1333314) and occasional failures to power off the computer, after shutdown, are a deal breaker. A pity because I really like the distro. Not sure if the MDM bug has anything to do with this one.

I read somewhere that these kind of messages have something to do with badly written applets. I am using the default applets minus Mint-menu plus WorkspaceSwitcher and RubbishBin.

Could it be that this bug is very common but users don't notice because they don't pay attention to .xsession-errors file? When you log out and in again .xsession-errors.old is trimmed (600MB -> 30KB) erasing the evidence. I have (have had it for several decades) a script that runs every 5 minutes and warns me of unusual increases of '.xsession-errors' size. I can modify it to keep a kind of log with size increases and any other info (top snapshot...) you consider necessary.

Is there a way to find the source of the error message? Error messages should be designed to help trace the origin of the problem and this one is pretty useless :-(

Revision history for this message
Manuel Iglesias Alonso (glesialo) wrote :

Sorry. Correction:
>memory usage by 'cinnamon --replace' process increases .... starting with 400MB and ending ... with 1.2GB.
Should be:
Total memory usage (only gnome-system-monitor and audacious running) increases .... starting with 400MB and ending ... with 1.2GB.

Revision history for this message
Michael Webster (miketwebster) wrote :

Can you disable any of those 3rd party applets temporarily so we can make sure it's not in our set? If the problem goes away, add one applet back, and see if that's causing it, and so on. If we narrow down which applet is doing it (I'm certain it's an applet) then I'll mess with it and feedback if necessary to the applet developer.

Some of the errors are out of our control to suppress, unfortunately, all we can do is try to prevent them from triggering in the first place.

Revision history for this message
Manuel Iglesias Alonso (glesialo) wrote :

I didn't know that WorkspaceSwitcher and RubbishBin were 3rd party applets. I thought they were part of Cinnamon as I didn't have to install them.
Will remove them and report.

Revision history for this message
Michael Webster (miketwebster) wrote :

For easy reference, if you go into Applets in Cinnamon Settings, any 'system-supplied' applets will have a "lock" image next to them in the list, anything not locked is 3rd-party, or not supplied with cinnamon.

Revision history for this message
Manuel Iglesias Alonso (glesialo) wrote :

Both applets have the 'lock' image. Screenshot:
http://imgur.com/6SDRIQ3

Should I still remove the applets?

Revision history for this message
Michael Webster (miketwebster) wrote :

No, you won't be able to (easily) - you have no applets running that don't have the lock? I can't reproduce anything with those two applets.

The only thing I can really suggest for now is systematically disabling applets/extensions/desklets until the issue disappears, to try to determine what's causing it.

Revision history for this message
Manuel Iglesias Alonso (glesialo) wrote :

I only have applets marked with 'lock'. Screenshots:
http://imgur.com/rG0oTtm

I don't have any desklets and the Main-menu I am using (I removed Main-menu applet) is a normal application.

Revision history for this message
Manuel Iglesias Alonso (glesialo) wrote :

I don't even know what extensions are.

Revision history for this message
Manuel Iglesias Alonso (glesialo) wrote :

One application that I have been running all the time is the 'audacious' audio player. It has two plugins that interact with cinnamon panel: MPRIS_Server & Status_Icon. Could you, Michael, please check it in your system?
Thanks in advance.

Revision history for this message
Manuel Iglesias Alonso (glesialo) wrote :

I have been logged in for about three hours, without using 'audacious', and there isn't a single 'Clutter-CRITICAL' error message in .xsession-errors file. I'd like somebody else to confirm that 'audacious' audio player (and its plugins) produces the error messages.

If it is confirmed, what's going to happen? I really like 'audacious' and it would be a pity if it could not be used with cinnamon.

Revision history for this message
Manuel Iglesias Alonso (glesialo) wrote :

Re. Last post: I was listening music using 'alsaplayer' (without MPRIS_Server plugin) and there were no 'Clutter-CRITICAL' errors in more than three hours.

Now I am using 'rhythmbox' (with MPRIS_Server plugin) and the errors are back.

It seems the problem is related to MPRIS_Server plugin. I would rate the 'importance' high as all popular audio players use that plugin.

Revision history for this message
Michael Webster (miketwebster) wrote :

I just committed some fixes for the sound applet - do you think you could give them a go?

Here is the commit:

https://github.com/linuxmint/Cinnamon/commit/f30aeba9da6b29d0f6275cb3b696ad13b2dc4891

If you want, I've a link to a new applet file here: https://dl.dropboxusercontent.com/u/8201170/applet.js

you can temporarily replace the current one:

sudo mv /<email address hidden>/applet.js /<email address hidden>/applet.js.bak

sudo cp <path-to-downloaded-file> /<email address hidden>

This should fix some or all (I hope) of this issue, but I'd like to see it tested in a normal environment (I don't use music players much).

Please let me know, thanks.

Changed in linuxmint:
status: New → Fix Committed
Revision history for this message
Manuel Iglesias Alonso (glesialo) wrote :

Thank you Michael.
I'll do it tomorrow and let you know how it goes.

Revision history for this message
Manuel Iglesias Alonso (glesialo) wrote :

Good job Michael!

I have been using 'audacious' for three hours and there isn't a single 'Clutter-CRITICAL' error message.

Thank you very much!

Revision history for this message
Manuel Iglesias Alonso (glesialo) wrote :

Hello Michael,
I have just checked '/<email address hidden>' and was surprised to find that the file 'applet.js' is still the one I copied on 2014-07-05. Wasn't the package updated? Am I the only one using a bug free copy?

The 'Clutter-CRITICAL' error didn't appear again but there is another problem: occasionally the Audio player's icon disappears from the tray (although it keeps on playing).

Best regards,
Manolo.

Revision history for this message
Manuel Iglesias Alonso (glesialo) wrote :

A recent update has brought back the buggy file:
/<email address hidden>/applet.js
The file's date is 'Tue 12 Aug 14:20:07 CEST' but it is identical to the one I renamed 'applet.js.bak'.

Revision history for this message
Manuel Iglesias Alonso (glesialo) wrote :

Please reopen this bug again.

As mentioned in my previous post,
/<email address hidden>/applet.js
reverted to the old version after some updates and 'Clutter-CRITICAL' messages appeared again. I had to replace 'applet.js' with the 'new' version once more.
Something must have changed in Cinnamon and now normally there are no 'Clutter-CRITICAL' messages but occasionally the problem is triggered again and 'Clutter-CRITICAL' messages fill '.xsession-errors' even after stopping the audio player application (audacious). When this happens the only way to stop it is by exiting Cinnamon and login in again.
Apart from the messages there is also the problem of the disappearing audio player's icon, mentioned above. Here are some relevant '.xsession-errors' messages: {
      JS LOG: About to start Cinnamon
Window manager warning: Trying to remove non-existent custom keybinding "magnifier-zoom-in".
Window manager warning: Trying to remove non-existent custom keybinding "magnifier-zoom-out".
      JS LOG: Cinnamon started at Fri Sep 05 2014 08:52:56 GMT+0200 (CEST)
    JS ERROR: !!! WARNING: 'anonymous function does not always return a value'
    JS ERROR: !!! WARNING: file '/<email address hidden>/applet.js' line 1010 exception 0 number 157
      JS LOG: network applet: Cannot find connection for active (or connection cannot be read)
      JS LOG: network applet: Found connection for active
}

Somebody should pay attention to '.xsession-errors' messages (not only 'Clutter-CRITICAL', there are a lot of 'Window manager warning') when testing Cinnamon. It can not be good to waste system resources by writing meaningless messages continuously. I wonder how it must affect battery life and performance of laptops.

Revision history for this message
Kenneth (kron-aikido) wrote :

Every time I run cvlc it appear to generate the following set of lines
(cinnamon:8322): Clutter-CRITICAL **: clutter_text_set_text: assertion 'CLUTTER_IS_TEXT (self)' failed
Window manager warning: Log level 8: g_main_context_find_source_by_id: assertion 'source_id > 0' failed
Window manager warning: Log level 8: g_main_context_find_source_by_id: assertion 'source_id > 0' failed

(cinnamon:8322): Clutter-CRITICAL **: clutter_text_get_editable: assertion 'CLUTTER_IS_TEXT (self)' failed

(cinnamon:8322): Clutter-CRITICAL **: clutter_text_get_text: assertion 'CLUTTER_IS_TEXT (self)' failed

(cinnamon:8322): Clutter-CRITICAL **: clutter_text_set_text: assertion 'CLUTTER_IS_TEXT (self)' failed

(cinnamon:8322): Clutter-CRITICAL **: clutter_text_get_editable: assertion 'CLUTTER_IS_TEXT (self)' failed

(cinnamon:8322): Clutter-CRITICAL **: clutter_text_get_text: assertion 'CLUTTER_IS_TEXT (self)' failed

(cinnamon:8322): Clutter-CRITICAL **: clutter_text_set_text: assertion 'CLUTTER_IS_TEXT (self)' failed
Window manager warning: Log level 8: g_main_context_find_source_by_id: assertion 'source_id > 0' failed

(cinnamon:8322): Clutter-CRITICAL **: clutter_text_get_editable: assertion 'CLUTTER_IS_TEXT (self)' failed

(cinnamon:8322): Clutter-CRITICAL **: clutter_text_get_text: assertion 'CLUTTER_IS_TEXT (self)' failed

I am doing some automated video conversion and ended up wth 12G of .xessisson-errors-old. I guess one more restart and I would have gotten the disk space back magically which would have confused the hell out of me!

Revision history for this message
Manuel Iglesias Alonso (glesialo) wrote :

I am afraid that, with status 'Fix Committed' (although the fix never materialized), nobody is paying attention to this bug report :-(

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.