Csound Csound-dev Csound-tekno Search About

[Csnd] segmentation fault, flooper 2 not looping?

Date2018-05-11 17:40
Fromfauveboy
Subject[Csnd] segmentation fault, flooper 2 not looping?
sampler_two.csd
  
Hi

After previously using table to loop a sample (which was producing to many
artifacts) if decided to use flooper2 with is attached here. However,
doesn't successfully loop. It reports a segmentation fault. Im not sure what
this means, is it possible what is preventing the looping?

Many thanks



--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-05-11 18:01
Fromjpff
SubjectRe: [Csnd-dev] [Csnd] segmentation fault, flooper 2 not looping?
It crashes for me so what it means is a bug -- csound should not crash

For those who understand the code....

(gdb) where
#0  0x00007ffff7aba7e2 in flooper2_process (csound=, 
p=0x82e020)
     at /home/jpff/csound6/Opcodes/sndloop.c:766
#1  0x00007ffff7931bf1 in kperf_nodebug (csound=0x6044a0)
     at /home/jpff/csound6/Top/csound.c:1711
#2  0x00007ffff79333f2 in csoundPerform (csound=csound@entry=0x6044a0)
     at /home/jpff/csound6/Top/csound.c:2226
#3  0x00000000004014bf in main (argc=, argv=0x7fffffffdeb8)
     at /home/jpff/csound6/Frontends/csound/csound_main.c:326
(gdb) list
761             out[0] = 0;
762             tndx0 = (uint32) ndx[0];
763             frac0 = ndx[0] - tndx0;
764             if (ndx[0] < loop_end-crossfade) {
765               tndx0 *= nchnls;
766               out[0] = amp*(tab[tndx0] + frac0*(tab[tndx0+nchnls] - 
tab[tndx0]));
767               if(onchnls == 2){
768                 tndx0 += 1;
769                 out[1] = amp*(tab[tndx0] + frac0*(tab[tndx0+nchnls] - 
tab[tndx0]));
770               }
(gdb) print tndx0
$1 = 721402
(gdb) print tab
$2 = (double *) 0x7fffe1e48020

with my substituted input sound

Suggest moving discussions to csound-dev

On Fri, 11 May 2018, fauveboy wrote:

> sampler_two.csd
> 
> Hi
>
> After previously using table to loop a sample (which was producing to many
> artifacts) if decided to use flooper2 with is attached here. However,
> doesn't successfully loop. It reports a segmentation fault. Im not sure what
> this means, is it possible what is preventing the looping?
>
> Many thanks
>
>
>
> --
> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Date2018-05-11 18:01
Fromjpff
SubjectRe: [Csnd] segmentation fault, flooper 2 not looping?
It crashes for me so what it means is a bug -- csound should not crash

For those who understand the code....

(gdb) where
#0  0x00007ffff7aba7e2 in flooper2_process (csound=, 
p=0x82e020)
     at /home/jpff/csound6/Opcodes/sndloop.c:766
#1  0x00007ffff7931bf1 in kperf_nodebug (csound=0x6044a0)
     at /home/jpff/csound6/Top/csound.c:1711
#2  0x00007ffff79333f2 in csoundPerform (csound=csound@entry=0x6044a0)
     at /home/jpff/csound6/Top/csound.c:2226
#3  0x00000000004014bf in main (argc=, argv=0x7fffffffdeb8)
     at /home/jpff/csound6/Frontends/csound/csound_main.c:326
(gdb) list
761             out[0] = 0;
762             tndx0 = (uint32) ndx[0];
763             frac0 = ndx[0] - tndx0;
764             if (ndx[0] < loop_end-crossfade) {
765               tndx0 *= nchnls;
766               out[0] = amp*(tab[tndx0] + frac0*(tab[tndx0+nchnls] - 
tab[tndx0]));
767               if(onchnls == 2){
768                 tndx0 += 1;
769                 out[1] = amp*(tab[tndx0] + frac0*(tab[tndx0+nchnls] - 
tab[tndx0]));
770               }
(gdb) print tndx0
$1 = 721402
(gdb) print tab
$2 = (double *) 0x7fffe1e48020

with my substituted input sound

Suggest moving discussions to csound-dev

On Fri, 11 May 2018, fauveboy wrote:

> sampler_two.csd
> 
> Hi
>
> After previously using table to loop a sample (which was producing to many
> artifacts) if decided to use flooper2 with is attached here. However,
> doesn't successfully loop. It reports a segmentation fault. Im not sure what
> this means, is it possible what is preventing the looping?
>
> Many thanks
>
>
>
> --
> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-05-11 18:05
Fromjpff
SubjectRe: [Csnd-dev] [Csnd] segmentation fault, flooper 2 not looping?
And valgrind

new alloc for instr 1:
==7542== Invalid read of size 8
==7542==    at 0x5005017: flooper2_process (sndloop.c:769)
==7542==    by 0x4E7BBF0: kperf_nodebug (csound.c:1711)
==7542==    by 0x4E7D3F1: csoundPerform (csound.c:2226)
==7542==    by 0x4014BE: main (csound_main.c:326)
==7542==  Address 0x1b5c8868 is 0 bytes after a block of size 5,371,944 
alloc'd
==7542==    at 0x4C2C240: calloc (in 
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==7542==    by 0x4E97F27: mcalloc (memalloc.c:113)
==7542==    by 0x4E85435: ftalloc (fgens.c:2372)
==7542==    by 0x4E8B239: gen01raw (fgens.c:2677)
==7542==    by 0x4E86B11: hfgens (fgens.c:235)
==7542==    by 0x4E99A9F: process_score_event (musmon.c:822)
==7542==    by 0x4E9C6A8: sensevents (musmon.c:1019)
==7542==    by 0x4E7D472: csoundPerform (csound.c:2216)
==7542==    by 0x4014BE: main (csound_main.c:326)
==7542==
==7542== Invalid read of size 8
==7542==    at 0x50047E2: flooper2_process (sndloop.c:766)
==7542==    by 0x4E7BBF0: kperf_nodebug (csound.c:1711)
==7542==    by 0x4E7D3F1: csoundPerform (csound.c:2226)
==7542==    by 0x4014BE: main (csound_main.c:326)
==7542==  Address 0x1b5c8870 is 8 bytes after a block of size 5,371,944 
alloc'd
==7542==    at 0x4C2C240: calloc (in 
/usr/lib64/valgrind/vgpreload_memcheck-amd64-linux.so)
==7542==    by 0x4E97F27: mcalloc (memalloc.c:113)
==7542==    by 0x4E85435: ftalloc (fgens.c:2372)
==7542==    by 0x4E8B239: gen01raw (fgens.c:2677)
==7542==    by 0x4E86B11: hfgens (fgens.c:235)
==7542==    by 0x4E99A9F: process_score_event (musmon.c:822)
==7542==    by 0x4E9C6A8: sensevents (musmon.c:1019)
==7542==    by 0x4E7D472: csoundPerform (csound.c:2216)
==7542==    by 0x4014BE: main (csound_main.c:326)
==7542==

Date2018-05-11 18:14
FromVictor Lazzarini
SubjectRe: [Csnd] segmentation fault, flooper 2 not looping?
Maybe the loop point is beyond the table length?

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 11 May 2018, at 17:40, fauveboy  wrote:
> 
> sampler_two.csd
>   
> Hi
> 
> After previously using table to loop a sample (which was producing to many
> artifacts) if decided to use flooper2 with is attached here. However,
> doesn't successfully loop. It reports a segmentation fault. Im not sure what
> this means, is it possible what is preventing the looping?
> 
> Many thanks
> 
> 
> 
> --
> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-05-11 18:21
FromVictor Lazzarini
SubjectRe: [Csnd] segmentation fault, flooper 2 not looping?
Tried here with a .wav file I had and it worked fine. I am wondering whether your loop duration is the problem.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 11 May 2018, at 18:14, Victor Lazzarini  wrote:
> 
> Maybe the loop point is beyond the table length?
> 
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
> 
>> On 11 May 2018, at 17:40, fauveboy  wrote:
>> 
>> sampler_two.csd
>>   
>> Hi
>> 
>> After previously using table to loop a sample (which was producing to many
>> artifacts) if decided to use flooper2 with is attached here. However,
>> doesn't successfully loop. It reports a segmentation fault. Im not sure what
>> this means, is it possible what is preventing the looping?
>> 
>> Many thanks
>> 
>> 
>> 
>> --
>> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-05-11 18:23
Fromfauveboy
SubjectRe: [Csnd] segmentation fault, flooper 2 not looping?
Would there not just be silence before looping? Also surly ilength is the
precise size of the sample in seconds?



--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-05-11 18:26
FromVictor Lazzarini
SubjectRe: [Csnd] segmentation fault, flooper 2 not looping?
yes, the loop should be truncated to the table length if > the sound, and it happens here when I use a shorter sound.
I can’t get it to crash. Can you post your file for me to test?
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 11 May 2018, at 18:23, fauveboy  wrote:
> 
> Would there not just be silence before looping? Also surly ilength is the
> precise size of the sample in seconds?
> 
> 
> 
> --
> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-05-11 18:28
FromVictor Lazzarini
SubjectRe: [Csnd] segmentation fault, flooper 2 not looping?
No, it shouldn’t crash. I can’t make it crash here though.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 11 May 2018, at 18:01, jpff  wrote:
> 
> It crashes for me so what it means is a bug -- csound should not crash
> 
> For those who understand the code....
> 
> (gdb) where
> #0  0x00007ffff7aba7e2 in flooper2_process (csound=, p=0x82e020)
>    at /home/jpff/csound6/Opcodes/sndloop.c:766
> #1  0x00007ffff7931bf1 in kperf_nodebug (csound=0x6044a0)
>    at /home/jpff/csound6/Top/csound.c:1711
> #2  0x00007ffff79333f2 in csoundPerform (csound=csound@entry=0x6044a0)
>    at /home/jpff/csound6/Top/csound.c:2226
> #3  0x00000000004014bf in main (argc=, argv=0x7fffffffdeb8)
>    at /home/jpff/csound6/Frontends/csound/csound_main.c:326
> (gdb) list
> 761             out[0] = 0;
> 762             tndx0 = (uint32) ndx[0];
> 763             frac0 = ndx[0] - tndx0;
> 764             if (ndx[0] < loop_end-crossfade) {
> 765               tndx0 *= nchnls;
> 766               out[0] = amp*(tab[tndx0] + frac0*(tab[tndx0+nchnls] - tab[tndx0]));
> 767               if(onchnls == 2){
> 768                 tndx0 += 1;
> 769                 out[1] = amp*(tab[tndx0] + frac0*(tab[tndx0+nchnls] - tab[tndx0]));
> 770               }
> (gdb) print tndx0
> $1 = 721402
> (gdb) print tab
> $2 = (double *) 0x7fffe1e48020
> 
> with my substituted input sound
> 
> Suggest moving discussions to csound-dev
> 
> On Fri, 11 May 2018, fauveboy wrote:
> 
>> sampler_two.csd
>> 
>> Hi
>> 
>> After previously using table to loop a sample (which was producing to many
>> artifacts) if decided to use flooper2 with is attached here. However,
>> doesn't successfully loop. It reports a segmentation fault. Im not sure what
>> this means, is it possible what is preventing the looping?
>> 
>> Many thanks
>> 
>> 
>> 
>> --
>> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-05-11 18:34
FromVictor Lazzarini
SubjectRe: [Csnd] segmentation fault, flooper 2 not looping?
yes, the loop should be truncated to the table length if > the sound, and it happens here when I use a shorter sound.
I can’t get it to crash. Can you post your file for me to test?
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 11 May 2018, at 18:23, fauveboy  wrote:
> 
> Would there not just be silence before looping? Also surly ilength is the
> precise size of the sample in seconds?
> 
> 
> 
> --
> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-05-11 18:50
Fromfauveboy
SubjectRe: [Csnd] segmentation fault, flooper 2 not looping?
cunahani.aif   
The csd file is in the first post and heres the audio file.

Okay the loopend can be no longer than the table length. However, in the
code I've attached I've got the length of the audio in samples and then
divided that by the sample rate to get the length in seconds. This result
I've then tried to use as the loopend which shouldn't need truncating? and
so should loop?




--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-05-11 19:03
FromVictor Lazzarini
SubjectRe: [Csnd] segmentation fault, flooper 2 not looping?
The loop end can be longer, but it will be kept at the table length. I’ll try your file.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 11 May 2018, at 18:50, fauveboy  wrote:
> 
> cunahani.aif   
> The csd file is in the first post and heres the audio file.
> 
> Okay the loopend can be no longer than the table length. However, in the
> code I've attached I've got the length of the audio in samples and then
> divided that by the sample rate to get the length in seconds. This result
> I've then tried to use as the loopend which shouldn't need truncating? and
> so should loop?
> 
> 
> 
> 
> --
> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-05-11 19:05
FromVictor Lazzarini
SubjectRe: [Csnd] segmentation fault, flooper 2 not looping?
It doesn’t crash here. This is is with the latest Csound on Mac OSX.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 11 May 2018, at 18:50, fauveboy  wrote:
> 
> cunahani.aif   
> The csd file is in the first post and heres the audio file.
> 
> Okay the loopend can be no longer than the table length. However, in the
> code I've attached I've got the length of the audio in samples and then
> divided that by the sample rate to get the length in seconds. This result
> I've then tried to use as the loopend which shouldn't need truncating? and
> so should loop?
> 
> 
> 
> 
> --
> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-05-11 19:08
FromVictor Lazzarini
SubjectRe: [Csnd] segmentation fault, flooper 2 not looping?
actually I managed to make it crash now. Will look.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 11 May 2018, at 18:50, fauveboy  wrote:
> 
> cunahani.aif   
> The csd file is in the first post and heres the audio file.
> 
> Okay the loopend can be no longer than the table length. However, in the
> code I've attached I've got the length of the audio in samples and then
> divided that by the sample rate to get the length in seconds. This result
> I've then tried to use as the loopend which shouldn't need truncating? and
> so should loop?
> 
> 
> 
> 
> --
> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-05-11 19:15
FromVictor Lazzarini
SubjectRe: [Csnd] segmentation fault, flooper 2 not looping?
It seems the crash is to do with the loop > table length.

If you set 

 kloopend	= ilookup/(sr*2)

it works. (table is stereo, so needs to be divided by 2sr)

We’ll fix the crash anyway, but this is what you need.


========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 11 May 2018, at 18:50, fauveboy  wrote:
> 
> cunahani.aif   
> The csd file is in the first post and heres the audio file.
> 
> Okay the loopend can be no longer than the table length. However, in the
> code I've attached I've got the length of the audio in samples and then
> divided that by the sample rate to get the length in seconds. This result
> I've then tried to use as the loopend which shouldn't need truncating? and
> so should loop?
> 
> 
> 
> 
> --
> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here


Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-05-11 19:37
Fromjpff
SubjectRe: [Csnd] segmentation fault, flooper 2 not looping?
I substututed kitchen_test.aiff and it crashes easily...


On Fri, 11 May 2018, Victor Lazzarini wrote:

> yes, the loop should be truncated to the table length if > the sound, and it happens here when I use a shorter sound.
> I can’t get it to crash. Can you post your file for me to test?
> ========================
> Prof. Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 11 May 2018, at 18:23, fauveboy  wrote:
>>
>> Would there not just be silence before looping? Also surly ilength is the
>> precise size of the sample in seconds?
>>
>>
>>
>> --
>> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
>>
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-05-11 19:43
FromVictor Lazzarini
SubjectRe: [Csnd] segmentation fault, flooper 2 not looping?
It’s to do with (1) stereo files (2) loop longer than table duration. I think it’s a fencepost issue; code works correctly with mono files,
so I guess there’s a check that is not corrected for stereo.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 11 May 2018, at 19:38, jpff  wrote:
> 
> I substututed kitchen_test.aiff and it crashes easily...
> 
> 
>> On Fri, 11 May 2018, Victor Lazzarini wrote:
>> 
>> yes, the loop should be truncated to the table length if > the sound, and it happens here when I use a shorter sound.
>> I can’t get it to crash. Can you post your file for me to test?
>> ========================
>> Prof. Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy,
>> Maynooth University,
>> Maynooth, Co Kildare, Ireland
>> Tel: 00 353 7086936
>> Fax: 00 353 1 7086952
>> 
>>> On 11 May 2018, at 18:23, fauveboy  wrote:
>>> 
>>> Would there not just be silence before looping? Also surly ilength is the
>>> precise size of the sample in seconds?
>>> 
>>> 
>>> 
>>> --
>>> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
>>> 
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>      https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>> 
>> 
>> Csound mailing list
>> Csound@listserv.heanet.ie
>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>> Send bugs reports to
>>       https://github.com/csound/csound/issues
>> Discussions of bugs and features can be posted here
>> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>       https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-05-11 19:54
Fromfauveboy
SubjectRe: [Csnd] segmentation fault, flooper 2 not looping?
it works! and that makes as there are two channels to consider. Was this not
what was causing the crash? Is that down to a different issue?



--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-05-11 20:01
FromVictor Lazzarini
SubjectRe: [Csnd] segmentation fault, flooper 2 not looping?
The crash is to do with the loop being longer than the table. The check is not working correctly for stereo files.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 11 May 2018, at 19:54, fauveboy  wrote:
> 
> it works! and that makes as there are two channels to consider. Was this not
> what was causing the crash? Is that down to a different issue?
> 
> 
> 
> --
> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-05-11 21:04
FromVictor Lazzarini
SubjectRe: [Csnd] segmentation fault, flooper 2 not looping?
Fix committed to git. It should not crash in any circumstance now. Will
be in the next release.

For the moment, if you keep your loop end < table size, then you
should be OK. 
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 11 May 2018, at 19:54, fauveboy  wrote:
> 
> it works! and that makes as there are two channels to consider. Was this not
> what was causing the crash? Is that down to a different issue?
> 
> 
> 
> --
> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2018-05-11 23:53
From"Dr. Richard Boulanger"
SubjectRe: [Csnd] segmentation fault, flooper 2 not looping?
excellent. 

_____________________________________________
Dr. Richard Boulanger
Professor of Electronic Production and Design
Professional Writing and Music Technology Division
Berklee College of Music
______________________________________________
President of Boulanger Labs - http://boulangerlabs.com
Author & Editor of The Csound Book - http://mitpress.mit.edu/books/csound-book
Author & Editor of The Audio Programming Book - http://mitpress.mit.edu/books/audio-programming-book
______________________________________________
about: 
http://www.boulangerlabs.com/#about
about: http://www.csounds.com/community/developers/dr-richard-boulanger/
music: http://www.csounds.com/community/developers/dr-richard-boulanger/dr-richard-boulanger-music/

______________________________________________
email: rboulanger@berklee.edu
facebook: https://www.facebook.com/richard.boulanger.58

On Fri, May 11, 2018 at 4:04 PM, Victor Lazzarini <Victor.Lazzarini@mu.ie> wrote:
Fix committed to git. It should not crash in any circumstance now. Will
be in the next release.

For the moment, if you keep your loop end < table size, then you
should be OK.
========================
Prof. Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 11 May 2018, at 19:54, fauveboy <joel.ramsbottom@hotmail.co.uk> wrote:
>
> it works! and that makes as there are two channels to consider. Was this not
> what was causing the crash? Is that down to a different issue?
>
>
>
> --
> Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here