NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.37k stars 14.33k forks source link

BespokeSynth and Carla's VST: crash when loading some LV2 plugins #143402

Open tobiasBora opened 3 years ago

tobiasBora commented 3 years ago

Describe the bug

On latest unstable, when trying to open the GUI of the some plugins (e.g. the Calf Reverb plugin) from inside Carla's VST's plugin, itself inside BespokeSynth, it crashes with an error:

Failed to load Gtk, reason:
libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory

Steps To Reproduce

Steps to reproduce the behavior:

  1. Install (tested on nixos, instructions must be adapted otherwise) BespokeSynth, carla and calf
  2. Run BespokeSynth. In the settings > vst search dir, add the folder /var/run/current-system/sw/lib/vst
  3. Vst plugins > Reload plugins
  4. Add a Carla patchbay plugin.
  5. Click on "open": carla appears on screen
  6. "Add plugin"
  7. Select Calf Reverb (you may also need first to configure Carla, Settings > Plugin Path > LV2 > add /var/run/current-system/sw/lib/lv2 and restart). You should have in the patchbay: image
  8. Click on "Gui". Everything crashes with the error Failed to load Gtk libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory

One dirty trick may be to add gtk on BespokeSynth, but then I guess if plugins need other libraries it will fail.

Notify maintainers

@astro @minijackson

tobiasBora commented 3 years ago

I also have another problem with the carla "MIDI FILE" plugin (tested on KDE): when I use this plugin with Carla directly, everything works fine, but if I use it inside BespokeSynth when I click on the cog to add a MIDI file the dialog does not appear (but no crash, and nothing appears in the log)

tobiasBora commented 3 years ago

Note that Ildaeil (VST3 that can load LV2 plugins) does not suffer from this limitation https://github.com/NixOS/nixpkgs/issues/145607#issuecomment-967223619 .