| Yes, the `ficlose` opcode does what I want. Thank you.
On Sun, Aug 22, 2021 at 1:09 PM john wrote:
>
> Does not calling ficlose do what you want? There is also a deinit
> callback to close files so I am not sure what else can do.
>
> On Wed, 18 Aug 2021, andy fillebrown wrote:
>
> > I'm fairly certain this is a max open files issue. Raising the max
> > open files on the OS level with `sudo launchctl limit maxfiles 655360
> > 1048576` works around the issue, but it would be better if there was a
> > way to close each file after fprints is done with it.
> >
> > On Wed, Aug 18, 2021 at 8:17 PM andy fillebrown
> > wrote:
> >>
> >> Hello, I'm trying to write to 10,000+ different files using the
> >> fprints opcode on macOS and I think I'm running into a max open files
> >> issue after about 8000 files have been written. After hitting the max,
> >> using the fprints opcode issues warnings like INIT ERROR in instr 4
> >> (opcode fprints) line 2619: error opening file
> >> 'json/6c9f37ab-392f-429b-8217-eac09f295362.9578.json'
> >>
> >> Is there a way to close the files and release resources so there
> >> aren't so many files open at the same time? ... or maybe there's
> >> something else going on that's causing the init error?
> >
> > Csound mailing list
> > Csound@listserv.heanet.ie
> > https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> > Send bugs reports to
> > https://github.com/csound/csound/issues
> > Discussions of bugs and features can be posted here
> >
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
> https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here |