[chuck-dev] segmentation fault, chubgraph with spork at sample rate
Spencer Salazar
spencer at ccrma.stanford.edu
Wed Feb 13 20:53:30 EST 2013
Thanks Michael, we'll look in to this! Nothing stands out to me as
canonically likely to crash ChucK, so there might be a new issue here.
spencer
On Wed, Feb 13, 2013 at 3:10 PM, Michael Heuer <heuermh at gmail.com> wrote:
> Hello,
>
> The following reliably seg faults chuck (I'm using git master)
>
> $ chuck --help
>
> chuck version: 1.3.2.0-beta-1 (chimera)
> mac os x : intel : 64-bit
> http://chuck.cs.princeton.edu/
> http://chuck.stanford.edu/
>
> $ chuck examples/swirl.ck
> Segmentation fault: 11
>
> swirl.ck:
>
> class Swirl extends Chubgraph
> {
> Gain _cv;
> inlet => Pan2 pan => outlet;
>
> {
> _cv => blackhole;
> spork ~ _tickAtSampleRate();
> }
>
> fun void _tickAtSampleRate()
> {
> while (true)
> {
> 1::samp => now;
> tick(_cv.last());
> }
> }
>
> fun float tick(float cv)
> {
> cv => pan.pan;
> }
> }
>
> SqrOsc lfo => blackhole;
> 0.1 => lfo.freq;
> 1.0 => lfo.gain;
>
> Swirl swirl;
> lfo => swirl._cv;
>
> SinOsc osc;
> 220.0 => osc.freq;
> 1.0 => osc.gain;
>
> osc => swirl => dac;
>
> 10::second => now;
>
> <<<"done">>>;
>
> ---
>
> michael
> _______________________________________________
> chuck-dev mailing list
> chuck-dev at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-dev/attachments/20130213/85d05d1c/attachment.html>
More information about the chuck-dev
mailing list