Csound Csound-dev Csound-tekno Search About

[Cs-dev] chnclear in csound 5.09 on osx

Date2009-01-27 13:59
FromOeyvind Brandtsegg
Subject[Cs-dev] chnclear in csound 5.09 on osx
It was a strange bug surfacing in class today.

One of my students installed csound 5.09 on his mac laptop osx 10.4.11,
and we do use the chn opcodes quite a lot for these classes.
He repeatedly had Csound "unexpectedly quit".
The console says "Csound tidy up: Bus error",
so we started commenting out chn opcodes,
and got rid of the crash by commenting out all chnclear opcodes.
Using a bogus audio signal (amp = 0) and writing this to the channel
with chnset instead does avoid the crash and sounds the same.
But, chnclear is a bit easier to use.

I tested with 5.09d on windows and it does not crash when using chnclear.

I'm not sure if the problem has been solved in 5.10, but wanted to
report it just in case it has not been fixed.

best
Oeyvind

** example

*this crashes:
; clear chn channels used for mixing
	chnclear	"DelaySend"

*this does not crash
; clear chn channels used for mixing
	a0	= 0
	chnset	a0, "DelaySend"

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-01-27 17:16
Fromjpff
SubjectRe: [Cs-dev] chnclear in csound 5.09 on osx
Hum.... the code was fixed by Michael on Sep 27 18:20:15 2008 UTC 
There was a serious error that would have led to reading word 0, 4,
8....

==John ffitch

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-01-27 19:01
FromOeyvind Brandtsegg
SubjectRe: [Cs-dev] chnclear in csound 5.09 on osx
Ah, thanks.
Oeyvind

2009/1/27 jpff :
> Hum.... the code was fixed by Michael on Sep 27 18:20:15 2008 UTC
> There was a serious error that would have led to reading word 0, 4,
> 8....
>
> ==John ffitch
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2009-01-27 21:55
FromAnthony Kozar
SubjectRe: [Cs-dev] chnclear in csound 5.09 on osx
Also, note that 5.09 is not a good version to use for API programming since
the API in that version is incompatible with all other versions of Csound.
It may cause crashes for programs linked to earlier versions of Csound.

Oeyvind Brandtsegg wrote on 1/27/09 2:01 PM:

> Ah, thanks.
> Oeyvind
> 
> 2009/1/27 jpff :
>> Hum.... the code was fixed by Michael on Sep 27 18:20:15 2008 UTC
>> There was a serious error that would have led to reading word 0, 4,
>> 8....
>> 
>> ==John ffitch


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net