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

            Bug ID: 438790
           Summary: Unloading Kate's LSP plugin (eg. closing window) has a
                    700ms delay
           Product: kate
           Version: 21.04.2
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: kwrite-bugs-n...@kde.org
          Reporter: nyanpas...@tuta.io
  Target Milestone: ---

SUMMARY
If I enable Kate's LSP plugin, then closing the window takes 0.7 seconds for
the Kate process to terminate, and Ctrl+Q or deactivating the plugin causes the
app to hang for 0.7 seconds.

STEPS TO REPRODUCE
1. Open Konsole, type kate, press Enter. There should only be one window with
an empty document.
2. In Configure Kate -> Plugins, check "LSP Client" and press OK.
3. Close Kate using the title bar button, or using Ctrl+Q. (This hang is
reproducible every time you restart Kate and close it.)

Alternatively:
1. Open Kate.
2. In Configure Kate -> Plugins, check "LSP Client".
    - Another bug: checking/unchecking plugins takes effect immediately. Cancel
does *not* revert changes to the set of active plugins, and neither does Cancel
then closing+reopening Kate.
3. Uncheck "LSP Client". (This hang is reproducible every time you uncheck the
checkbox.)

OBSERVED RESULT
Whenever the LSP client is being unloaded, Kate hangs for 700ms.

- When closing with the title bar button, the window closes first, but the
process lingers around for 700ms before returning control to the terminal.
- When quitting with Ctrl+Q, the Kate windows hang for 700ms, unresponsive,
before disappearing (at which point the process terminates quickly).
- When deactivating the LSP Client plugin, the Configure Kate modal dialog
hangs for 700ms before unchecking. (The main Kate window is already
unresponsive because the dialog is modal.)

EXPECTED RESULT
Kate does not hang when unloading the LSP client.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.22.1
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.2
Kernel Version: 5.12.10-zen1-1-zen (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 5600X 6-Core Processor
Memory: 15.6 GiB of RAM
Graphics Processor: NVIDIA GeForce GT 730/PCIe/SSE2

ADDITIONAL INFORMATION

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

Reply via email to