Csound Csound-dev Csound-tekno Search About

[Csound] jacko opcodes manual example segfaults on linux

Date2015-10-12 11:15
FromAnders Genell
Subject[Csound] jacko opcodes manual example segfaults on linux
Dear list!

I just tried the jacko.csd csound manual example on linux (lubuntu 14.04 64-bit) and had it segfaulting on me.
I suppose it might have to do with my alsa setup, but before I start digging into that I just wanted to see if anyone else get the same results?

Regards,
Anders

$ csound jacko.csd 
virtual_keyboard real time MIDI plugin for Csound
WARNING: STK opodes not available: define environment variable RAWWAVE_PATH
(points to rawwaves directory) to use STK opcodes.
0dBFS level = 32768.0
Csound version 6.05 (double samples) Aug 19 2015
libsndfile-1.0.25
UnifiedCSD:  jacko.csd
STARTING FILE
Creating options
Creating orchestra
Creating score
rtaudio: ALSA module enabled
WARNING: STK opodes not available: define environment variable RAWWAVE_PATH
(points to rawwaves directory) to use STK opcodes.
instr jackin uses instrument number 2
Elapsed time at end of orchestra compile: real: 0.003s, CPU: 0.003s
sorting score ...
... done
Elapsed time at end of score sort: real: 0.003s, CPU: 0.003s
--Csound version 6.05 (double samples) Aug 19 2015
midi channel 1 using instr 1
midi channel 2 using instr 2
midi channel 3 using instr 1
midi channel 4 using instr 1
midi channel 5 using instr 1
midi channel 6 using instr 1
midi channel 7 using instr 1
midi channel 8 using instr 1
midi channel 9 using instr 1
midi channel 10 using instr 1
midi channel 11 using instr 1
midi channel 12 using instr 1
midi channel 13 using instr 1
midi channel 14 using instr 1
midi channel 15 using instr 1
midi channel 16 using instr 1
graphics suppressed, ascii substituted
0dBFS level = 1.0
Created Jack client "csound" for Jack server "default".
Activated Jack client "csound".
Created Jack port "csound:leftin".

csound command: Segmentation fault
inactive allocs returned to freespace
end of score.   overall amps:      0        0  
0 errors in performance
Elapsed time at end of performance: real: 0.333s, CPU: 0.084s

csound command: Segmentation fault
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

Date2015-10-12 11:35
FromVictor Lazzarini
SubjectRe: [Csound] jacko opcodes manual example segfaults on linux
it does segfault here on OSX too.
========================
Dr 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 12 Oct 2015, at 11:15, Anders Genell  wrote:
> 
> Dear list!
> 
> I just tried the jacko.csd csound manual example on linux (lubuntu 14.04 64-bit) and had it segfaulting on me.
> I suppose it might have to do with my alsa setup, but before I start digging into that I just wanted to see if anyone else get the same results?
> 
> Regards,
> Anders
> 
> $ csound jacko.csd 
> virtual_keyboard real time MIDI plugin for Csound
> WARNING: STK opodes not available: define environment variable RAWWAVE_PATH
> (points to rawwaves directory) to use STK opcodes.
> 0dBFS level = 32768.0
> Csound version 6.05 (double samples) Aug 19 2015
> libsndfile-1.0.25
> UnifiedCSD:  jacko.csd
> STARTING FILE
> Creating options
> Creating orchestra
> Creating score
> rtaudio: ALSA module enabled
> WARNING: STK opodes not available: define environment variable RAWWAVE_PATH
> (points to rawwaves directory) to use STK opcodes.
> instr jackin uses instrument number 2
> Elapsed time at end of orchestra compile: real: 0.003s, CPU: 0.003s
> sorting score ...
> 	... done
> Elapsed time at end of score sort: real: 0.003s, CPU: 0.003s
> --Csound version 6.05 (double samples) Aug 19 2015
> midi channel 1 using instr 1
> midi channel 2 using instr 2
> midi channel 3 using instr 1
> midi channel 4 using instr 1
> midi channel 5 using instr 1
> midi channel 6 using instr 1
> midi channel 7 using instr 1
> midi channel 8 using instr 1
> midi channel 9 using instr 1
> midi channel 10 using instr 1
> midi channel 11 using instr 1
> midi channel 12 using instr 1
> midi channel 13 using instr 1
> midi channel 14 using instr 1
> midi channel 15 using instr 1
> midi channel 16 using instr 1
> graphics suppressed, ascii substituted
> 0dBFS level = 1.0
> Created Jack client "csound" for Jack server "default".
> Activated Jack client "csound".
> Created Jack port "csound:leftin".
> 
> csound command: Segmentation fault
> inactive allocs returned to freespace
> end of score.		   overall amps:      0        0  
> 0 errors in performance
> Elapsed time at end of performance: real: 0.333s, CPU: 0.084s
> 
> csound command: Segmentation fault
> 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

Date2015-10-12 11:36
FromAnders Genell
SubjectRe: [Csound] jacko opcodes manual example segfaults on linux
Thanks! While that is unfortunate, it is at least not my fault :-)

Regards,
Anders

On Mon, Oct 12, 2015 at 12:35 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
it does segfault here on OSX too.
========================
Dr 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 12 Oct 2015, at 11:15, Anders Genell <anders.genell@gmail.com> wrote:
>
> Dear list!
>
> I just tried the jacko.csd csound manual example on linux (lubuntu 14.04 64-bit) and had it segfaulting on me.
> I suppose it might have to do with my alsa setup, but before I start digging into that I just wanted to see if anyone else get the same results?
>
> Regards,
> Anders
>
> $ csound jacko.csd
> virtual_keyboard real time MIDI plugin for Csound
> WARNING: STK opodes not available: define environment variable RAWWAVE_PATH
> (points to rawwaves directory) to use STK opcodes.
> 0dBFS level = 32768.0
> Csound version 6.05 (double samples) Aug 19 2015
> libsndfile-1.0.25
> UnifiedCSD:  jacko.csd
> STARTING FILE
> Creating options
> Creating orchestra
> Creating score
> rtaudio: ALSA module enabled
> WARNING: STK opodes not available: define environment variable RAWWAVE_PATH
> (points to rawwaves directory) to use STK opcodes.
> instr jackin uses instrument number 2
> Elapsed time at end of orchestra compile: real: 0.003s, CPU: 0.003s
> sorting score ...
>       ... done
> Elapsed time at end of score sort: real: 0.003s, CPU: 0.003s
> --Csound version 6.05 (double samples) Aug 19 2015
> midi channel 1 using instr 1
> midi channel 2 using instr 2
> midi channel 3 using instr 1
> midi channel 4 using instr 1
> midi channel 5 using instr 1
> midi channel 6 using instr 1
> midi channel 7 using instr 1
> midi channel 8 using instr 1
> midi channel 9 using instr 1
> midi channel 10 using instr 1
> midi channel 11 using instr 1
> midi channel 12 using instr 1
> midi channel 13 using instr 1
> midi channel 14 using instr 1
> midi channel 15 using instr 1
> midi channel 16 using instr 1
> graphics suppressed, ascii substituted
> 0dBFS level = 1.0
> Created Jack client "csound" for Jack server "default".
> Activated Jack client "csound".
> Created Jack port "csound:leftin".
>
> csound command: Segmentation fault
> inactive allocs returned to freespace
> end of score.            overall amps:      0        0
> 0 errors in performance
> Elapsed time at end of performance: real: 0.333s, CPU: 0.084s
>
> csound command: Segmentation fault
> 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

Date2015-10-12 11:41
From"F. Silvain"
SubjectRe: [Csound] jacko opcodes manual example segfaults on linux
Hey hey anders,
here on Linux it segfaults as well. But I think I might have to reset the 
buffersize. I did manage to run the Jacko opcodes a couple of times here.

Ta-ta
----
Ffanci
* Homepage: https://freeshell.de/~silvain
* Twitter:  http://twitter.com/ffanci_silvain
* GitHub:   https://github.com/fsilvain

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

Date2015-10-12 12:38
FromAnders Genell
SubjectRe: [Csound] jacko opcodes manual example segfaults on linux
I did set my jack buffers to 128 as requred, otherwise csound wouldn't even get as far as the segfault. There was a very helpful error message when running the csd telling me that the buffer size was off. But when I set it correctly, that was when the segfault occured. I'm on csound 6.05 from the develop branch, built on the 19th of august, so maybe something has changed in recent code that broke the use of jacko opcodes...
Thanks for letting me know anyway!

Regards,
Anders

On Mon, Oct 12, 2015 at 12:41 PM, F. Silvain <silvain@freeshell.de> wrote:
Hey hey anders,
here on Linux it segfaults as well. But I think I might have to reset the buffersize. I did manage to run the Jacko opcodes a couple of times here.

Ta-ta
----
Ffanci
* Homepage: https://freeshell.de/~silvain
* Twitter:  http://twitter.com/ffanci_silvain
* GitHub:   https://github.com/fsilvain


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

Date2015-10-12 19:28
FromGuillermo Senna
SubjectRe: [Csound] jacko opcodes manual example segfaults on linux
It doesn't segfault here in Linux with Csound 6.06, but results are: a 33 seconds recording of pure silence, no live output(compilation time of jacko.csd is performed in less than a second) and also I have to restart the jack server so that it can be used by another client. The midi and audio connections work as expected though.

On 12/10/15 08:38, Anders Genell wrote:
I did set my jack buffers to 128 as requred, otherwise csound wouldn't even get as far as the segfault. There was a very helpful error message when running the csd telling me that the buffer size was off. But when I set it correctly, that was when the segfault occured. I'm on csound 6.05 from the develop branch, built on the 19th of august, so maybe something has changed in recent code that broke the use of jacko opcodes...
Thanks for letting me know anyway!

Regards,
Anders

On Mon, Oct 12, 2015 at 12:41 PM, F. Silvain <silvain@freeshell.de> wrote:
Hey hey anders,
here on Linux it segfaults as well. But I think I might have to reset the buffersize. I did manage to run the Jacko opcodes a couple of times here.

Ta-ta
----
Ffanci
* Homepage: https://freeshell.de/~silvain
* Twitter:  http://twitter.com/ffanci_silvain
* GitHub:   https://github.com/fsilvain


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


Date2015-10-12 19:52
FromVictor Lazzarini
SubjectRe: [Csound] jacko opcodes manual example segfaults on linux
I think it is meant to run aeolus and record it

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

On 12 Oct 2015, at 19:28, Guillermo Senna <gsenna@GMAIL.COM> wrote:

It doesn't segfault here in Linux with Csound 6.06, but results are: a 33 seconds recording of pure silence, no live output(compilation time of jacko.csd is performed in less than a second) and also I have to restart the jack server so that it can be used by another client. The midi and audio connections work as expected though.

On 12/10/15 08:38, Anders Genell wrote:
I did set my jack buffers to 128 as requred, otherwise csound wouldn't even get as far as the segfault. There was a very helpful error message when running the csd telling me that the buffer size was off. But when I set it correctly, that was when the segfault occured. I'm on csound 6.05 from the develop branch, built on the 19th of august, so maybe something has changed in recent code that broke the use of jacko opcodes...
Thanks for letting me know anyway!

Regards,
Anders

On Mon, Oct 12, 2015 at 12:41 PM, F. Silvain <silvain@freeshell.de> wrote:
Hey hey anders,
here on Linux it segfaults as well. But I think I might have to reset the buffersize. I did manage to run the Jacko opcodes a couple of times here.

Ta-ta
----
Ffanci
* Homepage: https://freeshell.de/~silvain
* Twitter:  http://twitter.com/ffanci_silvain
* GitHub:   https://github.com/fsilvain


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

Date2015-10-12 19:56
FromAnders Genell
SubjectRe: [Csound] jacko opcodes manual example segfaults on linux
I created a ticket anyway, if the error is in my end it can be closed immediately.

Regards,
Anders

On Mon, Oct 12, 2015 at 8:52 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
I think it is meant to run aeolus and record it

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

On 12 Oct 2015, at 19:28, Guillermo Senna <gsenna@GMAIL.COM> wrote:

It doesn't segfault here in Linux with Csound 6.06, but results are: a 33 seconds recording of pure silence, no live output(compilation time of jacko.csd is performed in less than a second) and also I have to restart the jack server so that it can be used by another client. The midi and audio connections work as expected though.

On 12/10/15 08:38, Anders Genell wrote:
I did set my jack buffers to 128 as requred, otherwise csound wouldn't even get as far as the segfault. There was a very helpful error message when running the csd telling me that the buffer size was off. But when I set it correctly, that was when the segfault occured. I'm on csound 6.05 from the develop branch, built on the 19th of august, so maybe something has changed in recent code that broke the use of jacko opcodes...
Thanks for letting me know anyway!

Regards,
Anders

On Mon, Oct 12, 2015 at 12:41 PM, F. Silvain <silvain@freeshell.de> wrote:
Hey hey anders,
here on Linux it segfaults as well. But I think I might have to reset the buffersize. I did manage to run the Jacko opcodes a couple of times here.

Ta-ta
----
Ffanci
* Homepage: https://freeshell.de/~silvain
* Twitter:  http://twitter.com/ffanci_silvain
* GitHub:   https://github.com/fsilvain


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

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

Date2015-10-12 20:30
FromVictor Lazzarini
SubjectRe: [Csound] jacko opcodes manual example segfaults on linux
No, even if it were user error, it should not segfault

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

On 12 Oct 2015, at 19:56, Anders Genell <anders.genell@GMAIL.COM> wrote:

I created a ticket anyway, if the error is in my end it can be closed immediately.

Regards,
Anders

On Mon, Oct 12, 2015 at 8:52 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
I think it is meant to run aeolus and record it

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

On 12 Oct 2015, at 19:28, Guillermo Senna <gsenna@GMAIL.COM> wrote:

It doesn't segfault here in Linux with Csound 6.06, but results are: a 33 seconds recording of pure silence, no live output(compilation time of jacko.csd is performed in less than a second) and also I have to restart the jack server so that it can be used by another client. The midi and audio connections work as expected though.

On 12/10/15 08:38, Anders Genell wrote:
I did set my jack buffers to 128 as requred, otherwise csound wouldn't even get as far as the segfault. There was a very helpful error message when running the csd telling me that the buffer size was off. But when I set it correctly, that was when the segfault occured. I'm on csound 6.05 from the develop branch, built on the 19th of august, so maybe something has changed in recent code that broke the use of jacko opcodes...
Thanks for letting me know anyway!

Regards,
Anders

On Mon, Oct 12, 2015 at 12:41 PM, F. Silvain <silvain@freeshell.de> wrote:
Hey hey anders,
here on Linux it segfaults as well. But I think I might have to reset the buffersize. I did manage to run the Jacko opcodes a couple of times here.

Ta-ta
----
Ffanci
* Homepage: https://freeshell.de/~silvain
* Twitter:  http://twitter.com/ffanci_silvain
* GitHub:   https://github.com/fsilvain


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

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

Date2015-10-12 21:19
FromMichael Gogins
SubjectRe: [Csound] jacko opcodes manual example segfaults on linux

It is meant for that and also other purposes. You may have to fiddle with connection setup and buffer sizes.

Regards,
Mike

On Oct 12, 2015 2:52 PM, "Victor Lazzarini" <Victor.Lazzarini@nuim.ie> wrote:
I think it is meant to run aeolus and record it

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

On 12 Oct 2015, at 19:28, Guillermo Senna <gsenna@GMAIL.COM> wrote:

It doesn't segfault here in Linux with Csound 6.06, but results are: a 33 seconds recording of pure silence, no live output(compilation time of jacko.csd is performed in less than a second) and also I have to restart the jack server so that it can be used by another client. The midi and audio connections work as expected though.

On 12/10/15 08:38, Anders Genell wrote:
I did set my jack buffers to 128 as requred, otherwise csound wouldn't even get as far as the segfault. There was a very helpful error message when running the csd telling me that the buffer size was off. But when I set it correctly, that was when the segfault occured. I'm on csound 6.05 from the develop branch, built on the 19th of august, so maybe something has changed in recent code that broke the use of jacko opcodes...
Thanks for letting me know anyway!

Regards,
Anders

On Mon, Oct 12, 2015 at 12:41 PM, F. Silvain <silvain@freeshell.de> wrote:
Hey hey anders,
here on Linux it segfaults as well. But I think I might have to reset the buffersize. I did manage to run the Jacko opcodes a couple of times here.

Ta-ta
----
Ffanci
* Homepage: https://freeshell.de/~silvain
* Twitter:  http://twitter.com/ffanci_silvain
* GitHub:   https://github.com/fsilvain


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
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

Date2015-10-12 21:33
FromVictor Lazzarini
SubjectRe: [Csound] jacko opcodes manual example segfaults on linux
AttachmentsNone