Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

Blank VST GUI, crash on window closed, on Linux #66

Open
michaelcadilhac opened this issue Jul 2, 2020 · 4 comments
Open

Blank VST GUI, crash on window closed, on Linux #66

michaelcadilhac opened this issue Jul 2, 2020 · 4 comments

Comments

@michaelcadilhac
Copy link

michaelcadilhac commented Jul 2, 2020

Platform

OS: Arch Linux, up to date
OBS Studio version: master (with OBS-VST at master; also checked with the revision linked in the OBS repo)
Qt version: 5.15.0

Current Behavior

  • When clicking Open Plug-in Interface, a window is opened but it is blank (nothing drawn).
  • When closing it with the window manager (rather than Close Plug-in Interface), SIGSEGV.

Steps to Reproduce

  1. Add a VST 2.x Plug-in on audio source
  2. Click on Open Plug-in Interface.

Additional info

  • The backtrace is not useful.
  • Tested with Awesome and Plasma, so the WM is not to be blamed.
  • The message on the console:
    Plugin UI running in ''
    may point to the error.
  • Works fine with https://github.com/ivyl/obs-lv2
@DDRBoxman
Copy link
Member

Which plugins did you test this with?

I haven't tried arch but was successful at getting these two displaying on multiple ubuntu versions:

PTC-2A
https://www.overtonedsp.co.uk/download/download_ptc_2a/

Rough Rider
https://www.audiodamage.com/pages/free-downloads

@michaelcadilhac
Copy link
Author

  1. I tried with the plugins that were on my distribution:
  • lsp-plugins
  • ambix (direct segfault!)
  • zam-plugins
  • dragonfly-reverb
  • ninjas2
  • ...
  1. PTC-2A does work!
  2. But there're still some crashes with window closing, even with PTC-2A. In particular, if the VST GUI window loses focus, the OBS-VST dialog turns "Close Plug-in interface" to "Open...". If I force close the VST GUI, then there's a segfault, so the only way to "cleanly" close it is to click on "Open Plug-in interface" then re-click on it now that it states "Close plug-in interface."

@p0nce
Copy link

p0nce commented Dec 17, 2020

Hello,

EDIT: I realized afterwareds that may not the same bug

We are making a pitch-correction plugin.
A crash of OBS Studio at close was reported 5 times by our users.

To reproduce, you reload a session with one VST plugin (for example, Auburn Sounds Graillon v2.4 before the fix)

I've retraced the VST crash in our plugin to the following sequence of VST2.4 opcodes:

[9088] dispatcher effect 000001A18BAFB110 opcode 45  // this is over the entire course of the OBS program
[9088] dispatcher effect 000001A18BAFB110 opcode 47
[9088] dispatcher effect 000001A18BAFB110 opcode 10
[9088] dispatcher effect 000001A18BAFB110 opcode 11
[9088] dispatcher effect 000001A18BAFB110 opcode 12
[9088] dispatcher effect 000001A18BAFB110 opcode 15

tl;dr OBS Studio is calling effEditClose even when effEditOpen was never called. Not all plugins can deal with that.

More details here: AuburnSounds/Dplug#491

As a lot of plugins will crash and OBS Studio is the only VST2.4 host I know that will produce that opcode sequence, I think it would be great for users to fix it in obs-vst (ie: not call effEditClose if effEditOpen wasn't called)

The partly blank window bug is annoying too with DPI != 100% on Windows :)

@halirutan
Copy link

halirutan commented May 31, 2022

@DDRBoxman The Rough-Rider plugin works for me as well. However, non of the plugins found in the package available on https://lsp-plug.in/ show up. There is no error message when opening the UI of the plugins. They just stay black.

I tested all these plugins with carla and they work as expected.

Would it be possible that you try these VST plugins on Linux?

I'm here on Ubuntu 20.04 with the latest official OBS version 27.2.4

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

No branches or pull requests

4 participants