Skip to content
This repository has been archived by the owner on May 10, 2023. It is now read-only.

Alt-tab crash #581

Closed
AAS opened this issue Dec 2, 2022 · 11 comments
Closed

Alt-tab crash #581

AAS opened this issue Dec 2, 2022 · 11 comments
Labels

Comments

@AAS
Copy link

AAS commented Dec 2, 2022

64-bit vkquake.exe crashes on alt-tabing, just alt-tab to desktop and return to the game.

Windows 11 x64 / GeForce 3060Ti / 527.37 driver version, also tried on 526.86

@vsonnier
Copy link
Contributor

vsonnier commented Dec 2, 2022

I got that for some time too ( weeks / months ?) with the master commits. I didn't try to either report the bug nor investigate because I never use alt-tabbing.
Here :
Windows 10x64 22H2 up to date / GeForce 1050Ti Mobile / 526.98 or Intel HD630 / 31.0.15.2698 so it doesn't seem to be tied to a driver problem at first glance.
Currently I use an up-to-date VS2022 to build together with a VulkanSDK 1.3.231.1.

@Novum
Copy link
Owner

Novum commented Dec 2, 2022

@temx reproducible validation errors when alt+tabbing

Texture lod bias: 0.000000
Validation Error: [ VUID-vkDestroyRenderPass-renderPass-parameter ] Object 0: handle = 0x2095bac00e0, type = VK_OBJECT_TYPE_INSTANCE; | MessageID = 0x93228619 | Invalid VkRenderPass Object 0x8bada20000000098. The Vulkan spec states: If renderPass is not VK_NULL_HANDLE, renderPass must be a valid VkRenderPass handle (https://vulkan.lunarg.com/doc/view/1.3.231.1/windows/1.3-extensions/vkspec.html#VUID-vkDestroyRenderPass-renderPass-parameter)
Validation Error: [ UNASSIGNED-Threading-Info ] Object 0: handle = 0x8bada20000000098, name = main, type = VK_OBJECT_TYPE_RENDER_PASS; | MessageID = 0x5d6b67e2 | Couldn't find VkRenderPass Object 0x8bada20000000098. This should not happen and may indicate a bug in the application.
Validation Error: [ UNASSIGNED-Threading-Info ] Object 0: handle = 0x8bada20000000098, name = main, type = VK_OBJECT_TYPE_RENDER_PASS; | MessageID = 0x5d6b67e2 | Couldn't find VkRenderPass Object 0x8bada20000000098. This should not happen and may indicate a bug in the application.
Validation Error: [ VUID-vkDestroyRenderPass-renderPass-parameter ] Object 0: handle = 0x2095bac00e0, type = VK_OBJECT_TYPE_INSTANCE; | MessageID = 0x93228619 | Invalid VkRenderPass Object 0xc82a830000000099. The Vulkan spec states: If renderPass is not VK_NULL_HANDLE, renderPass must be a valid VkRenderPass handle (https://vulkan.lunarg.com/doc/view/1.3.231.1/windows/1.3-extensions/vkspec.html#VUID-vkDestroyRenderPass-renderPass-parameter)
Validation Error: [ UNASSIGNED-Threading-Info ] Object 0: handle = 0xc82a830000000099, name = main_no_stencil, type = VK_OBJECT_TYPE_RENDER_PASS; | MessageID = 0x5d6b67e2 | Couldn't find VkRenderPass Object 0xc82a830000000099. This should not happen and may indicate a bug in the application.
Validation Error: [ UNASSIGNED-Threading-Info ] Object 0: handle = 0xc82a830000000099, name = main_no_stencil, type = VK_OBJECT_TYPE_RENDER_PASS; | MessageID = 0x5d6b67e2 | Couldn't find VkRenderPass Object 0xc82a830000000099. This should not happen and may indicate a bug in the application.
Using IMMEDIATE present mode

I can't take a look at this until the weekend.

@Novum Novum added the bug label Dec 2, 2022
@vsonnier
Copy link
Contributor

vsonnier commented Dec 2, 2022

@temx your commit 6a8af82 did the trick on my side, alt-tab now works. Thanks !

@temx
Copy link
Collaborator

temx commented Dec 2, 2022

Sorry about this, I assumed GL_CreateRenderResources was not fallible but GL_CreateSwapChain can fail (it took ~20 attempts for me).

@vsonnier
Copy link
Contributor

vsonnier commented Dec 2, 2022

Funny, if I alt-tab on a running game, the game seems to continue to think somehow (Ex a rotaing brush shows a completely different angle after unfreeze, hope I make myself clear). Alt-tabing while the menu is visible (game frozen by nature) looks perfectly normal and freeze / unfreeze the game as-is.

Don't know if it is relevant. Thanks @temx by the way for all your additions !

@Novum
Copy link
Owner

Novum commented Dec 2, 2022

There isn't any pausing when the game doesn't have focus. That has always been the case for Quake.

@Novum
Copy link
Owner

Novum commented Dec 3, 2022

@temx Still getting a validation error:
Validation Error: [ VUID-vkCmdDispatch-mipmapMode-04770 ] Object 0: handle = 0x78e915000000036d, name = surfindices0000000 compute desc set, type = VK_OBJECT_TYPE_DESCRIPTOR_SET; Object 1: handle = 0x2723ba0000000037, name = point, type = VK_OBJECT_TYPE_SAMPLER; Object 2: handle = 0x72432b000000036b, name = surfindices0000000 image view, type = VK_OBJECT_TYPE_IMAGE_VIEW; | MessageID = 0x3019e15a | Descriptor set VkDescriptorSet 0x78e915000000036d[surfindices0000000 compute desc set] encountered the following validation error at vkCmdDispatch time: Sampler (VkSampler 0x2723ba0000000037[point]) is set to use VK_SAMPLER_MIPMAP_MODE_LINEAR with compareEnable is set to VK_FALSE, but image view's (VkImageView 0x72432b000000036b[surfindices0000000 image view]) format (VK_FORMAT_R32_UINT) does not contain VK_FORMAT_FEATURE_SAMPLED_IMAGE_FILTER_LINEAR_BIT in its format features. The Vulkan spec states: If a VkSampler created with mipmapMode equal to VK_SAMPLER_MIPMAP_MODE_LINEAR and compareEnable equal to VK_FALSE isInitializing samplers

If that's just a 1D texture it really should be a uniform texel buffer.

@temx
Copy link
Collaborator

temx commented Dec 3, 2022

Is that related to alt-tab? I don't get that error, and that's the compute lightmap indices texture which shouldn't have changed.

@Novum
Copy link
Owner

Novum commented Dec 3, 2022

Nevermind, that is actually my bug.

@temx
Copy link
Collaborator

temx commented Dec 3, 2022

I don't know if it'll fix it, but it should be possible to remove TEXPREF_LINEAR from lines 1742 and 1749 (NOT 1736) in r_brush.c. But again I don't think I have touched that code.

@Novum
Copy link
Owner

Novum commented Dec 3, 2022

@temx It's fixed now. Closing this, can't repro the original issue anymore.

@Novum Novum closed this as completed Dec 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants