This may or may not be related or useful, but:<div>I got this &#39;too many files open&#39; error a while ago in a patch with many readsf~ (without &#39;any&#39;) objects.<div><br></div><div>I did this:</div><div><span class="Apple-style-span" style="font-family: Verdana, Arial, Tahoma; font-size: 12px; "><br>

</span></div><div><span class="Apple-style-span" style="font-family: Verdana, Arial, Tahoma; font-size: 12px; ">edit /etc/security/limits.conf</span></div><div><span class="Apple-style-span" style="font-family: Verdana, Arial, Tahoma; font-size: 12px; ">and add :<br>

[username] soft nofile 4096<br>[username] hard nofile 4096</span></div><div><span class="Apple-style-span" style="font-family: Verdana, Arial, Tahoma; font-size: 12px; "><br></span></div><div><span class="Apple-style-span" style="font-family: Verdana, Arial, Tahoma; font-size: 12px; ">(see <a href="http://ubuntuforums.org/showthread.php?t=638597">http://ubuntuforums.org/showthread.php?t=638597</a> )</span></div>

<div><br></div><div><span class="Apple-style-span" style="font-family: Verdana, Arial, Tahoma; font-size: 12px; ">or some variation of it...</span></div><div><font class="Apple-style-span" face="Verdana, Arial, Tahoma" size="3"><span class="Apple-style-span" style="font-size: 12px;"><br>

</span></font></div><div>It seemed to help a bit, but still it happened now and then.</div><div>The problem went away when I transfered the patch to a computer with more ram.</div><div>But it is strange that playing a few sound files would require so much memory.</div>

<div>I&#39;m not sure if it&#39;s related at all to readsf~ or readanysf~. </div><div>I got this error when using pix_image a few times too...</div><div><br></div><div>gr,</div><div>Tim</div><div><br><div class="gmail_quote">

2010/6/22 august <span dir="ltr">&lt;<a href="mailto:august@alien.mur.at">august@alien.mur.at</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div>
<div>
</div><div class="h5">&gt; Seems that my first post has been truncated ...<br>
&gt;<br>
&gt; ---------- Forwarded message ----------<br>
&gt;<br>
&gt; Hi everyone,<br>
&gt;<br>
&gt; Sorry to interfere but I&#39;m experiencing similar issues and cleaning up<br>
&gt; the headers doesn&#39;t seem to solve the problem ...<br>
&gt;<br>
&gt; &gt;From user&#39;s point of view (no dev skills in here !), it seems that pd<br>
&gt; gets overloaded by too many file&#39;s openings.<br>
&gt;<br>
&gt; On my system (osx 10.6, Pd-Ext 0.42.5-RC2, hcs&#39; readanysf intel<br>
&gt; binary), and no matter the format and the size of the files, 240<br>
&gt; successive openings lead to:<br>
&gt;<br>
&gt; &quot;Invalid file or unsupported codec.<br>
&gt;  Current file is either invalid or an unsupported codec&quot;<br>
&gt;<br>
&gt; Then Pd refuses to save and reports :<br>
&gt;<br>
&gt; &quot;error: /Users/me/Documents/PD/stress.pd: Too many open files&quot;<br>
&gt;<br>
&gt; I join a simple &quot;stress patch&quot; that tries to isolate the error.<br>
&gt;<br>
&gt; Thanks for helping a bit more !<br>
&gt;<br>
&gt; Cheers,<br>
&gt;<br>
&gt; Pierre<br>
<br>
<br>
</div></div>Pierre,<br>
<br>
        thanks for the report and for the test patch.  However, I cannot<br>
        produce your error.<br>
<br>
        I am using ubuntu, pd 0.42.5<br>
        your test patch seems to work like it should here.<br>
<br>
        The &quot;Too many open files&quot; error is also not from readanysf~<br>
<br>
        can you explain a little further?  Are you hearing noise like Derek<br>
        reported?<br>
<br>
<br>
        best -august.<br>
<div><div></div><div class="h5"><br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</div></div></blockquote></div><br></div></div>