<div dir="auto">but why woyld anyone keep 300 konsole windows open? </div><div dir="auto">i honestly dont think this is a bug.</div><div dir="auto"><br></div><div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Sat, 19 Jul 2025 at 07:43 Askar Safin <<a href="mailto:bugzilla_noreply@kde.org">bugzilla_noreply@kde.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><a href="https://bugs.kde.org/show_bug.cgi?id=507216" rel="noreferrer" target="_blank">https://bugs.kde.org/show_bug.cgi?id=507216</a><br>
<br>
            Bug ID: 507216<br>
           Summary: Konsole fails if I open 300 windows with "QProcess:<br>
                    Cannot create pipe (Too many open files)"; please,<br>
                    raise RLIMIT_NOFILE<br>
    Classification: Applications<br>
           Product: konsole<br>
      Version First 25.04.2<br>
       Reported In:<br>
          Platform: Debian testing<br>
                OS: Linux<br>
            Status: REPORTED<br>
          Severity: normal<br>
          Priority: NOR<br>
         Component: single-process<br>
          Assignee: <a href="mailto:konsole-devel@kde.org" target="_blank">konsole-devel@kde.org</a><br>
          Reporter: <a href="mailto:safinaskar@mail.ru" target="_blank">safinaskar@mail.ru</a><br>
  Target Milestone: ---<br>
<br>
SUMMARY<br>
Konsole fails if I open 300 windows with "QProcess: Cannot create pipe (Too<br>
many open files)"<br>
<br>
STEPS TO REPRODUCE<br>
Try to open 300 Konsole windows<br>
<br>
OBSERVED RESULT<br>
All windows close on its own<br>
<br>
EXPECTED RESULT<br>
Windows should not close on its own<br>
<br>
SOFTWARE/OS VERSIONS<br>
Linux/KDE Plasma: Debian Trixie 13, x86_64<br>
uname -a: Linux comp 6.12.35+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian<br>
6.12.35-1 (2025-07-03) x86_64 GNU/Linux<br>
KDE Plasma Version: 6.3.5<br>
KDE Frameworks Version: 6.13.0<br>
Qt Version: 6.8.2<br>
Konsole version: 25.04.2<br>
Wayland<br>
<br>
ADDITIONAL INFORMATION<br>
"journalctl" shows this:<br>
<br>
Jul 19 07:41:26 comp konsole[2187]: org.kde.konsole: foregroundProcessGroup<br>
master_fd < 0<br>
Jul 19 07:41:26 comp konsole[2187]: QLayout: Cannot add a null widget to<br>
QHBoxLayout/<br>
Jul 19 07:41:26 comp konsole[2187]: kf.pty: Can't open a pseudo teletype<br>
Jul 19 07:41:26 comp konsole[2187]: org.kde.konsole: foregroundProcessGroup<br>
master_fd < 0<br>
Jul 19 07:41:26 comp konsole[2187]: QProcess: Cannot create pipe (Too many open<br>
files)<br>
Jul 19 07:41:26 comp konsole[2187]: QProcess: Cannot create pipe (Too many open<br>
files)<br>
Jul 19 07:41:26 comp konsole[2187]: QLayout: Cannot add a null widget to<br>
QHBoxLayout/<br>
Jul 19 07:41:27 comp konsole[2187]: kf.pty: Can't open a pseudo teletype<br>
Jul 19 07:41:27 comp konsole[2187]: org.kde.konsole: foregroundProcessGroup<br>
master_fd < 0<br>
Jul 19 07:41:27 comp konsole[2187]: QProcess: Cannot create pipe (Too many open<br>
files)<br>
Jul 19 07:41:27 comp konsole[2187]: QProcess: Cannot create pipe (Too many open<br>
files)<br>
Jul 19 07:41:27 comp konsole[2187]: QLayout: Cannot add a null widget to<br>
QHBoxLayout/<br>
Jul 19 07:41:27 comp konsole[2187]: kf.pty: Can't open a pseudo teletype<br>
Jul 19 07:41:27 comp konsole[2187]: org.kde.konsole: foregroundProcessGroup<br>
master_fd < 0<br>
Jul 19 07:41:27 comp konsole[2187]: QLayout: Cannot add a null widget to<br>
QHBoxLayout/<br>
Jul 19 07:41:27 comp konsole[2187]: kf.pty: Can't open a pseudo teletype<br>
Jul 19 07:41:27 comp konsole[2187]: org.kde.konsole: foregroundProcessGroup<br>
master_fd < 0<br>
Jul 19 07:41:27 comp konsole[2187]: The Wayland connection experienced a fatal<br>
error: Too many open files<br>
Jul 19 07:41:27 comp konsole[4941]: QLayout: Cannot add a null widget to<br>
QHBoxLayout/<br>
Jul 19 07:41:27 comp systemd[1371]:<br>
app-org.kde.konsole@282b2f16ea744533bf654a1f827f5aad.service: Main process<br>
exited, code=exited, status=255/EXCEPTION<br>
Jul 19 07:41:27 comp systemd[1371]:<br>
app-org.kde.konsole@282b2f16ea744533bf654a1f827f5aad.service: Failed with<br>
result 'exit-code'.<br>
Jul 19 07:41:27 comp systemd[1371]:<br>
app-org.kde.konsole@282b2f16ea744533bf654a1f827f5aad.service: Consumed 314ms<br>
CPU time, 130.2M memory peak.<br>
Jul 19 07:41:27 comp systemd[1371]: app-org.kde.konsole-2187.scope: Consumed<br>
42.811s CPU time, 11.8G memory peak.<br>
<br>
So, it seems Konsole opens too many files.<br>
<br>
I added DefaultLimitNOFILE=524288:524288 to /etc/systemd/user.conf and<br>
/etc/systemd/system.conf .<br>
And the bug disappeared.<br>
So I suggest to follow advice in this Poettering blog<br>
<a href="https://0pointer.net/blog/file-descriptor-limits.html" rel="noreferrer" target="_blank">https://0pointer.net/blog/file-descriptor-limits.html</a> and to raise<br>
RLIMIT_NOFILE at startup.<br>
Possibly this change should be propagated to all KDE apps or even to all Qt<br>
apps<br>
<br>
-- <br>
You are receiving this mail because:<br>
You are the assignee for the bug.</blockquote></div></div>