Novum / vkQuake

Vulkan Quake port based on QuakeSpasm
GNU General Public License v2.0
1.84k stars 223 forks source link

Game crashes when changing Antialiasing or when pressing Alt+Tab #183

Closed ckotte closed 5 years ago

ckotte commented 5 years ago
Command line: vkquake
Found SDL version 2.0.10
Detected 4 CPUs.
Quake 1.09 (c) id Software
GLQuake 1.00 (c) id Software
FitzQuake 0.85 (c) John Fitzgibbons
FitzQuake SDL port (c) SleepwalkR, Baker
QuakeSpasm 0.93.1 (c) Ozkan Sezer, Eric Wasylishen & others
vkQuake 1.02.1 (c) Axel Gneiting & others
Host_Init
Playing registered version.
Console initialized.
UDP Initialized
Server using protocol 666 (FitzQuake)
Exe: 11:12:45 Aug 15 2019
256.0 megabyte heap

Vulkan Initialization
Vendor: Intel
Device: Intel(R) HD Graphics 620 (Kaby Lake GT2)
Using VK_KHR_DEDICATED_ALLOCATION
Using A2B10G10R10 color buffer format
Using X8_D24 depth buffer format
Creating command buffers
Initializing staging
Creating descriptor set layouts
Reallocating dynamic VBs (256 KB)
Reallocating dynamic IBs (1024 KB)
Reallocating dynamic UBs (256 KB)
Initializing samplers
Creating pipeline layouts
Using IMMEDIATE present mode
fpCreateSwapchainKHR
Creating color buffer
AA disabled
Creating depth buffer
Creating render passes
Creating frame buffers
Creating pipelines

Sound Initialization
SDL audio spec  : 44100 Hz, 512 samples, 2 channels
SDL audio driver: pulseaudio - Built-in Audio Analog Stereo, 32768 bytes buffer
Audio: 16 bit, stereo, 44100 Hz
CDAudio disabled at compile time

========= Quake Initialized =========

execing quake.rc
execing default.cfg
execing config.cfg
Disabling renderer/network isolation.
execing autoexec.cfg
3 demo(s) in loop
Using IMMEDIATE present mode
fpCreateSwapchainKHR
Creating color buffer
AA disabled
Creating depth buffer
Creating render passes
Creating frame buffers
Creating pipelines

ERROR-OUT BEGIN

Shutting down SDL sound

QUAKE ERROR: vkQueuePresentKHR failed

The game crashes immediately with the above error if I apply the changes. It works if I test the changes before and then apply.

This also happens if I just press Alt Tab.

Novum commented 5 years ago

This is very likely an Intel driver bug. Please report to them. My code is handling all recoverable errors returned by vkQueuePresentKHR. There are no validation errors either.

Also if you haven't done it yet, try updating your driver.