Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My ~/.xsession-errors file is growing quickly. The following error is repeated over and over:

(nautilus:1595): GLib-GObject-CRITICAL **: g_value_get_object: assertion `G_VALUE_HOLDS_OBJECT (value)' failed

share|improve this question
Can you (for others' benefit) specify what you want accomplished? Do you want that error not to occur? Do you want the logfile to be smaller through autoemptying? Something else? – hexafraction Jul 12 '12 at 19:41
Ideally I would like the error not to occur. I would also be happy if the logfile was smaller through autoemptying. – bock Jul 12 '12 at 19:52
Consider log-rotate, following by deleting the rotated-out logs. I have little experience with log-rotate, so maybe somebody could elaborate on my idea. – hexafraction Jul 12 '12 at 19:52

This is a documented bug that has been fixed in 12.04. See

share|improve this answer
I am not running 12.04, I am running 11.04 – bock Jul 12 '12 at 21:10
I added the following lines to my logrotate.conf file: /home/andrew/.xsession-errors { size 1k rotate 0 } I then copied /etc/cron.daily/logrotate to /etc/cron.hourly/logrotate I believe this will clear my .xsession-errors file every hour if it is larger than 1k. – bock Jul 12 '12 at 21:34
I understand that you are on 11.04. My point was that it is a known issue that cannot be fixed. Therefore, your only options are workarounds (like what you've already implemented) or upgrading to 12.04. – Tom Jul 13 '12 at 12:09
@bock, Tom: Or a stable release update could be requested. Can you edit your answer to include a link to the bug report showing Fix Released for Precise? – Eliah Kagan Jul 13 '12 at 17:06

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.