robbert-vdh / yabridge

A modern and transparent way to use Windows VST2, VST3 and CLAP plugins on Linux
GNU General Public License v3.0
2.36k stars 61 forks source link

IK VST3i plugin UI appears cropped #142

Closed lucianoiam closed 2 years ago

lucianoiam commented 2 years ago

Thanks for giving yabridge a shot!

Problem description

First of all this project is of impressive quality, thanks for sharing.

There is a VST3i plugin "MODO BASS" from IK that is having some issues with its viewport size. On REAPER and Carla the UI is functional but appears cropped. REAPER allows to enlarge its plugin window but the plugin viewport dimensions remain unchanged. Carla does not allow to resize the floating window at all. On Bitwig 3 the UI initially appears cropped but the window can be resized and the issue goes away. Despite the improved behavior on Bitwig, the plugin's built-in resize handle does not respond to mouse control.

reaper

carla

(On load) bitwig_initial

bitwig3

What did you expect to happen?

The plugin UI should not appear cropped. The host window should tightly wrap the complete plugin UI.

What actually happened?

Parts of the plugin UI are unreachable due to the issue described above.

Operating system

Linux 21.10

How did you install yabridge?

Custom build

yabridge version

c20082b

yabridgectl version

c20082b

Wine version

wine-6.20 (Staging)

Plugin installation method

copies

Plugin

IK MODO BASS

Plugin type

VST3

Plugin architecture

64-bit

Host

Latest REAPER and Carla. Bitwig (version 3)

Desktop environment or WM

XFCE 4.16

GPU model

Intel(R) HD Graphics 4000

GPU drivers and kernel

Mesa 21.2.2 on Linux 5.13.0-20-lowlatency

Debug log

yabridge.log

Anything else?

Since the computer has a small FullHD display attached, there are some scaling tweaks in place:

export GDK_DPI_SCALE=1.18

reaper.ini has ui_scale=1.66

Maybe some other tweaks that cannot recall right now. Haven´t seen UI issues on other yabridged plugins so far. I am happy to provide any further information that might be needed.

robbert-vdh commented 2 years ago

You're using DPI scaling which uh sometimes does work, sometimes doesn't work, and somethings works a bit too well under Wine. You can try messing with the font DPI setting in winecfg. Setting that to either 96 or 192 might cause things to scale correctly. You can also use the vst3_no_scaling compatibility option to prevent the host from informing the plugin about the current DPI scaling factor. And from what I recall the native gdiplus override from winetricks doesn't support DPI scaling, so you can try switching between the native one and Wine's builtin implementation to see what works better for you.

lucianoiam commented 2 years ago

Checked winecfg and DPI was set to a whooping 216. It is so wrong I cannot think where that value comes from... Reset it to 96 and every single reported issue fixed, including the plugin's own resize handle. Sounds dumb now. Thanks for the advice, there are many valuable tips here. Closing the issue as this is not a yabridge problem.