Csound Csound-dev Csound-tekno Search About

[Csnd] fprints issue

Date2021-08-19 01:17
Fromandy fillebrown
Subject[Csnd] fprints issue
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

Date2021-08-19 01:45
Fromandy fillebrown
SubjectRe: [Csnd] fprints issue
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

Date2021-08-19 11:38
FromVictor Lazzarini
SubjectRe: [Csnd] [EXTERNAL] [Csnd] fprints issue
I agree. Could you open a ticket in the issues tracker so that we don’t forget to look at this?
========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 19 Aug 2021, at 01:45, andy fillebrown  wrote:
> 
> *Warning*
> 
> This email originated from outside of Maynooth University's Mail System. Do not reply, click links or open attachments unless you recognise the sender and know the content is safe.
> 
> 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://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Flistserv.heanet.ie%2Fcgi-bin%2Fwa%3FA0%3DCSOUND&data=04%7C01%7CVictor.Lazzarini%40mu.ie%7C3f18072ad8484481afd708d962aab08d%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C1%7C637649307515126170%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=6jj%2BHDLI8cdOaIUXsmM7%2BgM8vsexFPhcTTWLcQViegk%3D&reserved=0
> Send bugs reports to
>        https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fcsound%2Fcsound%2Fissues&data=04%7C01%7CVictor.Lazzarini%40mu.ie%7C3f18072ad8484481afd708d962aab08d%7C1454f5ccbb354685bbd98621fd8055c9%7C1%7C1%7C637649307515126170%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=lfRIvma22FEWq29gvb6Lv3Zmt5amDFVpEg3A20RiB1c%3D&reserved=0
> 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

Date2021-08-22 18:08
Fromjohn
SubjectRe: [Csnd] fprints issue
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

Date2021-08-23 23:29
Fromandy fillebrown
SubjectRe: [Csnd] fprints issue
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