Csound Csound-dev Csound-tekno Search About

[Csnd] "corruptet size" error message

Date2021-05-26 08:03
FromStefan Thomas
Subject[Csnd] "corruptet size" error message
Dear community,
after executing the below quoted code I get the following message:
SECTION 1:
 67.2295 -3.7705 -3.7705 -3.7705 66.2295 67.2295 64.2295 67.2295
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.              overall amps:  0.00000  0.00000
           overall samples out of range:        0        0
0 errors in performance
corrupted size vs. prev_size

csound command: Abort
And after the  last message I can't execute a command in the command line.  I don't understand the meanig of the "corrupted size vs. prev_size" line.
Here's the code:
<CsoundSynthesizer>
<CsOptions>
-odac  -m0d
</CsOptions>
; ==============================================
<CsInstruments>
sr = 44100
nchnls = 2
0dbfs = 1
seed 0

opcode StefansRandIntArray,i[],iii
iMin,iMax,iSize xin
iOut[] init iSize
iOut[0] random iMin,iMax
iOut[0] = round(iOut[0])
index = 1
while index <iSize do
irandNum random iMin,iMax
irandNum = round(irandNum)
if irandNum != iOut[index-1] then
iOut[index] = irandNum
index +=1
endif
od
xout iOut
endop


instr 1
iPchNums[] StefansRandIntArray 60,72,8
iRandTransPose  random -5,5
iPchNums += iRandTransPose
printarray iPchNums
endin


</CsInstruments>
; ==============================================
<CsScore>
i1 0 4
e
</CsScore>
</CsoundSynthesizer>

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-05-26 08:53
FromEduardo Moguillansky
SubjectRe: [Csnd] "corruptet size" error message

This is a bug in csound, particularly in "iPchNums += iRandTransPose"

Here is a fix: https://github.com/csound/csound/pull/1478

On 26.05.21 09:03, Stefan Thomas wrote:
Dear community,
after executing the below quoted code I get the following message:
SECTION 1:
 67.2295 -3.7705 -3.7705 -3.7705 66.2295 67.2295 64.2295 67.2295
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.              overall amps:  0.00000  0.00000
           overall samples out of range:        0        0
0 errors in performance
corrupted size vs. prev_size

csound command: Abort
And after the  last message I can't execute a command in the command line.  I don't understand the meanig of the "corrupted size vs. prev_size" line.
Here's the code:
<CsoundSynthesizer>
<CsOptions>
-odac  -m0d
</CsOptions>
; ==============================================
<CsInstruments>
sr = 44100
nchnls = 2
0dbfs = 1
seed 0

opcode StefansRandIntArray,i[],iii
iMin,iMax,iSize xin
iOut[] init iSize
iOut[0] random iMin,iMax
iOut[0] = round(iOut[0])
index = 1
while index <iSize do
irandNum random iMin,iMax
irandNum = round(irandNum)
if irandNum != iOut[index-1] then
iOut[index] = irandNum
index +=1
endif
od
xout iOut
endop


instr 1
iPchNums[] StefansRandIntArray 60,72,8
iRandTransPose  random -5,5
iPchNums += iRandTransPose
printarray iPchNums
endin


</CsInstruments>
; ==============================================
<CsScore>
i1 0 4
e
</CsScore>
</CsoundSynthesizer>

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-05-26 10:22
FromStefan Thomas
SubjectRe: [Csnd] "corruptet size" error message
Dear Eduardo,
thanks for Your reply.
Is there a way to avoid this error?
Best,
Stefan

Am Mi., 26. Mai 2021 um 09:53 Uhr schrieb Eduardo Moguillansky <eduardo.moguillansky@gmail.com>:

This is a bug in csound, particularly in "iPchNums += iRandTransPose"

Here is a fix: https://github.com/csound/csound/pull/1478

On 26.05.21 09:03, Stefan Thomas wrote:
Dear community,
after executing the below quoted code I get the following message:
SECTION 1:
 67.2295 -3.7705 -3.7705 -3.7705 66.2295 67.2295 64.2295 67.2295
Score finished in csoundPerform().
inactive allocs returned to freespace
end of score.              overall amps:  0.00000  0.00000
           overall samples out of range:        0        0
0 errors in performance
corrupted size vs. prev_size

csound command: Abort
And after the  last message I can't execute a command in the command line.  I don't understand the meanig of the "corrupted size vs. prev_size" line.
Here's the code:
<CsoundSynthesizer>
<CsOptions>
-odac  -m0d
</CsOptions>
; ==============================================
<CsInstruments>
sr = 44100
nchnls = 2
0dbfs = 1
seed 0

opcode StefansRandIntArray,i[],iii
iMin,iMax,iSize xin
iOut[] init iSize
iOut[0] random iMin,iMax
iOut[0] = round(iOut[0])
index = 1
while index <iSize do
irandNum random iMin,iMax
irandNum = round(irandNum)
if irandNum != iOut[index-1] then
iOut[index] = irandNum
index +=1
endif
od
xout iOut
endop


instr 1
iPchNums[] StefansRandIntArray 60,72,8
iRandTransPose  random -5,5
iPchNums += iRandTransPose
printarray iPchNums
endin


</CsInstruments>
; ==============================================
<CsScore>
i1 0 4
e
</CsScore>
</CsoundSynthesizer>

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

Date2021-05-26 19:45
Fromjoachim heintz
SubjectRe: [Csnd] "corruptet size" error message
i haven't checked but i guess that the += is not valid for what you want 
to do (= to add a number to all elements of an array).  can you try this:
	iPchNums = iPchNums+iRandTransPose

best -
	joachim


On 26/05/2021 11:22, Stefan Thomas wrote:
> Dear Eduardo,
> thanks for Your reply.
> Is there a way to avoid this error?
> Best,
> Stefan
> 
> Am Mi., 26. Mai 2021 um 09:53 Uhr schrieb Eduardo Moguillansky 
> >:
> 
>     This is a bug in csound, particularly in "iPchNums += iRandTransPose"
> 
>     Here is a fix: https://github.com/csound/csound/pull/1478
> 
>     On 26.05.21 09:03, Stefan Thomas wrote:
>>     Dear community,
>>     after executing the below quoted code I get the following message:
>>
>>         SECTION 1:
>>          67.2295 -3.7705 -3.7705 -3.7705 66.2295 67.2295 64.2295 67.2295
>>         Score finished in csoundPerform().
>>         inactive allocs returned to freespace
>>         end of score.              overall amps:  0.00000  0.00000
>>                    overall samples out of range:        0        0
>>         0 errors in performance
>>         corrupted size vs. prev_size
>>
>>
>>     csound command: Abort
>>     And after the  last message I can't execute a command in the
>>     command line.  I don't understand the meanig of the "corrupted
>>     size vs. prev_size" line.
>>     Here's the code:
>>     
>>     
>>     -odac  -m0d
>>     
>>     ; ==============================================
>>     
>>     sr = 44100
>>     nchnls = 2
>>     0dbfs = 1
>>     seed 0
>>
>>     opcode StefansRandIntArray,i[],iii
>>     iMin,iMax,iSize xin
>>     iOut[] init iSize
>>     iOut[0] random iMin,iMax
>>     iOut[0] = round(iOut[0])
>>     index = 1
>>     while index >     irandNum random iMin,iMax
>>     irandNum = round(irandNum)
>>     if irandNum != iOut[index-1] then
>>     iOut[index] = irandNum
>>     index +=1
>>     endif
>>     od
>>     xout iOut
>>     endop
>>
>>
>>     instr 1
>>     iPchNums[] StefansRandIntArray 60,72,8
>>     iRandTransPose  random -5,5
>>     iPchNums += iRandTransPose
>>     printarray iPchNums
>>     endin
>>
>>
>>     
>>     ; ==============================================
>>     
>>     i1 0 4
>>     e
>>     
>>     
>>
>>     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

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