Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opening the window causes the plugin to crash on Linux. #5

Open
EnigmaCurry opened this issue Aug 19, 2022 · 2 comments
Open

Opening the window causes the plugin to crash on Linux. #5

EnigmaCurry opened this issue Aug 19, 2022 · 2 comments

Comments

@EnigmaCurry
Copy link

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
Copy link
Author

EnigmaCurry commented Aug 19, 2022

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.

@OdysseasKr
Copy link

OdysseasKr commented Sep 17, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants