VBAP issue

Hi everyone,
I started using VBAP plugins recently, but I found that while they work ok with my (very) old Macbook Pro mid 2012 (Intel i5), with a more recent M1 Pro these seem to crash the server as soon as I stop the sound (either with cmd+. or with .free method), or even output nothing. This is while evaluating the examples, too.
I’m on 3.14.1, and I tried updating and even compiling sc3plugins from source, but that just made things worse. My old Intel Mac uses 3.12 and the appropriate sc3plugin version. The rest of sc3plugin seem to be working fine (e.g. HOA).
Anybody had a similar issue with VBAP?

All the best,
Stefano

Hey Stefano,

this is a known issue, the bugfix will hopefully be merged soon, see VBAP: fix 2D loudspeaker-set parse stride (heap underflow / crash on free) by oudeis01 · Pull Request #435 · supercollider/sc3-plugins · GitHub

1 Like

Thanks dscheiba,
is there anything I can do to make it work at the present time? Should I probably need to recompile the plugin (with the updated code)? I wouldn’t want to wait for the next release of the plugins.

All the very best,
Stefano

If you are running SC<=3.14 you should be able to download the build of the patch via https://github.com/supercollider/sc3-plugins/actions/runs/26921279005, no need to build locally.
Keep in mind that dev-builds are not notarized, i.e. on macOS you have to de-quarantine it using xattr -rd com.apple.quarantine <path to the downladed sc3-plugins folder>.

Would be appreciated if you could provide feedback on the fixes of the PR based on your testing :wink:

1 Like

Thanks for this!
For all my intents and purposes the modified version works, I’ve not experienced any crashes, nor sudden deaths when freeing the synths. I have not tested it thoroughly for bugs, but my application is quite complex (around 32 and 64 VBAP.ar simultaneously) and it is working as it should. I guess the changes made it work. EDIT: by the way I am running on 3.14.1 and nothing was broken, I am not sure whether this makes a difference.

All the very best and thanks again,
Stefano

3 Likes