Csound Csound-dev Csound-tekno Search About

[Csnd] pvsblur and reinit = Segmentation fault

Date2011-04-21 01:31
Frompeiman khosravi
Subject[Csnd] pvsblur and reinit = Segmentation fault
Hello,

I have been debugging a csd for hours and have finally found the 
culprit. It seems that "pvsblur" causes a segmentation fault when FFT 
overlap size is increased to fft/8 during performance, using the 
"reinit" opcode:

ktrig           changed     gkfftsize,gkol, gkwindmult, gkwindtype
if ktrig = 1 then
                 reinit      pass
endif

pass:

ifftsize =  i(gkfftsize)
iol =  i(gkol)
iNumBins = ifftsize/2 + 1
ihop = ifftsize/iol
iwindow = ifftsize*i(gkwindmult)
iwindtype = i(gkwindtype)


For full csd please see below. Commenting the pvsblur line fixes 
everything.

Thanks

Peiman




-odac -d




sr=96000
ksmps=100
nchnls=1
0dbfs = 1

gkfftsize     init 4096
gkol         init 4
gkwindmult     init 2
gkwindtype     init 0




instr 2

gkol = 8

endin





instr 1

ktrig           changed     gkfftsize,gkol, gkwindmult, gkwindtype
if ktrig = 1 then
                 reinit      pass
endif

pass:

ifftsize =  i(gkfftsize)
iol =  i(gkol)
iNumBins = ifftsize/2 + 1
ihop = ifftsize/iol
iwindow = ifftsize*i(gkwindmult)
iwindtype = i(gkwindtype)


ain1    oscil    0.02, 440, 1

fsig1 pvsanal ain1, ifftsize, ihop, iwindow, iwindtype

fsigblur pvsblur fsig1, .1, 1


;aout1 pvsynth fsigblur


;out aout1

endin






f1 0 4096 10 1

i1 0 20
i2 2 1
e






Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-04-21 09:16
FromVictor Lazzarini
SubjectRe: [Csnd] pvsblur and reinit = Segmentation fault
I think I know why. I will check and see if I can fix it.

Victor
On 21 Apr 2011, at 01:31, peiman khosravi wrote:

> Hello,
>
> I have been debugging a csd for hours and have finally found the  
> culprit. It seems that "pvsblur" causes a segmentation fault when  
> FFT overlap size is increased to fft/8 during performance, using the  
> "reinit" opcode:
>
> ktrig           changed     gkfftsize,gkol, gkwindmult, gkwindtype
> if ktrig = 1 then
>                reinit      pass
> endif
>
> pass:
>
> ifftsize =  i(gkfftsize)
> iol =  i(gkol)
> iNumBins = ifftsize/2 + 1
> ihop = ifftsize/iol
> iwindow = ifftsize*i(gkwindmult)
> iwindtype = i(gkwindtype)
>
>
> For full csd please see below. Commenting the pvsblur line fixes  
> everything.
>
> Thanks
>
> Peiman
>
>
> 
> 
> -odac -d
> 
> 
>
>
> sr=96000
> ksmps=100
> nchnls=1
> 0dbfs = 1
>
> gkfftsize     init 4096
> gkol         init 4
> gkwindmult     init 2
> gkwindtype     init 0
>
>
>
>
> instr 2
>
> gkol = 8
>
> endin
>
>
>
>
>
> instr 1
>
> ktrig           changed     gkfftsize,gkol, gkwindmult, gkwindtype
> if ktrig = 1 then
>                reinit      pass
> endif
>
> pass:
>
> ifftsize =  i(gkfftsize)
> iol =  i(gkol)
> iNumBins = ifftsize/2 + 1
> ihop = ifftsize/iol
> iwindow = ifftsize*i(gkwindmult)
> iwindtype = i(gkwindtype)
>
>
> ain1    oscil    0.02, 440, 1
>
> fsig1 pvsanal ain1, ifftsize, ihop, iwindow, iwindtype
>
> fsigblur pvsblur fsig1, .1, 1
>
>
> ;aout1 pvsynth fsigblur
>
>
> ;out aout1
>
> endin
>
>
>
>
> 
> 
> f1 0 4096 10 1
>
> i1 0 20
> i2 2 1
> e
>
> 
> 
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-04-21 09:39
FromVictor Lazzarini
SubjectRe: [Csnd] pvsblur and reinit = Segmentation fault
As I suspected; fixed in GIT. Thanks for the report.
On 21 Apr 2011, at 09:16, Victor Lazzarini wrote:

> I think I know why. I will check and see if I can fix it.
>
> Victor
> On 21 Apr 2011, at 01:31, peiman khosravi wrote:
>
>> Hello,
>>
>> I have been debugging a csd for hours and have finally found the  
>> culprit. It seems that "pvsblur" causes a segmentation fault when  
>> FFT overlap size is increased to fft/8 during performance, using  
>> the "reinit" opcode:
>>
>> ktrig           changed     gkfftsize,gkol, gkwindmult, gkwindtype
>> if ktrig = 1 then
>>               reinit      pass
>> endif
>>
>> pass:
>>
>> ifftsize =  i(gkfftsize)
>> iol =  i(gkol)
>> iNumBins = ifftsize/2 + 1
>> ihop = ifftsize/iol
>> iwindow = ifftsize*i(gkwindmult)
>> iwindtype = i(gkwindtype)
>>
>>
>> For full csd please see below. Commenting the pvsblur line fixes  
>> everything.
>>
>> Thanks
>>
>> Peiman
>>
>>
>> 
>> 
>> -odac -d
>> 
>> 
>>
>>
>> sr=96000
>> ksmps=100
>> nchnls=1
>> 0dbfs = 1
>>
>> gkfftsize     init 4096
>> gkol         init 4
>> gkwindmult     init 2
>> gkwindtype     init 0
>>
>>
>>
>>
>> instr 2
>>
>> gkol = 8
>>
>> endin
>>
>>
>>
>>
>>
>> instr 1
>>
>> ktrig           changed     gkfftsize,gkol, gkwindmult, gkwindtype
>> if ktrig = 1 then
>>               reinit      pass
>> endif
>>
>> pass:
>>
>> ifftsize =  i(gkfftsize)
>> iol =  i(gkol)
>> iNumBins = ifftsize/2 + 1
>> ihop = ifftsize/iol
>> iwindow = ifftsize*i(gkwindmult)
>> iwindtype = i(gkwindtype)
>>
>>
>> ain1    oscil    0.02, 440, 1
>>
>> fsig1 pvsanal ain1, ifftsize, ihop, iwindow, iwindtype
>>
>> fsigblur pvsblur fsig1, .1, 1
>>
>>
>> ;aout1 pvsynth fsigblur
>>
>>
>> ;out aout1
>>
>> endin
>>
>>
>>
>>
>> 
>> 
>> f1 0 4096 10 1
>>
>> i1 0 20
>> i2 2 1
>> e
>>
>> 
>> 
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>>
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-04-21 11:15
Frompeiman khosravi
SubjectRe: [Csnd] pvsblur and reinit = Segmentation fault
Thanks very much Victor.

Best,
Peiman

On 21/04/2011 09:39, Victor Lazzarini wrote:
> As I suspected; fixed in GIT. Thanks for the report.
> On 21 Apr 2011, at 09:16, Victor Lazzarini wrote:
>
>> I think I know why. I will check and see if I can fix it.
>>
>> Victor
>> On 21 Apr 2011, at 01:31, peiman khosravi wrote:
>>
>>> Hello,
>>>
>>> I have been debugging a csd for hours and have finally found the 
>>> culprit. It seems that "pvsblur" causes a segmentation fault when 
>>> FFT overlap size is increased to fft/8 during performance, using the 
>>> "reinit" opcode:
>>>
>>> ktrig           changed     gkfftsize,gkol, gkwindmult, gkwindtype
>>> if ktrig = 1 then
>>>               reinit      pass
>>> endif
>>>
>>> pass:
>>>
>>> ifftsize =  i(gkfftsize)
>>> iol =  i(gkol)
>>> iNumBins = ifftsize/2 + 1
>>> ihop = ifftsize/iol
>>> iwindow = ifftsize*i(gkwindmult)
>>> iwindtype = i(gkwindtype)
>>>
>>>
>>> For full csd please see below. Commenting the pvsblur line fixes 
>>> everything.
>>>
>>> Thanks
>>>
>>> Peiman
>>>
>>>
>>> 
>>> 
>>> -odac -d
>>> 
>>> 
>>>
>>>
>>> sr=96000
>>> ksmps=100
>>> nchnls=1
>>> 0dbfs = 1
>>>
>>> gkfftsize     init 4096
>>> gkol         init 4
>>> gkwindmult     init 2
>>> gkwindtype     init 0
>>>
>>>
>>>
>>>
>>> instr 2
>>>
>>> gkol = 8
>>>
>>> endin
>>>
>>>
>>>
>>>
>>>
>>> instr 1
>>>
>>> ktrig           changed     gkfftsize,gkol, gkwindmult, gkwindtype
>>> if ktrig = 1 then
>>>               reinit      pass
>>> endif
>>>
>>> pass:
>>>
>>> ifftsize =  i(gkfftsize)
>>> iol =  i(gkol)
>>> iNumBins = ifftsize/2 + 1
>>> ihop = ifftsize/iol
>>> iwindow = ifftsize*i(gkwindmult)
>>> iwindtype = i(gkwindtype)
>>>
>>>
>>> ain1    oscil    0.02, 440, 1
>>>
>>> fsig1 pvsanal ain1, ifftsize, ihop, iwindow, iwindtype
>>>
>>> fsigblur pvsblur fsig1, .1, 1
>>>
>>>
>>> ;aout1 pvsynth fsigblur
>>>
>>>
>>> ;out aout1
>>>
>>> endin
>>>
>>>
>>>
>>>
>>> 
>>> 
>>> f1 0 4096 10 1
>>>
>>> i1 0 20
>>> i2 2 1
>>> e
>>>
>>> 
>>> 
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>>> "unsubscribe csound"
>>>
>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>> "unsubscribe csound"
>>
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
> "unsubscribe csound"
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-05-12 11:41
Frompeiman khosravi
SubjectRe: [Csnd] pvsblur and reinit = Segmentation fault
Hi Victor,

I am just wondering if there is a temporary workaround to this?

Thanks

Peiman

On 21/04/2011 09:39, Victor Lazzarini wrote:
> As I suspected; fixed in GIT. Thanks for the report.
> On 21 Apr 2011, at 09:16, Victor Lazzarini wrote:
>
>> I think I know why. I will check and see if I can fix it.
>>
>> Victor
>> On 21 Apr 2011, at 01:31, peiman khosravi wrote:
>>
>>> Hello,
>>>
>>> I have been debugging a csd for hours and have finally found the 
>>> culprit. It seems that "pvsblur" causes a segmentation fault when 
>>> FFT overlap size is increased to fft/8 during performance, using the 
>>> "reinit" opcode:
>>>
>>> ktrig           changed     gkfftsize,gkol, gkwindmult, gkwindtype
>>> if ktrig = 1 then
>>>               reinit      pass
>>> endif
>>>
>>> pass:
>>>
>>> ifftsize =  i(gkfftsize)
>>> iol =  i(gkol)
>>> iNumBins = ifftsize/2 + 1
>>> ihop = ifftsize/iol
>>> iwindow = ifftsize*i(gkwindmult)
>>> iwindtype = i(gkwindtype)
>>>
>>>
>>> For full csd please see below. Commenting the pvsblur line fixes 
>>> everything.
>>>
>>> Thanks
>>>
>>> Peiman
>>>
>>>
>>> 
>>> 
>>> -odac -d
>>> 
>>> 
>>>
>>>
>>> sr=96000
>>> ksmps=100
>>> nchnls=1
>>> 0dbfs = 1
>>>
>>> gkfftsize     init 4096
>>> gkol         init 4
>>> gkwindmult     init 2
>>> gkwindtype     init 0
>>>
>>>
>>>
>>>
>>> instr 2
>>>
>>> gkol = 8
>>>
>>> endin
>>>
>>>
>>>
>>>
>>>
>>> instr 1
>>>
>>> ktrig           changed     gkfftsize,gkol, gkwindmult, gkwindtype
>>> if ktrig = 1 then
>>>               reinit      pass
>>> endif
>>>
>>> pass:
>>>
>>> ifftsize =  i(gkfftsize)
>>> iol =  i(gkol)
>>> iNumBins = ifftsize/2 + 1
>>> ihop = ifftsize/iol
>>> iwindow = ifftsize*i(gkwindmult)
>>> iwindtype = i(gkwindtype)
>>>
>>>
>>> ain1    oscil    0.02, 440, 1
>>>
>>> fsig1 pvsanal ain1, ifftsize, ihop, iwindow, iwindtype
>>>
>>> fsigblur pvsblur fsig1, .1, 1
>>>
>>>
>>> ;aout1 pvsynth fsigblur
>>>
>>>
>>> ;out aout1
>>>
>>> endin
>>>
>>>
>>>
>>>
>>> 
>>> 
>>> f1 0 4096 10 1
>>>
>>> i1 0 20
>>> i2 2 1
>>> e
>>>
>>> 
>>> 
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>>> "unsubscribe csound"
>>>
>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>> "unsubscribe csound"
>>
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
> "unsubscribe csound"
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-05-12 11:44
Frompeiman khosravi
SubjectRe: [Csnd] pvsblur and reinit = Segmentation fault
Sorry I think I found one. Just zero the averaging time before changing 
fftzise.

Best

Peiman

On 12/05/2011 11:41, peiman khosravi wrote:
>
> Hi Victor,
>
> I am just wondering if there is a temporary workaround to this?
>
> Thanks
>
> Peiman
>
> On 21/04/2011 09:39, Victor Lazzarini wrote:
>> As I suspected; fixed in GIT. Thanks for the report.
>> On 21 Apr 2011, at 09:16, Victor Lazzarini wrote:
>>
>>> I think I know why. I will check and see if I can fix it.
>>>
>>> Victor
>>> On 21 Apr 2011, at 01:31, peiman khosravi wrote:
>>>
>>>> Hello,
>>>>
>>>> I have been debugging a csd for hours and have finally found the 
>>>> culprit. It seems that "pvsblur" causes a segmentation fault when 
>>>> FFT overlap size is increased to fft/8 during performance, using 
>>>> the "reinit" opcode:
>>>>
>>>> ktrig           changed     gkfftsize,gkol, gkwindmult, gkwindtype
>>>> if ktrig = 1 then
>>>>               reinit      pass
>>>> endif
>>>>
>>>> pass:
>>>>
>>>> ifftsize =  i(gkfftsize)
>>>> iol =  i(gkol)
>>>> iNumBins = ifftsize/2 + 1
>>>> ihop = ifftsize/iol
>>>> iwindow = ifftsize*i(gkwindmult)
>>>> iwindtype = i(gkwindtype)
>>>>
>>>>
>>>> For full csd please see below. Commenting the pvsblur line fixes 
>>>> everything.
>>>>
>>>> Thanks
>>>>
>>>> Peiman
>>>>
>>>>
>>>> 
>>>> 
>>>> -odac -d
>>>> 
>>>> 
>>>>
>>>>
>>>> sr=96000
>>>> ksmps=100
>>>> nchnls=1
>>>> 0dbfs = 1
>>>>
>>>> gkfftsize     init 4096
>>>> gkol         init 4
>>>> gkwindmult     init 2
>>>> gkwindtype     init 0
>>>>
>>>>
>>>>
>>>>
>>>> instr 2
>>>>
>>>> gkol = 8
>>>>
>>>> endin
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> instr 1
>>>>
>>>> ktrig           changed     gkfftsize,gkol, gkwindmult, gkwindtype
>>>> if ktrig = 1 then
>>>>               reinit      pass
>>>> endif
>>>>
>>>> pass:
>>>>
>>>> ifftsize =  i(gkfftsize)
>>>> iol =  i(gkol)
>>>> iNumBins = ifftsize/2 + 1
>>>> ihop = ifftsize/iol
>>>> iwindow = ifftsize*i(gkwindmult)
>>>> iwindtype = i(gkwindtype)
>>>>
>>>>
>>>> ain1    oscil    0.02, 440, 1
>>>>
>>>> fsig1 pvsanal ain1, ifftsize, ihop, iwindow, iwindtype
>>>>
>>>> fsigblur pvsblur fsig1, .1, 1
>>>>
>>>>
>>>> ;aout1 pvsynth fsigblur
>>>>
>>>>
>>>> ;out aout1
>>>>
>>>> endin
>>>>
>>>>
>>>>
>>>>
>>>> 
>>>> 
>>>> f1 0 4096 10 1
>>>>
>>>> i1 0 20
>>>> i2 2 1
>>>> e
>>>>
>>>> 
>>>> 
>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>>>> "unsubscribe csound"
>>>>
>>>
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>>
>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>>> "unsubscribe csound"
>>>
>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>> "unsubscribe csound"
>>
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-05-12 12:20
Frompeiman khosravi
SubjectRe: [Csnd] pvsblur and reinit = Segmentation fault
Spoke too soon. That doesn't work!

On 12/05/2011 11:44, peiman khosravi wrote:
> Sorry I think I found one. Just zero the averaging time before 
> changing fftzise.
>
> Best
>
> Peiman
>
> On 12/05/2011 11:41, peiman khosravi wrote:
>>
>> Hi Victor,
>>
>> I am just wondering if there is a temporary workaround to this?
>>
>> Thanks
>>
>> Peiman
>>
>> On 21/04/2011 09:39, Victor Lazzarini wrote:
>>> As I suspected; fixed in GIT. Thanks for the report.
>>> On 21 Apr 2011, at 09:16, Victor Lazzarini wrote:
>>>
>>>> I think I know why. I will check and see if I can fix it.
>>>>
>>>> Victor
>>>> On 21 Apr 2011, at 01:31, peiman khosravi wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> I have been debugging a csd for hours and have finally found the 
>>>>> culprit. It seems that "pvsblur" causes a segmentation fault when 
>>>>> FFT overlap size is increased to fft/8 during performance, using 
>>>>> the "reinit" opcode:
>>>>>
>>>>> ktrig           changed     gkfftsize,gkol, gkwindmult, gkwindtype
>>>>> if ktrig = 1 then
>>>>>               reinit      pass
>>>>> endif
>>>>>
>>>>> pass:
>>>>>
>>>>> ifftsize =  i(gkfftsize)
>>>>> iol =  i(gkol)
>>>>> iNumBins = ifftsize/2 + 1
>>>>> ihop = ifftsize/iol
>>>>> iwindow = ifftsize*i(gkwindmult)
>>>>> iwindtype = i(gkwindtype)
>>>>>
>>>>>
>>>>> For full csd please see below. Commenting the pvsblur line fixes 
>>>>> everything.
>>>>>
>>>>> Thanks
>>>>>
>>>>> Peiman
>>>>>
>>>>>
>>>>> 
>>>>> 
>>>>> -odac -d
>>>>> 
>>>>> 
>>>>>
>>>>>
>>>>> sr=96000
>>>>> ksmps=100
>>>>> nchnls=1
>>>>> 0dbfs = 1
>>>>>
>>>>> gkfftsize     init 4096
>>>>> gkol         init 4
>>>>> gkwindmult     init 2
>>>>> gkwindtype     init 0
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> instr 2
>>>>>
>>>>> gkol = 8
>>>>>
>>>>> endin
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> instr 1
>>>>>
>>>>> ktrig           changed     gkfftsize,gkol, gkwindmult, gkwindtype
>>>>> if ktrig = 1 then
>>>>>               reinit      pass
>>>>> endif
>>>>>
>>>>> pass:
>>>>>
>>>>> ifftsize =  i(gkfftsize)
>>>>> iol =  i(gkol)
>>>>> iNumBins = ifftsize/2 + 1
>>>>> ihop = ifftsize/iol
>>>>> iwindow = ifftsize*i(gkwindmult)
>>>>> iwindtype = i(gkwindtype)
>>>>>
>>>>>
>>>>> ain1    oscil    0.02, 440, 1
>>>>>
>>>>> fsig1 pvsanal ain1, ifftsize, ihop, iwindow, iwindtype
>>>>>
>>>>> fsigblur pvsblur fsig1, .1, 1
>>>>>
>>>>>
>>>>> ;aout1 pvsynth fsigblur
>>>>>
>>>>>
>>>>> ;out aout1
>>>>>
>>>>> endin
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> 
>>>>> 
>>>>> f1 0 4096 10 1
>>>>>
>>>>> i1 0 20
>>>>> i2 2 1
>>>>> e
>>>>>
>>>>> 
>>>>> 
>>>>>
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>>>>> "unsubscribe csound"
>>>>>
>>>>
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> Dept. of Music
>>>> NUI Maynooth Ireland
>>>> tel.: +353 1 708 3545
>>>> Victor dot Lazzarini AT nuim dot ie
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>>>> "unsubscribe csound"
>>>>
>>>
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>>
>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>>> "unsubscribe csound"
>>>
>>
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-05-12 13:08
FromVictor Lazzarini
SubjectRe: [Csnd] pvsblur and reinit = Segmentation fault
The problem is caused by trying to re-use a buffer that is not big  
enough, so if your fftsize is going to double,
you can try to allocate a max average size that is twice what you  
need. You might also reduce it to 1/2 when
you double the fftsize, eg.


fftsize = 1024   max blur time = 1.0
fftsize = 2048   max blur time = 0.5

etc.


Victor

On 12 May 2011, at 12:20, peiman khosravi wrote:

> Spoke too soon. That doesn't work!
>
> On 12/05/2011 11:44, peiman khosravi wrote:
>> Sorry I think I found one. Just zero the averaging time before  
>> changing fftzise.
>>
>> Best
>>
>> Peiman
>>
>> On 12/05/2011 11:41, peiman khosravi wrote:
>>>
>>> Hi Victor,
>>>
>>> I am just wondering if there is a temporary workaround to this?
>>>
>>> Thanks
>>>
>>> Peiman
>>>
>>> On 21/04/2011 09:39, Victor Lazzarini wrote:
>>>> As I suspected; fixed in GIT. Thanks for the report.
>>>> On 21 Apr 2011, at 09:16, Victor Lazzarini wrote:
>>>>
>>>>> I think I know why. I will check and see if I can fix it.
>>>>>
>>>>> Victor
>>>>> On 21 Apr 2011, at 01:31, peiman khosravi wrote:
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> I have been debugging a csd for hours and have finally found  
>>>>>> the culprit. It seems that "pvsblur" causes a segmentation  
>>>>>> fault when FFT overlap size is increased to fft/8 during  
>>>>>> performance, using the "reinit" opcode:
>>>>>>
>>>>>> ktrig           changed     gkfftsize,gkol, gkwindmult,  
>>>>>> gkwindtype
>>>>>> if ktrig = 1 then
>>>>>>              reinit      pass
>>>>>> endif
>>>>>>
>>>>>> pass:
>>>>>>
>>>>>> ifftsize =  i(gkfftsize)
>>>>>> iol =  i(gkol)
>>>>>> iNumBins = ifftsize/2 + 1
>>>>>> ihop = ifftsize/iol
>>>>>> iwindow = ifftsize*i(gkwindmult)
>>>>>> iwindtype = i(gkwindtype)
>>>>>>
>>>>>>
>>>>>> For full csd please see below. Commenting the pvsblur line  
>>>>>> fixes everything.
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> Peiman
>>>>>>
>>>>>>
>>>>>> 
>>>>>> 
>>>>>> -odac -d
>>>>>> 
>>>>>> 
>>>>>>
>>>>>>
>>>>>> sr=96000
>>>>>> ksmps=100
>>>>>> nchnls=1
>>>>>> 0dbfs = 1
>>>>>>
>>>>>> gkfftsize     init 4096
>>>>>> gkol         init 4
>>>>>> gkwindmult     init 2
>>>>>> gkwindtype     init 0
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> instr 2
>>>>>>
>>>>>> gkol = 8
>>>>>>
>>>>>> endin
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> instr 1
>>>>>>
>>>>>> ktrig           changed     gkfftsize,gkol, gkwindmult,  
>>>>>> gkwindtype
>>>>>> if ktrig = 1 then
>>>>>>              reinit      pass
>>>>>> endif
>>>>>>
>>>>>> pass:
>>>>>>
>>>>>> ifftsize =  i(gkfftsize)
>>>>>> iol =  i(gkol)
>>>>>> iNumBins = ifftsize/2 + 1
>>>>>> ihop = ifftsize/iol
>>>>>> iwindow = ifftsize*i(gkwindmult)
>>>>>> iwindtype = i(gkwindtype)
>>>>>>
>>>>>>
>>>>>> ain1    oscil    0.02, 440, 1
>>>>>>
>>>>>> fsig1 pvsanal ain1, ifftsize, ihop, iwindow, iwindtype
>>>>>>
>>>>>> fsigblur pvsblur fsig1, .1, 1
>>>>>>
>>>>>>
>>>>>> ;aout1 pvsynth fsigblur
>>>>>>
>>>>>>
>>>>>> ;out aout1
>>>>>>
>>>>>> endin
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> 
>>>>>> 
>>>>>> f1 0 4096 10 1
>>>>>>
>>>>>> i1 0 20
>>>>>> i2 2 1
>>>>>> e
>>>>>>
>>>>>> 
>>>>>> 
>>>>>>
>>>>>>
>>>>>>
>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>         https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>> Discussions of bugs and features can be posted here
>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>>> "unsubscribe csound"
>>>>>>
>>>>>
>>>>> Dr Victor Lazzarini
>>>>> Senior Lecturer
>>>>> Dept. of Music
>>>>> NUI Maynooth Ireland
>>>>> tel.: +353 1 708 3545
>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>> "unsubscribe csound"
>>>>>
>>>>
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> Dept. of Music
>>>> NUI Maynooth Ireland
>>>> tel.: +353 1 708 3545
>>>> Victor dot Lazzarini AT nuim dot ie
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>> "unsubscribe csound"
>>>>
>>>
>>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-05-12 13:37
Frompeiman khosravi
SubjectRe: [Csnd] pvsblur and reinit = Segmentation fault
Thanks,

And where does overlap size come in? It seems that even when I don't 
change fftsize changing overlap can cause a seg fault.

Peiman

On 12/05/2011 13:08, Victor Lazzarini wrote:
> The problem is caused by trying to re-use a buffer that is not big 
> enough, so if your fftsize is going to double,
> you can try to allocate a max average size that is twice what you 
> need. You might also reduce it to 1/2 when
> you double the fftsize, eg.
>
>
> fftsize = 1024   max blur time = 1.0
> fftsize = 2048   max blur time = 0.5
>
> etc.
>
>
> Victor
>
> On 12 May 2011, at 12:20, peiman khosravi wrote:
>
>> Spoke too soon. That doesn't work!
>>
>> On 12/05/2011 11:44, peiman khosravi wrote:
>>> Sorry I think I found one. Just zero the averaging time before 
>>> changing fftzise.
>>>
>>> Best
>>>
>>> Peiman
>>>
>>> On 12/05/2011 11:41, peiman khosravi wrote:
>>>>
>>>> Hi Victor,
>>>>
>>>> I am just wondering if there is a temporary workaround to this?
>>>>
>>>> Thanks
>>>>
>>>> Peiman
>>>>
>>>> On 21/04/2011 09:39, Victor Lazzarini wrote:
>>>>> As I suspected; fixed in GIT. Thanks for the report.
>>>>> On 21 Apr 2011, at 09:16, Victor Lazzarini wrote:
>>>>>
>>>>>> I think I know why. I will check and see if I can fix it.
>>>>>>
>>>>>> Victor
>>>>>> On 21 Apr 2011, at 01:31, peiman khosravi wrote:
>>>>>>
>>>>>>> Hello,
>>>>>>>
>>>>>>> I have been debugging a csd for hours and have finally found the 
>>>>>>> culprit. It seems that "pvsblur" causes a segmentation fault 
>>>>>>> when FFT overlap size is increased to fft/8 during performance, 
>>>>>>> using the "reinit" opcode:
>>>>>>>
>>>>>>> ktrig           changed     gkfftsize,gkol, gkwindmult, gkwindtype
>>>>>>> if ktrig = 1 then
>>>>>>>              reinit      pass
>>>>>>> endif
>>>>>>>
>>>>>>> pass:
>>>>>>>
>>>>>>> ifftsize =  i(gkfftsize)
>>>>>>> iol =  i(gkol)
>>>>>>> iNumBins = ifftsize/2 + 1
>>>>>>> ihop = ifftsize/iol
>>>>>>> iwindow = ifftsize*i(gkwindmult)
>>>>>>> iwindtype = i(gkwindtype)
>>>>>>>
>>>>>>>
>>>>>>> For full csd please see below. Commenting the pvsblur line fixes 
>>>>>>> everything.
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>> Peiman
>>>>>>>
>>>>>>>
>>>>>>> 
>>>>>>> 
>>>>>>> -odac -d
>>>>>>> 
>>>>>>> 
>>>>>>>
>>>>>>>
>>>>>>> sr=96000
>>>>>>> ksmps=100
>>>>>>> nchnls=1
>>>>>>> 0dbfs = 1
>>>>>>>
>>>>>>> gkfftsize     init 4096
>>>>>>> gkol         init 4
>>>>>>> gkwindmult     init 2
>>>>>>> gkwindtype     init 0
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> instr 2
>>>>>>>
>>>>>>> gkol = 8
>>>>>>>
>>>>>>> endin
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> instr 1
>>>>>>>
>>>>>>> ktrig           changed     gkfftsize,gkol, gkwindmult, gkwindtype
>>>>>>> if ktrig = 1 then
>>>>>>>              reinit      pass
>>>>>>> endif
>>>>>>>
>>>>>>> pass:
>>>>>>>
>>>>>>> ifftsize =  i(gkfftsize)
>>>>>>> iol =  i(gkol)
>>>>>>> iNumBins = ifftsize/2 + 1
>>>>>>> ihop = ifftsize/iol
>>>>>>> iwindow = ifftsize*i(gkwindmult)
>>>>>>> iwindtype = i(gkwindtype)
>>>>>>>
>>>>>>>
>>>>>>> ain1    oscil    0.02, 440, 1
>>>>>>>
>>>>>>> fsig1 pvsanal ain1, ifftsize, ihop, iwindow, iwindtype
>>>>>>>
>>>>>>> fsigblur pvsblur fsig1, .1, 1
>>>>>>>
>>>>>>>
>>>>>>> ;aout1 pvsynth fsigblur
>>>>>>>
>>>>>>>
>>>>>>> ;out aout1
>>>>>>>
>>>>>>> endin
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> 
>>>>>>> 
>>>>>>> f1 0 4096 10 1
>>>>>>>
>>>>>>> i1 0 20
>>>>>>> i2 2 1
>>>>>>> e
>>>>>>>
>>>>>>> 
>>>>>>> 
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>         https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>>>>>>> "unsubscribe csound"
>>>>>>>
>>>>>>
>>>>>> Dr Victor Lazzarini
>>>>>> Senior Lecturer
>>>>>> Dept. of Music
>>>>>> NUI Maynooth Ireland
>>>>>> tel.: +353 1 708 3545
>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>> Discussions of bugs and features can be posted here
>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>>>>>> "unsubscribe csound"
>>>>>>
>>>>>
>>>>> Dr Victor Lazzarini
>>>>> Senior Lecturer
>>>>> Dept. of Music
>>>>> NUI Maynooth Ireland
>>>>> tel.: +353 1 708 3545
>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>>>>> "unsubscribe csound"
>>>>>
>>>>
>>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>> "unsubscribe csound"
>>
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
> "unsubscribe csound"
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-05-12 13:58
FromVictor Lazzarini
SubjectRe: [Csnd] pvsblur and reinit = Segmentation fault
The overlap is the same thing. Double the number of overlaps will need  
double the buffer space.
So

overlap = 256  max blur time = 1.0
overlap =128   max blur time = 0.5


On 12 May 2011, at 13:37, peiman khosravi wrote:

> Thanks,
>
> And where does overlap size come in? It seems that even when I don't  
> change fftsize changing overlap can cause a seg fault.
>
> Peiman
>
> On 12/05/2011 13:08, Victor Lazzarini wrote:
>> The problem is caused by trying to re-use a buffer that is not big  
>> enough, so if your fftsize is going to double,
>> you can try to allocate a max average size that is twice what you  
>> need. You might also reduce it to 1/2 when
>> you double the fftsize, eg.
>>
>>
>> fftsize = 1024   max blur time = 1.0
>> fftsize = 2048   max blur time = 0.5
>>
>> etc.
>>
>>
>> Victor
>>
>> On 12 May 2011, at 12:20, peiman khosravi wrote:
>>
>>> Spoke too soon. That doesn't work!
>>>
>>> On 12/05/2011 11:44, peiman khosravi wrote:
>>>> Sorry I think I found one. Just zero the averaging time before  
>>>> changing fftzise.
>>>>
>>>> Best
>>>>
>>>> Peiman
>>>>
>>>> On 12/05/2011 11:41, peiman khosravi wrote:
>>>>>
>>>>> Hi Victor,
>>>>>
>>>>> I am just wondering if there is a temporary workaround to this?
>>>>>
>>>>> Thanks
>>>>>
>>>>> Peiman
>>>>>
>>>>> On 21/04/2011 09:39, Victor Lazzarini wrote:
>>>>>> As I suspected; fixed in GIT. Thanks for the report.
>>>>>> On 21 Apr 2011, at 09:16, Victor Lazzarini wrote:
>>>>>>
>>>>>>> I think I know why. I will check and see if I can fix it.
>>>>>>>
>>>>>>> Victor
>>>>>>> On 21 Apr 2011, at 01:31, peiman khosravi wrote:
>>>>>>>
>>>>>>>> Hello,
>>>>>>>>
>>>>>>>> I have been debugging a csd for hours and have finally found  
>>>>>>>> the culprit. It seems that "pvsblur" causes a segmentation  
>>>>>>>> fault when FFT overlap size is increased to fft/8 during  
>>>>>>>> performance, using the "reinit" opcode:
>>>>>>>>
>>>>>>>> ktrig           changed     gkfftsize,gkol, gkwindmult,  
>>>>>>>> gkwindtype
>>>>>>>> if ktrig = 1 then
>>>>>>>>             reinit      pass
>>>>>>>> endif
>>>>>>>>
>>>>>>>> pass:
>>>>>>>>
>>>>>>>> ifftsize =  i(gkfftsize)
>>>>>>>> iol =  i(gkol)
>>>>>>>> iNumBins = ifftsize/2 + 1
>>>>>>>> ihop = ifftsize/iol
>>>>>>>> iwindow = ifftsize*i(gkwindmult)
>>>>>>>> iwindtype = i(gkwindtype)
>>>>>>>>
>>>>>>>>
>>>>>>>> For full csd please see below. Commenting the pvsblur line  
>>>>>>>> fixes everything.
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>>
>>>>>>>> Peiman
>>>>>>>>
>>>>>>>>
>>>>>>>> 
>>>>>>>> 
>>>>>>>> -odac -d
>>>>>>>> 
>>>>>>>> 
>>>>>>>>
>>>>>>>>
>>>>>>>> sr=96000
>>>>>>>> ksmps=100
>>>>>>>> nchnls=1
>>>>>>>> 0dbfs = 1
>>>>>>>>
>>>>>>>> gkfftsize     init 4096
>>>>>>>> gkol         init 4
>>>>>>>> gkwindmult     init 2
>>>>>>>> gkwindtype     init 0
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> instr 2
>>>>>>>>
>>>>>>>> gkol = 8
>>>>>>>>
>>>>>>>> endin
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> instr 1
>>>>>>>>
>>>>>>>> ktrig           changed     gkfftsize,gkol, gkwindmult,  
>>>>>>>> gkwindtype
>>>>>>>> if ktrig = 1 then
>>>>>>>>             reinit      pass
>>>>>>>> endif
>>>>>>>>
>>>>>>>> pass:
>>>>>>>>
>>>>>>>> ifftsize =  i(gkfftsize)
>>>>>>>> iol =  i(gkol)
>>>>>>>> iNumBins = ifftsize/2 + 1
>>>>>>>> ihop = ifftsize/iol
>>>>>>>> iwindow = ifftsize*i(gkwindmult)
>>>>>>>> iwindtype = i(gkwindtype)
>>>>>>>>
>>>>>>>>
>>>>>>>> ain1    oscil    0.02, 440, 1
>>>>>>>>
>>>>>>>> fsig1 pvsanal ain1, ifftsize, ihop, iwindow, iwindtype
>>>>>>>>
>>>>>>>> fsigblur pvsblur fsig1, .1, 1
>>>>>>>>
>>>>>>>>
>>>>>>>> ;aout1 pvsynth fsigblur
>>>>>>>>
>>>>>>>>
>>>>>>>> ;out aout1
>>>>>>>>
>>>>>>>> endin
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> 
>>>>>>>> 
>>>>>>>> f1 0 4096 10 1
>>>>>>>>
>>>>>>>> i1 0 20
>>>>>>>> i2 2 1
>>>>>>>> e
>>>>>>>>
>>>>>>>> 
>>>>>>>> 
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>>        https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>>>>> "unsubscribe csound"
>>>>>>>>
>>>>>>>
>>>>>>> Dr Victor Lazzarini
>>>>>>> Senior Lecturer
>>>>>>> Dept. of Music
>>>>>>> NUI Maynooth Ireland
>>>>>>> tel.: +353 1 708 3545
>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>         https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>>>> "unsubscribe csound"
>>>>>>>
>>>>>>
>>>>>> Dr Victor Lazzarini
>>>>>> Senior Lecturer
>>>>>> Dept. of Music
>>>>>> NUI Maynooth Ireland
>>>>>> tel.: +353 1 708 3545
>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>> Discussions of bugs and features can be posted here
>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>>> "unsubscribe csound"
>>>>>>
>>>>>
>>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>> "unsubscribe csound"
>>>
>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-05-12 14:10
Frompeiman khosravi
SubjectRe: [Csnd] pvsblur and reinit = Segmentation fault
So does this mean that increasing fftsize once and then increasing 
overlap the buffer must be doubled twice?

Thanks

Peiman

On 12/05/2011 13:58, Victor Lazzarini wrote:
> The overlap is the same thing. Double the number of overlaps will need 
> double the buffer space.
> So
>
> overlap = 256  max blur time = 1.0
> overlap =128   max blur time = 0.5
>
>
> On 12 May 2011, at 13:37, peiman khosravi wrote:
>
>> Thanks,
>>
>> And where does overlap size come in? It seems that even when I don't 
>> change fftsize changing overlap can cause a seg fault.
>>
>> Peiman
>>
>> On 12/05/2011 13:08, Victor Lazzarini wrote:
>>> The problem is caused by trying to re-use a buffer that is not big 
>>> enough, so if your fftsize is going to double,
>>> you can try to allocate a max average size that is twice what you 
>>> need. You might also reduce it to 1/2 when
>>> you double the fftsize, eg.
>>>
>>>
>>> fftsize = 1024   max blur time = 1.0
>>> fftsize = 2048   max blur time = 0.5
>>>
>>> etc.
>>>
>>>
>>> Victor
>>>
>>> On 12 May 2011, at 12:20, peiman khosravi wrote:
>>>
>>>> Spoke too soon. That doesn't work!
>>>>
>>>> On 12/05/2011 11:44, peiman khosravi wrote:
>>>>> Sorry I think I found one. Just zero the averaging time before 
>>>>> changing fftzise.
>>>>>
>>>>> Best
>>>>>
>>>>> Peiman
>>>>>
>>>>> On 12/05/2011 11:41, peiman khosravi wrote:
>>>>>>
>>>>>> Hi Victor,
>>>>>>
>>>>>> I am just wondering if there is a temporary workaround to this?
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> Peiman
>>>>>>
>>>>>> On 21/04/2011 09:39, Victor Lazzarini wrote:
>>>>>>> As I suspected; fixed in GIT. Thanks for the report.
>>>>>>> On 21 Apr 2011, at 09:16, Victor Lazzarini wrote:
>>>>>>>
>>>>>>>> I think I know why. I will check and see if I can fix it.
>>>>>>>>
>>>>>>>> Victor
>>>>>>>> On 21 Apr 2011, at 01:31, peiman khosravi wrote:
>>>>>>>>
>>>>>>>>> Hello,
>>>>>>>>>
>>>>>>>>> I have been debugging a csd for hours and have finally found 
>>>>>>>>> the culprit. It seems that "pvsblur" causes a segmentation 
>>>>>>>>> fault when FFT overlap size is increased to fft/8 during 
>>>>>>>>> performance, using the "reinit" opcode:
>>>>>>>>>
>>>>>>>>> ktrig           changed     gkfftsize,gkol, gkwindmult, 
>>>>>>>>> gkwindtype
>>>>>>>>> if ktrig = 1 then
>>>>>>>>>             reinit      pass
>>>>>>>>> endif
>>>>>>>>>
>>>>>>>>> pass:
>>>>>>>>>
>>>>>>>>> ifftsize =  i(gkfftsize)
>>>>>>>>> iol =  i(gkol)
>>>>>>>>> iNumBins = ifftsize/2 + 1
>>>>>>>>> ihop = ifftsize/iol
>>>>>>>>> iwindow = ifftsize*i(gkwindmult)
>>>>>>>>> iwindtype = i(gkwindtype)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> For full csd please see below. Commenting the pvsblur line 
>>>>>>>>> fixes everything.
>>>>>>>>>
>>>>>>>>> Thanks
>>>>>>>>>
>>>>>>>>> Peiman
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> -odac -d
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> sr=96000
>>>>>>>>> ksmps=100
>>>>>>>>> nchnls=1
>>>>>>>>> 0dbfs = 1
>>>>>>>>>
>>>>>>>>> gkfftsize     init 4096
>>>>>>>>> gkol         init 4
>>>>>>>>> gkwindmult     init 2
>>>>>>>>> gkwindtype     init 0
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> instr 2
>>>>>>>>>
>>>>>>>>> gkol = 8
>>>>>>>>>
>>>>>>>>> endin
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> instr 1
>>>>>>>>>
>>>>>>>>> ktrig           changed     gkfftsize,gkol, gkwindmult, 
>>>>>>>>> gkwindtype
>>>>>>>>> if ktrig = 1 then
>>>>>>>>>             reinit      pass
>>>>>>>>> endif
>>>>>>>>>
>>>>>>>>> pass:
>>>>>>>>>
>>>>>>>>> ifftsize =  i(gkfftsize)
>>>>>>>>> iol =  i(gkol)
>>>>>>>>> iNumBins = ifftsize/2 + 1
>>>>>>>>> ihop = ifftsize/iol
>>>>>>>>> iwindow = ifftsize*i(gkwindmult)
>>>>>>>>> iwindtype = i(gkwindtype)
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ain1    oscil    0.02, 440, 1
>>>>>>>>>
>>>>>>>>> fsig1 pvsanal ain1, ifftsize, ihop, iwindow, iwindtype
>>>>>>>>>
>>>>>>>>> fsigblur pvsblur fsig1, .1, 1
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ;aout1 pvsynth fsigblur
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> ;out aout1
>>>>>>>>>
>>>>>>>>> endin
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>> f1 0 4096 10 1
>>>>>>>>>
>>>>>>>>> i1 0 20
>>>>>>>>> i2 2 1
>>>>>>>>> e
>>>>>>>>>
>>>>>>>>> 
>>>>>>>>> 
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>>>        
>>>>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>>>>>>>>> "unsubscribe csound"
>>>>>>>>>
>>>>>>>>
>>>>>>>> Dr Victor Lazzarini
>>>>>>>> Senior Lecturer
>>>>>>>> Dept. of Music
>>>>>>>> NUI Maynooth Ireland
>>>>>>>> tel.: +353 1 708 3545
>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>>         
>>>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>>>>>>>> "unsubscribe csound"
>>>>>>>>
>>>>>>>
>>>>>>> Dr Victor Lazzarini
>>>>>>> Senior Lecturer
>>>>>>> Dept. of Music
>>>>>>> NUI Maynooth Ireland
>>>>>>> tel.: +353 1 708 3545
>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>          
>>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>> Discussions of bugs and features can be posted here
>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>>>>>>> "unsubscribe csound"
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>>>> "unsubscribe csound"
>>>>
>>>
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>>
>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>>> "unsubscribe csound"
>>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>> "unsubscribe csound"
>>
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
> "unsubscribe csound"
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-05-12 15:50
FromVictor Lazzarini
SubjectRe: [Csnd] pvsblur and reinit = Segmentation fault
yes, I guess so. Start with the largest buffer you need, then you  
probably will not have any issues.
On 12 May 2011, at 14:10, peiman khosravi wrote:

> So does this mean that increasing fftsize once and then increasing  
> overlap the buffer must be doubled twice?
>
> Thanks
>
> Peiman
>
> On 12/05/2011 13:58, Victor Lazzarini wrote:
>> The overlap is the same thing. Double the number of overlaps will  
>> need double the buffer space.
>> So
>>
>> overlap = 256  max blur time = 1.0
>> overlap =128   max blur time = 0.5
>>
>>
>> On 12 May 2011, at 13:37, peiman khosravi wrote:
>>
>>> Thanks,
>>>
>>> And where does overlap size come in? It seems that even when I  
>>> don't change fftsize changing overlap can cause a seg fault.
>>>
>>> Peiman
>>>
>>> On 12/05/2011 13:08, Victor Lazzarini wrote:
>>>> The problem is caused by trying to re-use a buffer that is not  
>>>> big enough, so if your fftsize is going to double,
>>>> you can try to allocate a max average size that is twice what you  
>>>> need. You might also reduce it to 1/2 when
>>>> you double the fftsize, eg.
>>>>
>>>>
>>>> fftsize = 1024   max blur time = 1.0
>>>> fftsize = 2048   max blur time = 0.5
>>>>
>>>> etc.
>>>>
>>>>
>>>> Victor
>>>>
>>>> On 12 May 2011, at 12:20, peiman khosravi wrote:
>>>>
>>>>> Spoke too soon. That doesn't work!
>>>>>
>>>>> On 12/05/2011 11:44, peiman khosravi wrote:
>>>>>> Sorry I think I found one. Just zero the averaging time before  
>>>>>> changing fftzise.
>>>>>>
>>>>>> Best
>>>>>>
>>>>>> Peiman
>>>>>>
>>>>>> On 12/05/2011 11:41, peiman khosravi wrote:
>>>>>>>
>>>>>>> Hi Victor,
>>>>>>>
>>>>>>> I am just wondering if there is a temporary workaround to this?
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>> Peiman
>>>>>>>
>>>>>>> On 21/04/2011 09:39, Victor Lazzarini wrote:
>>>>>>>> As I suspected; fixed in GIT. Thanks for the report.
>>>>>>>> On 21 Apr 2011, at 09:16, Victor Lazzarini wrote:
>>>>>>>>
>>>>>>>>> I think I know why. I will check and see if I can fix it.
>>>>>>>>>
>>>>>>>>> Victor
>>>>>>>>> On 21 Apr 2011, at 01:31, peiman khosravi wrote:
>>>>>>>>>
>>>>>>>>>> Hello,
>>>>>>>>>>
>>>>>>>>>> I have been debugging a csd for hours and have finally  
>>>>>>>>>> found the culprit. It seems that "pvsblur" causes a  
>>>>>>>>>> segmentation fault when FFT overlap size is increased to  
>>>>>>>>>> fft/8 during performance, using the "reinit" opcode:
>>>>>>>>>>
>>>>>>>>>> ktrig           changed     gkfftsize,gkol, gkwindmult,  
>>>>>>>>>> gkwindtype
>>>>>>>>>> if ktrig = 1 then
>>>>>>>>>>            reinit      pass
>>>>>>>>>> endif
>>>>>>>>>>
>>>>>>>>>> pass:
>>>>>>>>>>
>>>>>>>>>> ifftsize =  i(gkfftsize)
>>>>>>>>>> iol =  i(gkol)
>>>>>>>>>> iNumBins = ifftsize/2 + 1
>>>>>>>>>> ihop = ifftsize/iol
>>>>>>>>>> iwindow = ifftsize*i(gkwindmult)
>>>>>>>>>> iwindtype = i(gkwindtype)
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> For full csd please see below. Commenting the pvsblur line  
>>>>>>>>>> fixes everything.
>>>>>>>>>>
>>>>>>>>>> Thanks
>>>>>>>>>>
>>>>>>>>>> Peiman
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> -odac -d
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> sr=96000
>>>>>>>>>> ksmps=100
>>>>>>>>>> nchnls=1
>>>>>>>>>> 0dbfs = 1
>>>>>>>>>>
>>>>>>>>>> gkfftsize     init 4096
>>>>>>>>>> gkol         init 4
>>>>>>>>>> gkwindmult     init 2
>>>>>>>>>> gkwindtype     init 0
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> instr 2
>>>>>>>>>>
>>>>>>>>>> gkol = 8
>>>>>>>>>>
>>>>>>>>>> endin
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> instr 1
>>>>>>>>>>
>>>>>>>>>> ktrig           changed     gkfftsize,gkol, gkwindmult,  
>>>>>>>>>> gkwindtype
>>>>>>>>>> if ktrig = 1 then
>>>>>>>>>>            reinit      pass
>>>>>>>>>> endif
>>>>>>>>>>
>>>>>>>>>> pass:
>>>>>>>>>>
>>>>>>>>>> ifftsize =  i(gkfftsize)
>>>>>>>>>> iol =  i(gkol)
>>>>>>>>>> iNumBins = ifftsize/2 + 1
>>>>>>>>>> ihop = ifftsize/iol
>>>>>>>>>> iwindow = ifftsize*i(gkwindmult)
>>>>>>>>>> iwindtype = i(gkwindtype)
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ain1    oscil    0.02, 440, 1
>>>>>>>>>>
>>>>>>>>>> fsig1 pvsanal ain1, ifftsize, ihop, iwindow, iwindtype
>>>>>>>>>>
>>>>>>>>>> fsigblur pvsblur fsig1, .1, 1
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ;aout1 pvsynth fsigblur
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> ;out aout1
>>>>>>>>>>
>>>>>>>>>> endin
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>> f1 0 4096 10 1
>>>>>>>>>>
>>>>>>>>>> i1 0 20
>>>>>>>>>> i2 2 1
>>>>>>>>>> e
>>>>>>>>>>
>>>>>>>>>> 
>>>>>>>>>> 
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>>>>       https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>>>>>>> "unsubscribe csound"
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>> Senior Lecturer
>>>>>>>>> Dept. of Music
>>>>>>>>> NUI Maynooth Ireland
>>>>>>>>> tel.: +353 1 708 3545
>>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>>>        https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>>>>>> "unsubscribe csound"
>>>>>>>>>
>>>>>>>>
>>>>>>>> Dr Victor Lazzarini
>>>>>>>> Senior Lecturer
>>>>>>>> Dept. of Music
>>>>>>>> NUI Maynooth Ireland
>>>>>>>> tel.: +353 1 708 3545
>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>>         https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>>>>> "unsubscribe csound"
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>         https://sourceforge.net/tracker/? 
>>>>> group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>>> "unsubscribe csound"
>>>>>
>>>>
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> Dept. of Music
>>>> NUI Maynooth Ireland
>>>> tel.: +353 1 708 3545
>>>> Victor dot Lazzarini AT nuim dot ie
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>          https://sourceforge.net/tracker/? 
>>>> group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>>> "unsubscribe csound"
>>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>>> "unsubscribe csound"
>>>
>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
>> "unsubscribe csound"
>>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body  
> "unsubscribe csound"
>

Dr Victor Lazzarini
Senior Lecturer
Dept. of Music
NUI Maynooth Ireland
tel.: +353 1 708 3545
Victor dot Lazzarini AT nuim dot ie





Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-05-12 16:00
Frompeiman khosravi
SubjectRe: [Csnd] pvsblur and reinit = Segmentation fault
Thanks, I am going to try that.

It's just that I use pvsblur to average my noise-prints.

Best,

Peiman

On 12/05/2011 15:50, Victor Lazzarini wrote:
> yes, I guess so. Start with the largest buffer you need, then you 
> probably will not have any issues.
> On 12 May 2011, at 14:10, peiman khosravi wrote:
>
>> So does this mean that increasing fftsize once and then increasing 
>> overlap the buffer must be doubled twice?
>>
>> Thanks
>>
>> Peiman
>>
>> On 12/05/2011 13:58, Victor Lazzarini wrote:
>>> The overlap is the same thing. Double the number of overlaps will 
>>> need double the buffer space.
>>> So
>>>
>>> overlap = 256  max blur time = 1.0
>>> overlap =128   max blur time = 0.5
>>>
>>>
>>> On 12 May 2011, at 13:37, peiman khosravi wrote:
>>>
>>>> Thanks,
>>>>
>>>> And where does overlap size come in? It seems that even when I 
>>>> don't change fftsize changing overlap can cause a seg fault.
>>>>
>>>> Peiman
>>>>
>>>> On 12/05/2011 13:08, Victor Lazzarini wrote:
>>>>> The problem is caused by trying to re-use a buffer that is not big 
>>>>> enough, so if your fftsize is going to double,
>>>>> you can try to allocate a max average size that is twice what you 
>>>>> need. You might also reduce it to 1/2 when
>>>>> you double the fftsize, eg.
>>>>>
>>>>>
>>>>> fftsize = 1024   max blur time = 1.0
>>>>> fftsize = 2048   max blur time = 0.5
>>>>>
>>>>> etc.
>>>>>
>>>>>
>>>>> Victor
>>>>>
>>>>> On 12 May 2011, at 12:20, peiman khosravi wrote:
>>>>>
>>>>>> Spoke too soon. That doesn't work!
>>>>>>
>>>>>> On 12/05/2011 11:44, peiman khosravi wrote:
>>>>>>> Sorry I think I found one. Just zero the averaging time before 
>>>>>>> changing fftzise.
>>>>>>>
>>>>>>> Best
>>>>>>>
>>>>>>> Peiman
>>>>>>>
>>>>>>> On 12/05/2011 11:41, peiman khosravi wrote:
>>>>>>>>
>>>>>>>> Hi Victor,
>>>>>>>>
>>>>>>>> I am just wondering if there is a temporary workaround to this?
>>>>>>>>
>>>>>>>> Thanks
>>>>>>>>
>>>>>>>> Peiman
>>>>>>>>
>>>>>>>> On 21/04/2011 09:39, Victor Lazzarini wrote:
>>>>>>>>> As I suspected; fixed in GIT. Thanks for the report.
>>>>>>>>> On 21 Apr 2011, at 09:16, Victor Lazzarini wrote:
>>>>>>>>>
>>>>>>>>>> I think I know why. I will check and see if I can fix it.
>>>>>>>>>>
>>>>>>>>>> Victor
>>>>>>>>>> On 21 Apr 2011, at 01:31, peiman khosravi wrote:
>>>>>>>>>>
>>>>>>>>>>> Hello,
>>>>>>>>>>>
>>>>>>>>>>> I have been debugging a csd for hours and have finally found 
>>>>>>>>>>> the culprit. It seems that "pvsblur" causes a segmentation 
>>>>>>>>>>> fault when FFT overlap size is increased to fft/8 during 
>>>>>>>>>>> performance, using the "reinit" opcode:
>>>>>>>>>>>
>>>>>>>>>>> ktrig           changed     gkfftsize,gkol, gkwindmult, 
>>>>>>>>>>> gkwindtype
>>>>>>>>>>> if ktrig = 1 then
>>>>>>>>>>>            reinit      pass
>>>>>>>>>>> endif
>>>>>>>>>>>
>>>>>>>>>>> pass:
>>>>>>>>>>>
>>>>>>>>>>> ifftsize =  i(gkfftsize)
>>>>>>>>>>> iol =  i(gkol)
>>>>>>>>>>> iNumBins = ifftsize/2 + 1
>>>>>>>>>>> ihop = ifftsize/iol
>>>>>>>>>>> iwindow = ifftsize*i(gkwindmult)
>>>>>>>>>>> iwindtype = i(gkwindtype)
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> For full csd please see below. Commenting the pvsblur line 
>>>>>>>>>>> fixes everything.
>>>>>>>>>>>
>>>>>>>>>>> Thanks
>>>>>>>>>>>
>>>>>>>>>>> Peiman
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> -odac -d
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> sr=96000
>>>>>>>>>>> ksmps=100
>>>>>>>>>>> nchnls=1
>>>>>>>>>>> 0dbfs = 1
>>>>>>>>>>>
>>>>>>>>>>> gkfftsize     init 4096
>>>>>>>>>>> gkol         init 4
>>>>>>>>>>> gkwindmult     init 2
>>>>>>>>>>> gkwindtype     init 0
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> instr 2
>>>>>>>>>>>
>>>>>>>>>>> gkol = 8
>>>>>>>>>>>
>>>>>>>>>>> endin
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> instr 1
>>>>>>>>>>>
>>>>>>>>>>> ktrig           changed     gkfftsize,gkol, gkwindmult, 
>>>>>>>>>>> gkwindtype
>>>>>>>>>>> if ktrig = 1 then
>>>>>>>>>>>            reinit      pass
>>>>>>>>>>> endif
>>>>>>>>>>>
>>>>>>>>>>> pass:
>>>>>>>>>>>
>>>>>>>>>>> ifftsize =  i(gkfftsize)
>>>>>>>>>>> iol =  i(gkol)
>>>>>>>>>>> iNumBins = ifftsize/2 + 1
>>>>>>>>>>> ihop = ifftsize/iol
>>>>>>>>>>> iwindow = ifftsize*i(gkwindmult)
>>>>>>>>>>> iwindtype = i(gkwindtype)
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> ain1    oscil    0.02, 440, 1
>>>>>>>>>>>
>>>>>>>>>>> fsig1 pvsanal ain1, ifftsize, ihop, iwindow, iwindtype
>>>>>>>>>>>
>>>>>>>>>>> fsigblur pvsblur fsig1, .1, 1
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> ;aout1 pvsynth fsigblur
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> ;out aout1
>>>>>>>>>>>
>>>>>>>>>>> endin
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>> f1 0 4096 10 1
>>>>>>>>>>>
>>>>>>>>>>> i1 0 20
>>>>>>>>>>> i2 2 1
>>>>>>>>>>> e
>>>>>>>>>>>
>>>>>>>>>>> 
>>>>>>>>>>> 
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>>>>>       
>>>>>>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>>>>>>>>>>> "unsubscribe csound"
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>>> Senior Lecturer
>>>>>>>>>> Dept. of Music
>>>>>>>>>> NUI Maynooth Ireland
>>>>>>>>>> tel.: +353 1 708 3545
>>>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>>>>        
>>>>>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>>>>>>>>>> "unsubscribe csound"
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Dr Victor Lazzarini
>>>>>>>>> Senior Lecturer
>>>>>>>>> Dept. of Music
>>>>>>>>> NUI Maynooth Ireland
>>>>>>>>> tel.: +353 1 708 3545
>>>>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>>>>         
>>>>>>>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>>>>> Discussions of bugs and features can be posted here
>>>>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>>>>>>>>> "unsubscribe csound"
>>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>>         https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>>> Discussions of bugs and features can be posted here
>>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>>>>>> "unsubscribe csound"
>>>>>>
>>>>>
>>>>> Dr Victor Lazzarini
>>>>> Senior Lecturer
>>>>> Dept. of Music
>>>>> NUI Maynooth Ireland
>>>>> tel.: +353 1 708 3545
>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> Send bugs reports to the Sourceforge bug tracker
>>>>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>>> Discussions of bugs and features can be posted here
>>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>>>>> "unsubscribe csound"
>>>>>
>>>>
>>>>
>>>>
>>>> Send bugs reports to the Sourceforge bug tracker
>>>>          https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>>> Discussions of bugs and features can be posted here
>>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>>>> "unsubscribe csound"
>>>>
>>>
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>>
>>>
>>>
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>>> "unsubscribe csound"
>>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>>           https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
>> "unsubscribe csound"
>>
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body 
> "unsubscribe csound"
>



Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"