Csound Csound-dev Csound-tekno Search About

"failed to open file" --- reasons other than filename error

Date2015-11-01 19:00
FromChristopher Bailey
Subject"failed to open file" --- reasons other than filename error
Hello,

When running a score which uses diskin2 recently, I'm getting a lot of "failed to open file" errors.

I know this is NOT because of the filename being mis-spelled, or mis-pathed, or using weird characters or 
whatever.  Early on in the score, a file name will work just fine (here is a snippet of the log):


new alloc for instr 5:
WARNING: instr 5 uses 10 p-fields but is given 14
diskin2: opened '../bank/keydrum_1.aiff':
         44100 Hz, 1 channel(s), 40977 sample frames
new alloc for instr 5:
WARNING: instr 5 uses 10 p-fields but is given 14
diskin2: opened '../bank/lowhit.aiff':
         44100 Hz, 1 channel(s), 34685 sample frames


(all is well and worked fine.)
Later on, during the same score,  I get this:


B  3.010 ..  3.080 T  3.080 TT  3.080 M:  0.07964  0.08926
new alloc for instr 3:
INIT ERROR in instr 3: diskin2: ../bank/keydrum_1.aiff: failed to open file
asndee	diskin2	"../bank/keydrum_1.aiff"	p4	0	0	0	40	0	0	0	
	  B  3.080 - note deleted.  i3 had 1 init errors
WARNING: instr 5 uses 10 p-fields but is given 14

I usually get a whole string of these errors, all with soundfiles that worked earlier in the score.



A lot of notes are being generated in extremely rapid suggestion, so my theory is that maybe 2 threads are trying 
to read from the same soundfile at once, and the first thread says to the 2nd one "it's MINE!!  No touchy!!"   If 
that is the problem....well, that just seems very lame, so I hope it's not.

Any other ideas?

thanks,
Chris Bailey

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

Date2015-11-01 20:27
Fromjpff
SubjectRe: "failed to open file" --- reasons other than filename error
What platform?  Do you ave a est program?  i have adjusted te error 
message in the git version with  intent to give more infomation.
I doubt there are threads unless you are setting -j or --real-time

So more information and/or a test program please

==John ff


On Sun, 1 Nov 2015, Christopher Bailey wrote:

> Hello,
>
> When running a score which uses diskin2 recently, I'm getting a lot of "failed to open file" errors.
>
> I know this is NOT because of the filename being mis-spelled, or mis-pathed, or using weird characters or
> whatever.  Early on in the score, a file name will work just fine (here is a snippet of the log):
>
>
> new alloc for instr 5:
> WARNING: instr 5 uses 10 p-fields but is given 14
> diskin2: opened '../bank/keydrum_1.aiff':
>         44100 Hz, 1 channel(s), 40977 sample frames
> new alloc for instr 5:
> WARNING: instr 5 uses 10 p-fields but is given 14
> diskin2: opened '../bank/lowhit.aiff':
>         44100 Hz, 1 channel(s), 34685 sample frames
>
>
> (all is well and worked fine.)
> Later on, during the same score,  I get this:
>
>
> B  3.010 ..  3.080 T  3.080 TT  3.080 M:  0.07964  0.08926
> new alloc for instr 3:
> INIT ERROR in instr 3: diskin2: ../bank/keydrum_1.aiff: failed to open file
> asndee	diskin2	"../bank/keydrum_1.aiff"	p4	0	0	0	40	0	0	0
> 	  B  3.080 - note deleted.  i3 had 1 init errors
> WARNING: instr 5 uses 10 p-fields but is given 14
>
> I usually get a whole string of these errors, all with soundfiles that worked earlier in the score.
>
>
>
> A lot of notes are being generated in extremely rapid suggestion, so my theory is that maybe 2 threads are trying
> to read from the same soundfile at once, and the first thread says to the 2nd one "it's MINE!!  No touchy!!"   If
> that is the problem....well, that just seems very lame, so I hope it's not.
>
> Any other ideas?
>
> thanks,
> Chris Bailey
>
> 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