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.47k stars 64 forks source link

BIAS FX 2 (VST3) hangs REAPER on closing its window #293

Open a-parhom opened 10 months ago

a-parhom commented 10 months ago

Thanks for giving yabridge a shot!

Problem description

BIAS FX 2 (only VST3 version) crashes and hangs REAPER when its window is closed (or hidden, for example, by clicking UI button)

What did you expect to happen?

The plugin window closes.

What actually happened?

The plugin crashes with many similar error messages in console and hangs REAPER totally. The console output is attached in Debug log field.

Operating system

Ubuntu 23.10

How did you install yabridge?

Directly from the release page

yabridge version

5.1.0

yabridgectl version

5.1.0

Wine version

wine-8.20.r0.gf32f8c62 ( TkG Staging Esync Fsync )

Plugin

BIAS FX 2

Plugin type

VST3

Plugin architecture

64-bit

Host

Reaper 7.07

Desktop environment or WM

GNOME 45 (Wayland and X11)

GPU model

AMD Radeon RX 7600

GPU drivers and kernel

Mesa 23.2.1 on Linux 6.6.0

Debug log

22:32:58 [BIAS FX 2_x64-248JWgmn] [Wine STDERR] 03a8:fixme:unwind:virtual_unwind calling personality routine in system library not supported yet

[.... LOTS of that one ...]

22:32:58 [BIAS FX 2_x64-248JWgmn] [Wine STDERR] 03a8:fixme:unwind:virtual_unwind calling personality routine in system library not supported yet 22:32:58 [BIAS FX 2_x64-248JWgmn] [Wine STDERR] 03a8:fixme:unwind:virtual_unwind calling personality routine in system library not supported yet 22:32:58 [BIAS FX 2_x64-248JWgmn] [Wine STDERR] 03a8:fixme:unwind:virtual_unwind calling personality routine in system library not supported yet 22:32:58 [BIAS FX 2_x64-248JWgmn] [Wine STDERR] 03a8:fixme:unwind:execute_cfa_instructions 71820bf0bf00: unknown CFA opcode 2e 22:32:58 [BIAS FX 2_x64-248JWgmn] [Wine STDERR] 03a8:fixme:unwind:execute_cfa_instructions 71820bf0bf00: unknown CFA opcode 20 22:32:58 [BIAS FX 2_x64-248JWgmn] [Wine STDERR] 03a8:err:virtual:virtual_setup_exception stack overflow 2000 bytes addr 0x6ffffffa14ed stack 0x7ffffe100830 (0x7ffffe100000-0x7ffffe101000-0x7ffffe200000) 22:32:58 [BIAS FX 2_x64-248JWgmn] [Wine STDERR] 03e4:fixme:process:NtQueryInformationProcess ProcessCycleTime (0x4f8,0x7ffffe8fd840,0x00000010,(nil)) stub 22:32:59 [BIAS FX 2_x64-248JWgmn] [Wine STDERR] 04c8:fixme:thread:NtSetInformationThread ThreadPowerThrottling stub! 22:32:59 [BIAS FX 2_x64-248JWgmn] [Wine STDERR] 04c8:fixme:file:ReplaceFileW Ignoring flags 2 22:32:59 [BIAS FX 2_x64-248JWgmn] [Wine STDERR] 04c8:fixme:thread:NtSetInformationThread ThreadPowerThrottling stub!

Anything else?

No response

robbert-vdh commented 10 months ago

Can you try loading the plugin in the Windows version of REAPER running under Wine and check if it does the same thing? I'm fairly sure it would also crash in the same way there. The crash is likely not an issue with yabridge.

magillos commented 9 months ago

No such issue with Wine 9.1

aaaaaaaaargh commented 6 months ago

The exact same problem happens on every Wine version I've been trying so far, starting from 9.1 up to 9.6

cha0sbuster commented 3 weeks ago

Been throwing my head at this all day, and I can safely say it's probably not a yabridge issue. The Windows version of REAPER via WINE also exhibits the same behavior.

If I had to speculate based on the info the terminal gives me (and that's about all I've got right now,) it's something to do with rendering. The GLSL shaders are complaining a lot to WINE, and while I'm not sure they're all relevant, the fact that the fault occurs when we try to make the window go away certainly gives it that smell. BIAS FX uses CEF for its user interface, and CEF apps have been noted as problematic.

That being said, it is weird that this only happens with the VST3 version.

If I happen upon a workaround, I'll let yous know. I have a couple ideas.

cha0sbuster commented 3 weeks ago

UPDATE: It's Positive Grid's fault, surprisingly! The latest version of BIAS FX 2, 2.7.0, is just all kinds of broken as it turns out. BIAS FX 2.6.1 works great. Shoutout to this Reddit thread. https://www.reddit.com/r/PositiveGrid/comments/1e3wfg7/comment/le9fbzo/