-
Notifications
You must be signed in to change notification settings - Fork 825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Skyrim: Special Edition + ENB freezes before title screen #865
Comments
The trace file is unfortunately kind of useless. Do you have access to a Windows machine? If so, please try to trace it there, if that is at all possible with ENB. Other than that, does ENB do any logging? Would be interesting if it's complaining about anything. I'm not even sure if it is possible for it to work on wine, although with SKSE working I don't really see why not. |
I don't know how ENB works but maybe d3dcompiler_46e.dll is a small wrapper around the normal d3dcompiler dll. Have you tried installing that first (winetricks)? |
Sadly, ENB doesn't seem to log anything. I'll turn on SKSE's logs, but I don't imagine they'd include anything about ENB. I'm downloading Skyrim SE onto my Windows 10 laptop as I type this, but it only has Intel integrated graphics, so I'm not sure if that'll impact the trace. Either way, I'll upload the new trace later today. As for winetweaks, I've tried installing just about every d3d file I could from winetricks; none seem to work, even after configuring them in winecfg. |
Alright, here's the other trace! I used the .dlls linked in the DKVK wiki under the Apitrace section of Common Issues to trace it. Since both ENB and Apitrace had a d3d11.dll, I renamed Apitrace's to traced3d11.dll. If that messed with the results, lemme know and I'll be happy to figure out another way to run it! |
Basically, if a trace file is smaller than at least a few dozen Megabytes, the file is pretty much guaranteed to be useless. You're not necessarily doing anything wrong, it may just be impossible to trace ENB due to the way it is injected into the process. Similarly, it's still possible that the game fails to run due to reasons that are unrelated to DXVK. Without any kind of logging it's impossible to tell what might be going on. Can you post the full wine console output?
Yeah, that's never going to work. |
Apologies for being so late to reply, but I've been packing all day! And yeah, I didn't really expect it to work but I figured I should try something at least. Anyways, here's that wine console output. I set the environment variable to WINEDEBUG=+all and VK_INSTANCE_LAYERS=VK_LAYER_LUNARG_standard_validation wine /media/ellie/Games/Lutris/WineSteam/steamapps/common/SkyrimSpecialEdition/skse64_loader.exe for this, so it's pretty big, but if I did it wrong again lemme know and I'll take another go at it. |
Are you using a winelib build? As I understand it, you'd need to replace wine's d3d11.dll with DXVK's (with a winelib build), then override it as (native, builtin), so that the game will pick up ENB's d3d11.dll (which is native), which in turn will call on the built-in d3d11.dll (which is why you need to replace wine's own with DXVK). |
Also, maybe you ould first try to get it to work without DXVK? |
This also happens for Fallout 4 ENB using DXVK 1.1.1. The error being logged is that |
|
Thanks for replying. It still doesn't work with the If I set dxgi and d3d11 to |
Lots of "hlsl parsing failed". |
That allowed it to move further, but unfortunately it still crashed again. fallout4.log In comparison, this is the log when the ENB dlls are removed (and the menu loads properly): |
Unfortunately there's no hint at all as to what this might be; I assume it fails to inject itself into DXVK. In that case we're pretty much screwed. |
Getting rid of the d3dcompiler_46e.dll file fixes the crashing for me. ENB is able to work, partially at least, since it needs to be able to disassemble game shaders for some things to work, like time of day detection or lighting modifications, but the functions it tries to call for it are just stubs. There are hundreds of lines like this one: |
hi all i am on this road to and like to assist.i am running sse from steam/proton and everything is working out of the box but enb.i can run enb with OpenGL (PROTON_USE_WINED3D=1) out of the box but with low fps.with Dxvk (PROTON_USE_WINED3D=0) i need to remove d3dcompiler_46e.dll as @OrdinaryMagician wrote or it will crash. my logs: regards hedmo |
Can anyone of you record an apitrace with a working ENB setup (i.e. with wined3d) or is that impossible? I cannot debug this problem without knowing exactly what causes it to crash. |
nvm, I found out what's causing the crash - ENB tries to create a broken pixel shader that trips over dxvk. Technically this is an ENB bug, I'll try to work around this. |
And ignore dcl_temps. Needed to successfully compile some broken ENB shaders (this does work on Windows too). See #865.
Crash should be fixed, but this will not work in game, it just locks up during the loading screen for some reason. Edit: Looks like ENB generates horrendously broken shaders. Someone please tell Boris to fix that bloody mess. |
@doitsujin .I have manage to start my wine install with your update . no d3dcompiler_46e.dll removal needed but as you say - horrendously broken shaders. i can not manage to port it to my proton .it crash thank you for this .... |
Works fine on Proton for me without additional configuration. Also, make sure your DXVK build has 2d6a339 included, this fixes more broken ENB shaders. |
@doitsujin where and how do i put them there? |
put what? If you're asking about DXVK, copy the files to |
@doitsujin do you mean the dll.so files i have in the x32/x64 dirs .in ~/.steam/steam/steamapps/common/Proton 4.11/dist/lib64/wine/dxvk-i have dll files regards hedmo |
If you have .dll.so files then you are using a winelib build of dxvk for some reason; I'd recommend you rebuild dxvk with mingw instead (which is the default anyway). |
Honestly, I've got to congratulate you for putting up with the horrendous mess of breakage that is ENB. |
@OrdinaryMagician .yes i know. i have had it all the time.i have been running ENB in a month now but with opengl before dxvk .i have figured out what is wrong with the gui to.but i have not found why i have broken graphics with dxvk with my nvidia card. |
@doitsujin Sorry to bump this old issue but it seems like newer versions are broken again in Skyrim Special Edition. v0.347 works, v0.435 only works after I'm running Valve's Proton 5-09 which supposedly uses a fairly up to date version of DXVK. I also tried replacing the libraries with the ones included here and had the same results. Let me know if you require any additional information, I will help with anything I can. |
@rockerbacon i still play SSE and using Valve's Proton 5-09. I am stuck with an old ENB because of broken shaders . I have older versions of ENB if you like to have but i will test the latest ENB to day and post back. regards |
I managed to get my hands on v0.386 and v0.390 and neither worked. If you have anything different, please do send me (email in my profile). Wine logs didn't have anything useful, it just gets stuck without any errors or useful warnings. |
i can confirm that v0.435 gives a black screen but this time the game starts and it did not do that EDIT: i can confirm that v0.435 and down to v0.409 gives a black screen with nvidia-drivers-450.57 but all versions of ENB works with xf86-video-amdgpu . v0.409 did work with older nvidia-drivers but not now . |
This seems to be, at least in part, dependent on your skyrim configs - there are clearly some configurations (produced by BethINI I think) that cause ENB to break. |
i cannot agree with you.i made a new prefix and downloaded the latest enb...it is the same black screen at the bethesda intro.i did even try GEs proton as there is a patch for skse64 there but it throws me out after the skse is loaded.still stuck with v0.347.... |
Yeah, I think I was wrong - further testing has been... muddled. Using Proton-GE I could reliably get 0.347 to work for a while - until I couldn't get it to launch the game at all - I have no idea why. But here is the output at crash time - in case it's helpful: I'm guessing that unhandled exception near the end is the moment where it dies. |
And the run after that, it suddenly worked - and with the latest ENB even. Though it then hit the black screen. I'll test it again with 0.347 but it seems whatever is causing the exception doesn't happen consistently. |
And now I have it loaded with 0.347 - after two more changes:
Anyway, the older version is now working for me and I'm sticking to this as long as that remains true. |
ATM.i have compiled proton with the skse64 patch and downloaded skse64_2_00_19.the game starts now with |
I'm still on 2_00_17 - would love to move up to 19 because there's a mod I would love ot use that requires it (Enemy Revolution). Can you link me to the patch in question ? I'd love to tell my wine-tkg-git to use it (should be able to slip it into the community patches). |
good luck.i had a running SSE before 2_00_19! |
Thanks, I've now built a package with that patch, but I kept a backup copy of my previous wine package and I'll also backup my prefix before I try it. |
Backup your Skyrim to before you update skse |
after many hours of testing,crashing and corrupted stuff i have manage to update skse64 to 2_00_19. For me < BUT WE STILL HAVE TO BE ON v0.347. > if we use nvidia-drivers....... |
I'm working well on 2_00_19 as well, and I have racemenu installed (could be a different version). |
yes the latest racemenu worked for me to. for me above v0.347 just throws me out. how about you @ajspandigital ? |
Yep, exact same issue for me. |
I have .net script framework working under proton, with a number of mods that depend on it also working fine. I think what made the difference was installing dotnet48 using protontricks... but I should really keep a better track of the changes I make. |
Hah, I had mistakenly believed I had already done that, forgot that dotnet is broken under wine 5.20, but based on your post I backed up my prefix and then used an older wine version to run winetricks and install it. Right now the only .net plugin I'm using with it SSE-Bugfixes. But the .net script framework log says it's working fine. Thanks. |
skyrim VR has got this to now with v0.410 . just a black screen and no more :(. |
@hedmo |
yes i do . i have a special one made by Boris.it removes the double click problem for us but it does |
@hedmo |
According to some notes I made a while back, ENB's Shift + Enter hotkeys worked for me when I rolled back to the lutris-4.21 build of Wine. I believe this also fixed ReShade GUI hotkeys. Unfortunately, that older wine build has other problems that break my Mod Organizer 2 installation, but perhaps this information could help someone narrow down the underlying problem. |
@foresto the GUIs works if you hit the key at boot logo but you cannot close them after. |
I understand that. When I used that earlier version of Wine, the GUIs and other hotkeys worked completely, even after the boot logo. |
Software information
Skyrim Special Edition being played via WineSteam on Lutris. I have installed Skyrim Script Extender 64 and as such launch the game via skse64_loader.exe. This requires a special version of wine which is detailed below. When launched with just SKSE, things run absolutely perfectly. Same goes for SKSE with any combination of typical mods.
The problem arises when trying to use ENB, a graphics mod that essentially replaces Skyrim special edition's native post-processing. ENB is more similar to SKSE64 than other mods, as it is installed to ~/Steam/steamapps/common/Skyrim Special Edition instead of ~/Steam/steamapps/common/Skyrim Special Edition/Data. Installation entails dragging "d3d11.dll" and "d3dcompiler_46e.dll" into this Skyrim Special Edition folder, which auto generates an enblocal.ini and an enbseries.ini when launched. Other files are included in the downloaded .zip, but they are only placeholders for ENB preset creators to edit and aren't needed for the ENB to run.
The game will launch, however, it will freeze on this screen:
I have let it set for at least an hour and nothing will happen. This happens before the Skyrim main menu appears. I have tried launching the game without SKSE and without any mods enabled. This screen, on my heavily modded Windows set-up, would take a minute, max, to load through.
Given this is such a niche scenario, I don't expect anything to come from this! I just wanted to bring the issue to your attention and see if it was an easy fix :) Also sorry if you knew all this about ENBs and all that, I didn't want to leave you hanging with no info! If you do need more info on Skyrim modding to understand this problem I'd be happy to help. Thanks for such an amazing program!
System information
Apitrace file(s)
SkyrimSE.trace
I'm not entirely sure I did this right, so if it's broken lemme know!
Log files
SkyrimSE_dxgi.log
SkyrimSE_d3d11.log
The text was updated successfully, but these errors were encountered: