Open ghost opened 6 years ago
Copying from my other comment,
I went so far for my issue posted: #692 as to replace all the bin files in the Proton directory with my configuration from my working Lutris install. However, for me that did not fix the problem.
That leads me to believe that the issue is related to something Proton is setting on top of wine, not wine itself.
I've filled out the https://github.com/ValveSoftware/Proton/wiki/Stable google report link to reflect my testing.
@kisak-valve I found the issue, It is due to a bug regarding my system and esync https://github.com/zfigura/wine/blob/esync/README.esync
I Just got it to run with the flag PROTON_NO_ESYNC
I tried the WINE flag WINEESSYNC
which did not work.
I read the readme, but forgot you guys use custom environment variables.
What do you want to do here? For my consideration it is fixed, but I'm unsure how to proceed. Fact is my system crashed when I was running with the default configuration.
I get a infinite loading screen before main menu with the loading indicator animated on the bottom right. CPU cycle sits at 9% forever.
That's with proton, no issues with wine/dxvk in general.
Someone mentioned LLVM 7.0 is needed but not sure, only 6.0.1 is available.
@jarrard try: what I mentioned above:
I Just got it to run with the flag PROTON_NO_ESYNC
https://github.com/ValveSoftware/Proton#runtime-config-options
Yes that does appear to work, not sure what esync is meant to do.
Also for some reason on my 4k setup I can't seem to select 1440p as a option, bit annoying. (in any steam game)
2560x1440 is a desktop resolution I can use elsewhere. Seems steam play limits to either 4k or 1080p, not a great choice range.
-5 beta of Proton has resolved the missing resolution options between 1080p and 2160p, now I can play the game at 1440p and 60-80fps, thought there is likely slowdowns in certain areas due to optimization issues with the game.
I edit file ~/.steam/steam/steamapps/common/Proton 3.7/user_settings.by removing the comment character string: "PROTON_NO_ESYNC": "1", and "PROTON_USE_WINED3D11": "1",
After that, the game started and the menu was loaded. But there are no textures
this was resolved weeks ago and was related to max open files limit which you need to increase for esync to work. Most people have it too small so this problem continuously comes up!
this was resolved weeks ago and was related to max open files limit which you need to increase for esync to work. Most people have it too small so this problem continuously comes up!
How can I solve this problem specifically in my case?
Hello @kuraleb, give https://github.com/zfigura/wine/blob/esync/README.esync a read.
Hello @kuraleb, give https://github.com/zfigura/wine/blob/esync/README.esync a read.
Thanks. After increasing the simultaneously opening files, the game crashes with an error: "memory allocation failed"
what does ulimit -aH say? below is mine.
core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 63179
max locked memory (kbytes, -l) 1024
max memory size (kbytes, -m) unlimited
open files (-n) 1048576
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) unlimited
cpu time (seconds, -t) unlimited
max user processes (-u) 63179
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
what does ulimit -aH say? below is mine.
core file size (blocks, -c) unlimited data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 63179 max locked memory (kbytes, -l) 1024 max memory size (kbytes, -m) unlimited open files (-n) 1048576 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) unlimited cpu time (seconds, -t) unlimited max user processes (-u) 63179 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited
core file size (blocks, -c) unlimited data seg size (kbytes, -d) unlimited scheduling priority (-e) 0 file size (blocks, -f) unlimited pending signals (-i) 46298 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 1048576 pipe size (512 bytes, -p) 8 POSIX message queues (bytes, -q) 819200 real-time priority (-r) 0 stack size (kbytes, -s) unlimited cpu time (seconds, -t) unlimited max user processes (-u) 16384 virtual memory (kbytes, -v) unlimited file locks (-x) unlimited
Well the only real major difference is max locked memory and max user processes. I'm not sure if those can be changed or if that would help.
Well the only real major difference is max locked memory and max user processes. I'm not sure if those can be changed or if that would help.
I adjusted the settings. Unfortunately it did not help
and if you disable ESYNC now does the game still work or has increasing open file limit introduced this new error?
Could be a issue specific to your configuration and not a general problem that we might all encounter.
To me it sounds like your trying to play the game on hardware that is below the minimal requirement, such as your GPU not having enough VRAM thus causing these allocation memory errors or missing textures (kinda the same thing).
and if you disable ESYNC now does the game still work or has increasing open file limit introduced this new error?
Could be a issue specific to your configuration and not a general problem that we might all encounter.
To me it sounds like your trying to play the game on hardware that is below the minimal requirement, such as your GPU not having enough VRAM thus causing these allocation memory errors or missing textures (kinda the same thing).
NVIDIA Corporation GK208BM [GeForce 920M] (rev a1) 2Gb VRAM
ESYNC disabled, now the game does not get hung up, but it also crashes
And on the Wine game worked without departures.
Yes, however that could be because many things are being avoided from loading, like certain graphical features, or wine could be lying about available memory hence missing textures.
2GB VRAM is pretty low, and I think the 920M is slower then a 660 which is the minimal. To make matters worse the 920M is a MOBILE gpu which introduces some other issues I believe.
I think in your particular case, the solution would be to create a dual boot situation and use Windows to try this game out vs attempting it on proton under Linux. Your hardware specs are just so minimal and this game is VERY demanding.
Yes, however that could be because many things are being avoided form loading, like certain graphical features, or wine could be lying about available memory hence missing textures.
2GB VRAM is pretty low, and I think the 920M is slower then a 660 which is the minimal. To make matters worse the 920M is a MOBILE gpu which introduces some other issues I believe.
I think in your particular case, the solution would be to create a dual boot situation and use Windows to try this game out vs attempting it on proton under Linux. Your hardware specs are just so minimal and this game is VERY demanding.
This game works for me and under the Wine and Windows. On the same hardware. 8 fps, but it worked.
And a Proton is faced with similar problems
I thought you said just above that under Wine it doesn't render in all the textures?
The issue here is that people with reasonably decent hardware seem to be having no problems now provided they set things up right.
So unless you can find someone with a 960M or something who is experiencing similar issues then there might not be much that can be done at this point in time.
I thought you said just above that under Wine it doesn't render in all the textures?
The issue here is that people with reasonably decent hardware seem to be having no problems now provided they set things up right.
So unless you can find someone with a 960M or something who is experiencing similar issues then there might not be much that can be done at this point in time.
At me on the wine works with all textures. 10-15 fps
only thing you can do is a apitrace and see what comes of it.
what does ulimit -aH say? below is mine.
Be aware that on systemd-based machines, ulimit is a lie. systemd's cgroup settings will override them unless it is specifically configured otherwise.
Kingdom Come Deliverance: Weird frame stutter after hr of play, fps is ok but.
Issue transferred from https://github.com/ValveSoftware/Proton/issues/2215. @jarrard posted on 2019-01-14T05:27:05:
Steam log (just to main menu then back out again.) steam-379430.log
After about a hour or so of game-play a weird issue occurs when looking around that causes mouse stutter, however frame-rate is otherwise fine. Game is unplayable when it does this.
Play for a sufficient amount of time.
@jarrard commented on 2019-01-14T06:40:42
If anyone else gets this issue (likely NVIDIA related) then please do comment. It seems pretty consistent with about 1-2hrs worth of play time when it happens.
Is the dll copy workaround still needed?
in the Win64Shared folder thing? yes I believe so.
Is there any way to fix this directly in Proton? KCD works great under Proton and this is the only thing that prevents it from running out-of-box.
Dunno, but it seems the games exe can't navigate to where the original DLL files are located and that is likely a underlying Wine directory pathing error.
Perhaps a full error log on load up will reveal more on exactly what is going wrong for it to default back to the core exe directory and not the Shared folder.
PS. It should be noted that this isn't the only game where DLL locations have problems, I can't remember which others off the top of my head however.
I seem to only be able to run the game with Proton 3.7. All other versions freeze at the initial flash screen. I wonder if anybody else has this issue?
Sorry mine seems fine at 3.16.6 beta, been experimenting with the new adaptivesync drivers 418.30, makes KCD playable at 4k under Linux, pretty surprised. Does require some graphical tweaking and running on mostly medium settings. Also the nexus mod optimized graphics presets helps (there is a small flicker bug with the optz fog setting however)
@kaimast I had the same issue on Fedora 29 with RX 580 and Flatpak version of Steam. This was in the log: wine: Call from 0x7b44af1c to unimplemented function amd_ags_x64.dll.agsGetCrossfireGPUCount, aborting
Changing the Proton version to 3.7-8 did not help, however copying amd_ags_x64.dll
from Win64Shared to Win64 fixed the issue and Kingdom Come now runs fine on my system. :-)
To get this to work for me I had to set PROTON_USE_WINED3D to 1, otherwise it would just hang at the startup splash, using 3.16.6 I only got a black screen.
FPS is absolute rubbish though, 10fps at lowest settings 1080p (around 50-60fps on windows on medium-high, 1440p)
Proton: 4.2-1 GPU: GTX 1080 Driver: nvidia 418.56-5 Kernel: 5.0.5 System information steam-379430.log
About the input stutteer: I have this issue, too. Each time I move the mouse, Proton loads and unloads dinput8.dll. After doing this a lot of times, something seems to slow down DLL loading (?) and cause the stutter.
48621.964:0024:0025:trace:module:LdrAddRefDll (L"dinput8.dll") ldr.LoadCount: 2 48621.964:0024:0025:trace:module:LdrUnloadDll (0x7f6fd19f0000) 48621.964:0024:0025:trace:module:LdrUnloadDll (L"dinput8.dll") - START 48621.964:0024:0025:trace:module:MODULE_DecRefCount (L"dinput8.dll") ldr.LoadCount: 1 48621.964:0024:0025:trace:module:LdrUnloadDll END 48621.965:0024:0025:trace:module:LdrGetDllHandle L"C:\\windows\\system32\\dinput8.dll" -> 0x7f6fd19f0000 (load path L"Z:\\home\\torque\\.steam\\steam\\steamapps\\common\\KingdomComeDeliverance\\Bin\\Win64;C:\\Program Files (x86)\\Steam;C: \\windows\\system32;C:\\windows\\system;C:\\windows;.;C:\\windows\\system32;C:\\windows;C:\\windows\\system32\\wbem") 48621.965:0024:0025:trace:module:LdrAddRefDll (L"dinput8.dll") ldr.LoadCount: 2 48621.965:0024:0025:trace:module:LdrUnloadDll (0x7f6fd19f0000) 48621.965:0024:0025:trace:module:LdrUnloadDll (L"dinput8.dll") - START 48621.965:0024:0025:trace:module:MODULE_DecRefCount (L"dinput8.dll") ldr.LoadCount: 1 48621.965:0024:0025:trace:module:LdrUnloadDll END 48621.965:0024:0025:trace:module:LdrGetDllHandle L"C:\\windows\\system32\\dinput8.dll" -> 0x7f6fd19f0000 (load path L"Z:\\home\\torque\\.steam\\steam\\steamapps\\common\\KingdomComeDeliverance\\Bin\\Win64;C:\\Program Files (x86)\\Steam;C:\\windows\\system32;C:\\windows\\system;C:\\windows;.;C:\\windows\\system32;C:\\windows;C:\\windows\\system32\\wbem") 48621.965:0024:0025:trace:module:LdrAddRefDll (L"dinput8.dll") ldr.LoadCount: 2 48621.965:0024:0025:trace:module:LdrUnloadDll (0x7f6fd19f0000) 48621.965:0024:0025:trace:module:LdrUnloadDll (L"dinput8.dll") - START
<...>
Once the next DLC hits I'll probably get back into trying KCD out, not sure if the stutter issue exists or how well it runs with 4.2.
Also if you use PROTON_USE_WINED3D=1 then that effectively disables DXVK, keep that in mind when getting terrible FPS. Eventually Wine itself will use Vulkan for DirectX and it won't be a issue but for now its using terrible OpenGL wrapping which is ok for DX9 and below but BAD for DX11 games!
Edit: Performance issues fixed in official Proton 4.11-1. Custom proton no longer required.
There is a large performance issue with 4.2-9 (and earlier that I tested) since 1.9 of game that is fixed by custom proton build: Proton-4.11-GE-1.
I get:
- 45 fps with official proton 4.2-9.
- 90 fps using Proton-4.11-GE-1.
When looking at GPU clocks using 4.2-9 these are unusually low, GPU boosting as expected with custom proton.
Updating DXVK does not resolve, unable to narrow down further.
I know of 1 other Vega user and 1 Nvidia user reporting this build fixes performance issue.
- GPU: RX Vega 56
- Driver/LLVM version: 19.1.2 & 19.2.0-devel + ACO
- Kernel version: 5.2.1-arch1-1-ARCH
- Gist
- Proton version: 4.2-9
Fedora 30, GNOME 3.32 (Wayland), Mesa 19.1.2, AMD RX 580, Proton 4.11, workaround applied, "Very High" preset.
Kingdom Come runs absolutely amazing with Proton 4.11! With Proton 4.2, I had around 8 - 18 fps, with Proton 4.11, I get 28 - 40 fps, sometimes even 50+ fps.
Does it work for you without setting PROTON_USE_WINED3D to 1?
For me it still hangs at the startup splash using proton 4.11 and not using vulkan results in horrible FPS.
Works for me with the workaround (copying amd_ags_x64.dll), get 30-60 FPS on medium, 1080p. Arch Linux, Plasma 5.16.4 (xorg), nvidia 430.40, GTX 1080, Proton 4.11-2 steam-379430.log
you should get over 60fps at 1080p with gtx1080!
@jarrard no idea what I got on windows, but I normally play in 1440p anyway and all I can remember is that the FPS was crap no matter what..
Yeah KCD needs vulkan and/or major optimisations.
I have an annoying issue with this when running 1800p with dual monitor. My mouse will get stuck moving right towards my second monitor. The old stuck mouse pan issue basically. Can't seem to resolve this one however, this is on plasma5.
EDIT: Figured it out, its some proton/game glitch where it doesn't correctly resize the game-screen and you end up with cut off bits, and when you minimise it breaks protons ability to capture the mouse.
You can reset the behaviour in-game by changing down and up a resolution, with a bit of fiddling and luck you can get it to switch correctly without needing to minimise (where it messes up the mouse capture).
Possible proton needs some help detecting when a game is minimised or when a mouse looses game window capture while window is focused. Could be a unique issue to kwin also... (and dual monitor setups)
NOTE: KCD is quite dicey even under windows where it will resize desktop app windows because it forces screen to some 720p mode or something.. its a bit of a mess, shame the developers are not resolving these issues! (they know about them btw)
Same result with DXVK on proton 4.11-4: The game keeps getting stuck on the splash screen :/
@kaimast Even with copying the dlls as mentioned above?
Oh you're right. After copying all DLLs, not just the d3dcompiler ones, it works for me.
cp Win64Shared/*.dll Win64
I get this message on the splash screen by default in Proton 4.2.
Unsupported Graphics Card detected. A GPU with support for D3D FeatureLevel 11.0 is required.
I get this message on the splash screen by default in Proton 4.2.
Unsupported Graphics Card detected. A GPU with support for D3D FeatureLevel 11.0 is required.
What GPU are you using? It might not support certain OpenGL /Vulkan extensions needed for DX11.
I wouldn't play this game on anything less than a RX480 / GTX960. It's a VERY demanding game and isn't all that greatly optimized atm. Hopefully it gets upgraded to vulkan api sometime.
@kaimast
What GPU are you using? It might not support certain OpenGL /Vulkan extensions needed for DX11.
I'm using a Radeon VII with RadeonSI and RADV (Mesa 19.2.4). I previously successfully launched KCD on a Radeon WX 7100 some time back though I no longer have access to that system to see if it's a software regression or a hardware difference.
I remember there being some early issues with Radeon 7 cards. Can you update to bleeding edge mesa?
Occurs on proton 3.7.3 and 3.7.4 installed with steam
Logs from proton default logging config: steam-prune-379430.log
Each time I've seen the system crash, I've seen the following lines in journalctl:
A journalctl log from when I left the machine running after the initial hang: journalctl-crash-379430.log
Finally a workaround to get the game to get past black screen:
Further, this game DOES work under wine 3.12 staging, with DXVK 0.64 (Configured with Lutris) dxvk--lutris.txt
When i use the above configuration, I do not see the errors described above.
Game logs for those who care: Launcher.log kcd.log
System Specs, short:
System Specs, long: steam-system-report.log