osxmidi / LinVst

Linux Windows vst wrapper/bridge
GNU General Public License v3.0
674 stars 41 forks source link

Waves Central has run into some issues #127

Closed devnix closed 4 years ago

devnix commented 4 years ago

Hi! Sorry if I should not post this on this repo but I thought you could have experience in the subject.

I'm able to install Waves Central V11, but there is no way I can even run Waves Central. It gives me the following error:

image

osxmidi commented 4 years ago

It seems to need Powershell on my system.

I don't know much about Powershell and Wine at the moment.

devnix commented 4 years ago

I've not found the way to install Powershell.

Instead of that, I've been able to install V10 Waves plugins, but on Reaper some of those plugins (like the LA-76) makes the whole project freeze. If I run the plugin without UI it runs smoothly, and hangs the whole project (but not the plugin UI) if I enable the UI again!

osxmidi commented 4 years ago

It used to work https://github.com/Sangeppato/wine-vst

You could try changing line 447 in lin-vst-server.cpp to

wavesthread = 0;

devnix commented 4 years ago

I've actually managed to run Scheps 73 and Kramer Master Tape successfully using Wine 4.17 and 4.20 (staging), but the CLA 73 hangs the entire Reaper UI.

devnix commented 4 years ago

I'll try to compile it later. By changing that line I'm looking forward compiling a new linvst.so, right? I will need to remove the existing .so files already generated or the linvstconvert will replace them?

Thank you so much for your support!

devnix commented 4 years ago

Ok, I've compiled and installed lin-vst-servertrack.exe (I guess that's what I had to do) and then the plugins that worked before stopped working. After a while of freezing Reaper, it shows the following window that gets closed automatically: image

It generates also the following dump:

Unhandled exception: page fault on read access to 0x00000010, invalid program stack in 64-bit code (0x00007fe9857d76c9).
Register dump:
 rip:00007fe9857d76c9 rsp:000000000022e870 rbp:000000000022e8ac eflags:00010297 (  R- --  I S -A-P-C)
 rax:0000000000000000 rbx:00007fe9857e07a8 rcx:0000000000000004 rdx:0000000000000004
 rsi:0000000000000008 rdi:000000007cc8d790  r8:00007fe9857db018  r9:000000000000097a r10:0000000000008001
 r11:0000000000000246 r12:00007fe984253640 r13:000000007cc45140 r14:0000000180000000 r15:000000000022ea20
Stack dump:
0x000000000022e870:  00007fe9857e07a8 00007fe9842522a0
0x000000000022e880:  00007fe984253640 000000007cc45140
0x000000000022e890:  0000000180000000 00007fe9857d7801
0x000000000022e8a0:  00007fe9842522a0 01ea776f8419be43
0x000000000022e8b0:  00007fe984253640 00007fe9857d6472
0x000000000022e8c0:  0000000000000000 0000000000000000
0x000000000022e8d0:  0000000000000000 0000000000000000
0x000000000022e8e0:  0000000000000000 0000000000000000
0x000000000022e8f0:  0000000000000000 000000000022ea10
0x000000000022e900:  000000000022ea30 000000000022e9a0
0x000000000022e910:  000000000022e9c0 000000018003ea10
0x000000000022e920:  000000000022ea00 000000000022e9f0
Backtrace:
=>0 0x00007fe9857d76c9 _ZN18RemotePluginServer17rdwr_tryWriteringEP10RingBufferPKvmPKci+0x19() in lin-vst-servertrack (0x000000000022e8ac)
  1 0x00007fe9857d7801 _ZN18RemotePluginServer20rdwr_writeOpcoderingEP10RingBuffer18RemotePluginOpcodePKci+0x20() in lin-vst-servertrack (0x00007fe9842522a0)
  2 0x00007fe9857d6472 WinMain+0x16f1() in lin-vst-servertrack (0x00007fe9842522a0)
  3 0x00007fe9857d0784 main+0x123() in lin-vst-servertrack (0x000000000022fca0)
  4 0x00007fe9857dae28 __wine_spec_exe_entry+0xa7() in lin-vst-servertrack (0x000000000022fd90)
  5 0x000000007b47906c PowerClearRequest+0x29eb() in kernel32 (0x000000000022ffd0)
0x00007fe9857d76c9 _ZN18RemotePluginServer17rdwr_tryWriteringEP10RingBufferPKvmPKci+0x19 in lin-vst-servertrack: movslq 0x0000000000000008(%rsi),%rcx
Modules:
Module  Address                 Debug info  Name (87 modules)
PE            340000-          3dd000   Deferred        msvcp140
PE            3e0000-          3f7000   Deferred        vcruntime140
ELF         7a800000-        7aa10000   Deferred        opengl32<elf>
  \-PE          7a850000-        7aa10000   \               opengl32
ELF         7b400000-        7b84d000   Dwarf           kernel32<elf>
  \-PE          7b420000-        7b84d000   \               kernel32
ELF         7bc00000-        7bd6a000   Deferred        ntdll<elf>
  \-PE          7bc20000-        7bd6a000   \               ntdll
ELF         7c000000-        7c005000   Deferred        <wine-loader>
PE         180000000-       180cae000   Deferred        waveshell1-vst 10.0_x64
ELF     7fe98271b000-    7fe982731000   Deferred        api-ms-win-core-fibers-l1-1-1<elf>
  \-PE      7fe982720000-    7fe982731000   \               api-ms-win-core-fibers-l1-1-1
ELF     7fe982731000-    7fe982747000   Deferred        api-ms-win-core-synch-l1-2-0<elf>
  \-PE      7fe982740000-    7fe982747000   \               api-ms-win-core-synch-l1-2-0
ELF     7fe982747000-    7fe98277b000   Deferred        iphlpapi<elf>
  \-PE      7fe982750000-    7fe98277b000   \               iphlpapi
ELF     7fe98277b000-    7fe982795000   Deferred        userenv<elf>
  \-PE      7fe982780000-    7fe982795000   \               userenv
ELF     7fe982795000-    7fe9827da000   Deferred        ws2_32<elf>
  \-PE      7fe9827a0000-    7fe9827da000   \               ws2_32
ELF     7fe9827da000-    7fe9827f0000   Deferred        api-ms-win-crt-utility-l1-1-0<elf>
  \-PE      7fe9827e0000-    7fe9827f0000   \               api-ms-win-crt-utility-l1-1-0
ELF     7fe9827f0000-    7fe982806000   Deferred        api-ms-win-crt-environment-l1-1-0<elf>
  \-PE      7fe982800000-    7fe982806000   \               api-ms-win-crt-environment-l1-1-0
ELF     7fe982806000-    7fe98281c000   Deferred        api-ms-win-crt-filesystem-l1-1-0<elf>
  \-PE      7fe982810000-    7fe98281c000   \               api-ms-win-crt-filesystem-l1-1-0
ELF     7fe98281c000-    7fe982832000   Deferred        api-ms-win-crt-time-l1-1-0<elf>
  \-PE      7fe982820000-    7fe982832000   \               api-ms-win-crt-time-l1-1-0
ELF     7fe982832000-    7fe98284b000   Deferred        api-ms-win-crt-multibyte-l1-1-0<elf>
  \-PE      7fe982840000-    7fe98284b000   \               api-ms-win-crt-multibyte-l1-1-0
ELF     7fe98284b000-    7fe982866000   Deferred        api-ms-win-crt-math-l1-1-0<elf>
  \-PE      7fe982850000-    7fe982866000   \               api-ms-win-crt-math-l1-1-0
ELF     7fe982866000-    7fe98287c000   Deferred        api-ms-win-crt-locale-l1-1-0<elf>
  \-PE      7fe982870000-    7fe98287c000   \               api-ms-win-crt-locale-l1-1-0
ELF     7fe98287c000-    7fe982894000   Deferred        api-ms-win-crt-convert-l1-1-0<elf>
  \-PE      7fe982880000-    7fe982894000   \               api-ms-win-crt-convert-l1-1-0
ELF     7fe982894000-    7fe9828ac000   Deferred        api-ms-win-crt-stdio-l1-1-0<elf>
  \-PE      7fe9828a0000-    7fe9828ac000   \               api-ms-win-crt-stdio-l1-1-0
ELF     7fe9828ac000-    7fe9828c2000   Deferred        api-ms-win-crt-heap-l1-1-0<elf>
  \-PE      7fe9828b0000-    7fe9828c2000   \               api-ms-win-crt-heap-l1-1-0
ELF     7fe9828c2000-    7fe9828da000   Deferred        api-ms-win-crt-string-l1-1-0<elf>
  \-PE      7fe9828d0000-    7fe9828da000   \               api-ms-win-crt-string-l1-1-0
ELF     7fe9828da000-    7fe982a22000   Deferred        ucrtbase<elf>
  \-PE      7fe982900000-    7fe982a22000   \               ucrtbase
ELF     7fe982a22000-    7fe982a39000   Deferred        api-ms-win-crt-runtime-l1-1-0<elf>
  \-PE      7fe982a30000-    7fe982a39000   \               api-ms-win-crt-runtime-l1-1-0
ELF     7fe982a39000-    7fe982ad1000   Deferred        rpcrt4<elf>
  \-PE      7fe982a50000-    7fe982ad1000   \               rpcrt4
ELF     7fe982ad1000-    7fe982c46000   Deferred        ole32<elf>
  \-PE      7fe982b00000-    7fe982c46000   \               ole32
ELF     7fe982c46000-    7fe982c6c000   Deferred        shcore<elf>
  \-PE      7fe982c50000-    7fe982c6c000   \               shcore
ELF     7fe982c6c000-    7fe982cd3000   Deferred        shlwapi<elf>
  \-PE      7fe982c80000-    7fe982cd3000   \               shlwapi
ELF     7fe982cd3000-    7fe98372b000   Deferred        shell32<elf>
  \-PE      7fe982cf0000-    7fe98372b000   \               shell32
ELF     7fe98382b000-    7fe983852000   Deferred        imm32<elf>
  \-PE      7fe983830000-    7fe983852000   \               imm32
ELF     7fe9838c6000-    7fe9838f4000   Deferred        libexpat.so.1
ELF     7fe9838f4000-    7fe98393a000   Deferred        libfontconfig.so.1
ELF     7fe98393a000-    7fe983956000   Deferred        libz.so.1
ELF     7fe983956000-    7fe98398e000   Deferred        libpng16.so.16
ELF     7fe98398e000-    7fe983a49000   Deferred        libfreetype.so.6
ELF     7fe983a77000-    7fe983b72000   Deferred        msvcrt<elf>
  \-PE      7fe983a90000-    7fe983b72000   \               msvcrt
ELF     7fe983b72000-    7fe983c10000   Deferred        advapi32<elf>
  \-PE      7fe983b80000-    7fe983c10000   \               advapi32
ELF     7fe983c10000-    7fe983dc8000   Deferred        gdi32<elf>
  \-PE      7fe983c30000-    7fe983dc8000   \               gdi32
ELF     7fe983dc8000-    7fe984067000   Deferred        user32<elf>
  \-PE      7fe983df0000-    7fe984067000   \               user32
ELF     7fe984255000-    7fe984260000   Deferred        librt.so.1
ELF     7fe98426d000-    7fe984276000   Deferred        libuuid.so.1
ELF     7fe984276000-    7fe98428e000   Deferred        version<elf>
  \-PE      7fe984280000-    7fe98428e000   \               version
ELF     7fe98516c000-    7fe98521a000   Deferred        kernelbase<elf>
  \-PE      7fe985180000-    7fe98521a000   \               kernelbase
ELF     7fe98521a000-    7fe98522e000   Deferred        libnss_files.so.2
ELF     7fe98542e000-    7fe985448000   Deferred        libgcc_s.so.1
ELF     7fe985448000-    7fe985597000   Deferred        libm.so.6
ELF     7fe985599000-    7fe98559f000   Deferred        libdl.so.2
ELF     7fe98559f000-    7fe985790000   Deferred        libc.so.6
ELF     7fe985790000-    7fe9857b3000   Deferred        libpthread.so.0
ELF     7fe9857b9000-    7fe9857e1000   Dwarf           lin-vst-servertrack<elf>
  \-PE      7fe9857c0000-    7fe9857e1000   \               lin-vst-servertrack
ELF     7fe9857e1000-    7fe985989000   Dwarf           libwine.so.1
ELF     7fe98598b000-    7fe9859ba000   Deferred        ld-linux-x86-64.so.2
Threads:
process  tid      prio (all id:s are in hex)
0000000e services.exe
    00000023    0
    0000001a    0
    00000013    0
    00000010    0
    0000000f    0
00000011 plugplay.exe
    00000017    0
    00000016    0
    00000012    0
00000018 winedevice.exe
    00000020    0
    0000001d    0
    0000001c    0
    0000001b    0
    00000019    0
0000001e explorer.exe
    0000002b    0
    0000002a    0
    00000029    0
    0000001f    0
00000021 winedevice.exe
    00000026    0
    00000025    0
    00000024    0
    00000022    0
00000052 lin-vst-servertrack.exe
    00000056    0
    00000055    0
    00000054    0
    00000053    0
00000060 lin-vst-servertrack.exe
    00000065    0
    00000064    0
    00000063    0
    00000062    0
    00000061    0
00000111 lin-vst-servertrack.exe
    0000012e    0
    00000129    0
    00000128    0
    00000127    0
    00000126    0
    00000125    0
    00000124    2
    00000123    0
    00000122    0
    00000121    0
    00000120    0
    0000011f    0
    0000011d    0
    0000011c    0
    0000011a    0
    00000119    0
    00000116    0
    00000115    0
    00000113    0
    00000112    0
00000137 lin-vst-servertrack.exe
    0000013c    0
    0000013b    0
    0000013a    0
    00000139    0
    00000138    0
0000013f lin-vst-servertrack.exe
    00000143    0
    00000142    0
    00000141    0
    00000140    0
00000146 lin-vst-servertrack.exe
    0000014b    0
    0000014a    0
    00000149    0
    00000148    0
    00000147    0
0000014e lin-vst-servertrack.exe
    00000152    0
    00000151    0
    00000150    0
    0000014f    0
00000167 lin-vst-servertrack.exe
    0000016c    0
    00000168    0
0000016a winedbg.exe
    0000016b    0
0000016f (D) Z:\usr\bin\lin-vst-servertrack.exe
    00000173    0
    00000170    0 <==
System information:
    Wine build: wine-4.17 (Ubuntu 4.17-1)
    Platform: x86_64
    Version: Windows 7
    Host system: Linux
    Host version: 5.3.0-23-generic
devnix commented 4 years ago

Got it, seems like I had to remove all the .so plugins, and generate them again using the new linvst.so compiled library.

At first glance, I cloned the master tag, modified the line you said, compiled and installed the project and re-generated de .so files. The failing plugin didn't freeze the Reaper UI for less than one second, and then Reaper froze again.

I've done a checkout of the 2.66 tag and done the same modification. After installing everything, it seems like it's working now! I guess there can be a regression in the master branch or an incompatibility with the wavesthread = 0 modification.

If I can help you with further testing, please let me know!