csound / plugins

Repository for Csound plugins which were originally in the main repository, and for new plugins as well.
GNU Lesser General Public License v2.1
11 stars 11 forks source link

Usage of hdf5read crashes the instrument at compile time #11

Closed idranoels closed 2 years ago

idranoels commented 2 years ago

Hello everybody I’m using Cabbage as a frontend for CSound and I’m trying to user hdf5write/hdf5read to save and restore datas to disk. In a test file I have a line like this:

printks"before hdf5read:\n", 0
;        aArray[], aVar, kVar hdf5read "f:/mypath/src/cabbage/example.h5", "aArray*", "aVar", "kVar" ; Open hdf5 file and read variables
printks"after hdf5read:\n", 0

but if I remove the comment Cabbage suddenly crashes without printing anything before, so it should be a compile time issue. The same issue occurs when I use CSound standalone.

I’m running under the following SW stack:

Windows 10
CSound 6.16 (double samples) Jul 17 2021
Cabbage 2.8.0

I attach:

CSound instrument test_3.csd.txt CSound output test_3.txt Windows Event Viewer crash EventViewer.txt

Thank you in advance

Sergio

jpffitch commented 2 years ago

I believe this is fixed in GitHub sources. Only tested on Linux (all I have).

There were multiple problems mainly affecting reading arrays.