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

            Bug ID: 520674
           Summary: LibreOffice X11/XWayland Freeze and Severe Delays
                    After Screen Lock on Fedora KDE Wayland
    Classification: I don't know
           Product: kde
      Version First unspecified
       Reported In:
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

**ENVIRONMENT**

- OS: Fedora Linux 44
- Desktop Environment: KDE Plasma 6.6.5
- Server: Wayland
- Monitor: 4K display
- Fractional Scaling: 125%
- Suspend: disabled system-wide
- Hibernate: disabled system-wide


**BACKGROUND**

LibreOffice performance is extremely poor under native Wayland when fractional
scaling is enabled (known issue). To work around this, LibreOffice is forced to
run through X11/XWayland using either:

SAL_USE_VCLPLUGIN=qt6
QT_QPA_PLATFORM=xcb

or

SAL_USE_VCLPLUGIN=gtk3
GDK_BACKEND=x11


**ISSUE**

LibreOffice running through X11/XWayland becomes temporarily unusable after
screen lock or DPMS events on Fedora KDE Wayland with fractional scaling
enabled.

Observations:
- During the freeze, LibreOffice becomes completely unresponsive and cannot be
closed.
- The issue happens mostly after screen lock or monitor power-off/DPMS events.
- Logging out and back in temporarily fixes the problem.
- The issue affects both Qt6/XCB and GTK3/X11 backends.
- Qt6/XCB freezes for ~10 seconds when opening local files.
- GTK3/X11 freezes for ~10 seconds during startup before the menu bar appears
- The Flatpak version shows the same behavior.
- Has been reproduced on AMD and Nvidia GPU, Mesa can be ruled out
- Killing and restarting Xwayland does not help. It does not look like an
Xwayland issue.
- Has not been reproduced on GNOME


**THINGS ALREADY TESTED**

Multiple environment and rendering workarounds were tested without success,
suggesting a possible XWayland/KWin/Mesa interaction problem rather than a
LibreOffice-specific issue.


# Disable XWayland GLAMOR rendering
XWAYLAND_NO_GLAMOR=1

# Disable GTK portal integration
GTK_USE_PORTAL=0

# Disable DRI3
LIBGL_DRI3_DISABLE=1

# Disable synchronous printer detection
SAL_DISABLE_SYNCHRONOUS_PRINTER_DETECTION=1

# Force local GIO/VFS backend
GIO_USE_VFS=local

# Force local X11 display
DISPLAY=:0

# Remove old X11 session references
unset SESSION_MANAGER
unset WINDOWID

# Isolate LibreOffice from D-Bus session bus
unset DBUS_SESSION_BUS_ADDRESS

# Refresh NSS/DNS lookups
getent hosts "$(hostname)" >/dev/null 2>&1


**EXPECTED BEHAVIOR**

LibreOffice running through X11/XWayland should:
- remain responsive after screen lock and DPMS events
- open local files immediately
- display the UI without long freezes

**REPRODUCIBILITY**

The issue is intermittent but reproducible over time, especially after:
- screen locking
- monitor standby/DPMS events

A logout/login cycle reliably clears the issue temporarily.


This issure has also been reported here:
https://gitlab.freedesktop.org/groups/xorg/-/work_items?show=eyJpaWQiOiIxODk2IiwiZnVsbF9wYXRoIjoieG9yZy94c2VydmVyIiwiaWQiOjE1MTY5N30%3D

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

Reply via email to