From nobody@FreeBSD.org  Sun Aug 26 04:41:48 2012
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id F04C6106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 26 Aug 2012 04:41:48 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id DC9F88FC12
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 26 Aug 2012 04:41:48 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q7Q4fmhZ069079
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 26 Aug 2012 04:41:48 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id q7Q4fmU9069078;
	Sun, 26 Aug 2012 04:41:48 GMT
	(envelope-from nobody)
Message-Id: <201208260441.q7Q4fmU9069078@red.freebsd.org>
Date: Sun, 26 Aug 2012 04:41:48 GMT
From: jb <jb.1234abcd@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: X and XFCE (xfsettingsd) errors on shutdown/logout
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         171078
>Category:       misc
>Synopsis:       X and XFCE (xfsettingsd) errors on shutdown/logout
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 26 04:50:01 UTC 2012
>Closed-Date:    
>Last-Modified:  Sat Oct 06 19:36:13 UTC 2012
>Originator:     jb
>Release:        FreeBSD 9.1-RC1 #0
>Organization:
>Environment:
FreeBSD localhost.localdomain 9.1-RC1 FreeBSD 9.1-RC1 #0: Tue Aug 14 03:56:40 UTC 2012     root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
There is an error related to X shutdown and XFCE logout.
$ cat .xinitrc
exec ck-launch-session startxfce4
$ alias startx
alias startx='/usr/local/bin/startx -- -nolisten tcp > ~/.startx.log 2>&1'
$ startx
..
XFCE logout.

$ cat .startx.log
xauth:  file /home/jb/.serverauth.92738 does not exist

X.Org X Server 1.7.7
Release Date: 2010-05-04
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 9.0-RELEASE i386 
Current Operating System: FreeBSD localhost.localdomain 9.1-RC1 FreeBSD 9.1-RC1 #0: Tue Aug 14 03:56:40 UTC 2012     root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
Build Date: 11 June 2012  07:18:51AM
 
Current version of pixman: 0.24.2
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sun Aug 26 06:19:15 2012
(==) Using config file: "/usr/local/etc/X11/xorg.conf"
/usr/local/bin/startxfce4: X server already running on display :0
xrdb:  "Xft.hinting" on line 31 overrides entry on line 6
xrdb:  "Xft.hintstyle" on line 32 overrides entry on line 7
xinit: connection to X server lost
xfsettingsd: Fatal IO error 0 (No error: 0) on X server :0.0.

waiting for X server to shut down 
$

>How-To-Repeat:
as above

>Fix:
none

>Release-Note:
>Audit-Trail:

From: J B <jb.1234abcd@gmail.com>
To: bug-followup@FreeBSD.org, jb.1234abcd@gmail.com
Cc:  
Subject: Re: misc/171078: X and XFCE (xfsettingsd) errors on shutdown/logout
Date: Thu, 27 Sep 2012 16:17:51 +0200

 On XFCE logout, this time the error is just different:
 $ cat .startx.log
 ...
 xinit: connection to X server lost
 
 waiting for X server to shut down xfsettingsd: Fatal IO error 35
 (Resource temporarily unavailable) on X server :0.0.
 $

Date: Thu, 27 Sep 2012 19:41:58 +0000
From: Olivier Duchateau <duchateau.olivier@gmail.com>
To: J B <jb.1234abcd@gmail.com>
Subject: Re: misc/171078: X and XFCE (xfsettingsd) errors on
 shutdown/logout

 First, your Xorg session is it functional ?
 
 Try with x11-wm/twm
 
 Secondly, Xfce provides xinitrc file (you'll find in /usr/local/etc/xdg/xfce4/). 
 You don't need to launch `ck-launch-session', with Xfce 4.10.
 
 For `-nolisten tcp', I prefer create .xserverrc (content below):
 exec X :0 -nolisten tcp
 
 -- 
 olivier

From: J B <jb.1234abcd@gmail.com>
To: bug-followup@FreeBSD.org, jb.1234abcd@gmail.com
Cc:  
Subject: Re: misc/171078: X and XFCE (xfsettingsd) errors on shutdown/logout
Date: Wed, 3 Oct 2012 08:23:45 +0200

 This has been corrected - ck-launch-session is already handled by XFCE's
 startxfce4 and initrc.
 $ cat .xinitrc
 exec startxfce4
 
 Please note that the error messages
 "xfsettingsd: Fatal IO error 0 (No error: 0) on X server :0.0.
 waiting for X server to shut down"
 and
 "waiting for X server to shut down xfsettingsd: Fatal IO error 35
 (Resource temporarily unavailable) on X server :0.0."
 show up randomly - there is instability in some program execution.
 System is up-to-date.

From: J B <jb.1234abcd@gmail.com>
To: bug-followup@FreeBSD.org, jb.1234abcd@gmail.com
Cc:  
Subject: Re: misc/171078: X and XFCE (xfsettingsd) errors on shutdown/logout
Date: Wed, 3 Oct 2012 08:45:32 +0200

 I also nuked
 ~/.config/xfce*
 ~/.cache/sessions/
 and reconfigured XFCE, but it did not make any difference.

From: J B <jb.1234abcd@gmail.com>
To: bug-followup@FreeBSD.org, jb.1234abcd@gmail.com
Cc: Olivier Duchateau <duchateau.olivier@gmail.com>, xfce@freebsd.org
Subject: Re: misc/171078: X and XFCE (xfsettingsd) errors on shutdown/logout
Date: Wed, 3 Oct 2012 22:13:52 +0200

 I have done some additional testing.
 1. I recompiled all installed XFCE ports.
 2. I nuked
 ~/.config/xfce*
 ~/.cache/sessions/
 3. Then I tested as below:
 
 a) $ startx
     I did not do anything, just Log Out from XFCE (orginal
 /unconfigured desktop).
     $ cat .startx.log
 xauth:  file /home/jb/.serverauth.1817 does not exist
 
 X.Org X Server 1.7.7
 Release Date: 2010-05-04
 X Protocol Version 11, Revision 0
 Build Operating System: FreeBSD 9.1-RC1 i386
 Current Operating System: FreeBSD localhost.localdomain 9.1-RC1
 FreeBSD 9.1-RC1 #0: Tue Aug 14 03:56:40 UTC 2012
 root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
 Build Date: 02 September 2012  11:52:43AM
 
 Current version of pixman: 0.24.2
 	Before reporting problems, check http://wiki.x.org
 	to make sure that you have the latest version.
 Markers: (--) probed, (**) from config file, (==) default setting,
 	(++) from command line, (!!) notice, (II) informational,
 	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
 (==) Log file: "/var/log/Xorg.0.log", Time: Wed Oct  3 21:15:49 2012
 (==) Using config file: "/usr/local/etc/X11/xorg.conf"
 (EE) config/hal: NewInputDeviceRequest failed (8)
 (EE) config/hal: NewInputDeviceRequest failed (8)
 /usr/local/bin/startxfce4: X server already running on display :0
 xrdb:  "Xft.hinting" on line 31 overrides entry on line 6
 xrdb:  "Xft.hintstyle" on line 32 overrides entry on line 7
 
 (xfsettingsd:1875): GLib-CRITICAL **: g_str_has_prefix: assertion
 `prefix != NULL' failed
 
 (xfwm4:1863): GLib-CRITICAL **: g_str_has_prefix: assertion `prefix !=
 NULL' failed
 
 (xfwm4:1863): xfwm4-WARNING **: The property
 '/general/double_click_distance' of type int is not supported
 
 (xfdesktop:1871): GLib-GIO-CRITICAL **: g_file_get_path: assertion
 `G_IS_FILE (file)' failed
 
 (xfdesktop:1871): GLib-GIO-CRITICAL **: g_file_get_path: assertion
 `G_IS_FILE (file)' failed
 
 (xfdesktop:1871): GLib-GIO-CRITICAL **: g_file_get_path: assertion
 `G_IS_FILE (file)' failed
 
 (xfdesktop:1871): GLib-GIO-CRITICAL **: g_file_get_path: assertion
 `G_IS_FILE (file)' failed
 
 (xfdesktop:1871): GLib-GIO-CRITICAL **: g_file_get_path: assertion
 `G_IS_FILE (file)' failed
 xinit: connection to X server lost
 
 waiting for X server to shut down
 $
 
 b) $ startx
     This time I configured the desktop (Menu - Settings):
     - just changed some font sizes
     - removed bottom panel, moved upper panel to bottom
     - I did NOT touch Session and Startup (this is where xfsettingsd resides)
     Then I just did Log Out from XFCE (configured desktop).
     $ cat .startx.log
 xauth:  file /home/jb/.serverauth.1907 does not exist
 
 X.Org X Server 1.7.7
 Release Date: 2010-05-04
 X Protocol Version 11, Revision 0
 Build Operating System: FreeBSD 9.1-RC1 i386
 Current Operating System: FreeBSD localhost.localdomain 9.1-RC1
 FreeBSD 9.1-RC1 #0: Tue Aug 14 03:56:40 UTC 2012
 root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
 Build Date: 02 September 2012  11:52:43AM
 
 Current version of pixman: 0.24.2
 	Before reporting problems, check http://wiki.x.org
 	to make sure that you have the latest version.
 Markers: (--) probed, (**) from config file, (==) default setting,
 	(++) from command line, (!!) notice, (II) informational,
 	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
 (==) Log file: "/var/log/Xorg.0.log", Time: Wed Oct  3 21:19:46 2012
 (==) Using config file: "/usr/local/etc/X11/xorg.conf"
 (EE) config/hal: NewInputDeviceRequest failed (8)
 (EE) config/hal: NewInputDeviceRequest failed (8)
 /usr/local/bin/startxfce4: X server already running on display :0
 xrdb:  "Xft.hinting" on line 31 overrides entry on line 6
 xrdb:  "Xft.hintstyle" on line 32 overrides entry on line 7
 
 (xfdesktop:1960): GLib-GIO-CRITICAL **: g_file_get_path: assertion
 `G_IS_FILE (file)' failed
 
 (xfdesktop:1960): GLib-GIO-CRITICAL **: g_file_get_path: assertion
 `G_IS_FILE (file)' failed
 
 (xfdesktop:1960): GLib-GIO-CRITICAL **: g_file_get_path: assertion
 `G_IS_FILE (file)' failed
 
 (xfdesktop:1960): GLib-GIO-CRITICAL **: g_file_get_path: assertion
 `G_IS_FILE (file)' failed
 
 (xfdesktop:1960): GLib-GIO-CRITICAL **: g_file_get_path: assertion
 `G_IS_FILE (file)' failed
 xinit: connection to X server lost
 
 waiting for X server to shut down
 $
 NOTE: no xfsettingsd error messages yet !
 
 c). $ startx
     I did not do anything, just Log Out from XFCE.
     $ cat .startx.log
 
 X.Org X Server 1.7.7
 Release Date: 2010-05-04
 X Protocol Version 11, Revision 0
 Build Operating System: FreeBSD 9.1-RC1 i386
 Current Operating System: FreeBSD localhost.localdomain 9.1-RC1
 FreeBSD 9.1-RC1 #0: Tue Aug 14 03:56:40 UTC 2012
 root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
 Build Date: 02 September 2012  11:52:43AM
 
 Current version of pixman: 0.24.2
 	Before reporting problems, check http://wiki.x.org
 	to make sure that you have the latest version.
 Markers: (--) probed, (**) from config file, (==) default setting,
 	(++) from command line, (!!) notice, (II) informational,
 	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
 (==) Log file: "/var/log/Xorg.0.log", Time: Wed Oct  3 21:33:19 2012
 (==) Using config file: "/usr/local/etc/X11/xorg.conf"
 (EE) config/hal: NewInputDeviceRequest failed (8)
 (EE) config/hal: NewInputDeviceRequest failed (8)
 /usr/local/bin/startxfce4: X server already running on display :0
 xrdb:  "Xft.hinting" on line 31 overrides entry on line 6
 xrdb:  "Xft.hintstyle" on line 32 overrides entry on line 7
 xinit: connection to X server lost
 
 waiting for X server to shut down xfsettingsd: Fatal IO error 0 (No
 error: 0) on X server :0.0.
 $
 
 NOTE: lack of this message I can not explain:
 xauth:  file /home/jb/.serverauth.1907 does not exist
 
 NOTE:
 -  these messages are not present any more
 (xfdesktop:1960): GLib-GIO-CRITICAL **: g_file_get_path: assertion
 `G_IS_FILE (file)' failed
 - xfsettingsd error messages appeared for the first time
 
 After that the .startx.log will look like the last one shown here,
 except there will be a random
 occurance of two different xfsettingsd error messages (sometimes none).
 
 Do you see anything valuable here for debugging ?

From: Olivier Duchateau <duchateau.olivier@gmail.com>
To: J B <jb.1234abcd@gmail.com>
Cc: bug-followup@freebsd.org, xfce@freebsd.org
Subject: Re: misc/171078: X and XFCE (xfsettingsd) errors on shutdown/logout
Date: Thu, 4 Oct 2012 04:36:45 +0000

 Do you try to recompile Xorg without HAL support (Xfce core elements
 don't need it).
 
 For shutdown (and reboot), Xfce needs to configure polkit. You must
 create .pkla file in
 /usr/local/etc/polkit-1/localauthority/50-local.d/ (see
 x11-wm/xfce4-session/files/pkg-message.in).
 
 For shutdown and reboot action you can run `pkaction | grep consolekit.system'
 
 -- 
 olivier
>Unformatted:
