Package: kate
Version: 4:22.12.3-1
Severity: important

Dear Maintainer,

when using kate on an application server via "ssh -Y"
it does a long pause that makes it unusable as an editor
for small tasks.

How to reproduce: 
  * ssh -Y  (or ssh -X which is the same thing on Debian) unto a
    Bookworm server.
  * start "kate"
  * now you get at least 30 seconds delay. Sometimes up to 50 seconds.

This is a regression over Bullseye.

Expected behaviour:
Start within 2 seconds, or up to 10 seconds. Which it did with Bullseye.
On the usuabilty side, the rule of thumb is that users will get really
impatient once 10 seconds have past after a command.
People will believe kate is broken.

For long development sessions it maybe okay to accept a minute startup
time once, but if you fire up kate for a regular file 50 seconds is
unacceptable.

Technical analyis:
strace -f --timestamps -o ~/tmp/kate-1.log kate
shows a 26 second timeout on d-bus:

105600 14:32:01 prctl(PR_SET_NAME, "QDBusConnection"...) = 0
105600 14:32:01 poll([{fd=7, events=POLLIN}], 1, 0) = 0 (Timeout)

105600 14:32:01 socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC, 0) = 8
105600 14:32:01 connect(8, {sa_family=AF_UNIX, sun_path="/run/user/10003/bus"}, 
21) = 0

105600 14:32:01 sendmsg(8, {msg_name=NULL, msg_namelen=0, 
msg_iov=[{iov_base="l\1\0\1\0\0\0\0\3\0\0\0\220\0\0\0\1\1o\0\33\0\0\0/Activit"...,
 iov_len=160}, {iov_base="", iov_len=0}], msg_iovlen=2, msg_controllen=0, 
msg_flags=0}, MSG_NOSIGNAL) = 160
105600 14:32:01 poll([{fd=7, events=POLLIN}, {fd=8, events=POLLIN}], 2, 25478) 
= 0 (Timeout)
             ^^
105600 14:32:27 write(7, "\1\0\0\0\0\0\0\0", 8) = 8
             ^^

running
 dbus-monitor
before starting kate confirms that it is
signal time=1745326251.063633 sender=org.freedesktop.DBus -> 
destination=org.freedesktop.systemd1 serial=51 path=/org/freedesktop/DBus; 
interface=org.freedesktop.systemd1.Activator; member=ActivationRequest
   string "plasma-kactivitymanagerd.service"
method call time=1745326251.063645 sender=:1.24 ->
destination=org.kde.ActivityManager serial=3
path=/ActivityManager/Activities;

ps shows no kactivitymanagerd running for the user.

When starting /usr/lib/x86_64-linux-gnu/libexec/kactivitymanagerd
manually before starting kate, the startup is fast.

there is

/usr/lib/systemd/user/plasma-kactivitymanagerd.service
::::::::::::::
[Unit]
Description=KActivityManager Activity manager Service
PartOf=graphical-session.target
Before=graphical-session.target

[Service]
ExecStart=/usr/lib/x86_64-linux-gnu/libexec/kactivitymanagerd
BusName=org.kde.ActivityManager
Slice=background.slice
::::::::::::::

but it does not get started when using ssh to connect to the machine.

I've reported this, because even if it is fixed with Trixie, it would
stay a problem with Bookworm installations.
And the symptoms will be seen with kate, even if the cause of the
problem is elsewhere or affects other packages as well.

Thanks for looking into this!
Bernhard


-- System Information:
Debian Release: 12.10
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-32-amd64 (SMP w/32 CPU threads; PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/bash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages kate depends on:
ii  kate5-data                               4:22.12.3-1
ii  kio                                      5.103.0-1+deb12u1
ii  ktexteditor-katepart                     5.103.0-1.1
ii  libc6                                    2.36-9+deb12u10
ii  libkf5activities5                        5.103.0-1
ii  libkf5bookmarks5                         5.103.0-1
ii  libkf5completion5                        5.103.0-1
ii  libkf5configcore5                        5.103.0-2
ii  libkf5configgui5                         5.103.0-2
ii  libkf5configwidgets5                     5.103.0-1
ii  libkf5coreaddons5                        5.103.0-1
ii  libkf5crash5                             5.103.0-1
ii  libkf5dbusaddons5                        5.103.0-1
ii  libkf5guiaddons5                         5.103.0-1
ii  libkf5i18n5                              5.103.0-1
ii  libkf5iconthemes5                        5.103.0-1
ii  libkf5jobwidgets5                        5.103.0-1
ii  libkf5kiocore5                           5.103.0-1+deb12u1
ii  libkf5kiofilewidgets5                    5.103.0-1+deb12u1
ii  libkf5kiogui5                            5.103.0-1+deb12u1
ii  libkf5kiowidgets5                        5.103.0-1+deb12u1
ii  libkf5newstuff5                          5.103.0-1
ii  libkf5newstuffcore5                      5.103.0-1
ii  libkf5newstuffwidgets5                   5.103.0-1
ii  libkf5parts5                             5.103.0-1
ii  libkf5service-bin                        5.103.0-1
ii  libkf5service5                           5.103.0-1
ii  libkf5syntaxhighlighting5                5.103.0-3
ii  libkf5texteditor5                        5.103.0-1.1
ii  libkf5textwidgets5                       5.103.0-1
ii  libkf5wallet-bin                         5.103.0-1
ii  libkf5wallet5                            5.103.0-1
ii  libkf5widgetsaddons5                     5.103.0-1
ii  libkf5windowsystem5                      5.103.0-1
ii  libkf5xmlgui5                            5.103.0-1
ii  libkuserfeedbackcore1                    1.2.0-2
ii  libkuserfeedbackwidgets1                 1.2.0-2
ii  libqt5concurrent5                        5.15.8+dfsg-11+deb12u2
ii  libqt5core5a                             5.15.8+dfsg-11+deb12u2
ii  libqt5dbus5                              5.15.8+dfsg-11+deb12u2
ii  libqt5gui5                               5.15.8+dfsg-11+deb12u2
ii  libqt5network5                           5.15.8+dfsg-11+deb12u2
ii  libqt5sql5                               5.15.8+dfsg-11+deb12u2
ii  libqt5widgets5                           5.15.8+dfsg-11+deb12u2
ii  libqt5xml5                               5.15.8+dfsg-11+deb12u2
ii  libstdc++6                               12.2.0-14
ii  plasma-framework                         5.103.0-1+deb12u1
ii  qml-module-org-kde-kquickcontrolsaddons  5.103.0-1
ii  qml-module-qtquick-layouts               5.15.8+dfsg-3
ii  qml-module-qtquick2                      5.15.8+dfsg-3

Versions of packages kate recommends:
ii  sonnet-plugins  5.103.0-1

Versions of packages kate suggests:
pn  darcs            <none>
pn  exuberant-ctags  <none>
ii  git              1:2.39.5-0+deb12u2
ii  khelpcenter      4:22.12.3-1
ii  konsole-kpart    4:22.12.3-1
ii  mercurial        6.3.2-1+deb12u1
ii  subversion       1.14.2-4+deb12u1

-- no debconf information

Reply via email to