<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks for this feedback, it looks very thorough. I'll work through your suggestions later on this week or at the weekend.</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
So that I can get a better handle on what's causing the issue, am I right in saying that each instantiation of an abstraction constitutes one file descriptor?</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Liam</div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Pd-list <pd-list-bounces@lists.iem.at> on behalf of ub@xdv <ub@xdv.org><br>
<b>Sent:</b> 21 May 2018 19:35<br>
<b>To:</b> pd-list@lists.iem.at<br>
<b>Subject:</b> Re: [PD] "too many open files" error in 0.48.1</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">hello,<br>
<br>
On 20.05.2018 06:50, Liam Goodacre wrote:<br>
> In 0.48.1 on Ubuntu, I'm getting a horrible scenario where PD refuses to<br>
> open patches or create any more abstractions for me. I get an error<br>
> message saying "too many open files". Granted I have a lot open, but<br>
> this is a serious problem as it means I can't access all of my old<br>
> performances. They worked fine in 0.47.<br>
> <br>
> Any ideas?<br>
this is not really a problem with pd, but with your shell- or system<br>
configuration limiting the number of open file descriptors.<br>
<br>
check your current shell-limit with<br>
ulimit -Sn<br>
-S is for soft limit (you can lower, but not raise, the hard limit).<br>
raise the limit in your shell with<br>
ulimit -n 65536<br>
start pd from that shell and see if the situation improves.<br>
<br>
if that doesn't help, you can check the kernel limits with<br>
cat /proc/sys/fs/file-nr<br>
which returns 3 numbers, the first of which is the number of open files,<br>
the last of which is the limit.<br>
<br>
increase the value of "nofile" in  /etc/security/limits.conf<br>
do<br>
sudo sysctl -p<br>
<br>
additional steps are required to make these settings permanent, the<br>
ulimit -n 65536 would have to go into your .bashrc so it's executed at<br>
system startup. if you normally start pd from your GUI you'd have to<br>
restart your system (actually just xorg) so your master shell knows<br>
about the new value. there's other ways, one of which would be to start<br>
pd from a wrapper script, or probably gnome provides that sort of<br>
environmental setup for it's program shortcuts.<br>
<br>
there's more information<br>
-<br>
<a href="https://askubuntu.com/questions/162229/how-do-i-increase-the-open-files-limit-for-a-non-root-user">https://askubuntu.com/questions/162229/how-do-i-increase-the-open-files-limit-for-a-non-root-user</a><br>
-<br>
<a href="https://unix.stackexchange.com/questions/29577/ulimit-difference-between-hard-and-soft-limits">https://unix.stackexchange.com/questions/29577/ulimit-difference-between-hard-and-soft-limits</a><br>
<br>
hope that helps ... cheers,<br>
ub<br>
<br>
> <br>
> Liam<br>
> <br>
> <br>
> _______________________________________________<br>
> Pd-list@lists.iem.at mailing list<br>
> UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list">
https://lists.puredata.info/listinfo/pd-list</a><br>
> <br>
<br>
<br>
_______________________________________________<br>
Pd-list@lists.iem.at mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list">
https://lists.puredata.info/listinfo/pd-list</a><br>
</div>
</span></font></div>
</body>
</html>