4lex4nder / ReshadeEffectShaderToggler

Reshade 5+ addin to apply Reshade effects to render targets of shader groups based on a key press. It allows you to configure these groups from within the addin as well.
MIT License
106 stars 10 forks source link

Possible Linux support #34

Open gabriele2000 opened 1 year ago

gabriele2000 commented 1 year ago

Hi, I'm trying to load the Addon but every time it exists, ReShade will crash on Linux. No, wait, everything crashes because of reasons that I can't understand.

As far as I know, only this Addon can't load, I've tried other addons and they worked.

Wine's log


12777.768:014c:err:kerberos:kerberos_LsaApInitializePackage no Kerberos support, expect problems
info:  DXVK: Using 8 compiler threads
12778.199:014c:fixme:dwmapi:DwmEnableBlurBehindWindow 0000000000050076 000000000B74E900
warn:  DXGI: MakeWindowAssociation: Ignoring flags
12778.201:014c:fixme:thread:NtSetInformationThread ThreadIdealProcessor stub!
12778.421:014c:fixme:thread:NtSetInformationThread ThreadIdealProcessor stub!
pure virtual method called
terminate called without an active exception
12778.818:015c:fixme:msvcrt:__clean_type_info_names_internal (000000000ADB3070) stub
<info> [CDataFile::Load] Unable to open file. Does it exist?

ReShade's log

12:21:31:730 [00288] | INFO  | Initializing crosire's ReShade version '5.9.2.1760' (64-bit) loaded from "Z:\Battlefield 4\dxgi.dll" into "Z:\Battlefield 4\bf4.exe" "" (0x1335c337) ...
12:21:31:730 [00288] | INFO  | Registering hooks for "user32.dll" ...
12:21:31:730 [00288] | INFO  | > Libraries loaded.
12:21:31:731 [00288] | INFO  | > Found 14 match(es). Installing ...
12:21:31:735 [00288] | INFO  | Registering hooks for "C:\windows\system32\dinput.dll" ...
12:21:31:735 [00288] | INFO  | > Delayed.
12:21:31:735 [00288] | INFO  | Registering hooks for "C:\windows\system32\d2d1.dll" ...
12:21:31:736 [00288] | INFO  | > Delayed.
12:21:31:736 [00288] | INFO  | Registering hooks for "C:\windows\system32\d3d9.dll" ...
12:21:31:736 [00288] | INFO  | > Delayed.
12:21:31:736 [00288] | INFO  | Registering hooks for "C:\windows\system32\d3d10.dll" ...
12:21:31:736 [00288] | INFO  | > Delayed.
12:21:31:736 [00288] | INFO  | Registering hooks for "C:\windows\system32\d3d10_1.dll" ...
12:21:31:736 [00288] | INFO  | > Delayed.
12:21:31:736 [00288] | INFO  | Registering hooks for "C:\windows\system32\d3d11.dll" ...
12:21:31:736 [00288] | INFO  | > Libraries loaded.
12:21:31:736 [00288] | INFO  | > Found 3 match(es). Installing ...
12:21:31:740 [00288] | INFO  | Registering hooks for "C:\windows\system32\d3d12.dll" ...
12:21:31:740 [00288] | INFO  | > Delayed.
12:21:31:740 [00288] | INFO  | Registering hooks for "C:\windows\system32\dxgi.dll" ...
12:21:31:740 [00288] | INFO  | > Delayed until first call to an exported function.
12:21:31:740 [00288] | INFO  | Registering hooks for "vrclient_x64.dll" ...
12:21:31:741 [00288] | INFO  | > Delayed.
12:21:31:741 [00288] | INFO  | Initialized.
12:21:37:754 [00292] | INFO  | Redirecting CreateDXGIFactory1(riid = {7B7166EC-21C7-44AE-B21A-C9AE321AE369}, ppFactory = 0000000060C25D30) ...
12:21:37:756 [00292] | INFO  | Installing export hooks for "C:\windows\system32\dxgi.dll" ...
12:21:37:756 [00292] | INFO  | > Found 5 match(es). Installing ...
12:21:37:857 [00292] | INFO  | Redirecting CreateDXGIFactory1(riid = {770AAE78-F26F-4DBA-A829-253C83D1B387}, ppFactory = 000000000FD5E5B0) ...
12:21:37:869 [00288] | INFO  | Redirecting RegisterClassExA(lpWndClassEx = 000000000011FA30 { "Battlefield 4", style = 0 }) ...
12:21:37:901 [00292] | INFO  | Redirecting D3D11CreateDevice(pAdapter = 00000000017273F0, DriverType = 0, Software = 0000000000000000, Flags = 0x80, pFeatureLevels = 000000000FD5F5D0, FeatureLevels = 1, SDKVersion = 7, ppDevice = 000000000FD5F5C8, pFeatureLevel = 000000000FD5F5C0, ppImmediateContext = 000000000FD5F5D8) ...
12:21:37:901 [00292] | INFO  | > Passing on to D3D11CreateDeviceAndSwapChain:
12:21:37:901 [00292] | INFO  | Redirecting D3D11CreateDeviceAndSwapChain(pAdapter = 00000000017273F0, DriverType = 0, Software = 0000000000000000, Flags = 0x80, pFeatureLevels = 000000000FD5F5D0, FeatureLevels = 1, SDKVersion = 7, pSwapChainDesc = 0000000000000000, ppSwapChain = 0000000000000000, ppDevice = 000000000FD5F5C8, pFeatureLevel = 000000000FD5F5C0, ppImmediateContext = 000000000FD5F5D8) ...
12:21:37:949 [00292] | INFO  | Using feature level 0xb100.
12:21:37:949 [00292] | INFO  | Searching for add-ons (*.addon, *.addon64) in "Z:\Battlefield 4\" ...
12:21:37:949 [00292] | INFO  | Loading add-on from "Z:\Battlefield 4\addon.addon64" ...
12:21:37:962 [00292] | INFO  | Registered add-on "Reshade Effect Shader Toggler" v1.3.0.592 using ReShade API version 8.
12:21:37:962 [00292] | INFO  | [Reshade Effect Shader Toggler] Loading config file from "Z:\Battlefield 4\ReshadeEffectShaderToggler.ini"
12:21:37:962 [00292] | INFO  | [Reshade Effect Shader Toggler] Could not find config file at "Z:\Battlefield 4\ReshadeEffectShaderToggler.ini"
12:21:37:962 [00292] | INFO  | [Reshade Effect Shader Toggler] No resource shim initialized
12:21:38:000 [00292] | INFO  | Redirecting IDXGIFactory::CreateSwapChain(this = 00000000017012E0, pDevice = 00000000005BC5F8, pDesc = 000000000FD5F6D0, ppSwapChain = 0000000060C29640) ...
12:21:38:000 [00292] | INFO  | > Dumping swap chain description:
12:21:38:000 [00292] | INFO  |   +-----------------------------------------+-----------------------------------------+
12:21:38:001 [00292] | INFO  |   | Parameter                               | Value                                   |
12:21:38:001 [00292] | INFO  |   +-----------------------------------------+-----------------------------------------+
12:21:38:001 [00292] | INFO  |   | Width                                   | 1280                                    |
12:21:38:001 [00292] | INFO  |   | Height                                  | 720                                     |
12:21:38:001 [00292] | INFO  |   | RefreshRate                             | 0                   1                   |
12:21:38:001 [00292] | INFO  |   | Format                                  | DXGI_FORMAT_R8G8B8A8_UNORM              |
12:21:38:001 [00292] | INFO  |   | ScanlineOrdering                        | 0                                       |
12:21:38:001 [00292] | INFO  |   | Scaling                                 | 0                                       |
12:21:38:001 [00292] | INFO  |   | SampleCount                             | 1                                       |
12:21:38:001 [00292] | INFO  |   | SampleQuality                           | 0                                       |
12:21:38:001 [00292] | INFO  |   | BufferUsage                             | 0x30                                    |
12:21:38:001 [00292] | INFO  |   | BufferCount                             | 3                                       |
12:21:38:001 [00292] | INFO  |   | OutputWindow                            | 000000000002005C                        |
12:21:38:001 [00292] | INFO  |   | Windowed                                | TRUE                                    |
12:21:38:001 [00292] | INFO  |   | SwapEffect                              | 0                                       |
12:21:38:001 [00292] | INFO  |   | Flags                                   | 0x2                                     |
12:21:38:001 [00292] | INFO  |   +-----------------------------------------+-----------------------------------------+
12:21:38:649 [00292] | INFO  | Running on NVIDIA GeForce GTX 1050 Ti.
12:21:38:657 [00292] | INFO  | Recreated runtime environment on runtime 00000000004186E0 ("Z:\Battlefield 4\ReShade.ini").
12:21:39:609 [00308] | INFO  | Unregistered add-on "Reshade Effect Shader Toggler".
12:21:39:610 [00308] | INFO  | Exiting ...
12:21:39:610 [00308] | INFO  | Uninstalling 29 hook(s) ...
12:21:40:616 [00308] | INFO  | Finished exiting.

I don't even know if it's ReShade's fault, WINE's fault, DXVK's fault...

Stereo-3D commented 1 year ago

After further investigation by @gabriele2000 it's most likely that this is DXVK's fault, but I'm not 100% sure yet..

gabriele2000 commented 1 year ago

After further investigation by @gabriele2000 it's most likely that this is DXVK's fault, but I'm not 100% sure yet..

Hold on, ReShade's error is caused by DXVK-2.3.

I've tested a few versions of REST and this version is the last working one

Stereo-3D commented 1 year ago

Could you tell me which game that have issue with REST? I want to help you back (if possible) by at least reproducing the error you have.. Is it steam game?

gabriele2000 commented 1 year ago

Could you tell me which game that have issue with REST? I want to help you back (if possible) by at least reproducing the error you have.. Is it steam game?

It's Battlefield 4, but I guess it will crash with any game. I'm using GE-WINE-8.17.

Any DXVK version will cause this error, I've come as far as testing v-1.10 to no avail, the only solution is to downgrade REST

Stereo-3D commented 1 year ago

Uh oh, seems that the Battlefield 4 game is not free :sweat_smile:

I have not experienced any crash on both free anime game I'm playing (after your help on DXVK 2.3).. The only issue with newest REST version is just flickering on one of the anime game: https://github.com/4lex4nder/ReshadeEffectShaderToggler/issues/32#issuecomment-1742134305 and also no crash.. I'm using Wine-GE 8.17 too..

xAcid9 commented 1 year ago

Work fine for me in Guild Wars 2 even with v1.3.2

Lutris-GE-Proton8-10 DXVK 2.2 Reshade 5.9.2

zany130 commented 11 months ago

i might be running into this same issue on trails into reverie proton-8.0-4b Reshade 5.92_Addon

zany130 commented 11 months ago

for me this is that last working version 1.2.6 1.2.7 crashes

EDIT: latest works fine on GE-Proton8-22