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
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).
That would be great, thanks!!
M
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
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
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.