free-audio / interop-tracker

A place to track bugs between host and plugins
5 stars 0 forks source link

Bitwig shows an error dialog when saving projects containing CLAP plugins with no state #50

Closed robbert-vdh closed 1 month ago

robbert-vdh commented 1 year ago

This is a pretty rare situation since most plugins will at least have parameters so that's probably why noone's noticed it so far, but if you have a plugin that doesn't implement CLAP_EXT_STATE and then try to save the project, you'll get this error:

image

This happens with Bitwig Studio 4.4.6.

abique commented 1 year ago

Sheeeeeeeiiiiiiiiiit.

Do you have a plugin to repro this?

robbert-vdh commented 1 year ago

This is the STFT low-pass filter example from NIH-plug as a Linux binary (compiled on Arch, so won't run with older glibc) with the state extension disabled:

stft.clap.tar.gz

You can compile this yourself by cloning https://github.com/robbert-vdh/nih-plug, commenting out these two lines:

https://github.com/robbert-vdh/nih-plug/blob/efff43df21c7f9b4f0a9388c3ec3c05fdf463fb5/src/wrapper/clap/wrapper.rs#L2367-L2368

And then building it by running cargo xtask bundle stft.

abique commented 1 year ago

Fixed in Bitwig 5.0 Beta 7