audacity / audacity

Audio Editor
https://wiki.audacityteam.org/wiki/For_Developers
Other
12.18k stars 2.24k forks source link

VST3 Not Working On Linux Distros Using Wayland #3740

Open mike-overtonedsp opened 1 year ago

mike-overtonedsp commented 1 year ago

Tried V3.2 for Linux. VST3 plugins are correctly discovered, I can load a VST3 plugin into a track, but opening the UI either causes a crash or the (host) plugin window appears, but is empty. Issue appears to be related to calling plugFrame->resizeView(this, &newRect); from the plugin (causes a crash) or if this call is removed from my plugin code, the (host) plugin window appears, and is the correct size, but the plugin window is not visible (seems to have been scaled to 1x1px dot). If I don't reparent my plugin window into Audacity's host window, then my UI appears as expected (but obviously floating). Tried various other Linux VST3 plugins, by other developers, with similar results - non functioning UI, empty plug-in Window etc

mike-overtonedsp commented 1 year ago

Some (free) Linux VST3's to test:

https://tal-software.com/products/tal-reverb-4 https://superflydsp.com/index.php/lost-tapes-freeware/ https://www.acmt.co.uk/products/download-acm-3sa/index.html

All known to work in other DAWs on Linux.

KottV commented 1 year ago

The same for me. Is there a particular vst3sdk has to be used?

vsverchinsky commented 1 year ago

The same for me. Is there a particular vst3sdk has to be used?

Unfortunately no, this is due to a bug in Audacity

dozzzzer commented 1 year ago

I confirm the issue on Ubuntu 22.04 with all three plugins mentioned above.

dozzzzer commented 1 year ago

Please try this on your side @LWinterberg

chinakov commented 4 months ago

image Hi! Confirmed to be fixed in Audacity 3.5, tested on TAL REverb 4 Plugin.

Ubuntu 22.02

chinakov commented 4 months ago

My apologies, @dozzzzer was correct to point out that this is specifically on VST3, and I have managed to reproduce the issue on the latest 3.5 build. image

dozzzzer commented 2 weeks ago

@chinakov please see if this is a Wayland-related issue

chinakov commented 1 week ago

@dozzzzer, I have managed to make VST3 work on the latest version of Audacity (3.6.1), and the latest version of Linux Mint Cinammon Edition, which in fact does not have wayland.

So yes, the issue is connected to Wayland.