NetBSD Problem Report #50294

From www@NetBSD.org  Fri Oct  2 07:46:31 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id A1574A567D
	for <gnats-bugs@gnats.NetBSD.org>; Fri,  2 Oct 2015 07:46:31 +0000 (UTC)
Message-Id: <20151002074630.53878A6531@mollari.NetBSD.org>
Date: Fri,  2 Oct 2015 07:46:30 +0000 (UTC)
From: petr@topiarz.cz
Reply-To: petr@topiarz.cz
To: gnats-bugs@NetBSD.org
Subject: dbus + xfce/mate creates timeouts and cannot connect
X-Send-Pr-Version: www-1.0

>Number:         50294
>Category:       pkg
>Synopsis:       dbus + xfce/mate creates timeouts and cannot connect
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    youri
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 02 07:50:00 +0000 2015
>Closed-Date:    Thu Jun 09 15:36:50 +0000 2016
>Last-Modified:  Thu Jun 09 15:36:50 +0000 2016
>Originator:     Petr Topiarz
>Release:        6.1.5 release amd64 and 7RC3 amd64
>Organization:
on my own
>Environment:
NetBSD mybsd.openunix.eu 6.1.5 NetBSD 6.1.5 (GENERIC) amd64
>Description:
Mate (from wip) or XFCE4 - certain actions which need dbus hang at start when dbus is started (from rc.conf). This problem persists in 2014Q4 2015Q1 2015Q2 and stable but in my old laptop installation (2014Q2 + netbsd 6.1.3) everything worked well. I tried to fix it with my ip record in /etc/hosts which changed the behaviour bud did not fix it.

What happens is that parts of the desktop like panels start two minutes after desktop starts and terminal or caja/thunar have delays when launching, even terminal hangs, and it is not possible to launch a logout dialogue.

It can partly be solved by starting the desktops with ck-launch and without dbus running, but then some elements of the desktop like pulseaudio or power management refuse to work at all.

I think this is serious because it makes NetBSD as desktop fairly unusable, which is a shame considering that other parts of the system work very reliably.
>How-To-Repeat:
Install full NETBSD 6.1.5 amd distro.
Install stable pkgsrc (and wip for mate).
Compile mate or xfce.
add a line to your rc.conf:
"dbus=YES"
add a line to your .xinitrc:
"exec startxfce4 --with-ck-launch # starts XFCE"
or
"exec dbus-launch --exit-with-session mate-session #starts MATE"
(optionally add your hostname and ip to /etc/hosts)
run startx and you will see immediatelly
>Fix:
Partial fix:
insert a line in your rc.conf:
"dbus=NO"

I even tried to compile xfce or mate against older dbus (1.8.6) but the problem persists.

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->youri
Responsible-Changed-By: bsiegert@NetBSD.org
Responsible-Changed-When: Sat, 03 Oct 2015 12:23:43 +0000
Responsible-Changed-Why:
Youri, you maintain the XFCE packages. Do you know anything about this?


From: Youri Mouton <youri.mout@gmail.com>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/50294 (dbus + xfce/mate creates timeouts and cannot connect)
Date: Sun, 4 Oct 2015 15:24:47 +0200

 On 03/10/15 14:23, bsiegert@NetBSD.org wrote:
 > Synopsis: dbus + xfce/mate creates timeouts and cannot connect
 > 
 > Responsible-Changed-From-To: pkg-manager->youri
 > Responsible-Changed-By: bsiegert@NetBSD.org
 > Responsible-Changed-When: Sat, 03 Oct 2015 12:23:43 +0000
 > Responsible-Changed-Why:
 > Youri, you maintain the XFCE packages. Do you know anything about this?
 > 
 > 
 > 

 I'm facing the same issue and I can't find a proper solution other than
 disabling dbus yet.

 -- 
 youri

State-Changed-From-To: open->feedback
State-Changed-By: youri@NetBSD.org
State-Changed-When: Sun, 22 May 2016 22:57:39 +0000
State-Changed-Why:
Can you try to add --force to the command launching dbus in rc.d/dbus? That fixes it for me.


From: Youri Mouton <youri.mout@gmail.com>
To: gnats-bugs@NetBSD.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org,
 petr@topiarz.cz
Cc: 
Subject: Re: pkg/50294 (dbus + xfce/mate creates timeouts and cannot connect)
Date: Mon, 23 May 2016 00:58:49 +0200

 On 23/05/16 00:57, youri@NetBSD.org wrote:
 > Synopsis: dbus + xfce/mate creates timeouts and cannot connect
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: youri@NetBSD.org
 > State-Changed-When: Sun, 22 May 2016 22:57:39 +0000
 > State-Changed-Why:
 > Can you try to add --force to the command launching dbus in rc.d/dbus? That fixes it for me.
 > 
 I meant --fork!
 > 
 > 

 -- 
 youri

From: Petr Topiarz z Mnichovic <petr@topiarz.cz>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/50294 (dbus + xfce/mate creates timeouts and cannot connect)
Date: Mon, 23 May 2016 10:00:18 +0200

 FOUND IT! Solution is a little different:

 I tried your fix, but it only helped me with one of four testing machines I have, I searched for the difference and I found out the one machine which had success, had dbus turned off (however enabled in rc.conf) and so if DBUS started with the session, all worked well, however if it was up and about before the session, it would keep making timeouts of all kind. SO the following works with i386 and amd64 both on 6.5 and 7.0.

 - enable dbus in rc.conf
 - stop dbus
 - start session with:
 exec dbus-launch --exit-with-session xfce4-session/mate-session

 now there goes the question how to automatize it:
 - use sudo and add a line switching off dbus into .xinitrc
 - make a script that launches after rc.d and switches off dbus
 - anything more clever?

 Youri do you think you can make it up and merge it upstream somehow?
 cheers
 Petr

 On Sun, May 22, 2016 at 11:00:00PM +0000, Youri Mouton wrote:
 > The following reply was made to PR pkg/50294; it has been noted by GNATS.
 > 
 > From: Youri Mouton <youri.mout@gmail.com>
 > To: gnats-bugs@NetBSD.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org,
 >  petr@topiarz.cz
 > Cc: 
 > Subject: Re: pkg/50294 (dbus + xfce/mate creates timeouts and cannot connect)
 > Date: Mon, 23 May 2016 00:58:49 +0200
 > 
 >  On 23/05/16 00:57, youri@NetBSD.org wrote:
 >  > Synopsis: dbus + xfce/mate creates timeouts and cannot connect
 >  > 
 >  > State-Changed-From-To: open->feedback
 >  > State-Changed-By: youri@NetBSD.org
 >  > State-Changed-When: Sun, 22 May 2016 22:57:39 +0000
 >  > State-Changed-Why:
 >  > Can you try to add --force to the command launching dbus in rc.d/dbus? That fixes it for me.
 >  > 
 >  I meant --fork!
 >  > 
 >  > 
 >  
 >  -- 
 >  youri
 >  

 -- 
 Petr Topiarz
 -------------------------------------
 Sent by Mutt - by hackers for hackers

From: Petr Topiarz z Mnichovic <petr@topiarz.cz>
To: gnats-bugs@NetBSD.org
Cc: youri@NetBSD.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/50294 (dbus + xfce/mate creates timeouts and cannot connect)
Date: Mon, 23 May 2016 10:17:50 +0200

 oh - oh,
 :-(
 my solution has one week point, since other services are not able to connect to the launched dbus instance and  /etc/rc.d/dbus needs to be started again after the session is launched, then all other services like avahi or samba wil work well again. This gets so complicated that I is rather a dirty work-around then a solution really.

 Sorry to say that :-/

 Petr

 On Sun, May 22, 2016 at 11:00:00PM +0000, Youri Mouton wrote:
 o
 > The following reply was made to PR pkg/50294; it has been noted by GNATS.
 > 
 > From: Youri Mouton <youri.mout@gmail.com>
 > To: gnats-bugs@NetBSD.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org,
 >  petr@topiarz.cz
 > Cc: 
 > Subject: Re: pkg/50294 (dbus + xfce/mate creates timeouts and cannot connect)
 > Date: Mon, 23 May 2016 00:58:49 +0200
 > 
 >  On 23/05/16 00:57, youri@NetBSD.org wrote:
 >  > Synopsis: dbus + xfce/mate creates timeouts and cannot connect
 >  > 
 >  > State-Changed-From-To: open->feedback
 >  > State-Changed-By: youri@NetBSD.org
 >  > State-Changed-When: Sun, 22 May 2016 22:57:39 +0000
 >  > State-Changed-Why:
 >  > Can you try to add --force to the command launching dbus in rc.d/dbus? That fixes it for me.
 >  > 
 >  I meant --fork!
 >  > 
 >  > 
 >  
 >  -- 
 >  youri
 >  

 -- 
 Petr Topiarz
 -------------------------------------
 Sent by Mutt - by hackers for hackers

From: Youri Mouton <youri.mout@gmail.com>
To: gnats-bugs@NetBSD.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org,
 petr@topiarz.cz
Cc: 
Subject: Re: pkg/50294 (dbus + xfce/mate creates timeouts and cannot connect)
Date: Sat, 4 Jun 2016 18:33:36 +0200

 On 23/05/16 01:00, Youri Mouton wrote:
 > The following reply was made to PR pkg/50294; it has been noted by GNATS.
 > 
 > From: Youri Mouton <youri.mout@gmail.com>
 > To: gnats-bugs@NetBSD.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org,
 >  petr@topiarz.cz
 > Cc: 
 > Subject: Re: pkg/50294 (dbus + xfce/mate creates timeouts and cannot connect)
 > Date: Mon, 23 May 2016 00:58:49 +0200
 > 
 >  On 23/05/16 00:57, youri@NetBSD.org wrote:
 >  > Synopsis: dbus + xfce/mate creates timeouts and cannot connect
 >  > 
 >  > State-Changed-From-To: open->feedback
 >  > State-Changed-By: youri@NetBSD.org
 >  > State-Changed-When: Sun, 22 May 2016 22:57:39 +0000
 >  > State-Changed-Why:
 >  > Can you try to add --force to the command launching dbus in rc.d/dbus? That fixes it for me.
 >  > 
 >  I meant --fork!
 >  > 
 >  > 
 >  
 >  -- 
 >  youri
 >  
 > 
 Please update consolekit, xfce4-session from pkgsrc. It should all just
 work now.

 -- 
 youri

From: Petr Topiarz z Mnichovic <petr@topiarz.cz>
To: Youri Mouton <youri.mout@gmail.com>
Cc: gnats-bugs@NetBSD.org, gnats-admin@netbsd.org, pkgsrc-bugs@netbsd.org
Subject: Re: pkg/50294 (dbus + xfce/mate creates timeouts and cannot connect)
Date: Sun, 5 Jun 2016 17:42:13 +0200

 OK! I will update pkgsrc and rebuild ck + db.


 On Sat, Jun 04, 2016 at 06:33:36PM +0200, Youri Mouton wrote:
 > On 23/05/16 01:00, Youri Mouton wrote:
 > > The following reply was made to PR pkg/50294; it has been noted by GNATS.
 > > 
 > > From: Youri Mouton <youri.mout@gmail.com>
 > > To: gnats-bugs@NetBSD.org, pkgsrc-bugs@netbsd.org, gnats-admin@netbsd.org,
 > >  petr@topiarz.cz
 > > Cc: 
 > > Subject: Re: pkg/50294 (dbus + xfce/mate creates timeouts and cannot connect)
 > > Date: Mon, 23 May 2016 00:58:49 +0200
 > > 
 > >  On 23/05/16 00:57, youri@NetBSD.org wrote:
 > >  > Synopsis: dbus + xfce/mate creates timeouts and cannot connect
 > >  > 
 > >  > State-Changed-From-To: open->feedback
 > >  > State-Changed-By: youri@NetBSD.org
 > >  > State-Changed-When: Sun, 22 May 2016 22:57:39 +0000
 > >  > State-Changed-Why:
 > >  > Can you try to add --force to the command launching dbus in rc.d/dbus? That fixes it for me.
 > >  > 
 > >  I meant --fork!
 > >  > 
 > >  > 
 > >  
 > >  -- 
 > >  youri
 > >  
 > > 
 > Please update consolekit, xfce4-session from pkgsrc. It should all just
 > work now.
 > 
 > -- 
 > youri

 -- 
 Petr Topiarz
 -------------------------------------
 Sent by Mutt - by hackers for hackers

From: Petr Topiarz z Mnichovic <petr@topiarz.cz>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: pkg/50294 (dbus + xfce/mate creates timeouts and cannot connect)
Date: Thu, 9 Jun 2016 17:30:43 +0200

 FIX WORK! SOLVED! CONFIRMED!

 I have rebuilt ck+dbus+mate from the latest ports + wip and confirm that all works as supposed! A miracle!

 THANKS a million for fixing, Youri!
 Petr

 On Sun, May 22, 2016 at 10:57:39PM +0000, youri@NetBSD.org wrote:
 > Synopsis: dbus + xfce/mate creates timeouts and cannot connect
 > 
 > State-Changed-From-To: open->feedback
 > State-Changed-By: youri@NetBSD.org
 > State-Changed-When: Sun, 22 May 2016 22:57:39 +0000
 > State-Changed-Why:
 > Can you try to add --force to the command launching dbus in rc.d/dbus? That fixes it for me.
 > 
 > 
 > 

 -- 
 Petr Topiarz
 -------------------------------------
 Sent by Mutt - by hackers for hackers

State-Changed-From-To: feedback->closed
State-Changed-By: youri@NetBSD.org
State-Changed-When: Thu, 09 Jun 2016 15:36:50 +0000
State-Changed-Why:
Confirmed fixed. Thanks for the PR!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.