osxmidi / LinVst

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

LinVst 3.1 / master regression - some plugins have no sound #165

Closed keybreak closed 3 years ago

keybreak commented 3 years ago

No sound, happens on v3.1 / master - doesn't happen with 2.8 / 3.0

Tested with Renoise v3.2.2, under same environments / conditions

Enviroments

OS: Manjaro 20.1.2 Mikah
Kernel: x86_64 Linux 5.8.16-2-MANJARO
Shell: bash 5.0.18
DE: KDE 5.74.0 / Plasma 5.19.5
WM: kwin_x11 
dm: SDDM 
gcc: 10.2.0 
tk: Qt 5.15.1
driver: nvidia v: 455.28 
WINE: 5.19-staging amd64

VSTi

Developer Name Version Arch
u-he ACE v1.4.0.3898 x64
u-he Diva v1.4.1.4078 x64

u-he ACE v1.4.0.3898 x64

stdout/stderr (removed some duplicated entries) ``` DSSI VST plugin server v0.986 Copyright (c) 2012-2013 Filipe Coelho Copyright (c) 2010-2011 Kristian Amlie Copyright (c) 2004-2006 Chris Cannam LinVst version 3.1.0 Loading /home/x133/.PlayOnLinux/wineprefix/VST/drive_c/VST/VSTi/u-he/ACE/ACE(x64).dll C:\users\x133\Desktop\/ACE.log no deskTopFile found 00f4:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION Renoise LOG> VstPlugs: Analyzing VST plugin 'u-he: ACE(x64)', Unique ID:1633895765, Version:2400 Renoise LOG> VstPlugs: Instantiate OK Renoise LOG> VstWindow: Creating a new X11Window... Renoise LOG> VstWindow: Setting X11Window properties... Renoise LOG> VstWindow: Give the plug access to the X11Window... server 2 2 16 No load font, arrrgh! Renoise LOG> VstWindow: Query the X11Window child... Renoise LOG> VstWindow: Unexpected XGetWindowProperty ptr value: expected a userSize 32 with two entries, got userSize: 0 with 0 entries... Renoise LOG> VstWindow: Child window has no '_XEventProc' property set... Renoise LOG> VstWindow: Setting new Windowsize 1326, 754 Renoise LOG> VstWindow: Mapping the window... Renoise LOG> VstWindow: Setting new Windowsize 1326, 754 No load font, arrrgh! Renoise LOG> VstWindow: Closing the Editor... Renoise LOG> VstWindow: Editor was closed Renoise LOG> VstWindow: Creating a new X11Window... Renoise LOG> VstWindow: Setting X11Window properties... Renoise LOG> VstWindow: Give the plug access to the X11Window... server 2 2 16 server 2 2 16 No load font, arrrgh! Renoise LOG> VstWindow: Query the X11Window child... Renoise LOG> VstWindow: Unexpected XGetWindowProperty ptr value: expected a userSize 32 with two entries, got userSize: 0 with 0 entries... Renoise LOG> VstWindow: Child window has no '_XEventProc' property set... Renoise LOG> VstWindow: Setting new Windowsize 1326, 754 Renoise LOG> VstWindow: Mapping the window... Renoise LOG> VstWindow: Setting new Windowsize 1326, 754 No load font, arrrgh! Renoise LOG> VstWindow: Closing the Editor... Renoise LOG> VstWindow: Editor was closed Renoise LOG> VstWindow: Creating a new X11Window... Renoise LOG> VstWindow: Setting X11Window properties... Renoise LOG> VstWindow: Give the plug access to the X11Window... server 2 2 16 No load font, arrrgh! Renoise LOG> VstWindow: Query the X11Window child... Renoise LOG> VstWindow: Unexpected XGetWindowProperty ptr value: expected a userSize 32 with two entries, got userSize: 0 with 0 entries... Renoise LOG> VstWindow: Child window has no '_XEventProc' property set... Renoise LOG> VstWindow: Setting new Windowsize 1326, 754 Renoise LOG> VstWindow: Mapping the window... Renoise LOG> VstWindow: Setting new Windowsize 1326, 754 No load font, arrrgh! Renoise LOG> VstPlugs: Releasing /home/x133/.vst/ACE(x64).so (closing the VST editor)... Renoise LOG> VstWindow: Closing the Editor... Renoise LOG> VstWindow: Editor was closed ```

u-he Diva v1.4.1.4078 x64 (no sound before crash)

stdout/stderr (removed some duplicated entries) ``` DSSI VST plugin server v0.986 Copyright (c) 2012-2013 Filipe Coelho Copyright (c) 2010-2011 Kristian Amlie Copyright (c) 2004-2006 Chris Cannam LinVst version 3.1.0 Loading /home/x133/.PlayOnLinux/wineprefix/VST/drive_c/VST/VSTi/u-he/Diva/Diva(x64).dll C:\users\x133\Desktop\/Diva.log no deskTopFile found 00f4:fixme:ntdll:NtQuerySystemInformation info_class SYSTEM_PERFORMANCE_INFORMATION Renoise LOG> VstPlugs: Analyzing VST plugin 'u-he: Diva(x64)', Unique ID:1147754081, Version:2400 Renoise LOG> VstPlugs: Instantiate OK Renoise LOG> VstWindow: Creating a new X11Window... Renoise LOG> VstWindow: Setting X11Window properties... Renoise LOG> VstWindow: Give the plug access to the X11Window... server 2 2 16 Renoise LOG> VstWindow: Query the X11Window child... Renoise LOG> VstWindow: Unexpected XGetWindowProperty ptr value: expected a userSize 32 with two entries, got userSize: 0 with 0 entries... Renoise LOG> VstWindow: Child window has no '_XEventProc' property set... Renoise LOG> VstWindow: Setting new Windowsize 1560, 870 Renoise LOG> VstWindow: Mapping the window... Renoise LOG> VstWindow: Setting new Windowsize 1560, 870 wine: Unhandled exception 0x80000003 in thread 138 at address 000000007BC54F00 (thread 0138), starting debugger... 0150:fixme:dbghelp:elf_search_auxv can't find symbol in module WARNING: RemotePluginServer::dispatchControlEvents: unexpected opcode 9999 0150:fixme:dbghelp:elf_search_auxv can't find symbol in module 0150:fixme:dbghelp:interpret_function_table_entry PUSH_MACHFRAME 15 ```
Crash dialog ``` 0x000000007bc54f00 EntryPoint+0xffffffffffffffff in ntdll: int $3 Modules: Module Address Debug info Name (76 modules) PE 780000- 7a7000 Deferred aclui PE 61900000- 619b9000 Deferred sechost PE 62600000- 6271a000 Deferred usp10 PE 62b00000- 62c23000 Deferred advapi32 PE 64940000- 64992000 Deferred shcore PE 65000000- 65573000 Deferred ole32 PE 65780000- 6579f000 Deferred version PE 67600000- 67784000 Deferred combase PE 68a40000- 68b51000 Deferred shlwapi PE 6a700000- 6a8eb000 Deferred setupapi PE 6bec0000- 6bf23000 Deferred imm32 PE 6c0c0000- 6c0ed000 Deferred wsock32 PE 6e6c0000- 6ec1f000 Deferred comctl32 PE 6fbc0000- 6fe3d000 Deferred rpcrt4 PE 7b000000- 7b40b000 Deferred kernelbase ELF 7b600000- 7b867000 Deferred kernel32 \-PE 7b620000- 7b867000 \ kernel32 PE 7bc00000- 7bf61000 Dwarf ntdll ELF 7d000000- 7d005000 Deferred PE 180000000- 1809377be Deferred diva(x64) ELF 7fbee0ba4000- 7fbee0bf1000 Deferred uxtheme \-PE 7fbee0bb0000- 7fbee0bf1000 \ uxtheme ELF 7fbee0c8b000- 7fbee0c94000 Deferred libxfixes.so.3 ELF 7fbee0cb9000- 7fbee0ce9000 Deferred libexpat.so.1 ELF 7fbee0ce9000- 7fbee0d34000 Deferred libfontconfig.so.1 ELF 7fbee0d34000- 7fbee0da6000 Deferred libpcre.so.1 ELF 7fbee0da6000- 7fbee0ed6000 Deferred libglib-2.0.so.0 ELF 7fbee0ed6000- 7fbee0efb000 Deferred libgraphite2.so.3 ELF 7fbee0efb000- 7fbee0fca000 Deferred libharfbuzz.so.0 ELF 7fbee0fca000- 7fbee0fe4000 Deferred libz.so.1 ELF 7fbee0fe4000- 7fbee101b000 Deferred libpng16.so.16 ELF 7fbee101b000- 7fbee102e000 Deferred libbz2.so.1.0 ELF 7fbee102e000- 7fbee1102000 Deferred libfreetype.so.6 ELF 7fbee1102000- 7fbee1115000 Deferred libxi.so.6 ELF 7fbee1115000- 7fbee111a000 Deferred libxcomposite.so.1 ELF 7fbee111a000- 7fbee1127000 Deferred libxrandr.so.2 ELF 7fbee1127000- 7fbee1134000 Deferred libxrender.so.1 ELF 7fbee1134000- 7fbee113b000 Deferred libxxf86vm.so.1 ELF 7fbee113b000- 7fbee1165000 Deferred libxcb.so.1 ELF 7fbee1165000- 7fbee12a6000 Deferred libx11.so.6 ELF 7fbee12a6000- 7fbee12bb000 Deferred libxext.so.6 ELF 7fbee12bb000- 7fbee1389000 Deferred winex11 \-PE 7fbee12d0000- 7fbee1389000 \ winex11 ELF 7fbee1389000- 7fbee13cb000 Deferred ws2_32 \-PE 7fbee1390000- 7fbee13cb000 \ ws2_32 ELF 7fbee13cb000- 7fbee1400000 Deferred iphlpapi \-PE 7fbee13d0000- 7fbee1400000 \ iphlpapi ELF 7fbee1400000- 7fbee1e5c000 Deferred shell32 \-PE 7fbee1420000- 7fbee1e5c000 \ shell32 ELF 7fbee1f5c000- 7fbee1fcd000 Deferred libncursesw.so.6 ELF 7fbee1fcd000- 7fbee1fe1000 Deferred libnss_files.so.2 ELF 7fbee1fe1000- 7fbee2197000 Deferred gdi32 \-PE 7fbee2000000- 7fbee2197000 \ gdi32 ELF 7fbee2197000- 7fbee22c1000 Deferred ucrtbase \-PE 7fbee21c0000- 7fbee22c1000 \ ucrtbase ELF 7fbee22c1000- 7fbee2553000 Deferred user32 \-PE 7fbee22e0000- 7fbee2553000 \ user32 ELF 7fbee2732000- 7fbee273e000 Deferred libxcursor.so.1 ELF 7fbee2764000- 7fbee278c000 Deferred lin-vst-servertrack \-PE 7fbee2770000- 7fbee278c000 \ lin-vst-servertrack ELF 7fbee298c000- 7fbee2b03000 Dwarf libwine.so.1 ELF 7fbee2eeb000- 7fbee2f13000 Deferred liblzma.so.5 ELF 7fbee2f13000- 7fbee2f2d000 Deferred libgcc_s.so.1 ELF 7fbee2f2d000- 7fbee3073000 Deferred libm.so.6 ELF 7fbee3073000- 7fbee308d000 Deferred libunwind.so.8 ELF 7fbee308d000- 7fbee3127000 Deferred ntdll.so ELF 7fbee312a000- 7fbee32f3000 Deferred libc.so.6 ELF 7fbee32f3000- 7fbee32f9000 Deferred libdl.so.2 ELF 7fbee32f9000- 7fbee331b000 Deferred libpthread.so.0 ELF 7fbee331e000- 7fbee3323000 Deferred libxinerama.so.1 ELF 7fbee3323000- 7fbee332b000 Deferred libxdmcp.so.6 ELF 7fbee332b000- 7fbee3330000 Deferred libxau.so.6 ELF 7fbee3330000- 7fbee333b000 Deferred librt.so.1 ELF 7fbee333b000- 7fbee3351000 Deferred wow64cpu \-PE 7fbee3340000- 7fbee3351000 \ wow64cpu ELF 7fbee3351000- 7fbee3380000 Deferred ld-linux-x86-64.so.2 Threads: process tid prio (all id:s are in hex) 00000038 services.exe ["C:\windows\system32\services.exe"] 0000003c 0 00000040 0 00000054 0 00000070 0 00000088 0 000000b0 0 000000d0 0 00000044 explorer.exe [C:\windows\system32\explorer.exe /desktop] 00000048 0 000000bc 0 000000c0 0 0000004c winedevice.exe [C:\windows\system32\winedevice.exe] 00000050 0 0000005c 0 00000060 0 00000064 0 00000068 plugplay.exe [C:\windows\system32\plugplay.exe] 0000006c 0 00000074 0 00000078 0 0000007c 0 00000098 0 00000080 winedevice.exe [C:\windows\system32\winedevice.exe] 00000084 0 0000008c 0 00000090 0 00000094 0 000000a0 0 000000a4 0 000000a8 svchost.exe [C:\windows\system32\svchost.exe -k LocalServiceNetworkRestricted] 000000ac 0 000000b4 0 000000b8 0 000000c8 rpcss.exe [C:\windows\system32\rpcss.exe] 000000cc 0 000000d8 0 000000dc 0 000000e0 0 000000e4 0 000000e8 0 00000168 0 0000016c 0 000000f0 (D) Z:\usr\bin\lin-vst-servertrack.exe ["Z:\usr\bin\lin-vst-servertrack.exe.so" /home/x133/.PlayOnLinux/wineprefix/VST/drive_c/VST/VSTi/u-he/Diva/Diva(x64).dll,F1XuMzjR2jm68gRhh5q4LaUYrf4m1sUukFPU5WzV6LR4RwbX] 000000f4 0 000000f8 0 000000fc 0 00000100 0 00000104 0 00000108 0 0000010c 0 00000110 0 00000114 0 00000118 0 0000011c 0 00000120 0 00000124 0 00000128 0 0000012c 0 00000130 0 00000134 0 00000138 0 <== 00000148 0 00000158 explorer.exe [C:\windows\system32\explorer.exe /desktop] 0000015c 0 00000160 0 00000164 0 System information: Wine build: wine-5.17 (Staging) Platform: x86_64 Version: Windows 7 Host system: Linux Host version: 5.8.16-2-MANJARO ```
osxmidi commented 3 years ago

I can't replicate those problems, but for the time being I'm going back to LinVst 3.0.

keybreak commented 3 years ago

That's weird though, if i can provide any more useful information please hit me up:

One i could probably think of is that i route all my sound through jack and use RME Fireface UCX Also that happens for some time (3-4 seconds), just before they crash, but GUI is still up and there is clearly no sound going out

but for the time being I'm going back to LinVst 3.0

Thx, i'll test it out soon to see if it reverted correctly, just in case ;)

keybreak commented 3 years ago

Ok so i've tested current master, all of that rolled back correctly and doesn't happen any more: https://github.com/osxmidi/LinVst/issues/163 https://github.com/osxmidi/LinVst/issues/164 https://github.com/osxmidi/LinVst/issues/165 https://github.com/osxmidi/LinVst/issues/166

btw that case is affected on current master i assume, might wanna mention it until new solution will emerge: https://github.com/osxmidi/LinVst/issues/161

osxmidi commented 3 years ago

Ok so i've tested current master, all of that rolled back correctly and doesn't happen any more:

163 #164 #165 #166

btw that case is affected on current master i assume, might wanna mention it until new solution will emerge:

161

Thanks for reminding me of the samplerate bug.

I've updated the code and binaries.

keybreak commented 3 years ago

And now revert it back, please :rofl: It's exactly what caused this two: https://github.com/osxmidi/LinVst/issues/163 https://github.com/osxmidi/LinVst/issues/165

Just tested

P.S. btw don't rush with packing binaries, just ask me to test first, so we can be sure :smiley:

osxmidi commented 3 years ago

And now revert it back, please It's exactly what caused this two:

163

165

Just tested

P.S. btw don't rush with packing binaries, just ask me to test first, so we can be sure

Wow, I didn't think it would do that, I'll need to look into it.

osxmidi commented 3 years ago

I made some changes to the code, see how it is now.

keybreak commented 3 years ago

Yes, looks like you fixed it! btw i just wonder why you have decided to remove:

m_plugin->dispatcher(m_plugin, effSetBlockSize, 0, 1024, NULL, 0);
m_plugin->dispatcher(m_plugin, effSetSampleRate, 0, 0, NULL, (float)44100);

in the first place?

It looks logical to use bufferSize and sampleRate instead of fixed values, as you did on last commit :+1:

I'll keep testing to see if everything else is fine :upside_down_face:


Maybe meanwhile we should ask @brandflake11 to test current master code, and check if https://github.com/osxmidi/LinVst/issues/161 haven't been affected with update, since i couldn't personally repeat his problem (you as well i believe?)

osxmidi commented 3 years ago

Yes, looks like you fixed it! btw i just wonder why you have decided to remove:

m_plugin->dispatcher(m_plugin, effSetBlockSize, 0, 1024, NULL, 0);
m_plugin->dispatcher(m_plugin, effSetSampleRate, 0, 0, NULL, (float)44100);

in the first place?

It looks logical to use bufferSize and sampleRate instead of fixed values, as you did on last commit

I'll keep testing to see if everything else is fine

Maybe meanwhile we should ask @brandflake11 to test current master code, and check if #161 haven't been affected with update, since i couldn't personally repeat his problem (you as well i believe?)

I removed the lines because I didn't think they were needed, but it looks like some plugins do need them.

I can test the Renoise samplerate bug because it happens on one of my systems and it seems to be ok with the new changes.