Bug 452260

Summary: Okular opens too many X clients So I cannot start any other applications
Product: [Applications] okular Reporter: qcd
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: RESOLVED WORKSFORME    
Severity: normal CC: kde
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description qcd 2022-04-04 12:42:13 UTC
SUMMARY
***
Okular opens too many X clients So I cannot start any other applications
***


STEPS TO REPRODUCE
1. open some document in okular, maybe using latexmk and work with it for a while
2. start hit any GUI program like xterm on a terminal window opened earlier.
3. You will see an error like
Maximum number of clients reachedxterm: Xt error: Can't open display: :0.0


OBSERVED RESULT
Maximum number of clients reachedxterm: Xt error: Can't open display: :0.0
Started GUI program crashes

EXPECTED RESULT
Started GUI program starts

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 20.04.4 LTS
Release:	20.04
Codename:	focal

KDE Plasma Version: / (using xfce and i3)
KDE Frameworks Version: /
Qt Version: 
$ qtdiag
Qt 5.9.7 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 7.3.0) on "xcb" 
OS: Ubuntu 20.04.4 LTS [linux version 5.4.0-105-generic]

Architecture: x86_64; features: SSE2 SSE3 SSSE3 SSE4.1 SSE4.2 AVX AVX2 RTM HLE


ADDITIONAL INFORMATION

$ lsof -U | grep okular | wc -l
442

lsof -U +c 15 | cut -f1 -d' ' | sort | uniq -c | sort -rn | head -3
    442 okular
    310 dbus-daemon
    136 mattermost-desk
Comment 1 qcd 2022-04-04 12:43:02 UTC
Okular seems to be version 1.9.3
Comment 2 Sune Vuorela 2025-02-19 08:12:39 UTC
I can't seem to reproduce it.

I don't know what kind of usage pattern you have, but none should create multiple X clients.
Comment 3 Bug Janitor Service 2025-03-06 03:47:18 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Bug Janitor Service 2025-03-21 03:47:08 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.