Csound Csound-dev Csound-tekno Search About

[Cs-dev] empty instrument causes crash on csoundReset()?

Date2013-10-15 12:00
FromRory Walsh
Subject[Cs-dev] empty instrument causes crash on csoundReset()?
If I try to recompile a file that features an empty instrument I get a
problem. On the first run everything is fine, but as soon as I call
csoundReset() I get a crash. My instrument is simply:

instr 1
endin

backtrace:
0  0x00007ffff59e5425  __GI_raise  ../nptl/sysdeps/unix/sysv/linux/raise.c  64
1  0x00007ffff59e8b8b  __GI_abort  abort.c  91
2  0x00007ffff5a2339e  __libc_message
../sysdeps/unix/sysv/linux/libc_fatal.c  201
3  0x00007ffff5a2db96  malloc_printerr  malloc.c  5018
4  0x00007ffff65d70ea  memRESET
/home/rory/sourcecode/csound-csound6-git/Engine/memalloc.c  230
5  0x00007ffff6717364  reset
/home/rory/sourcecode/csound-csound6-git/Top/csound.c  2658
6  0x00007ffff6717b12  csoundReset
/home/rory/sourcecode/csound-csound6-git/Top/csound.c  2769
7  0x00000000004ca750  Csound::Reset  /usr/local/include/csound/csound.hpp  367

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-10-15 12:04
FromRory Walsh
SubjectRe: [Cs-dev] empty instrument causes crash on csoundReset()?
Actually, hold on, it seems all my instruments are dying on
recompile...I'll keep back to you all when I figure out what exactly
it going on. :)

On 15 October 2013 12:00, Rory Walsh  wrote:
> If I try to recompile a file that features an empty instrument I get a
> problem. On the first run everything is fine, but as soon as I call
> csoundReset() I get a crash. My instrument is simply:
>
> instr 1
> endin
>
> backtrace:
> 0  0x00007ffff59e5425  __GI_raise  ../nptl/sysdeps/unix/sysv/linux/raise.c  64
> 1  0x00007ffff59e8b8b  __GI_abort  abort.c  91
> 2  0x00007ffff5a2339e  __libc_message
> ../sysdeps/unix/sysv/linux/libc_fatal.c  201
> 3  0x00007ffff5a2db96  malloc_printerr  malloc.c  5018
> 4  0x00007ffff65d70ea  memRESET
> /home/rory/sourcecode/csound-csound6-git/Engine/memalloc.c  230
> 5  0x00007ffff6717364  reset
> /home/rory/sourcecode/csound-csound6-git/Top/csound.c  2658
> 6  0x00007ffff6717b12  csoundReset
> /home/rory/sourcecode/csound-csound6-git/Top/csound.c  2769
> 7  0x00000000004ca750  Csound::Reset  /usr/local/include/csound/csound.hpp  367

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-10-15 12:21
FromRory Walsh
SubjectRe: [Cs-dev] empty instrument causes crash on csoundReset()?
Ok, it turns out that if I recompile any orchestra with nchnls=1 I get
a problem with csoundReset(). I'm not sure it's a Csound problem.
Cabbage makes assumptions that all instruments are stereo. Still, by
the time csoundResst is being called I'm not accessing any audio
buffers, so I really can't think why it might crash. In the meantime
I'm going to make sure nchnls is 2 in my CSOUND_PARAMS structure.

On 15 October 2013 12:04, Rory Walsh  wrote:
> Actually, hold on, it seems all my instruments are dying on
> recompile...I'll keep back to you all when I figure out what exactly
> it going on. :)
>
> On 15 October 2013 12:00, Rory Walsh  wrote:
>> If I try to recompile a file that features an empty instrument I get a
>> problem. On the first run everything is fine, but as soon as I call
>> csoundReset() I get a crash. My instrument is simply:
>>
>> instr 1
>> endin
>>
>> backtrace:
>> 0  0x00007ffff59e5425  __GI_raise  ../nptl/sysdeps/unix/sysv/linux/raise.c  64
>> 1  0x00007ffff59e8b8b  __GI_abort  abort.c  91
>> 2  0x00007ffff5a2339e  __libc_message
>> ../sysdeps/unix/sysv/linux/libc_fatal.c  201
>> 3  0x00007ffff5a2db96  malloc_printerr  malloc.c  5018
>> 4  0x00007ffff65d70ea  memRESET
>> /home/rory/sourcecode/csound-csound6-git/Engine/memalloc.c  230
>> 5  0x00007ffff6717364  reset
>> /home/rory/sourcecode/csound-csound6-git/Top/csound.c  2658
>> 6  0x00007ffff6717b12  csoundReset
>> /home/rory/sourcecode/csound-csound6-git/Top/csound.c  2769
>> 7  0x00000000004ca750  Csound::Reset  /usr/local/include/csound/csound.hpp  367

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-10-15 12:39
FromVictor Lazzarini
SubjectRe: [Cs-dev] empty instrument causes crash on csoundReset()?
What do you mean? I can recompile nchnls=1 no problems here. 
Are you changing from stereo to mono? You can only do that 
after reseting and starting Csound again.


On 15 Oct 2013, at 12:21, Rory Walsh wrote:

> Ok, it turns out that if I recompile any orchestra with nchnls=1 I get
> a problem with csoundReset(). I'm not sure it's a Csound problem.
> Cabbage makes assumptions that all instruments are stereo. Still, by
> the time csoundResst is being called I'm not accessing any audio
> buffers, so I really can't think why it might crash. In the meantime
> I'm going to make sure nchnls is 2 in my CSOUND_PARAMS structure.
> 
> On 15 October 2013 12:04, Rory Walsh  wrote:
>> Actually, hold on, it seems all my instruments are dying on
>> recompile...I'll keep back to you all when I figure out what exactly
>> it going on. :)
>> 
>> On 15 October 2013 12:00, Rory Walsh  wrote:
>>> If I try to recompile a file that features an empty instrument I get a
>>> problem. On the first run everything is fine, but as soon as I call
>>> csoundReset() I get a crash. My instrument is simply:
>>> 
>>> instr 1
>>> endin
>>> 
>>> backtrace:
>>> 0  0x00007ffff59e5425  __GI_raise  ../nptl/sysdeps/unix/sysv/linux/raise.c  64
>>> 1  0x00007ffff59e8b8b  __GI_abort  abort.c  91
>>> 2  0x00007ffff5a2339e  __libc_message
>>> ../sysdeps/unix/sysv/linux/libc_fatal.c  201
>>> 3  0x00007ffff5a2db96  malloc_printerr  malloc.c  5018
>>> 4  0x00007ffff65d70ea  memRESET
>>> /home/rory/sourcecode/csound-csound6-git/Engine/memalloc.c  230
>>> 5  0x00007ffff6717364  reset
>>> /home/rory/sourcecode/csound-csound6-git/Top/csound.c  2658
>>> 6  0x00007ffff6717b12  csoundReset
>>> /home/rory/sourcecode/csound-csound6-git/Top/csound.c  2769
>>> 7  0x00000000004ca750  Csound::Reset  /usr/local/include/csound/csound.hpp  367
> 
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

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




------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-10-15 12:41
FromRory Walsh
SubjectRe: [Cs-dev] empty instrument causes crash on csoundReset()?
No. I'm simply reloading the exact same instrument as before. The
configuration of the channels remains unchanged.

On 15 October 2013 12:39, Victor Lazzarini  wrote:
> What do you mean? I can recompile nchnls=1 no problems here.
> Are you changing from stereo to mono? You can only do that
> after reseting and starting Csound again.
>
>
> On 15 Oct 2013, at 12:21, Rory Walsh wrote:
>
>> Ok, it turns out that if I recompile any orchestra with nchnls=1 I get
>> a problem with csoundReset(). I'm not sure it's a Csound problem.
>> Cabbage makes assumptions that all instruments are stereo. Still, by
>> the time csoundResst is being called I'm not accessing any audio
>> buffers, so I really can't think why it might crash. In the meantime
>> I'm going to make sure nchnls is 2 in my CSOUND_PARAMS structure.
>>
>> On 15 October 2013 12:04, Rory Walsh  wrote:
>>> Actually, hold on, it seems all my instruments are dying on
>>> recompile...I'll keep back to you all when I figure out what exactly
>>> it going on. :)
>>>
>>> On 15 October 2013 12:00, Rory Walsh  wrote:
>>>> If I try to recompile a file that features an empty instrument I get a
>>>> problem. On the first run everything is fine, but as soon as I call
>>>> csoundReset() I get a crash. My instrument is simply:
>>>>
>>>> instr 1
>>>> endin
>>>>
>>>> backtrace:
>>>> 0  0x00007ffff59e5425  __GI_raise  ../nptl/sysdeps/unix/sysv/linux/raise.c  64
>>>> 1  0x00007ffff59e8b8b  __GI_abort  abort.c  91
>>>> 2  0x00007ffff5a2339e  __libc_message
>>>> ../sysdeps/unix/sysv/linux/libc_fatal.c  201
>>>> 3  0x00007ffff5a2db96  malloc_printerr  malloc.c  5018
>>>> 4  0x00007ffff65d70ea  memRESET
>>>> /home/rory/sourcecode/csound-csound6-git/Engine/memalloc.c  230
>>>> 5  0x00007ffff6717364  reset
>>>> /home/rory/sourcecode/csound-csound6-git/Top/csound.c  2658
>>>> 6  0x00007ffff6717b12  csoundReset
>>>> /home/rory/sourcecode/csound-csound6-git/Top/csound.c  2769
>>>> 7  0x00000000004ca750  Csound::Reset  /usr/local/include/csound/csound.hpp  367
>>
>> ------------------------------------------------------------------------------
>> October Webinars: Code for Performance
>> Free Intel webinars can help you accelerate application performance.
>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
>> the latest Intel processors and coprocessors. See abstracts and register >
>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-10-15 12:47
FromRory Walsh
SubjectRe: [Cs-dev] empty instrument causes crash on csoundReset()?
I do something along these lines in my processing loop:

for(int channel = 0; channel < getNumOutputChannels(); channel++ )
{
(...)
CSspin[channel+pos]


I make the assumption that Csound always has the same number of
channels as the plugin. But if I'm working in mono this will move the
index outside the CSPin buffer no?


On 15 October 2013 12:41, Rory Walsh  wrote:
> No. I'm simply reloading the exact same instrument as before. The
> configuration of the channels remains unchanged.
>
> On 15 October 2013 12:39, Victor Lazzarini  wrote:
>> What do you mean? I can recompile nchnls=1 no problems here.
>> Are you changing from stereo to mono? You can only do that
>> after reseting and starting Csound again.
>>
>>
>> On 15 Oct 2013, at 12:21, Rory Walsh wrote:
>>
>>> Ok, it turns out that if I recompile any orchestra with nchnls=1 I get
>>> a problem with csoundReset(). I'm not sure it's a Csound problem.
>>> Cabbage makes assumptions that all instruments are stereo. Still, by
>>> the time csoundResst is being called I'm not accessing any audio
>>> buffers, so I really can't think why it might crash. In the meantime
>>> I'm going to make sure nchnls is 2 in my CSOUND_PARAMS structure.
>>>
>>> On 15 October 2013 12:04, Rory Walsh  wrote:
>>>> Actually, hold on, it seems all my instruments are dying on
>>>> recompile...I'll keep back to you all when I figure out what exactly
>>>> it going on. :)
>>>>
>>>> On 15 October 2013 12:00, Rory Walsh  wrote:
>>>>> If I try to recompile a file that features an empty instrument I get a
>>>>> problem. On the first run everything is fine, but as soon as I call
>>>>> csoundReset() I get a crash. My instrument is simply:
>>>>>
>>>>> instr 1
>>>>> endin
>>>>>
>>>>> backtrace:
>>>>> 0  0x00007ffff59e5425  __GI_raise  ../nptl/sysdeps/unix/sysv/linux/raise.c  64
>>>>> 1  0x00007ffff59e8b8b  __GI_abort  abort.c  91
>>>>> 2  0x00007ffff5a2339e  __libc_message
>>>>> ../sysdeps/unix/sysv/linux/libc_fatal.c  201
>>>>> 3  0x00007ffff5a2db96  malloc_printerr  malloc.c  5018
>>>>> 4  0x00007ffff65d70ea  memRESET
>>>>> /home/rory/sourcecode/csound-csound6-git/Engine/memalloc.c  230
>>>>> 5  0x00007ffff6717364  reset
>>>>> /home/rory/sourcecode/csound-csound6-git/Top/csound.c  2658
>>>>> 6  0x00007ffff6717b12  csoundReset
>>>>> /home/rory/sourcecode/csound-csound6-git/Top/csound.c  2769
>>>>> 7  0x00000000004ca750  Csound::Reset  /usr/local/include/csound/csound.hpp  367
>>>
>>> ------------------------------------------------------------------------------
>>> October Webinars: Code for Performance
>>> Free Intel webinars can help you accelerate application performance.
>>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
>>> the latest Intel processors and coprocessors. See abstracts and register >
>>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> October Webinars: Code for Performance
>> Free Intel webinars can help you accelerate application performance.
>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
>> the latest Intel processors and coprocessors. See abstracts and register >
>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-10-15 12:52
FromVictor Lazzarini
SubjectRe: [Cs-dev] empty instrument causes crash on csoundReset()?
If you can produce a small C program to debug it, because I can't reproduce it here.

Victor
On 15 Oct 2013, at 12:41, Rory Walsh wrote:

> No. I'm simply reloading the exact same instrument as before. The
> configuration of the channels remains unchanged.
> 
> On 15 October 2013 12:39, Victor Lazzarini  wrote:
>> What do you mean? I can recompile nchnls=1 no problems here.
>> Are you changing from stereo to mono? You can only do that
>> after reseting and starting Csound again.
>> 
>> 
>> On 15 Oct 2013, at 12:21, Rory Walsh wrote:
>> 
>>> Ok, it turns out that if I recompile any orchestra with nchnls=1 I get
>>> a problem with csoundReset(). I'm not sure it's a Csound problem.
>>> Cabbage makes assumptions that all instruments are stereo. Still, by
>>> the time csoundResst is being called I'm not accessing any audio
>>> buffers, so I really can't think why it might crash. In the meantime
>>> I'm going to make sure nchnls is 2 in my CSOUND_PARAMS structure.
>>> 
>>> On 15 October 2013 12:04, Rory Walsh  wrote:
>>>> Actually, hold on, it seems all my instruments are dying on
>>>> recompile...I'll keep back to you all when I figure out what exactly
>>>> it going on. :)
>>>> 
>>>> On 15 October 2013 12:00, Rory Walsh  wrote:
>>>>> If I try to recompile a file that features an empty instrument I get a
>>>>> problem. On the first run everything is fine, but as soon as I call
>>>>> csoundReset() I get a crash. My instrument is simply:
>>>>> 
>>>>> instr 1
>>>>> endin
>>>>> 
>>>>> backtrace:
>>>>> 0  0x00007ffff59e5425  __GI_raise  ../nptl/sysdeps/unix/sysv/linux/raise.c  64
>>>>> 1  0x00007ffff59e8b8b  __GI_abort  abort.c  91
>>>>> 2  0x00007ffff5a2339e  __libc_message
>>>>> ../sysdeps/unix/sysv/linux/libc_fatal.c  201
>>>>> 3  0x00007ffff5a2db96  malloc_printerr  malloc.c  5018
>>>>> 4  0x00007ffff65d70ea  memRESET
>>>>> /home/rory/sourcecode/csound-csound6-git/Engine/memalloc.c  230
>>>>> 5  0x00007ffff6717364  reset
>>>>> /home/rory/sourcecode/csound-csound6-git/Top/csound.c  2658
>>>>> 6  0x00007ffff6717b12  csoundReset
>>>>> /home/rory/sourcecode/csound-csound6-git/Top/csound.c  2769
>>>>> 7  0x00000000004ca750  Csound::Reset  /usr/local/include/csound/csound.hpp  367
>>> 
>>> ------------------------------------------------------------------------------
>>> October Webinars: Code for Performance
>>> Free Intel webinars can help you accelerate application performance.
>>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
>>> the latest Intel processors and coprocessors. See abstracts and register >
>>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> October Webinars: Code for Performance
>> Free Intel webinars can help you accelerate application performance.
>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
>> the latest Intel processors and coprocessors. See abstracts and register >
>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

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




------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-10-15 12:56
FromRory Walsh
SubjectRe: [Cs-dev] empty instrument causes crash on csoundReset()?
Not really a goer as I'd need to implement my own audio callback IO
routines too. If it pops up again I'll let you know. Overriding nchnls
does the trick. I should have been doing that anyway.

On 15 October 2013 12:52, Victor Lazzarini  wrote:
> If you can produce a small C program to debug it, because I can't reproduce it here.
>
> Victor
> On 15 Oct 2013, at 12:41, Rory Walsh wrote:
>
>> No. I'm simply reloading the exact same instrument as before. The
>> configuration of the channels remains unchanged.
>>
>> On 15 October 2013 12:39, Victor Lazzarini  wrote:
>>> What do you mean? I can recompile nchnls=1 no problems here.
>>> Are you changing from stereo to mono? You can only do that
>>> after reseting and starting Csound again.
>>>
>>>
>>> On 15 Oct 2013, at 12:21, Rory Walsh wrote:
>>>
>>>> Ok, it turns out that if I recompile any orchestra with nchnls=1 I get
>>>> a problem with csoundReset(). I'm not sure it's a Csound problem.
>>>> Cabbage makes assumptions that all instruments are stereo. Still, by
>>>> the time csoundResst is being called I'm not accessing any audio
>>>> buffers, so I really can't think why it might crash. In the meantime
>>>> I'm going to make sure nchnls is 2 in my CSOUND_PARAMS structure.
>>>>
>>>> On 15 October 2013 12:04, Rory Walsh  wrote:
>>>>> Actually, hold on, it seems all my instruments are dying on
>>>>> recompile...I'll keep back to you all when I figure out what exactly
>>>>> it going on. :)
>>>>>
>>>>> On 15 October 2013 12:00, Rory Walsh  wrote:
>>>>>> If I try to recompile a file that features an empty instrument I get a
>>>>>> problem. On the first run everything is fine, but as soon as I call
>>>>>> csoundReset() I get a crash. My instrument is simply:
>>>>>>
>>>>>> instr 1
>>>>>> endin
>>>>>>
>>>>>> backtrace:
>>>>>> 0  0x00007ffff59e5425  __GI_raise  ../nptl/sysdeps/unix/sysv/linux/raise.c  64
>>>>>> 1  0x00007ffff59e8b8b  __GI_abort  abort.c  91
>>>>>> 2  0x00007ffff5a2339e  __libc_message
>>>>>> ../sysdeps/unix/sysv/linux/libc_fatal.c  201
>>>>>> 3  0x00007ffff5a2db96  malloc_printerr  malloc.c  5018
>>>>>> 4  0x00007ffff65d70ea  memRESET
>>>>>> /home/rory/sourcecode/csound-csound6-git/Engine/memalloc.c  230
>>>>>> 5  0x00007ffff6717364  reset
>>>>>> /home/rory/sourcecode/csound-csound6-git/Top/csound.c  2658
>>>>>> 6  0x00007ffff6717b12  csoundReset
>>>>>> /home/rory/sourcecode/csound-csound6-git/Top/csound.c  2769
>>>>>> 7  0x00000000004ca750  Csound::Reset  /usr/local/include/csound/csound.hpp  367
>>>>
>>>> ------------------------------------------------------------------------------
>>>> October Webinars: Code for Performance
>>>> Free Intel webinars can help you accelerate application performance.
>>>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
>>>> the latest Intel processors and coprocessors. See abstracts and register >
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> October Webinars: Code for Performance
>>> Free Intel webinars can help you accelerate application performance.
>>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
>>> the latest Intel processors and coprocessors. See abstracts and register >
>>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> October Webinars: Code for Performance
>> Free Intel webinars can help you accelerate application performance.
>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
>> the latest Intel processors and coprocessors. See abstracts and register >
>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-10-15 14:06
FromVictor Lazzarini
SubjectRe: [Cs-dev] empty instrument causes crash on csoundReset()?
yes, if CSspin is the csound spin, then if your channel > 0 you will have a
fencepost problem with nchnls = 1

Regards

Victor
On 15 Oct 2013, at 12:47, Rory Walsh wrote:

> I do something along these lines in my processing loop:
> 
> for(int channel = 0; channel < getNumOutputChannels(); channel++ )
> {
> (...)
> CSspin[channel+pos]
> 
> 
> I make the assumption that Csound always has the same number of
> channels as the plugin. But if I'm working in mono this will move the
> index outside the CSPin buffer no?
> 
> 
> On 15 October 2013 12:41, Rory Walsh  wrote:
>> No. I'm simply reloading the exact same instrument as before. The
>> configuration of the channels remains unchanged.
>> 
>> On 15 October 2013 12:39, Victor Lazzarini  wrote:
>>> What do you mean? I can recompile nchnls=1 no problems here.
>>> Are you changing from stereo to mono? You can only do that
>>> after reseting and starting Csound again.
>>> 
>>> 
>>> On 15 Oct 2013, at 12:21, Rory Walsh wrote:
>>> 
>>>> Ok, it turns out that if I recompile any orchestra with nchnls=1 I get
>>>> a problem with csoundReset(). I'm not sure it's a Csound problem.
>>>> Cabbage makes assumptions that all instruments are stereo. Still, by
>>>> the time csoundResst is being called I'm not accessing any audio
>>>> buffers, so I really can't think why it might crash. In the meantime
>>>> I'm going to make sure nchnls is 2 in my CSOUND_PARAMS structure.
>>>> 
>>>> On 15 October 2013 12:04, Rory Walsh  wrote:
>>>>> Actually, hold on, it seems all my instruments are dying on
>>>>> recompile...I'll keep back to you all when I figure out what exactly
>>>>> it going on. :)
>>>>> 
>>>>> On 15 October 2013 12:00, Rory Walsh  wrote:
>>>>>> If I try to recompile a file that features an empty instrument I get a
>>>>>> problem. On the first run everything is fine, but as soon as I call
>>>>>> csoundReset() I get a crash. My instrument is simply:
>>>>>> 
>>>>>> instr 1
>>>>>> endin
>>>>>> 
>>>>>> backtrace:
>>>>>> 0  0x00007ffff59e5425  __GI_raise  ../nptl/sysdeps/unix/sysv/linux/raise.c  64
>>>>>> 1  0x00007ffff59e8b8b  __GI_abort  abort.c  91
>>>>>> 2  0x00007ffff5a2339e  __libc_message
>>>>>> ../sysdeps/unix/sysv/linux/libc_fatal.c  201
>>>>>> 3  0x00007ffff5a2db96  malloc_printerr  malloc.c  5018
>>>>>> 4  0x00007ffff65d70ea  memRESET
>>>>>> /home/rory/sourcecode/csound-csound6-git/Engine/memalloc.c  230
>>>>>> 5  0x00007ffff6717364  reset
>>>>>> /home/rory/sourcecode/csound-csound6-git/Top/csound.c  2658
>>>>>> 6  0x00007ffff6717b12  csoundReset
>>>>>> /home/rory/sourcecode/csound-csound6-git/Top/csound.c  2769
>>>>>> 7  0x00000000004ca750  Csound::Reset  /usr/local/include/csound/csound.hpp  367
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> October Webinars: Code for Performance
>>>> Free Intel webinars can help you accelerate application performance.
>>>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
>>>> the latest Intel processors and coprocessors. See abstracts and register >
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>> 
>>> 
>>> 
>>> 
>>> ------------------------------------------------------------------------------
>>> October Webinars: Code for Performance
>>> Free Intel webinars can help you accelerate application performance.
>>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
>>> the latest Intel processors and coprocessors. See abstracts and register >
>>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

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




------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-10-15 15:32
FromRory Walsh
SubjectRe: [Cs-dev] empty instrument causes crash on csoundReset()?
That's what I was thinking. Only I don't see why I don't get them the
first time around. Anyhow, no need to worry about it.

On 15 October 2013 14:06, Victor Lazzarini  wrote:
> yes, if CSspin is the csound spin, then if your channel > 0 you will have a
> fencepost problem with nchnls = 1
>
> Regards
>
> Victor
> On 15 Oct 2013, at 12:47, Rory Walsh wrote:
>
>> I do something along these lines in my processing loop:
>>
>> for(int channel = 0; channel < getNumOutputChannels(); channel++ )
>> {
>> (...)
>> CSspin[channel+pos]
>>
>>
>> I make the assumption that Csound always has the same number of
>> channels as the plugin. But if I'm working in mono this will move the
>> index outside the CSPin buffer no?
>>
>>
>> On 15 October 2013 12:41, Rory Walsh  wrote:
>>> No. I'm simply reloading the exact same instrument as before. The
>>> configuration of the channels remains unchanged.
>>>
>>> On 15 October 2013 12:39, Victor Lazzarini  wrote:
>>>> What do you mean? I can recompile nchnls=1 no problems here.
>>>> Are you changing from stereo to mono? You can only do that
>>>> after reseting and starting Csound again.
>>>>
>>>>
>>>> On 15 Oct 2013, at 12:21, Rory Walsh wrote:
>>>>
>>>>> Ok, it turns out that if I recompile any orchestra with nchnls=1 I get
>>>>> a problem with csoundReset(). I'm not sure it's a Csound problem.
>>>>> Cabbage makes assumptions that all instruments are stereo. Still, by
>>>>> the time csoundResst is being called I'm not accessing any audio
>>>>> buffers, so I really can't think why it might crash. In the meantime
>>>>> I'm going to make sure nchnls is 2 in my CSOUND_PARAMS structure.
>>>>>
>>>>> On 15 October 2013 12:04, Rory Walsh  wrote:
>>>>>> Actually, hold on, it seems all my instruments are dying on
>>>>>> recompile...I'll keep back to you all when I figure out what exactly
>>>>>> it going on. :)
>>>>>>
>>>>>> On 15 October 2013 12:00, Rory Walsh  wrote:
>>>>>>> If I try to recompile a file that features an empty instrument I get a
>>>>>>> problem. On the first run everything is fine, but as soon as I call
>>>>>>> csoundReset() I get a crash. My instrument is simply:
>>>>>>>
>>>>>>> instr 1
>>>>>>> endin
>>>>>>>
>>>>>>> backtrace:
>>>>>>> 0  0x00007ffff59e5425  __GI_raise  ../nptl/sysdeps/unix/sysv/linux/raise.c  64
>>>>>>> 1  0x00007ffff59e8b8b  __GI_abort  abort.c  91
>>>>>>> 2  0x00007ffff5a2339e  __libc_message
>>>>>>> ../sysdeps/unix/sysv/linux/libc_fatal.c  201
>>>>>>> 3  0x00007ffff5a2db96  malloc_printerr  malloc.c  5018
>>>>>>> 4  0x00007ffff65d70ea  memRESET
>>>>>>> /home/rory/sourcecode/csound-csound6-git/Engine/memalloc.c  230
>>>>>>> 5  0x00007ffff6717364  reset
>>>>>>> /home/rory/sourcecode/csound-csound6-git/Top/csound.c  2658
>>>>>>> 6  0x00007ffff6717b12  csoundReset
>>>>>>> /home/rory/sourcecode/csound-csound6-git/Top/csound.c  2769
>>>>>>> 7  0x00000000004ca750  Csound::Reset  /usr/local/include/csound/csound.hpp  367
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> October Webinars: Code for Performance
>>>>> Free Intel webinars can help you accelerate application performance.
>>>>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
>>>>> the latest Intel processors and coprocessors. See abstracts and register >
>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> Dr Victor Lazzarini
>>>> Senior Lecturer
>>>> Dept. of Music
>>>> NUI Maynooth Ireland
>>>> tel.: +353 1 708 3545
>>>> Victor dot Lazzarini AT nuim dot ie
>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> October Webinars: Code for Performance
>>>> Free Intel webinars can help you accelerate application performance.
>>>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
>>>> the latest Intel processors and coprocessors. See abstracts and register >
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> October Webinars: Code for Performance
>> Free Intel webinars can help you accelerate application performance.
>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
>> the latest Intel processors and coprocessors. See abstracts and register >
>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-10-15 15:58
FromVictor Lazzarini
SubjectRe: [Cs-dev] empty instrument causes crash on csoundReset()?
Because there is a lot of memory being allocated and used, the effects of this might not be apparent sometimes (ie. might not
lead to a crash, because you're overwriting somewhere else that the program has allocated but not used yet), 
but if you were to run this in valgrind, the errors would show up.

Victor
On 15 Oct 2013, at 15:32, Rory Walsh wrote:

> That's what I was thinking. Only I don't see why I don't get them the
> first time around. Anyhow, no need to worry about it.
> 
> On 15 October 2013 14:06, Victor Lazzarini  wrote:
>> yes, if CSspin is the csound spin, then if your channel > 0 you will have a
>> fencepost problem with nchnls = 1
>> 
>> Regards
>> 
>> Victor
>> On 15 Oct 2013, at 12:47, Rory Walsh wrote:
>> 
>>> I do something along these lines in my processing loop:
>>> 
>>> for(int channel = 0; channel < getNumOutputChannels(); channel++ )
>>> {
>>> (...)
>>> CSspin[channel+pos]
>>> 
>>> 
>>> I make the assumption that Csound always has the same number of
>>> channels as the plugin. But if I'm working in mono this will move the
>>> index outside the CSPin buffer no?
>>> 
>>> 
>>> On 15 October 2013 12:41, Rory Walsh  wrote:
>>>> No. I'm simply reloading the exact same instrument as before. The
>>>> configuration of the channels remains unchanged.
>>>> 
>>>> On 15 October 2013 12:39, Victor Lazzarini  wrote:
>>>>> What do you mean? I can recompile nchnls=1 no problems here.
>>>>> Are you changing from stereo to mono? You can only do that
>>>>> after reseting and starting Csound again.
>>>>> 
>>>>> 
>>>>> On 15 Oct 2013, at 12:21, Rory Walsh wrote:
>>>>> 
>>>>>> Ok, it turns out that if I recompile any orchestra with nchnls=1 I get
>>>>>> a problem with csoundReset(). I'm not sure it's a Csound problem.
>>>>>> Cabbage makes assumptions that all instruments are stereo. Still, by
>>>>>> the time csoundResst is being called I'm not accessing any audio
>>>>>> buffers, so I really can't think why it might crash. In the meantime
>>>>>> I'm going to make sure nchnls is 2 in my CSOUND_PARAMS structure.
>>>>>> 
>>>>>> On 15 October 2013 12:04, Rory Walsh  wrote:
>>>>>>> Actually, hold on, it seems all my instruments are dying on
>>>>>>> recompile...I'll keep back to you all when I figure out what exactly
>>>>>>> it going on. :)
>>>>>>> 
>>>>>>> On 15 October 2013 12:00, Rory Walsh  wrote:
>>>>>>>> If I try to recompile a file that features an empty instrument I get a
>>>>>>>> problem. On the first run everything is fine, but as soon as I call
>>>>>>>> csoundReset() I get a crash. My instrument is simply:
>>>>>>>> 
>>>>>>>> instr 1
>>>>>>>> endin
>>>>>>>> 
>>>>>>>> backtrace:
>>>>>>>> 0  0x00007ffff59e5425  __GI_raise  ../nptl/sysdeps/unix/sysv/linux/raise.c  64
>>>>>>>> 1  0x00007ffff59e8b8b  __GI_abort  abort.c  91
>>>>>>>> 2  0x00007ffff5a2339e  __libc_message
>>>>>>>> ../sysdeps/unix/sysv/linux/libc_fatal.c  201
>>>>>>>> 3  0x00007ffff5a2db96  malloc_printerr  malloc.c  5018
>>>>>>>> 4  0x00007ffff65d70ea  memRESET
>>>>>>>> /home/rory/sourcecode/csound-csound6-git/Engine/memalloc.c  230
>>>>>>>> 5  0x00007ffff6717364  reset
>>>>>>>> /home/rory/sourcecode/csound-csound6-git/Top/csound.c  2658
>>>>>>>> 6  0x00007ffff6717b12  csoundReset
>>>>>>>> /home/rory/sourcecode/csound-csound6-git/Top/csound.c  2769
>>>>>>>> 7  0x00000000004ca750  Csound::Reset  /usr/local/include/csound/csound.hpp  367
>>>>>> 
>>>>>> ------------------------------------------------------------------------------
>>>>>> October Webinars: Code for Performance
>>>>>> Free Intel webinars can help you accelerate application performance.
>>>>>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
>>>>>> the latest Intel processors and coprocessors. See abstracts and register >
>>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>> 
>>>>> Dr Victor Lazzarini
>>>>> Senior Lecturer
>>>>> Dept. of Music
>>>>> NUI Maynooth Ireland
>>>>> tel.: +353 1 708 3545
>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> October Webinars: Code for Performance
>>>>> Free Intel webinars can help you accelerate application performance.
>>>>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
>>>>> the latest Intel processors and coprocessors. See abstracts and register >
>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> ------------------------------------------------------------------------------
>>> October Webinars: Code for Performance
>>> Free Intel webinars can help you accelerate application performance.
>>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
>>> the latest Intel processors and coprocessors. See abstracts and register >
>>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>> 
>> 
>> 
>> 
>> ------------------------------------------------------------------------------
>> October Webinars: Code for Performance
>> Free Intel webinars can help you accelerate application performance.
>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
>> the latest Intel processors and coprocessors. See abstracts and register >
>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

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




------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2013-10-15 16:44
FromRory Walsh
SubjectRe: [Cs-dev] empty instrument causes crash on csoundReset()?
Thanks, that makes sense.

On 15 October 2013 15:58, Victor Lazzarini  wrote:
> Because there is a lot of memory being allocated and used, the effects of this might not be apparent sometimes (ie. might not
> lead to a crash, because you're overwriting somewhere else that the program has allocated but not used yet),
> but if you were to run this in valgrind, the errors would show up.
>
> Victor
> On 15 Oct 2013, at 15:32, Rory Walsh wrote:
>
>> That's what I was thinking. Only I don't see why I don't get them the
>> first time around. Anyhow, no need to worry about it.
>>
>> On 15 October 2013 14:06, Victor Lazzarini  wrote:
>>> yes, if CSspin is the csound spin, then if your channel > 0 you will have a
>>> fencepost problem with nchnls = 1
>>>
>>> Regards
>>>
>>> Victor
>>> On 15 Oct 2013, at 12:47, Rory Walsh wrote:
>>>
>>>> I do something along these lines in my processing loop:
>>>>
>>>> for(int channel = 0; channel < getNumOutputChannels(); channel++ )
>>>> {
>>>> (...)
>>>> CSspin[channel+pos]
>>>>
>>>>
>>>> I make the assumption that Csound always has the same number of
>>>> channels as the plugin. But if I'm working in mono this will move the
>>>> index outside the CSPin buffer no?
>>>>
>>>>
>>>> On 15 October 2013 12:41, Rory Walsh  wrote:
>>>>> No. I'm simply reloading the exact same instrument as before. The
>>>>> configuration of the channels remains unchanged.
>>>>>
>>>>> On 15 October 2013 12:39, Victor Lazzarini  wrote:
>>>>>> What do you mean? I can recompile nchnls=1 no problems here.
>>>>>> Are you changing from stereo to mono? You can only do that
>>>>>> after reseting and starting Csound again.
>>>>>>
>>>>>>
>>>>>> On 15 Oct 2013, at 12:21, Rory Walsh wrote:
>>>>>>
>>>>>>> Ok, it turns out that if I recompile any orchestra with nchnls=1 I get
>>>>>>> a problem with csoundReset(). I'm not sure it's a Csound problem.
>>>>>>> Cabbage makes assumptions that all instruments are stereo. Still, by
>>>>>>> the time csoundResst is being called I'm not accessing any audio
>>>>>>> buffers, so I really can't think why it might crash. In the meantime
>>>>>>> I'm going to make sure nchnls is 2 in my CSOUND_PARAMS structure.
>>>>>>>
>>>>>>> On 15 October 2013 12:04, Rory Walsh  wrote:
>>>>>>>> Actually, hold on, it seems all my instruments are dying on
>>>>>>>> recompile...I'll keep back to you all when I figure out what exactly
>>>>>>>> it going on. :)
>>>>>>>>
>>>>>>>> On 15 October 2013 12:00, Rory Walsh  wrote:
>>>>>>>>> If I try to recompile a file that features an empty instrument I get a
>>>>>>>>> problem. On the first run everything is fine, but as soon as I call
>>>>>>>>> csoundReset() I get a crash. My instrument is simply:
>>>>>>>>>
>>>>>>>>> instr 1
>>>>>>>>> endin
>>>>>>>>>
>>>>>>>>> backtrace:
>>>>>>>>> 0  0x00007ffff59e5425  __GI_raise  ../nptl/sysdeps/unix/sysv/linux/raise.c  64
>>>>>>>>> 1  0x00007ffff59e8b8b  __GI_abort  abort.c  91
>>>>>>>>> 2  0x00007ffff5a2339e  __libc_message
>>>>>>>>> ../sysdeps/unix/sysv/linux/libc_fatal.c  201
>>>>>>>>> 3  0x00007ffff5a2db96  malloc_printerr  malloc.c  5018
>>>>>>>>> 4  0x00007ffff65d70ea  memRESET
>>>>>>>>> /home/rory/sourcecode/csound-csound6-git/Engine/memalloc.c  230
>>>>>>>>> 5  0x00007ffff6717364  reset
>>>>>>>>> /home/rory/sourcecode/csound-csound6-git/Top/csound.c  2658
>>>>>>>>> 6  0x00007ffff6717b12  csoundReset
>>>>>>>>> /home/rory/sourcecode/csound-csound6-git/Top/csound.c  2769
>>>>>>>>> 7  0x00000000004ca750  Csound::Reset  /usr/local/include/csound/csound.hpp  367
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> October Webinars: Code for Performance
>>>>>>> Free Intel webinars can help you accelerate application performance.
>>>>>>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
>>>>>>> the latest Intel processors and coprocessors. See abstracts and register >
>>>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>> Dr Victor Lazzarini
>>>>>> Senior Lecturer
>>>>>> Dept. of Music
>>>>>> NUI Maynooth Ireland
>>>>>> tel.: +353 1 708 3545
>>>>>> Victor dot Lazzarini AT nuim dot ie
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> October Webinars: Code for Performance
>>>>>> Free Intel webinars can help you accelerate application performance.
>>>>>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
>>>>>> the latest Intel processors and coprocessors. See abstracts and register >
>>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> ------------------------------------------------------------------------------
>>>> October Webinars: Code for Performance
>>>> Free Intel webinars can help you accelerate application performance.
>>>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
>>>> the latest Intel processors and coprocessors. See abstracts and register >
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> Dept. of Music
>>> NUI Maynooth Ireland
>>> tel.: +353 1 708 3545
>>> Victor dot Lazzarini AT nuim dot ie
>>>
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> October Webinars: Code for Performance
>>> Free Intel webinars can help you accelerate application performance.
>>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
>>> the latest Intel processors and coprocessors. See abstracts and register >
>>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> October Webinars: Code for Performance
>> Free Intel webinars can help you accelerate application performance.
>> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
>> the latest Intel processors and coprocessors. See abstracts and register >
>> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> Dr Victor Lazzarini
> Senior Lecturer
> Dept. of Music
> NUI Maynooth Ireland
> tel.: +353 1 708 3545
> Victor dot Lazzarini AT nuim dot ie
>
>
>
>
> ------------------------------------------------------------------------------
> October Webinars: Code for Performance
> Free Intel webinars can help you accelerate application performance.
> Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
> the latest Intel processors and coprocessors. See abstracts and register >
> http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net