Csound Csound-dev Csound-tekno Search About

[Csnd] OSCbundle problems

Date2025-02-17 13:34
FromMaximilian Marcoll
Subject[Csnd] OSCbundle problems
Attachmentssmime.p7s  
Hi everyone!

I ran into a problem with OSCbundle today, that I hope someone can shed some light on.

My orc is sending  ~500 OSC-messages per second (all floats).
Although it seems to be running ok, I thought I could make the patch more efficient by using OSCbundle instead of sending ~500 individual OSC-messages. 
(They should come in packs of 14 messages at a time anyway.)

Alas, my new hyper-bundled mega-efficient super-instrument now runs for approx. 80 seconds
before apparently hitting road blocks:

INIT ERROR in instr 23 (opcode OSCbundle) line 59: creating socket

As of a certain moment, the instrument just refuses to continue and creates these “creating socket” -Errors instead.

I tried increasing the maximum package size to 2^24 just in case, but to no avail.
The values in the arrays are identical to the ones I’m sending individually.

Any ideas why OSCbundle wouldn't be able to continue?

Thank you,

Max



________________________________

Prof. Maximilian Marcoll
Studio Director
Studio for Electroacoustic Music (SEAM)
University of Music Franz Liszt Weimar
Bauhaus University Weimar













Date2025-02-17 13:54
FromVictor Lazzarini <000010b17ddd988e-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] [EXTERNAL] [Csnd] OSCbundle problems
I see that there is no deinit code for OSCbundle (as there is for OSCsend), maybe there are too many
open sockets? I can add a deinit to Csound 7.0 if you want to try it (Csound 6.x is EOL).

========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 17 Feb 2025, at 13:34, Maximilian Marcoll  wrote:
> 
> Hi everyone!
> 
> I ran into a problem with OSCbundle today, that I hope someone can shed some light on.
> 
> My orc is sending  ~500 OSC-messages per second (all floats).
> Although it seems to be running ok, I thought I could make the patch more efficient by using OSCbundle instead of sending ~500 individual OSC-messages. 
> (They should come in packs of 14 messages at a time anyway.)
> 
> Alas, my new hyper-bundled mega-efficient super-instrument now runs for approx. 80 seconds
> before apparently hitting road blocks:
> 
> INIT ERROR in instr 23 (opcode OSCbundle) line 59: creating socket
> 
> As of a certain moment, the instrument just refuses to continue and creates these “creating socket” -Errors instead.
> 
> I tried increasing the maximum package size to 2^24 just in case, but to no avail.
> The values in the arrays are identical to the ones I’m sending individually.
> 
> Any ideas why OSCbundle wouldn't be able to continue?
> 
> Thank you,
> 
> Max
> 
> 
> 
> ________________________________
> 
> Prof. Maximilian Marcoll
> Studio Director
> Studio for Electroacoustic Music (SEAM)
> University of Music Franz Liszt Weimar
> Bauhaus University Weimar
> 
> http://seam.hfm-weimar.de/
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 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

Date2025-02-17 14:58
FromMaximilian Marcoll
SubjectRe: [Csnd] [EXTERNAL] [Csnd] OSCbundle problems
Attachmentssmime.p7s  
That would be great, thanks!!
M

________________________________

Prof. Maximilian Marcoll
Studio Director
Studio for Electroacoustic Music (SEAM)
University of Music Franz Liszt Weimar
Bauhaus University Weimar




On 17. Feb 2025, at 14:54, Victor Lazzarini <000010b17ddd988e-dmarc-request@LISTSERV.HEANET.IE> wrote:

I see that there is no deinit code for OSCbundle (as there is for OSCsend), maybe there are too many
open sockets? I can add a deinit to Csound 7.0 if you want to try it (Csound 6.x is EOL).

========================
Prof. Victor Lazzarini
Maynooth University
Ireland

On 17 Feb 2025, at 13:34, Maximilian Marcoll <maximilian.marcoll@HFM-WEIMAR.DE> wrote:

Hi everyone!

I ran into a problem with OSCbundle today, that I hope someone can shed some light on.

My orc is sending  ~500 OSC-messages per second (all floats).
Although it seems to be running ok, I thought I could make the patch more efficient by using OSCbundle instead of sending ~500 individual OSC-messages.
(They should come in packs of 14 messages at a time anyway.)

Alas, my new hyper-bundled mega-efficient super-instrument now runs for approx. 80 seconds
before apparently hitting road blocks:

INIT ERROR in instr 23 (opcode OSCbundle) line 59: creating socket

As of a certain moment, the instrument just refuses to continue and creates these “creating socket” -Errors instead.

I tried increasing the maximum package size to 2^24 just in case, but to no avail.
The values in the arrays are identical to the ones I’m sending individually.

Any ideas why OSCbundle wouldn't be able to continue?

Thank you,

Max



________________________________

Prof. Maximilian Marcoll
Studio Director
Studio for Electroacoustic Music (SEAM)
University of Music Franz Liszt Weimar
Bauhaus University Weimar

http://seam.hfm-weimar.de/











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


Date2025-02-17 15:09
FromVictor Lazzarini <000010b17ddd988e-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] [EXTERNAL] [Csnd] OSCbundle problems
There's a PR now, you can build from the branch and test it.


Prof. Victor Lazzarini
Maynooth University
Ireland

On 17 Feb 2025, at 14:58, Maximilian Marcoll <maximilian.marcoll@hfm-weimar.de> wrote:

That would be great, thanks!!
M

________________________________

Prof. Maximilian Marcoll
Studio Director
Studio for Electroacoustic Music (SEAM)
University of Music Franz Liszt Weimar
Bauhaus University Weimar




On 17. Feb 2025, at 14:54, Victor Lazzarini <000010b17ddd988e-dmarc-request@LISTSERV.HEANET.IE> wrote:

I see that there is no deinit code for OSCbundle (as there is for OSCsend), maybe there are too many
open sockets? I can add a deinit to Csound 7.0 if you want to try it (Csound 6.x is EOL).

========================
Prof. Victor Lazzarini
Maynooth University
Ireland

On 17 Feb 2025, at 13:34, Maximilian Marcoll <maximilian.marcoll@HFM-WEIMAR.DE> wrote:

Hi everyone!

I ran into a problem with OSCbundle today, that I hope someone can shed some light on.

My orc is sending  ~500 OSC-messages per second (all floats).
Although it seems to be running ok, I thought I could make the patch more efficient by using OSCbundle instead of sending ~500 individual OSC-messages.
(They should come in packs of 14 messages at a time anyway.)

Alas, my new hyper-bundled mega-efficient super-instrument now runs for approx. 80 seconds
before apparently hitting road blocks:

INIT ERROR in instr 23 (opcode OSCbundle) line 59: creating socket

As of a certain moment, the instrument just refuses to continue and creates these “creating socket” -Errors instead.

I tried increasing the maximum package size to 2^24 just in case, but to no avail.
The values in the arrays are identical to the ones I’m sending individually.

Any ideas why OSCbundle wouldn't be able to continue?

Thank you,

Max



________________________________

Prof. Maximilian Marcoll
Studio Director
Studio for Electroacoustic Music (SEAM)
University of Music Franz Liszt Weimar
Bauhaus University Weimar

http://seam.hfm-weimar.de/











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

Date2025-02-19 11:34
FromMaximilian Marcoll
SubjectRe: [Csnd] [EXTERNAL] [Csnd] OSCbundle problems
Attachmentssmime.p7s  
This seems to be working now! Thanks a lot!


BTW, when building from the sources on Mac OS, I have to manually copy the CsoundLib64.framework to /LibraryFrameworks/ 
csound doesn’t find it in /usr/local/

I’m sure there is an obvious mistake I’m overlooking rn, can someone maybe point me in the right direction?

thx

M
______________________________
http://www.marcoll.de


subscribe to newsletter


On 17. Feb 2025, at 16:09, Victor Lazzarini <000010b17ddd988e-dmarc-request@LISTSERV.HEANET.IE> wrote:

There's a PR now, you can build from the branch and test it.


Prof. Victor Lazzarini
Maynooth University
Ireland

On 17 Feb 2025, at 14:58, Maximilian Marcoll <maximilian.marcoll@hfm-weimar.de> wrote:

That would be great, thanks!!
M

________________________________

Prof. Maximilian Marcoll
Studio Director
Studio for Electroacoustic Music (SEAM)
University of Music Franz Liszt Weimar
Bauhaus University Weimar




On 17. Feb 2025, at 14:54, Victor Lazzarini <000010b17ddd988e-dmarc-request@LISTSERV.HEANET.IE> wrote:

I see that there is no deinit code for OSCbundle (as there is for OSCsend), maybe there are too many
open sockets? I can add a deinit to Csound 7.0 if you want to try it (Csound 6.x is EOL).

========================
Prof. Victor Lazzarini
Maynooth University
Ireland

On 17 Feb 2025, at 13:34, Maximilian Marcoll <maximilian.marcoll@HFM-WEIMAR.DE> wrote:

Hi everyone!

I ran into a problem with OSCbundle today, that I hope someone can shed some light on.

My orc is sending  ~500 OSC-messages per second (all floats).
Although it seems to be running ok, I thought I could make the patch more efficient by using OSCbundle instead of sending ~500 individual OSC-messages.
(They should come in packs of 14 messages at a time anyway.)

Alas, my new hyper-bundled mega-efficient super-instrument now runs for approx. 80 seconds
before apparently hitting road blocks:

INIT ERROR in instr 23 (opcode OSCbundle) line 59: creating socket

As of a certain moment, the instrument just refuses to continue and creates these “creating socket” -Errors instead.

I tried increasing the maximum package size to 2^24 just in case, but to no avail.
The values in the arrays are identical to the ones I’m sending individually.

Any ideas why OSCbundle wouldn't be able to continue?

Thank you,

Max



________________________________

Prof. Maximilian Marcoll
Studio Director
Studio for Electroacoustic Music (SEAM)
University of Music Franz Liszt Weimar
Bauhaus University Weimar

http://seam.hfm-weimar.de/











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




________________________________

Prof. Maximilian Marcoll
Studio Director
Studio for Electroacoustic Music (SEAM)
University of Music Franz Liszt Weimar
Bauhaus University Weimar













Date2025-02-19 12:50
FromVictor Lazzarini <000010b17ddd988e-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] [EXTERNAL] [Csnd] OSCbundle problems
I am not sure of your setup, but when building it here, I have in my Custom.cmake

set(CMAKE_INSTALL_PREFIX "$ENV{HOME}")

so my binaries are installed in ~/bin . The framework is installed by default
in ~/Library/Frameworks/ (but this can be changed by a CMake setting).  

That works correctly because CMake add the RPATH correctly


% otool -l ~/bin/csound

…

Load command 23
          cmd LC_RPATH
      cmdsize 48
         path /Users/victor/Library/Frameworks (offset 12)


and the bin has the CsoundLib64 linked in the rpath

 otool -L ~/bin/csound
...
@rpath/CsoundLib64.framework/Versions/7.0/CsoundLib64 (compatibility version 7.0.0, current version 0.0.0)
...

The reason I set it to install at $HOME is because then I don’t need to use sudo and deal with permissions.
I find it very handy.
========================
Prof. Victor Lazzarini
Maynooth University
Ireland

> On 19 Feb 2025, at 11:34, Maximilian Marcoll  wrote:
> 
> This seems to be working now! Thanks a lot!
> 
> 
> BTW, when building from the sources on Mac OS, I have to manually copy the CsoundLib64.framework to /LibraryFrameworks/ 
> csound doesn’t find it in /usr/local/
> 
> I’m sure there is an obvious mistake I’m overlooking rn, can someone maybe point me in the right direction?
> 
> thx
> 
> M
> ______________________________
> http://www.marcoll.de
> 
> 
> subscribe to newsletter
> 
> 
>> On 17. Feb 2025, at 16:09, Victor Lazzarini <000010b17ddd988e-dmarc-request@LISTSERV.HEANET.IE> wrote:
>> 
>> There's a PR now, you can build from the branch and test it.
>> 
>> https://github.com/csound/csound/pull/2100
>> 
>> Prof. Victor Lazzarini 
>> Maynooth University
>> Ireland
>> 
>>> On 17 Feb 2025, at 14:58, Maximilian Marcoll  wrote:
>>> 
>>> That would be great, thanks!! 
>>> M
>>> 
>>> ________________________________
>>> 
>>> Prof. Maximilian Marcoll
>>> Studio Director
>>> Studio for Electroacoustic Music (SEAM)
>>> University of Music Franz Liszt Weimar
>>> Bauhaus University Weimar
>>> 
>>> http://seam.hfm-weimar.de/
>>> 
>>> 
>>> 
>>>> On 17. Feb 2025, at 14:54, Victor Lazzarini <000010b17ddd988e-dmarc-request@LISTSERV.HEANET.IE> wrote:
>>>> 
>>>> I see that there is no deinit code for OSCbundle (as there is for OSCsend), maybe there are too many
>>>> open sockets? I can add a deinit to Csound 7.0 if you want to try it (Csound 6.x is EOL).
>>>> 
>>>> ========================
>>>> Prof. Victor Lazzarini
>>>> Maynooth University
>>>> Ireland
>>>> 
>>>>> On 17 Feb 2025, at 13:34, Maximilian Marcoll  wrote:
>>>>> 
>>>>> Hi everyone!
>>>>> 
>>>>> I ran into a problem with OSCbundle today, that I hope someone can shed some light on.
>>>>> 
>>>>> My orc is sending  ~500 OSC-messages per second (all floats).
>>>>> Although it seems to be running ok, I thought I could make the patch more efficient by using OSCbundle instead of sending ~500 individual OSC-messages. 
>>>>> (They should come in packs of 14 messages at a time anyway.)
>>>>> 
>>>>> Alas, my new hyper-bundled mega-efficient super-instrument now runs for approx. 80 seconds
>>>>> before apparently hitting road blocks:
>>>>> 
>>>>> INIT ERROR in instr 23 (opcode OSCbundle) line 59: creating socket
>>>>> 
>>>>> As of a certain moment, the instrument just refuses to continue and creates these “creating socket” -Errors instead.
>>>>> 
>>>>> I tried increasing the maximum package size to 2^24 just in case, but to no avail.
>>>>> The values in the arrays are identical to the ones I’m sending individually.
>>>>> 
>>>>> Any ideas why OSCbundle wouldn't be able to continue?
>>>>> 
>>>>> Thank you,
>>>>> 
>>>>> Max
>>>>> 
>>>>> 
>>>>> 
>>>>> ________________________________
>>>>> 
>>>>> Prof. Maximilian Marcoll
>>>>> Studio Director
>>>>> Studio for Electroacoustic Music (SEAM)
>>>>> University of Music Franz Liszt Weimar
>>>>> Bauhaus University Weimar
>>>>> 
>>>>> http://seam.hfm-weimar.de/
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 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
> 
> 
> 
> 
> 
> ________________________________
> 
> Prof. Maximilian Marcoll
> Studio Director
> Studio for Electroacoustic Music (SEAM)
> University of Music Franz Liszt Weimar
> Bauhaus University Weimar
> 
> http://seam.hfm-weimar.de/
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 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