Skip to content

SDL_Renderer Vulkan Crash on Minimize #14434

@CasualPokePlayer

Description

@CasualPokePlayer

Within SDL_UnlockTexture, VULKAN_EnsureCommandBuffer gets called. Within that function rendererData->commandBuffers may be dereferenced, and it might do so while it is currently NULL, causing a crash.

This seems to happen whenever minimize occurs, with SDL_RenderPresent -> (SDL_LockTexture ->) SDL_UnlockTexture being done (rendererData->commandBuffers is set to NULL in SDL_RenderPresent due to VK_ERROR_OUT_OF_DATE_KHR error path, SDL_UnlockTexture proceeding to call VULKAN_EnsureCommandBuffer and dereference rendererData->commandBuffers. This code pattern is currently done within my own app.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions