Bug 20885

Summary: xfce: .xsession-errors file is flooded with glib errors
Product: Mageia Reporter: Chris B <shybluenight>
Component: RPM PackagesAssignee: Jani Välimaa <jani.valimaa>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: fri, mageia
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: Thunar, tumbler CVE:
Status comment:

Description Chris B 2017-05-17 19:24:36 CEST
Default latest xfce LiveDVD, in live mode and after installation, 32b and 64b:

xfce: .xsession-errors file in home dir is flooded with glib error messages:
(Thunar:1482): GLib-CRITICAL **: g_file_test: assertion 'filename != NULL' failed

Open thunar file manager. Check: See Hidden Files % Detailed Lists. Watch .xsession-errors grow and grow and grow, in a one-second-interval ... without me doing anything.

File Manager -> Edit -> Preferences, on the Display tab -> Show thumbnails, set it to 'Never'. The flooding will stop. 

Is it creating thumbnails of local files? Why the errors? Will it ever stop?

Please mark as invalid if this is supposed to be this way.
Chris B 2017-05-19 12:21:05 CEST

Source RPM: Thunar => Thunar, tumbler

Comment 1 Morgan Leijström 2017-05-19 14:46:33 CEST
I dont see that here, BUT i did a network install three weeks ago, kept updated and have also plasma, cinnamon, MATE, LXDE, LXqt.  i586.

My .xsession-errors is still 0 byte after having thunar file manager opened with options See Hidden Files & Detailed Lists.

BUT ~/.xsession-errors is completelty empty, both on this system, and on my main system it was last used in october i think.  Do we nowadays need to enable it somehow?

Quick web search on thunar and that error message give
https://forum.manjaro.org/t/testing-update-2017-05-10-kernel-virtualbox-haskell-gnome/23426/5
- something about gtk3 ?  It seems they simply reverted a lot to solve it.

CC: (none) => fri

Comment 2 Chris B 2017-05-19 15:09:39 CEST
LightDM as DM is creating the .xsession.errors file, I think. If you have mixed DE, this might be different. I'm not sure.

Also, you only see it when you are in xfce4, if you have tumbler installed (default on xfce), and if you use the default thunar settings (create thumbnails). See my first comment.

I *think* other DE's have stopped using .xsession.errors file.

All this is the default Xfce installation using the latest Xfce Live RC.
I have the same bug on my 1 year old and updated M6 xfce (only) install (via netinstall done).

I think it started with gtk+3, glib and gnome stack update around 10 days ago. But again, I'm not sure.

Thank you, Morgan.
Comment 3 Martin Whitaker 2017-05-20 01:04:29 CEST
Testing this on the latest Live ISOs, it only occurs when you check "Show Hidden Files", and only when you are viewing your home directory.

CC: (none) => mageia

Comment 4 Martin Whitaker 2017-05-20 10:26:36 CEST
(In reply to Martin Whitaker from comment #3)
> Testing this on the latest Live ISOs, it only occurs when you check "Show
> Hidden Files", and only when you are viewing your home directory.

To be more precise, it's the continuous flooding of the logs that only occurs under these conditions. You still get the glib error messages each time you browse a new directory or when the contents of a directory you are browsing change. The continuous flooding occurs because writing to .xsession-errors causes Thunar to redisplay the directory contents, which causes a new message to be written to .xsession-errors, and so on ad infinitum.
Comment 5 Morgan Leijström 2017-05-20 10:56:09 CEST
Strange my .xsession.errors files on my computers are always empty.  I feel like that could be a bug there...  Yes i have several DE on every installation.  Before this autuomn it use to be several K per day...

Is it empty for you guys except for the messages in this bug?
Comment 6 Chris B 2017-05-20 11:51:18 CEST
Martin: good find. I can confirm everything. Makes it less serious for the average user, still ugly.

Morgan: please read my comment 2. You only trigger this bug when:
you use lightdm as display manager & you start a xfce session & you start thunar & you have tumbler installed & you set thunar to show hidden files ...

I just confirmed: GDM doesn't log to .xsession-errors, nor does it create such a file. If it logs errors at all, and if yes, where, I don't want to know ;-)
Comment 7 Morgan Leijström 2017-05-20 19:10:50 CEST
Ah, yes, thanks Chris B: I missed the part of lightdm as display manager.
with it, .xsession-errors is generated and i see the same error messages.
Comment 8 Jani Välimaa 2017-06-23 12:29:40 CEST
New thunar-1.6.11-2.mga6 should fix this issue, please test.

Note that after update it's better to quit existing thunar instances with 'thunar -q' before launching new one.
Comment 9 Chris B 2017-06-23 15:17:11 CEST
Thank you so much, Jani :)
Installed new version, tested, it's fixed indeed.
Closing.

Status: NEW => RESOLVED
Resolution: (none) => FIXED