egui_baseview_test_vst2 icon indicating copy to clipboard operation
egui_baseview_test_vst2 copied to clipboard

Opening the window causes the plugin to crash on Linux.

Open EnigmaCurry opened this issue 2 years ago • 2 comments

I am building on Arch Linux on Xorg/X11 with partial success. The plugin is working for audio, however only by using the Host controls. If you attempt to open the plugin window (or if the Host automatically opens it), the plugin immediately crashes.

I have tested on Reaper 6.66:

  • Add the VST to the track and it immediately crashes along with Reaper itself.
  • See this in the console:
fatal runtime error: failed to initiate panic, error 5
Aborted (core dumped)

I have tested on Bitwig Studio 4.3.4:

  • Add the VST to the track, the plugin immediately crashes because Bitwig wants to open the window by default.
  • Bitwig itself is protected from VST crashes and does not crash itself.
  • Bitwig offers you the option to restart the crashed plugin. If you do, it does not attempt to open the plugin window.
  • The plugin is working, and I see the Bitwig device knob called Amplify, which it found from the plugin, and it is functional, the plugin works.
  • However, try opening the window and the plugin crashes again.
  • The console prints a brief message that just Plug-ins crashed.

EnigmaCurry avatar Aug 19 '22 20:08 EnigmaCurry

For the time being, I can still develop on Linux, and cross-compile to a windows .dll and load that in Carla which uses wine to run windows binary in a Linux DAW.

# rust cross compile is easy:
rustup target add x86_64-pc-windows-gnu
rustup toolchain install stable-x86_64-pc-windows-gnu
cargo build --target x86_64-pc-windows-gnu

Then in your DAW you load Carla plugin, and load the Windows version of your plugin inside Carla.

EnigmaCurry avatar Aug 19 '22 22:08 EnigmaCurry

I experience the exact same behavior with X11 on Ubuntu. Building for windows works fine.

I am not experienced with Rust but through some debugging with gdb it seems like it crashes at https://github.com/DGriffin91/egui_baseview_test_vst2/blob/main/src/lib.rs#L54

Edit: Wayland/Debian with Bitwig works great.

OdysseasKr avatar Sep 17 '22 22:09 OdysseasKr