Skip to content
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

Scrap Mechanic: "Unable to find suitable graphics adapter." on AMD/Intel Mesa #1129

Closed
Friz64 opened this issue Jul 14, 2019 · 8 comments
Closed

Comments

@Friz64
Copy link

Friz64 commented Jul 14, 2019

Scrap Mechanic refuses to launch with AMD/Intel Mesa. The game crashes with this error:
image
This has been confirmed by a few AMD/Intel Mesa users on protondb.

System information

  • GPU: AMD RX 580 (AMD RADV POLARIS10 (LLVM 7.0.1))
  • Proton version: Proton 4.2-9

Log files

13:34:12 (1) [System] Operating system: Win 7 Service pack 1
13:34:12 (1) [System] Permissions for C:/users/steamuser/Application Data - Others write | Others read | Group write | Group read | Owner write | Owner read
13:34:12 (1) [System] Permissions for C:/users/steamuser/Local Settings/Application Data - Others write | Others read | Group write | Group read | Owner write | Owner read
13:34:12 (1) [System] Permissions for .. - Others write | Others read | Group write | Group read | Owner write | Owner read
13:34:12 (1) [Default] Initializing ResourceManager
13:34:12 (1) ERROR: d:\jenkinsworkspace\scrapmechanic\contraptioncommon\resources\resourcemanager.cpp:89 $GAME_DATA/Objects/Mesh/fittings/obj_fittings_fusebox.mesh is marked for upgrade, but the file exists. Ignoring upgrade pair
13:34:12 (1) ERROR: d:\jenkinsworkspace\scrapmechanic\contraptioncommon\renderer\dx11\d3d11_device.cpp:127 DirectX Error "CreateDXGIFactory" failed. Error code: 0x80004005

13:34:12 (1) [Render] ERROR: d:\jenkinsworkspace\scrapmechanic\contraptioncommon\renderer\dx11\d3d11_renderer.cpp:59 Adapter search failed
Shutting down...

The game works fine on DXVK using the proprietary NVIDIA driver since this patch was introduced, but this is unrelated to this issue since the game still crashes with same error on DXVK master.

@K0bin
Copy link
Collaborator

K0bin commented Jul 14, 2019

Please also post the DXVK log files and an apitrace.

@doitsujin
Copy link
Owner

doitsujin commented Jul 14, 2019

Can you please not straight-up ignore the issue template and post the DXVK logs? There's a reason why I'm asking for those in the issue template, it's getting really annoying to have to ask twice for them on every single bug report.

That said, this looks suspicious:

13:34:12 (1) ERROR: d:\jenkinsworkspace\scrapmechanic\contraptioncommon\renderer\dx11\d3d11_device.cpp:127 DirectX Error "CreateDXGIFactory" failed. Error code: 0x80004005

But again, can't tell what's wrong without at the very least having a log and ideally an apitrace.

@Friz64
Copy link
Author

Friz64 commented Jul 14, 2019

Sorry for not providing the log files directly. I was able to create a API Trace: ScrapMechanic.trace.tar.gz

Here's a dump i did:

$ wine apitrace.exe dump ScrapMechanic.trace 
// process.name = "Z:\\media\\hdd1\\SteamLibrary\\steamapps\\common\\Scrap Mechanic\\Release\\ScrapMechanic.exe"
0 CreateDXGIFactory(riid = IID_IDXGIFactory, ppFactory = ?) = E_FAIL
0009:fixme:kernelbase:AppPolicyGetProcessTerminationMethod 0xfffffffa, 0x33fe44

It seems like there was no DXVK log generated in the game directory though.

@doitsujin
Copy link
Owner

doitsujin commented Jul 14, 2019

Proton disables those by default, you need to set the Steam launch options for this game to PROTON_LOG=1 %command% in order to enable it. You can also post the whole steam-387990.log file which will appear in your home directory.

@Friz64
Copy link
Author

Friz64 commented Jul 14, 2019

ScrapMechanic_dxgi.log

info:  Game: ScrapMechanic.exe
info:  DXVK: v1.2.1-6-g894515f6
warn:  OpenVR: Failed to initialize OpenVR
info:  Required Vulkan extension VK_KHR_get_physical_device_properties2 not supported
info:  Required Vulkan extension VK_KHR_surface not supported
info:  Required Vulkan extension VK_KHR_win32_surface not supported
err:   DxvkInstance: Failed to create instance

@varris1
Copy link
Contributor

varris1 commented Jul 14, 2019

Error on your end. Do you have the vulkan drivers for 64 and 32 bit installed?

@doitsujin
Copy link
Owner

doitsujin commented Jul 14, 2019

That's definitely a setup issue on your end then. Make sure you have a 32-bit Vulkan driver and Vulkan loader installed for your distro.

@Friz64
Copy link
Author

Friz64 commented Jul 14, 2019

That was indeed the problem! After installing the 32-bit Vulkan Drivers (which many people don't have apparently), applying the RSGetViewports fix and removing the apitrace DirectX libraries, it starts up perfectly. Now i have 60 FPS with max settings and no graphical glitches. Thank you so much for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants