Skip to content

fix(linux): harden Vulkan encoder fallback#5174

Open
codeafridi wants to merge 1 commit into
LizardByte:masterfrom
codeafridi:fix-segmentation
Open

fix(linux): harden Vulkan encoder fallback#5174
codeafridi wants to merge 1 commit into
LizardByte:masterfrom
codeafridi:fix-segmentation

Conversation

@codeafridi
Copy link
Copy Markdown

Description

Fixes a segmentation fault on Ubuntu 26.04 Wayland when Sunshine starts with the Vulkan encoder path, but the GPU/driver does not support Vulkan H.264 encoding.

The failed Vulkan encoder state is now handled safely, and KMS monitor detection no longer continues with stale or empty monitor data.

Screenshot

N/A

Issues Fixed or Closed

Fixes #5168

Roadmap Issues

N/A

Type of Change

  • fix: Bug fix (non-breaking change which fixes an issue)

Checklist

  • Code has been self-reviewed

AI Usage

  • Light: AI provided minor assistance (formatting, simple suggestions)

@codeafridi codeafridi changed the title harden vulkan encoder fallback and KMS monitor failure handling fix: harden Vulkan encoder fallback May 23, 2026
@codeafridi codeafridi changed the title fix: harden Vulkan encoder fallback fix(linux): harden Vulkan encoder fallback May 23, 2026
@sonarqubecloud
Copy link
Copy Markdown

@codeafridi
Copy link
Copy Markdown
Author

@ReenigneArcher please review

@ReenigneArcher
Copy link
Copy Markdown
Member

Seems fine to me, but would like some users facing the issue to test.

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

Successfully merging this pull request may close these issues.

Segmentation fault

2 participants