[Bug 1048805] Re: xfrun4 launches very slowly

2013-10-05 Thread Thaddäus Tintenfisch
No more hang ups after compiling the latest version of xfce4-appfinder
from git. I assume that the migration to GDBus resolved this issue:

http://git.xfce.org/xfce/xfce4-appfinder/commit/?id=4a065a10945c72c985e254ff1ef13df188f3e11e

Xubuntu 13.10 Beta 2

** Summary changed:

- xfrun4 launches very slowly
+ xfce4-appfinder launches very slowly

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1048805

Title:
  xfce4-appfinder launches very slowly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xfce4-appfinder/+bug/1048805/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1048805] Re: xfrun4 launches very slowly

2013-10-01 Thread qji
It's the same for me, 5 seconds hang up, before the window appears. I
use xfrun4 instead of xfce4-appfinder, but the result is very similar
(Ubuntu 12.04, XFCE 4.8.0.3), strace attached.

--disable-server option didn't work (no this option for xfrun4?), but I
killed the already running xfrun4 (xfrun4 --daemon) and it helped.

** Attachment added: xfrun4 strace output
   
https://bugs.launchpad.net/ubuntu/+source/xfce4-appfinder/+bug/1048805/+attachment/3852933/+files/xfrun4.strace.out

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1048805

Title:
  xfrun4 launches very slowly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xfce4-appfinder/+bug/1048805/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1048805] Re: xfrun4 launches very slowly

2013-10-01 Thread qji
** Also affects: xfce4-utils (Ubuntu)
   Importance: Undecided
   Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1048805

Title:
  xfrun4 launches very slowly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xfce4-appfinder/+bug/1048805/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1048805] Re: xfrun4 launches very slowly

2013-07-28 Thread Snild
It happened again.

The last note in my previous comment was wrong; there _is_ an appfinder 
instance running:
$ ps -Tg 4030
  PID  SPID TTY  TIME CMD
 4030  4030 ?00:00:00 xfce4-appfinder
 4030  4031 ?00:00:00 gdbus
 4030  4032 ?00:00:00 xfce4-appfinder

Like before, DBus has another PID (4029) for the owner of
org.xfce.Appfinder, which is probably the case because of
daemonization.

Attached to it with gdb.

(gdb) info threads
  Id   Target Id Frame 
  3Thread 0x7faf4897d700 (LWP 4031) gdbus 0x7faf5c8c83cd in poll ()
   from /lib/x86_64-linux-gnu/libc.so.6
  2Thread 0x7faf43fff700 (LWP 4032) xfce4-appfinder 0x7faf5cbb182c in 
__lll_lock_wait () from /lib/x86_64-linux-gnu/libpthread.so.0
* 1Thread 0x7faf5f0189c0 (LWP 4030) xfce4-appfinder 0x7faf5cbb182c in 
__lll_lock_wait () from /lib/x86_64-linux-gnu/libpthread.so.0

Two normal threads, and one gdbus thread. The two first threads are
waiting on a lock (or a condition?). The gdbus thread, which is
currently polling for an event, would have to be the one to awaken at
least one of these threads. That's reasonable -- no reason to do stuff
until an event comes in.

I set a breakpoint on the next instruction in poll (after the syscall
returns). It appears it doesn't recieve any events; starting another
appfinder instance doesn't cause any breaks in the gdb-attached process.
Hm. Looks like I may have to learn some DBus. :)

Installed d-feet, tried to look at the org.xfce.Appfinder bus. It shows
nothing for a while, then pops up an error message saying
org.xfce.Appfinder : Timeout was reached. I guess that rules out any
problem in the client code (well, maybe it could be made more robust
by trying to check for this condition first, but it shouldn't be
needed).

At this point, I wasn't sure what to do next, so I figured I'd kill the
running appfinder daemon and see what happens.

Well, the next start was fine. It daemonized successfully, too. And all
following starts worked fine as well. So at least the problem isn't
persistent in the dbus-daemon. It could still be a dbus problem, of
course, but it seems unlikely. So, what causes the appfinder service to
stop responding? I still have no idea.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1048805

Title:
  xfrun4 launches very slowly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xfce4-appfinder/+bug/1048805/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1048805] Re: xfrun4 launches very slowly

2013-07-24 Thread Snild
Very strange -- this problem suddenly appeared on my laptop today
(Xubuntu 13.04, appfinder version 4.10.0-1ubuntu1). The workaround
mentioned above helped. But workarounds tend to leave a bad
aftertaste...

Looked into it. It's a dbus call that times out (5 second timeout, but
in newer code it's only 2 secs). More specifically, it's the
OpenWindow dbus call, meant to be handled by the running appfinder
server -- ironically intended to speed up launches by avoiding repeated
initializations.

I've attached part of an strace around where the problem occurs.
Timestamps and duration are printed for each call (before and after the
call info, respectively).

I also noticed that dbus seemed to think that org.xfce.Appfinder was
owned by someone, even though I couldn't find any living appfinder
processes. I'm not familiar with dbus, but instinctively, I'd assume
that's a bad thing.

Killing the dbus-daemon made the problem go away -- of course, that also
killed my whole desktop session, and I'm not sure which thing helped.
Regrettably, I don't know how to trigger the problem again.

Some commands that might be useful...

Check which name owns org.xfce.Appfinder:
$ dbus-send --session --dest=org.freedesktop.DBus --type=method_call 
--print-reply /org/freedesktop/DBus org.freedesktop.DBus.GetNameOwner 
string:org.xfce.Appfinder

..and check which PID has that name (replace the last arg with your appfinder's 
name):
$ dbus-send --session --dest=org.freedesktop.DBus --type=method_call 
--print-reply /org/freedesktop/DBus 
org.freedesktop.DBus.GetConnectionUnixProcessID string::1.66
(yes, that's a double colon -- one to separate the type and name, and one is 
actually part of the name.)

That process has probably died, though, and only its fork will be left. For 
example, (after I'd restarted dbus) I got 4038 from the command above, and had 
a daemonized appfinder at 4039:
$ ps --ppid 1 | grep appf
 4039 ?00:00:01 xfce4-appfinder

...which, just to be clear, works fine. The exact pid isn't important,
as long as someone is actually handling the bus messages.

Would be interesting to find the root cause for this. Not sure if it's
in dbus or appfinder.

BTW, I think I may have had a defunct instance of appfinder when the
problem occurred, but I can't remember clearly (4 a.m. is really way too
late to be debugging things like this ;)). Could someone check ps -ef |
grep appf the next time they encounter the problem?

** Attachment added: strace of the problem -- look for the 5 second gap in 
timestamps.
   
https://bugs.launchpad.net/ubuntu/+source/xfce4-appfinder/+bug/1048805/+attachment/3747962/+files/appfinder_strace_cut.txt

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1048805

Title:
  xfrun4 launches very slowly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xfce4-appfinder/+bug/1048805/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1048805] Re: xfrun4 launches very slowly

2013-04-26 Thread Nikolay Mitev
Got fed up with this error and created a patch for fixing it. Moved dbus
initialization to be after the fork() call. Works for me.

** Attachment added: fix-hang-on-startup
   
https://bugs.launchpad.net/ubuntu/+source/xfce4-appfinder/+bug/1048805/+attachment/3654771/+files/fix-hang-on-startup

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1048805

Title:
  xfrun4 launches very slowly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xfce4-appfinder/+bug/1048805/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1048805] Re: xfrun4 launches very slowly

2013-04-05 Thread Jochen Kemnade
Still an issue in raring, the workaround also still works.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1048805

Title:
  xfrun4 launches very slowly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xfce4-appfinder/+bug/1048805/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1048805] Re: xfrun4 launches very slowly

2013-01-01 Thread gouri
Bug confirmed on new install of Ubuntu 12.10 Quantal.

Creating a new user, logging with XFCE session, selecting default
settings (instead of empty panel), the bug can be reproduced (either
using Alt-F2 or running xfrun4 from terminal).

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1048805

Title:
  xfrun4 launches very slowly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xfce4-appfinder/+bug/1048805/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1048805] Re: xfrun4 launches very slowly

2012-11-06 Thread meomic
i do not want to spam but maybe it will help to find what causes that
bug...


i have the same exact situation as mr. Peter Jenkins  (comment above)

i was using 4.10(ubuntu 12.04)  from this ppa:  
http://ppa.launchpad.net/xubuntu-dev/xfce-4.10/ubuntu
and it worked well - neved used quantal betas so cant tell if it was working 
there...

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1048805

Title:
  xfrun4 launches very slowly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xfce4-appfinder/+bug/1048805/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1048805] Re: xfrun4 launches very slowly

2012-11-05 Thread Peter Jenkins
Workaround works. :-)

For me this problem started when I updated Ubuntu 12.04 to 12.10. I was
already using xfce 4.10 from the semi-official PPA, so I'm guessing
something broke during the update.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1048805

Title:
  xfrun4 launches very slowly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xfce4-appfinder/+bug/1048805/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1048805] Re: xfrun4 launches very slowly

2012-11-04 Thread Erik S
This problem affect me since a few days. The Appfinder suddenly needed
like 5-10 seconds to launch. It worked fine the days before. (I set up
my Xubuntu completly new 2 weeks ago). Workaround works fine :)

Maybe this has something to do with the option Keep running instance in
the background in the settings-window of the appfinder? Any ideas?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1048805

Title:
  xfrun4 launches very slowly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xfce4-appfinder/+bug/1048805/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1048805] Re: xfrun4 launches very slowly

2012-10-22 Thread Balaji G
I face exactly the same problem and the work around works fine
absolutely.

Thanks,

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1048805

Title:
  xfrun4 launches very slowly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xfce4-appfinder/+bug/1048805/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1048805] Re: xfrun4 launches very slowly

2012-10-19 Thread Graeme Donaldson
Nokolai's workaround works, does anyone know what the impact is of
adding --disable-server though? The help text says Do not try to use or
become a D-Bus service, but what are the implications (if any) for
those of us who may not fully understand what D-Bus services are?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1048805

Title:
  xfrun4 launches very slowly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xfce4-appfinder/+bug/1048805/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1048805] Re: xfrun4 launches very slowly

2012-10-15 Thread Misha Bazanov
Nikolay, thanks for workaround.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1048805

Title:
  xfrun4 launches very slowly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xfce4-appfinder/+bug/1048805/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1048805] Re: xfrun4 launches very slowly

2012-09-13 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: xfce4-appfinder (Ubuntu)
   Status: New = Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1048805

Title:
  xfrun4 launches very slowly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xfce4-appfinder/+bug/1048805/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1048805] Re: xfrun4 launches very slowly

2012-09-13 Thread Nikolay Mitev
launching with --disable-server makes both apps appear instantly without
errors.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1048805

Title:
  xfrun4 launches very slowly

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xfce4-appfinder/+bug/1048805/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs