dxvk: Scrap Mechanic: Game fails to launch with DXVK but works with WineD3D11
Software information
Name: Scrap Mechanic
Rendering API: DirectX 11
Steam page: https://store.steampowered.com/app/387990/Scrap_Mechanic/
What should happen: Game launches as normal.
Note: The game does launch when using WineD3D11 via proton setting! But it’s flawed with minor graphical glitches like missing transparency in glass etc or broken dynamic lights and bad performance.
What actually happen: Game launches, shows black screen & crashes seconds later.
Additional notes:
It looks like the problem exists between the mygui library and dxvk, so I looked up the source code the game log refers to and found this on github:
Line from the mygui.log:
00:39:29 | Platform | Critical | RenderManager 0 viewport sets | z:\deps\vc141\mygui\platforms\directx11\directx11platform\src\mygui_directx11rendermanager.cpp | 130
Github link with the cpp: https://github.com/MyGUI/mygui/blob/master/Platforms/DirectX11/DirectX11Platform/src/MyGUI_DirectX11RenderManager.cpp
Maybe this helps to determine the problem. Also this issue is reported by almost everyone on ProtonDB: https://www.protondb.com/app/387990
Log files
d3d11 log: https://gist.github.com/MadByteDE/49d07ba90fdd6189b25eb5580d6043b0
dxgi.log: https://gist.github.com/MadByteDE/ca161ff7d09c257e62ebccc7677922d8
Proton log: https://gist.github.com/MadByteDE/7670a761b41fb53ec3d817c0231ab922
Log created by the game itself: https://gist.github.com/MadByteDE/f393bb5f24e2cdd0996412b8dcc28847
System information
Proton version: 4.2-9 DXVK version: 1.2.1 (But 1.2.3 doesn’t work as well - I tested it)
Processor Information: CPU Vendor: AuthenticAMD CPU Brand: AMD Ryzen 5 1600 Six-Core Processor
Operating System Version: “Manjaro Linux” (64 bit) Kernel Name: Linux Kernel Version: 4.19.56-1-MANJARO X Server Vendor: The X.Org Foundation X Server Release: 12005000 X Window Manager: GNOME Shell Steam Runtime Version: jenkins-steam-runtime-beta-release_0.20190320.2
Video Card: Driver: NVIDIA Corporation GeForce GTX 1060 6GB/PCIe/SSE2 Driver Version: 4.6.0 NVIDIA 430.26 OpenGL Version: 4.6 Desktop Color Depth: 24 bits per pixel Monitor Refresh Rate: 60 Hz VendorID: 0x10de DeviceID: 0x1c03 Revision Not Detected Number of Monitors: 1 Number of Logical Video Cards: 1 Primary Display Resolution: 1920 x 1080 Desktop Resolution: 1920 x 1080 Primary Display Size: 20.91" x 11.73" (23.94" diag) 53.1cm x 29.8cm (60.8cm diag) Primary Bus: PCI Express 16x Primary VRAM: 6144 MB Supported MSAA Modes: 2x 4x 8x 16x
Memory: RAM: 16036 Mb
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 20 (1 by maintainers)
Unfortunately reinstalling the game with completely removing prefix didn’t help.
@NTMan Have you tried to delete/rename the “Shaders” folder from “/Scrap Mechanic/Cache/” ? The game will re-generate the files on game launch if it works correctly. It takes about 1-2minutes (blackscreen after launching the game is normal). Not sure if this will change anything, but might be worth a try.
I tried deleting the whole Cache folder myself & it has been re-generated by the game it seems. Sometimes the game rendered too small after doing so, but it was fixed when I pressed “Apply” in the graphics options.