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

Yabridge is crashing when running REAPER from launcher #328

Open aidanhadley opened 7 months ago

aidanhadley commented 7 months ago

Thanks for giving yabridge a shot!

Problem description

Ubuntu 23.10, latest version of yabridge, wine-staging 9.4. When i run REAPER from the terminal, I'm able to load windows plugins (such as Meowsynth, one of my favorites) just fine. However, when I run it from the cockos-reaper.desktop launcher, it crashes. Logs and info are below.

What did you expect to happen?

Reaper to not crash

What actually happened?

Reaper crashed

Operating system

Ubuntu 23.10

How did you install yabridge?

Releases page

yabridge version

5.1.0

yabridgectl version

5.1.0

Wine version

wine-staging 9.4

Plugin

All Windows Plugins, but Meowsynth is the first I noticed

Plugin type

both VST2 and VST3

Plugin architecture

both 64-bit and 32-bit

Host

REAPER 7.13

Desktop environment or WM

GNOME 45

GPU model

No response

GPU drivers and kernel

No response

Debug log

22:49:14 [MeowSynth-08Zfghor] library: '/home/ldas/.local/share/yabridge/libyabridge-vst2.so' 22:49:14 [MeowSynth-08Zfghor] host: '/home/ldas/.local/share/yabridge/yabridge-host-32.exe' 22:49:14 [MeowSynth-08Zfghor] plugin: '/home/ldas/.wine/drive_c/Program Files/Steinberg/VstPlugins/MeowSynth.dll' 22:49:14 [MeowSynth-08Zfghor] plugin type: 'VST2' 22:49:14 [MeowSynth-08Zfghor] realtime: 'no' 22:49:14 [MeowSynth-08Zfghor] sockets: '/run/user/1000/yabridge-MeowSynth-08Zfghor' 22:49:14 [MeowSynth-08Zfghor] wine prefix: '/home/ldas/.wine' 22:49:14 [MeowSynth-08Zfghor] wine version: '' 22:49:14 [MeowSynth-08Zfghor] 22:49:14 [MeowSynth-08Zfghor] config from: '' 22:49:14 [MeowSynth-08Zfghor] hosting mode: 'individually, 32-bit' 22:49:14 [MeowSynth-08Zfghor] other options: '' 22:49:14 [MeowSynth-08Zfghor] 22:49:14 [MeowSynth-08Zfghor] Enabled features: 22:49:14 [MeowSynth-08Zfghor] - bitbridge support 22:49:14 [MeowSynth-08Zfghor] - CLAP support 22:49:14 [MeowSynth-08Zfghor] - VST3 support 22:49:14 [MeowSynth-08Zfghor] 22:49:14 [MeowSynth-08Zfghor] [Wine STDERR] /home/ldas/.local/share/yabridge/yabridge-host-32.exe: 36: exec: wine: not found 22:49:14 [MeowSynth-08Zfghor] The Wine host process has exited unexpectedly. Check the output above for more information.

Anything else?

here is the .exe file:

ldas@framevirgin:~$ cat .local/share/yabridge/yabridge-host-32.exe
#!/bin/sh

appname="yabridge-host-32.exe.so"
# determine the application directory
appdir=''
case "$0" in
  */*)
    # $0 contains a path, use it
    appdir=`dirname "$0"`
    ;;
  *)
    # no directory in $0, search in PATH
    saved_ifs=$IFS
    IFS=:
    for d in $PATH
    do
      IFS=$saved_ifs
      if [ -x "$d/$appname" ]; then appdir="$d"; break; fi
    done
    ;;
esac

# figure out the full app path
if [ -n "$appdir" ]; then
    apppath="$appdir/$appname"
    WINEDLLPATH="$appdir:$WINEDLLPATH"
    export WINEDLLPATH
else
    apppath="$appname"
fi

# determine the WINELOADER
if [ ! -x "$WINELOADER" ]; then WINELOADER="wine"; fi

# and try to start the app
exec "$WINELOADER" "$apppath" "$@"
ldas@framevirgin:~$ 

and here is the launcher:

ldas@framevirgin:~$ cat ~/.local/share/applications/cockos-reaper.desktop 
[Desktop Entry]
Version=1.1
Type=Application
Name=REAPER
Comment=REAPER
Icon=cockos-reaper
Exec=reaper %F
MimeType=application/x-reaper-project;application/x-reaper-project-backup;application/x-reaper-theme;
Categories=Audio;AudioVideo;AudioVideoEditing;Recorder;Video;
StartupWMClass=REAPER
Name[en]=REAPER
Name[en_US]=REAPER
Name[en_US.UTF-8]=REAPER
Comment[en]=REAPER
Comment[en_US]=REAPER
Comment[en_US.UTF-8]=REAPER
Hidden=false
NoDisplay=false
StartupNotify=false
Terminal=false

ldas@framevirgin:~$ 

and finally here's my $PATH (idk if this is safe to post):

/home/ldas/.local/bin:/home/ldas/bin:/usr/src/linux-headers-6.7.11-1-liquorix-amd64/tools/power/x86/x86_energy_perf_policy:/usr/src/linux-headers-6.7.11-1-liquorix-amd64/tools/power/x86/turbostat:/usr/src/linux-headers-6.7.11-1-liquorix-amd64/tools/power/cpupower:/usr/src/linux-headers-6.7.11-1-liquorix-amd64/tools/perf:/usr/src/linux-headers-6.7.11-1-liquorix-amd64/tools/power/x86/x86_energy_perf_policy:/usr/src/linux-headers-6.7.11-1-liquorix-amd64/tools/power/x86/turbostat:/usr/src/linux-headers-6.7.11-1-liquorix-amd64/tools/power/cpupower:/usr/src/linux-headers-6.7.11-1-liquorix-amd64/tools/perf:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/opt/wine-staging/bin:/home/ldas/.local/share/yabridge
LeontKing2 commented 7 months ago

it says wine was not found... also reaper is a 64 Bit Plugin/Program. you have given the 32 bit host bash file for yabridge.

aidanhadley commented 7 months ago

yeah, the thing is, i have wine installed, and i can access it through wine on the terminal. the reason it's a 32-bit shared object file is because the plugin itself is a 32-bit plugin.

i'm now on arch, and have had no issue. after i finish this semester of school i'm going to tinker with it and see what's happening

LeontKing2 commented 7 months ago

pretty strange... have you ran reaper with any arguments or such? (from terminal)

aidanhadley commented 6 months ago

no, i havent.

i'd like an update, i'm on fedora now and i'm having this issue. i had to add wine into my $PATH through /opt/wine-staging/bin. i feel like this is, perhaps, the issue. maybe running it from a launcher is not finding the exec?