protonscr

DOOM 2016: Fatal Error wglCreateContextAttribsARB failed

protonclosed
ValveSoftware/Proton#488 · opened 2018-08-25 by gatlinnewhouse · updated 2018-09-12 · 8 comments · github
Ggatlinnewhouse 2018-08-25 github

Log:

Configured log listener print-redirect tags
Added structured log listener print-redirect
Added structured log listener mp-cloud-gobbler
2018-08-24T22:52:41.896-07:00 LOG: Process started
Added structured log listener aws-kinesis-logger
Winsock Initialized
------ Initializing File System ------
Current search path:
    - C:/users/steamuser/Saved Games/id Software/DOOM/base/
    - Z:/home/deleuze/.local/share/Steam/steamapps/common/DOOM/base/
------ File System initialized.
------ Command Line ------
 Z:\home\deleuze\.local\share\Steam\steamapps\common\DOOM\DOOMx64.exe
2018-08-24T22:52:41.899-07:00 LOG: Command Line: Z:\home\deleuze\.local\share\Steam\steamapps\common\DOOM\DOOMx64.exe
------ CPU Information ------
    1 CPU package, 4 physical cores, 8 logical cores
    3200 MHz    Intel CPU with MMX & SSE & SSE2 & SSE3 & SSSE3 & SSE41 & SSE42 & AVX & HTT
    32768 kB 1st level cache, 262144 kB 2nd level cache, 6291456 kB 3rd level cache
    11904 MB System Memory
initializing resource container gameresources.resources
initializing resource container gameresources.patch
idLib::SetProduction( PROD_PRODUCTION )
------- Initializing renderSystem --------
PreliminaryRenderSetup
---registered window class
---registered fake window class
---registered context window class
X..WGL_EXT_swap_control_tear not found
unknown error: 0x578
FATAL ERROR: wglCreateContextAttribsARB failed
Dumped console text to C:\users\steamuser\Saved Games\id Software\DOOM\base\ErrorLog_08-24-2018__10-52-42pm.txt.

idRenderSystem::Shutdown()
Shutting down OpenGL subsystem

***************************
FATAL ERROR: wglCreateContextAttribsARB failed

***************************
GGabrielMajeri 2018-08-25 github

It's a known problem, the AMD/Intel OpenGL drivers on linux lack support for WGL_EXT_swap_control_tear. You might have better luck by using Vulkan.

Assuming you've got the Vulkan drivers installed, go to Steam, click Set Launch Options and add +r_renderapi 1.

EElkasitu 2018-08-25 github

Your mesa drivers might be outdated, see #286

With the latest mesa and vulkan packages (git) it is possible to play the game in both OpenGL and Vulkan.

Zziabice 2018-08-25 github

Had the same problem, running the game with AMD RX 580 and Mesa 18.1.6
Did what @GabrielMajeri explained to solve the problem. The game then run flawlessy.

Ggatlinnewhouse 2018-08-25 github

I have a feeling this is because my mesa is outdated. Although installing mesa-git conflicts with vulkan-intel on Arch Linux.

Here is the error I get with the launch option +r_renderapi 1:

FATAL ERROR: vkCreateDevice failed with error (VK_ERROR_FEATURE_NOT_PRESENT)

Configured log listener print-redirect tags
Added structured log listener print-redirect
Added structured log listener mp-cloud-gobbler
2018-08-25T08:21:49.342-07:00 LOG: Process started
Added structured log listener aws-kinesis-logger
Winsock Initialized
------ Initializing File System ------
Current search path:
    - C:/users/steamuser/Saved Games/id Software/DOOM/base/
    - Z:/home/deleuze/.local/share/Steam/steamapps/common/DOOM/base/
------ File System initialized.
------ Command Line ------
 "Z:\home\deleuze\.local\share\Steam\steamapps\common\DOOM\DOOMx64vk.exe"  +com_SkipIntroVideo 1 +r_renderAPI -2 
2018-08-25T08:21:49.346-07:00 LOG: Command Line: "Z:\home\deleuze\.local\share\Steam\steamapps\common\DOOM\DOOMx64vk.exe"  +com_SkipIntroVideo 1 +r_renderAPI -2 
------ CPU Information ------
    1 CPU package, 4 physical cores, 8 logical cores
    3200 MHz    Intel CPU with MMX & SSE & SSE2 & SSE3 & SSSE3 & SSE41 & SSE42 & AVX & HTT
    32768 kB 1st level cache, 262144 kB 2nd level cache, 6291456 kB 3rd level cache
    11904 MB System Memory
initializing resource container gameresources.resources
initializing resource container gameresources.patch
idLib::SetProduction( PROD_PRODUCTION )
------- Initializing renderSystem --------
PreliminaryRenderSetup
...registered window class
-------------------------
Application Info
-------------------------
App    : DOOM - 1.0.2
Engine : idTech - 6.1.1
-------------------------
Instance Extensions
-------------------------
 + VK_KHR_surface
 + VK_KHR_win32_surface
FATAL ERROR: vkCreateDevice failed with error (VK_ERROR_FEATURE_NOT_PRESENT)
Dumped console text to C:\users\steamuser\Saved Games\id Software\DOOM\base\ErrorLog_08-25-2018__08-21-49am.txt.

idRenderSystem::Shutdown()
log file 'qconsole.log' opened on Sat Aug 25 08:21:49 2018

CrashHandler: Storing data and writing local report.
idStackTracer::GetSource: /home/proton/proton/wine/dlls/winevulkan/vulkan_thunks.c address:0x7FF6317B37EF, line: 2736
No address, error: 2
idStackTracer::GetSource: Failed
No address, error: 2
idStackTracer::GetSource: Failed
No address, error: 2
idStackTracer::GetSource: Failed
No address, error: 2
idStackTracer::GetSource: Failed
No address, error: 2
idStackTracer::GetSource: Failed
No address, error: 2
idStackTracer::GetSource: Failed
idStackTracer::GetSource: Failed

@GabrielMajeri

Ggatlinnewhouse 2018-08-25 github

Looks like the same issue in #286 that @Elkasitu had. I'll look for a workaround for using both mesa-git and vulkan-intel

EElkasitu 2018-08-25 github

Why do you need vulkan-intel? Are you trying to run Doom off of an iGPU?

Ggatlinnewhouse 2018-08-25 github

I completely forgot about minimum requirements for my laptop. :man_facepalming:
I'll try this on my desktop later then.

Ccold-distance 2018-09-12 github

Hi, I use Ubuntu 18.04.1 with Ubuntu-X PPA. Now I have Mesa 8.1.5 running on a RX 580 and I can't run Doom 2016, ever with the +r_renderapi 1 parameter enabled.

This is the current version of Mesa I use:

  • client glx vendor string: Mesa Project and SGI
  • OpenGL core profile version string: 4.5 (Core Profile) Mesa 18.1.5
  • OpenGL version string: 3.1 Mesa 18.1.5
  • OpenGL ES profile version string: OpenGL ES 3.1 Mesa 18.1.5

Nothing extracted yet.