RASPA Buffers memory is too big

Hi,

When trying to run my plugin in Sushi on the RPi with ElkOS, I am seeing the following errors:
Terminal:

Error initializing frontend, check logs for details.

/tmp/sushi.log:
[error] [raspa audio] Error opening RASPA: Raspa: Buffers memory is too big.

How should I address this error?

Thanks,

  • Rick Cohen

Hi Rick,
can you try to run the plugin with the offline frontend on the board and see what’s the memory usage?

I had that issue with a plugin that was allocating too much memory for the Pi3 to handle. If you’re interested in trying out an early build for the Pi4, drop me a PM and I can get you set up with it if you’re ok in testing something at early stage.

Hi @Stefano,

Where are the instructions for running the offline frontend?

Thanks,

  • Rick Cohen

From running “sushi -h”, I found that that sushi’s offline frontend can be enabled with the -o option on the command line.

Sushi is asking for an input file. I see that the -i option is required for offline operation. I’ve tried using the .so plugin file and the config.json file as input files, but neither was accepted. The -h documentation doesn’t say what type of input file is required.

Thanks,

  • Rick Cohen

I’ve reduced the maximum polyphony of the plugin, to work around the buffer issue. But would still be interested in learning more about the offline frontend.

Thanks

  • Rick Cohen

Hi Rick,
you’re right, the usage doesn’t say explicitly that the input file should be a .wav (it does for the output, though).

A typical invocation of the offline frontend is specified in SUSHI’s README:

$ sushi -o -i input_file.wav -c config_file.json

Thanks! Wav file makes perfect sense, especially if developing an FX plugin.

Here’s the result log file from running offline with my current build. You asked me to check the memory usage, but I don’t see any indication of this in the log.

[2020-03-11 14:42:38.418] [warning] #############################
[2020-03-11 14:42:38.476] [info] [main] Setting up offline audio frontend
[2020-03-11 14:42:38.478] [info] [jsonconfig] Setting engine sample rate to 48000
[2020-03-11 14:42:38.480] [info] [engine] Track main successfully added to engine
[2020-03-11 14:42:38.480] [info] [engine] Connected channel 0 of track "main" to output 0
[2020-03-11 14:42:38.480] [info] [engine] Connected channel 1 of track "main" to output 1
[2020-03-11 14:42:38.801] [info] [jsonconfig] Successfully configured engine with tracks in JSON config file "/home/mind/config_play_myplugin.json"
[2020-03-11 14:42:38.802] [info] [midi dispatcher] Connected MIDI port "0" to track "main"
[2020-03-11 14:42:38.804] [info] [jsonconfig] Config file does not have CV/Gate definitions
[2020-03-11 14:42:38.804] [info] [jsonconfig] Config file does not have any Event definitions

Take care,

  • Rick Cohen

If you put a .wav file that’s long enough to keep the plugin busy for a few seconds, you can check memory usage with top / htop in another terminal.

Hi @Stefano,

That is helpful. Maybe a new informational page about Sushi offline mode would be useful.

Most of my debugging experiences have been using MacOS and Windows, so any tips for using Linux and ElkOS tools are welcome!

  • Rick