Csound Csound-dev Csound-tekno Search About

[Csnd] error in rtjack.c?

Date2013-07-14 08:09
FromTarmo Johannes
Subject[Csnd] error in rtjack.c?

Hi,

 

testing CsoundQt with csound6 (and it works well!) I got a segmentation fault when I tried to choose a input device of jack. The traceback led me to line

 

rtjack.c:1033

 

sprintf("%s%s", isOutput ? "dac:" : "adc:",

list[cnt].device_id, port);

 

It has two variable places in the format string, but three variables as parameters?

 

greetings,

tarmo


Date2013-07-14 09:44
FromVictor Lazzarini
SubjectRe: [Csnd] error in rtjack.c?
Changed in GIT, could you tell me whether it's fixed?
On 14 Jul 2013, at 08:09, Tarmo Johannes wrote:

Hi,

 

testing CsoundQt with csound6 (and it works well!) I got a segmentation fault when I tried to choose a input device of jack. The traceback led me to line

 

rtjack.c:1033

 

sprintf("%s%s", isOutput ? "dac:" : "adc:",
list[cnt].device_id, port);

 

It has two variable places in the format string, but three variables as parameters?

 

greetings,
tarmo

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




Date2013-07-14 13:56
FromTarmo Johannes
SubjectRe: [Csnd] error in rtjack.c?

Thanks!

 

it crashes still, casused by

 

 

 

sprintf("%s%s%s", isOutput ? "dac:" : "adc:",

list[cnt].device_id, port);

 

shouldn't sprintf have the fisrt parameter the destination string, where the result is copied?

 

There was no this problem some weeks ago when all clients active in jack were listed properly. Probably some editing mishap.

 

greetings,

tarmo

 

 

I am not sure how much I can use computer in the coming days but try to be ready for testing and will provide more information, when necessary.

 

t

 

On Sunday 14 July 2013 09:44:50 Victor Lazzarini wrote:

Changed in GIT, could you tell me whether it's fixed?

On 14 Jul 2013, at 08:09, Tarmo Johannes wrote:

 

 

Hi,

 

testing CsoundQt with csound6 (and it works well!) I got a segmentation fault when I tried to choose a input device of jack. The traceback led me to line

 

rtjack.c:1033

 

sprintf("%s%s", isOutput ? "dac:" : "adc:",

list[cnt].device_id, port);

 

It has two variable places in the format string, but three variables as parameters?

 

greetings,

tarmo


Dr Victor Lazzarini

Senior Lecturer

Dept. of Music

NUI Maynooth Ireland

tel.: +353 1 708 3545

Victor dot Lazzarini AT nuim dot ie







Date2013-07-14 15:44
FromVictor Lazzarini
SubjectRe: [Csnd] error in rtjack.c?
OK, I've fixed and tested this. In GIT now.
On 14 Jul 2013, at 13:56, Tarmo Johannes wrote:

Thanks!

 

it crashes still, casused by

 

 

 

sprintf("%s%s%s", isOutput ? "dac:" : "adc:",
list[cnt].device_id, port);

 

shouldn't sprintf have the fisrt parameter the destination string, where the result is copied?

 

There was no this problem some weeks ago when all clients active in jack were listed properly. Probably some editing mishap.

 

greetings,
tarmo

 

 

I am not sure how much I can use computer in the coming days but try to be ready for testing and will provide more information, when necessary.

 

t

 

On Sunday 14 July 2013 09:44:50 Victor Lazzarini wrote:

Changed in GIT, could you tell me whether it's fixed?

On 14 Jul 2013, at 08:09, Tarmo Johannes wrote:

 

 

Hi,

 

testing CsoundQt with csound6 (and it works well!) I got a segmentation fault when I tried to choose a input device of jack. The traceback led me to line

 

rtjack.c:1033

 

sprintf("%s%s", isOutput ? "dac:" : "adc:",
list[cnt].device_id, port);

 

It has two variable places in the format string, but three variables as parameters?

 

greetings,
tarmo

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






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




Date2013-07-24 01:40
FromTarmo Johannes
SubjectRe: [Csnd] error in rtjack.c?

Yes,

 

thank you, I could test it now after some break and CsoundQt (compiled against cs6) list the jack devices correctly now.

 

best!

tarmo

 

On Sunday 14 July 2013 15:44:15 Victor Lazzarini wrote:

OK, I've fixed and tested this. In GIT now.

On 14 Jul 2013, at 13:56, Tarmo Johannes wrote:

Thanks!

 

it crashes still, casused by

 

 

 

sprintf("%s%s%s", isOutput ? "dac:" : "adc:",

list[cnt].device_id, port);

 

shouldn't sprintf have the fisrt parameter the destination string, where the result is copied?

 

There was no this problem some weeks ago when all clients active in jack were listed properly. Probably some editing mishap.

 

greetings,

tarmo

 

 

I am not sure how much I can use computer in the coming days but try to be ready for testing and will provide more information, when necessary.

 

t

 

On Sunday 14 July 2013 09:44:50 Victor Lazzarini wrote:

Changed in GIT, could you tell me whether it's fixed?

On 14 Jul 2013, at 08:09, Tarmo Johannes wrote:

 

 

Hi,

 

testing CsoundQt with csound6 (and it works well!) I got a segmentation fault when I tried to choose a input device of jack. The traceback led me to line

 

rtjack.c:1033

 

sprintf("%s%s", isOutput ? "dac:" : "adc:",

list[cnt].device_id, port);

 

It has two variable places in the format string, but three variables as parameters?

 

greetings,

tarmo


Dr Victor Lazzarini

Senior Lecturer

Dept. of Music

NUI Maynooth Ireland

tel.: +353 1 708 3545

Victor dot Lazzarini AT nuim dot ie







Dr Victor Lazzarini

Senior Lecturer

Dept. of Music

NUI Maynooth Ireland

tel.: +353 1 708 3545

Victor dot Lazzarini AT nuim dot ie