https://bugs.kde.org/show_bug.cgi?id=522039

            Bug ID: 522039
           Summary: Switching Activities makes entire desktop unresponsive
                    — D-Bus communication with kactivitymanagerd breaks
    Classification: Plasma
           Product: plasmashell
      Version First 6.7.0
       Reported In:
          Platform: Fedora RPMs
                OS: Linux
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: Activities in general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: 1.0

STEPS TO REPRODUCE
=================

1. Log into a Plasma 6.7 session (fresh login)
2. Verify the desktop is fully responsive:
   - Panel works normally
   - Dolphin right-click displays context menu without crashing
   - Dolphin settings dialog opens promptly
3. Verify org.kde.kuiserver responds on D-Bus:

   $ dbus-send --session --dest=org.kde.kuiserver \
       --type=method_call --print-reply \
       /JobViewServer org.freedesktop.DBus.Introspectable.Introspect

   (returns valid introspection data)
4. Switch to a different Activity using the Activity Switcher
5. Attempt any panel interaction, or re-run the D-Bus command above


OBSERVED RESULT
===============

After switching Activities:

- The entire KDE panel becomes unresponsive
- D-Bus communication with org.kde.kuiserver fails:

  $ dbus-send --session --dest=org.kde.kuiserver \
      --type=method_call --print-reply \
      /JobViewServer org.freedesktop.DBus.Introspectable.Introspect

  Error org.freedesktop.DBus.Error.NoReply: Did not receive a reply.
  Possible causes include: the remote application did not send a reply,
  the message bus security policy blocked the reply, the reply timeout
  expired, or the network connection was broken.

  - Applications that depend on D-Bus services crash:
  - Dolphin crashes with SIGSEGV on right-click
  - Dolphin stderr shows: "Failed to check which JobView API is supported"
  - Opening "Configure Dolphin" takes ~60 seconds (D-Bus timeout)


EXPECTED RESULT
===============

Switching Activities should not break D-Bus communication.
The panel and all applications should remain fully responsive after an Activity
switch.


ROOT CAUSE
==========

After switching Activities, kactivitymanagerd appears to become unresponsive
on the D-Bus session bus. This causes a cascade of failures:
- Other D-Bus services (including org.kde.kuiserver) become unreachable
- The panel freezes
- Any application that makes a D-Bus call to these services either hangs or
crashes

This is consistent with the pattern in bug 435097 (D-Bus timeouts caused by
unresponsive kactivitymanagerd) and bug 314575 (resource issues linked to
kactivitymanagerd and the Activities context menu).

The kactivitymanagerd 6.7 release included significant D-Bus-related changes
("Fix dbus types for ActivityInfo arrays", "Add DBus2 lifecycle methods to
ActivityRunner", etc.), which may have introduced a regression.


SOFTWARE/OS VERSIONS
===================
Operating System: Fedora Linux 44
KDE Plasma Version: 6.7.0
KDE Frameworks Version: 6.27.0
Qt Version: 6.11.1
Kernel Version: 7.0.12-201.fc44.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 12 × AMD Ryzen 5 8500G w/ Radeon 740M Graphics
Memory: 32 GiB of RAM (30.4 GiB usable)
Graphics Processor 1: AMD Radeon 740M Graphics
Graphics Processor 2: NVIDIA GeForce GTX 960

REGRESSION
==========

Yes — this worked correctly before the Plasma 6.6 → 6.7 upgrade.


ADDITIONAL NOTES
================

After a fresh reboot, kactivitymanagerd and all D-Bus services work correctly.
The issue only manifests after switching Activities.

Recommended diagnostic commands to run after the problem triggers (when the
panel is frozen):

  # Is kactivitymanagerd still running?
  ps aux | grep kactivitymanagerd

  # Can we reach kactivitymanagerd on D-Bus?
  dbus-send --session --dest=org.kde.ActivityManager \
      --type=method_call --print-reply \
      /ActivityManager/Activities \
      org.kde.ActivityManager.Activities.ListActivities

  # Check systemd service status
  systemctl --user status plasma-kactivitymanagerd.service

  # Check for coredumps
  coredumpctl list | grep kactivitymanagerd


SEE ALSO
========

- Bug 435097 (30s D-Bus timeout caused by kactivitymanagerd)
- Bug 314575 (Dolphin freeze related to kactivitymanagerd)
- Bug 466193 (Plasmashell races kactivitymanagerd startup)
- Bug 456536 (Activity manager daemon not running error)

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to