[Bug 1852016] Re: Applications delayed on launch

2021-09-25 Thread Arno Teigseth
I saw the same behavior as Sebastian in linux mint 20.2.
Tried with apps "flameshot" and "obs-studio" - both behave 

QT apps are stuck about 25 seconds. Strace exactly like Sebastian's:

connect(12, {sa_family=AF_UNIX, sun_path="/run/user/1000/bus"}, 110) = 0
… yada yada …
poll([{fd=14, events=POLLIN}], 1, 25000
… 25 second timeout …
(something in strace about … Timeout)




I was helped by (https://www.scivision.dev/disable-gnome-keyring-ssh-agent/)

Edit /etc/xdg/autostart/gnome-keyring-ssh.desktop to include the line:

X-GNOME-Autostart-enabled=false

and restart. Not just logout, full restart.

Now all same apps start in 0 secs.

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

Title:
  Applications delayed on launch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/1852016/+subscriptions


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

[Bug 1852016] Re: Applications delayed on launch

2021-09-06 Thread August Karlstrom
I run Debian 11 and the window manager Blackbox. Installing the package
dbus-x11 and replacing

exec blackbox

with

exec dbus-launch --exit-with-session blackbox

in ~/.xinitrc solved the problem for me. Now applications like atril and
simple-scan launch quickly.

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

Title:
  Applications delayed on launch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/1852016/+subscriptions


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

[Bug 1852016] Re: Applications delayed on launch

2021-02-17 Thread Digulla-hepe
Just a heads up: I'm seeing exactly the same behavior on OpenSUSE LEAP
15.2

This happens with Xfce4 desktop.

It seems to be a rare bug; no one has hard about this when I asked on
the mailing list.

I did some debugging of keepassxc (since it's a relatively small app).

Installed some debug packages, then "gdb keypassxc", wait 5 seconds
until it stops printing "[New Thread 0x7fffe945b700 (LWP 18090)]", then
Ctrl+C to get the stack traces.

"info threads" to see which threads there are. "thread " + id to switch
between them.

The app hangs for 25 seconds when I try to start it which matches this
timeout:

__GI___poll (fds=0x55f994d0, nfds=1, timeout=25000) at
../sysdeps/unix/sysv/linux/poll.c:29

Googling returned this analysis:

https://freefilesync.org/forum/viewtopic.php?t=6704

The stack traces look very similar: Threads hanging in __lll_lock_wait
and __GI___poll called from ibus_bus_new_async_client and
g_simple_async_result_get_type respectively.

In the mean time, I've found more apps with the same symptom:

- qmmp

- qtconfig ("Qt 4 settings" in the Xfce settings dialog.)

I'm wondering about this line in the stack trace:

/usr/lib64/qt5/plugins/styles/libqgtk2style.so

Maybe there is a bug in the Qt style which I'm using.

Stack frame 45 says style is
"QGtk2Theme::themeHint(QPlatformTheme::ThemeHint)
const::{lambda()#1}::operator()() const::qstring_literal"

which would match the setting in the "Qt 4 settings" dialog but I'm
using Qt5. Or is the dialog for both?

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

Title:
  Applications delayed on launch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/1852016/+subscriptions

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

[Bug 1852016] Re: Applications delayed on launch

2020-08-14 Thread Gregor Snak
This is still broken in Ubuntu 20.04 except now "/usr/bin/dbus-launch
--exit-with-session openbox --startup $HOME/.config/openbox/autostart"
doesn't work. The only thing that still works is "dbus-launch ./some-
lazarus-compiled-app".

If I for example run xterm first "dbus-launch xterm" and run lazarus app
in that xterm it is slow again because the fix is not "inherited".

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

Title:
  Applications delayed on launch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/1852016/+subscriptions

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

[Bug 1852016] Re: Applications delayed on launch

2020-05-18 Thread Akkana Peck
Found it after modifying the web search a little. I had to start openbox
with:

/usr/bin/dbus-launch --exit-with-session openbox --startup
$HOME/.config/openbox/autostart

The dbus-launch --exit-with-session apparently starts some service that
gnome apps now insist on. This apparently works with other window
managers: it was an i3 user who found it.

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

Title:
  Applications delayed on launch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/1852016/+subscriptions

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

[Bug 1852016] Re: Applications delayed on launch

2020-05-18 Thread Akkana Peck
Two other apps that show the problem: pavucontrol and cheese.
I'm using the openbox window manager. I assume the apps are looking for some 
sort of reply that a gnome desktop would give them.

In strace, it's waiting on:

poll([{fd=15, events=POLLIN}], 1, 25000)
(the fd 15 for cheese, 11 for pavucontrol).

If I run journalctl -b 0 while pavucontrol is waiting to start, I get
the attached log: I've edited it to show the end of one run of
pavucontrol and then a second run up to the point where it hangs (with
comments interspersed by me). At the end of the previous run, after I
hit ^C, it prints

Failed to create file chooser proxy: Error calling StartServiceByName
for org.freedesktop.impl.portal.desktop.gtk: Timeout was reached

A web search for that message gives a gazillion hits -- lots of people
are seeing this -- but so far I haven't found a solution/workaround.


** Attachment added: "journalctl -b 0 from two sucessive runs of pavucontrol"
   
https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/1852016/+attachment/5373818/+files/journalctl.b.0.txt

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

Title:
  Applications delayed on launch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/1852016/+subscriptions

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

[Bug 1852016] Re: Applications delayed on launch

2020-03-23 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: dbus (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/1852016

Title:
  Applications delayed on launch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/1852016/+subscriptions

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

[Bug 1852016] Re: Applications delayed on launch

2020-03-07 Thread GH via ubuntu-bugs
Confirming this with KeePass-X on fresh 19.10 install on Lenovo e495.

Also confirming "3. (Permanent). Install "sudo apt-get install appmenu-
gtk2-module" and restart." fixed it.

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

Title:
  Applications delayed on launch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/1852016/+subscriptions

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

[Bug 1852016] Re: Applications delayed on launch

2019-12-11 Thread Chris Rorden
Changed status from (incomplete) to (new) as I think my comments provide
details to replicate this bug. I assume people who upgrade from 19.04
already have appmenu-gtk2-module installed. However, this is a serious
problem for people who make a fresh install of 19.10 and attempt to use
a GTK2 application. A quick Google search suggests this impacts users of
a wide range of programs that have not yet made the jump to a modern
widgetset.

** Changed in: dbus (Ubuntu)
   Status: Incomplete => New

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

Title:
  Applications delayed on launch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/1852016/+subscriptions

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

[Bug 1852016] Re: Applications delayed on launch

2019-12-06 Thread Chris Rorden
This issue is easy to replicate in any clean install of Ubuntu 19.10. For 
example, 
  $ sudo apt install hexchat
  $ hexchat
That would allow you to trouble shoot on an development system. 

Happy to provide a full 'journalctl -b 0' log if requested, but probably
more useful to generate on a development machine. Here are the last few
lines of mine, the "Failed: Could not get window list" sounds
promising...

Dec 06 07:42:03 zb systemd[1]: Starting Network Manager Script Dispatcher 
Service...
Dec 06 07:42:03 zb dbus-daemon[1012]: [system] Successfully activated service 
'org.freedesktop.nm_dispatcher'
Dec 06 07:42:03 zb systemd[1]: Started Network Manager Script Dispatcher 
Service.
Dec 06 07:42:14 zb systemd[1]: NetworkManager-dispatcher.service: Succeeded.
Dec 06 07:42:25 zb thunderbird.desktop[1942]: console.debug: 
"main/language-dictionaries 80 records loaded from JSON dump"
Dec 06 07:42:25 zb thunderbird.desktop[1942]: console.debug: 
"main/sites-classification 7 records loaded from JSON dump"
Dec 06 07:42:53 zb xdg-desktop-por[1874]: Failed to get application states: 
GDBus.Error:org.freedesktop.portal.Error.Failed: Could not get window list: 
GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: App introspection not 
allowed
Dec 06 07:42:53 zb kernel: [UFW BLOCK] IN=wlp41s0 OUT= 
MAC=01:00:5e:00:00:01:00:23:04:18:e6:00:08:00 SRC=10.73.1.1 DST=224.0.0.1 
LEN=28 TOS=0x00 PREC=0xC0 TTL=1 ID=21410 PROTO=2 
Dec 06 07:42:56 zb kernel: [UFW BLOCK] IN=wlp41s0 OUT= 
MAC=01:00:5e:00:00:fb:f0:79:59:70:d6:ac:08:00 SRC=10.73.1.231 DST=224.0.0.251 
LEN=32 TOS=0x00 PREC=0xC0 TTL=1 ID=0 DF PROTO=2 
Dec 06 07:43:51 zb gnome-shell[1942]: Window manager warning: Buggy client sent 
a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x4200034
Dec 06 07:43:51 zb gnome-shell[1942]: Window manager warning: Buggy client sent 
a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x4200034
Dec 06 07:43:53 zb xdg-desktop-por[1874]: Failed to get application states: 
GDBus.Error:org.freedesktop.portal.Error.Failed: Could not get window list: 
GDBus.Error:org.freedesktop.DBus.Error.AccessDenied: App introspection not 
allowed

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

Title:
  Applications delayed on launch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/1852016/+subscriptions

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

[Bug 1852016] Re: Applications delayed on launch

2019-12-06 Thread Chris Rorden
This bug seems to impact many GTK2 applications including KeepassXC,
Filezilla and OnlyOffice Desktop-Editor, HexChat, Lazarus and any
application built using Lazarus that targets the GTK2 platform.
Descriptions include

https://askubuntu.com/questions/1182155/filezilla-start-after-25-seconds-delay
https://forum.lazarus.freepascal.org/index.php?topic=47240.0
https://askubuntu.com/questions/1187246/ubuntu-19-10-crash-when-lazarus-runs
https://askubuntu.com/questions/1184774/some-applications-on-ubuntu-19-10-very-slow-to-start

Solutions include:
 1. (temporary). Run as super user, e.g.: sudo ./project1
 2. (temporary). Run using: dbus-launch --exit-with-session ./project1
 3. (Permanent). Install "sudo apt-get install appmenu-gtk2-module" and restart.
I am not sure what the root cause is, but one solution would be to have 
appmenu-gtk2-module installed whenever someone installs "libgtk2.0-0". It is 
obvious to the user that that these applications require libgtk-x11-2.0.so.0 as 
the programs will not launch without it. The problem with the current situation 
is that the programs do not list appmenu-dtk2-module as a dependency but do not 
launch appropriately without it.

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

Title:
  Applications delayed on launch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/1852016/+subscriptions

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

[Bug 1852016] Re: Applications delayed on launch

2019-11-11 Thread Sebastien Bacher
Thank you for your bug report. Could you add a 'journalctl -b 0' log after 
triggering the issue?
What desktop/session do you use?

** Changed in: dbus (Ubuntu)
   Status: New => Incomplete

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

Title:
  Applications delayed on launch

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dbus/+bug/1852016/+subscriptions

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