Csound Csound-dev Csound-tekno Search About

[Csnd] OSCsend2 failed

Date2018-10-29 06:41
Fromburton
Subject[Csnd] OSCsend2 failed
hello all,

for visualisation purposes i’m running a permanent “turned_on” instrument
sending OSC streams taken from gk_vars, triggered by a metro at 60Hz. it
works fine. however when the “target" host is offline the performance of the
instrument aborts with the "OSCsend2 failed” message (line 779 of socksend.c
as of today). i understand the UDP protocol emits ECONNREFUSED when it
becomes clear to the IP layer that no device/port is listening, and as such
it’s an error (no point in sending there). 

but given the nature of OSC, could the instrument continue, emitting a
warning instead of aborting in error? the OSC implementations i’m familiar
with tolerate missing LAN destinations, and instantly recover when the
destination appears online.

OR

does the modern csound possess a “try/catch” feature to process such errors
without stopping the performance? or a notification of aborted notes?i
looked around and found nothing but perhaps i’m not using the correct terms.

thanks,
alex.

osc_error.csd
  

PS this is exacerbated with LAN IPs (seems the underlying layers take more
time to decide a host does not exists when packets are routed away). if you
try the test .csd adjust the IP to an address that could be on your LAN.





--
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-10-29 10:49
FromVictor Lazzarini
SubjectRe: [Csnd] OSCsend2 failed
Hi Alex,

we could look into a warning instead of a fail. I think we had not anticipated
the particular situation you have noted.

best
========================
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 29 Oct 2018, at 06:41, burton  wrote:
> 
> hello all,
> 
> for visualisation purposes i’m running a permanent “turned_on” instrument
> sending OSC streams taken from gk_vars, triggered by a metro at 60Hz. it
> works fine. however when the “target" host is offline the performance of the
> instrument aborts with the "OSCsend2 failed” message (line 779 of socksend.c
> as of today). i understand the UDP protocol emits ECONNREFUSED when it
> becomes clear to the IP layer that no device/port is listening, and as such
> it’s an error (no point in sending there). 
> 
> but given the nature of OSC, could the instrument continue, emitting a
> warning instead of aborting in error? the OSC implementations i’m familiar
> with tolerate missing LAN destinations, and instantly recover when the
> destination appears online.
> 
> OR
> 
> does the modern csound possess a “try/catch” feature to process such errors
> without stopping the performance? or a notification of aborted notes?i
> looked around and found nothing but perhaps i’m not using the correct terms.
> 
> thanks,
> alex.
> 
> osc_error.csd
>   
> 
> PS this is exacerbated with LAN IPs (seems the underlying layers take more
> time to decide a host does not exists when packets are routed away). if you
> try the test .csd adjust the IP to an address that could be on your LAN.
> 
> 
> 
> 
> 
> --
> 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-10-29 11:05
FromVictor Lazzarini
SubjectRe: [Csnd] OSCsend2 failed
OK, I’ve made that change to git develop. If you are building your own version, you may try
this and see if it works for you.
========================
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 29 Oct 2018, at 10:49, Victor Lazzarini  wrote:
> 
> Hi Alex,
> 
> we could look into a warning instead of a fail. I think we had not anticipated
> the particular situation you have noted.
> 
> best
> ========================
> 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 29 Oct 2018, at 06:41, burton  wrote:
>> 
>> hello all,
>> 
>> for visualisation purposes i’m running a permanent “turned_on” instrument
>> sending OSC streams taken from gk_vars, triggered by a metro at 60Hz. it
>> works fine. however when the “target" host is offline the performance of the
>> instrument aborts with the "OSCsend2 failed” message (line 779 of socksend.c
>> as of today). i understand the UDP protocol emits ECONNREFUSED when it
>> becomes clear to the IP layer that no device/port is listening, and as such
>> it’s an error (no point in sending there). 
>> 
>> but given the nature of OSC, could the instrument continue, emitting a
>> warning instead of aborting in error? the OSC implementations i’m familiar
>> with tolerate missing LAN destinations, and instantly recover when the
>> destination appears online.
>> 
>> OR
>> 
>> does the modern csound possess a “try/catch” feature to process such errors
>> without stopping the performance? or a notification of aborted notes?i
>> looked around and found nothing but perhaps i’m not using the correct terms.
>> 
>> thanks,
>> alex.
>> 
>> osc_error.csd
>>   
>> 
>> PS this is exacerbated with LAN IPs (seems the underlying layers take more
>> time to decide a host does not exists when packets are routed away). if you
>> try the test .csd adjust the IP to an address that could be on your LAN.
>> 
>> 
>> 
>> 
>> 
>> --
>> 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-10-29 18:39
Fromburton
SubjectRe: [Csnd] OSCsend2 failed
hello!

great; i will be able to test this a bit later (currently set up  with the
6.12-release for a concert this weekend; will return to git afterwards).

thanks,
alex.



--
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-11-11 16:51
Fromburton
SubjectRe: [Csnd] OSCsend2 failed
hello victor;

i just had the opportunity to build beta13 [commit:
e5073d3f22c77c5bfa270d51db31a3266671ef56] and test the updated OSCsend vs
offline hosts; i confirm it now behaves as i would expect. 

two additional comments:

1) it does generate a lot of console warnings... (i'm sending dozens of
streams at 60Hz)... perhaps it could produce a warning only on state
changes? otherwise it can be dealt with -m, albeit silencing everything.

2) if the warning could detail the failing host:port (and optionally the
attempted OSC path) it would be great when dealing with multiple
OSCsend/hosts.

thanks!
alex.



--
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-11-11 19:38
FromVictor Lazzarini
SubjectRe: [Csnd] OSCsend2 failed
Ok, will add these changes.
========================
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 Nov 2018, at 16:51, burton  wrote:
> 
> hello victor;
> 
> i just had the opportunity to build beta13 [commit:
> e5073d3f22c77c5bfa270d51db31a3266671ef56] and test the updated OSCsend vs
> offline hosts; i confirm it now behaves as i would expect. 
> 
> two additional comments:
> 
> 1) it does generate a lot of console warnings... (i'm sending dozens of
> streams at 60Hz)... perhaps it could produce a warning only on state
> changes? otherwise it can be dealt with -m, albeit silencing everything.
> 
> 2) if the warning could detail the failing host:port (and optionally the
> attempted OSC path) it would be great when dealing with multiple
> OSCsend/hosts.
> 
> thanks!
> alex.
> 
> 
> 
> --
> 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-11-16 14:59
FromVictor Lazzarini
SubjectRe: [Csnd] OSCsend2 failed
For the moment, I put the warning on debug mode (-v) only. But I will look at the other alternatives below.
========================
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 Nov 2018, at 16:51, burton  wrote:
> 
> hello victor;
> 
> i just had the opportunity to build beta13 [commit:
> e5073d3f22c77c5bfa270d51db31a3266671ef56] and test the updated OSCsend vs
> offline hosts; i confirm it now behaves as i would expect. 
> 
> two additional comments:
> 
> 1) it does generate a lot of console warnings... (i'm sending dozens of
> streams at 60Hz)... perhaps it could produce a warning only on state
> changes? otherwise it can be dealt with -m, albeit silencing everything.
> 
> 2) if the warning could detail the failing host:port (and optionally the
> attempted OSC path) it would be great when dealing with multiple
> OSCsend/hosts.
> 
> thanks!
> alex.
> 
> 
> 
> --
> 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-11-16 15:09
FromVictor Lazzarini
SubjectRe: [Csnd] OSCsend2 failed
Ok, I managed to do 1) and 2) as requested. Warning is sent on first fail only.
========================
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 16 Nov 2018, at 14:59, Victor Lazzarini  wrote:
> 
> For the moment, I put the warning on debug mode (-v) only. But I will look at the other alternatives below.
> ========================
> 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 Nov 2018, at 16:51, burton  wrote:
>> 
>> hello victor;
>> 
>> i just had the opportunity to build beta13 [commit:
>> e5073d3f22c77c5bfa270d51db31a3266671ef56] and test the updated OSCsend vs
>> offline hosts; i confirm it now behaves as i would expect. 
>> 
>> two additional comments:
>> 
>> 1) it does generate a lot of console warnings... (i'm sending dozens of
>> streams at 60Hz)... perhaps it could produce a warning only on state
>> changes? otherwise it can be dealt with -m, albeit silencing everything.
>> 
>> 2) if the warning could detail the failing host:port (and optionally the
>> attempted OSC path) it would be great when dealing with multiple
>> OSCsend/hosts.
>> 
>> thanks!
>> alex.
>> 
>> 
>> 
>> --
>> 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