You are not logged in.

#1 2018-02-27 20:36:38

Packadal
Member
Registered: 2018-02-27
Posts: 2

Qt QProcessPrivate::createPipe: Cannot create pipe Too many open files

Hi,

after a recent update I keep getting this error whenever I try to use QtCreator :
QProcessPrivate::createPipe: Cannot create pipe 0xe2808a0: Too many open files
which is highly frustrating as I don't understand what could possibly have caused this.

anyways, I looked around and found that the most asked question was the output of .`lsof |awk '{print $1}' | uniq -c | sort -n | tail` which is here:

   2058 akonadi_i
   2304 kded5
   2541 mysqld
   2692 chrome
   3626 akonadi_m
   4887 akonadise
   7176 plasmashe
   8442 qtcreator
  10008 krunner
  21382 chrome

Since chrome is using way more file handles I do not understand why QtCreator would have an issue, except if KDE is eating all those up ?

Please help

Offline

#2 2018-02-27 22:10:16

seth
Member
Registered: 2012-09-03
Posts: 52,218

Re: Qt QProcessPrivate::createPipe: Cannot create pipe Too many open files

This has nothing to do with lsof.
Try "ulimit -n" (should be 1024), try "ulimit -n 2048". Then start qtcreator from the shell where you issued ulimit.

This suggest a bug where something either forgets to close file handles or a rogue loop/recursion - any non-regular plugin or so would be suspicious AND: you can oc. never outlimit an infinite loop/recursion!

Offline

#3 2018-03-01 19:14:22

Packadal
Member
Registered: 2018-02-27
Posts: 2

Re: Qt QProcessPrivate::createPipe: Cannot create pipe Too many open files

Thanks a lot, this worked around the issue !

The strange thing is this happens from a cold boot into KDE plasma, and does not seem to affect any other aplication than QtCreator.

Still, many thanks !

Offline

#4 2018-03-01 20:29:29

seth
Member
Registered: 2012-09-03
Posts: 52,218

Re: Qt QProcessPrivate::createPipe: Cannot create pipe Too many open files

It's a per-process thing (so the cold boot doesn't matter)

If you
a) have a 1024 default limit and
b) cannot blame a plugin (or your project)
you should file a bug against QtCreator - > 1024 open file handles doesn't sound like a sane condition.

Offline

Board footer

Powered by FluxBB