Skip to content

fix(linux/cuda-gl): gl:[00000501] error regression#5310

Open
Sheynar wants to merge 1 commit into
LizardByte:masterfrom
Sheynar:hotfix/cuda-gl-yuv444
Open

fix(linux/cuda-gl): gl:[00000501] error regression#5310
Sheynar wants to merge 1 commit into
LizardByte:masterfrom
Sheynar:hotfix/cuda-gl-yuv444

Conversation

@Sheynar

@Sheynar Sheynar commented Jun 20, 2026

Copy link
Copy Markdown
Contributor

Description

Mismatch count of programs in apply_color causing error gl:[00000501] (GL_INVALID_VALUE) in create_blank at start of probing NV12(yuv420) at encoders, that using egl (cuda-gl, vaapi)

[2026-06-18 09:02:50.313]: Info: Creating encoder [h264_nvenc]
[2026-06-18 09:02:50.313]: Info: Color coding: SDR (Rec. 601)
[2026-06-18 09:02:50.313]: Info: Color depth: 8-bit
[2026-06-18 09:02:50.313]: Info: Color range: JPEG
[2026-06-18 09:02:50.336]: Info: EGL: context priority set to HIGH
[2026-06-18 09:02:50.427]: Info: Streaming bitrate is 1000000
[2026-06-18 09:02:50.460]: Error: GL: /src/platform/linux/graphics.cpp:649: [00000501]
[2026-06-18 09:02:50.477]: Info: Creating encoder [hevc_nvenc]
[2026-06-18 09:02:50.477]: Info: Color coding: SDR (Rec. 601)
[2026-06-18 09:02:50.477]: Info: Color depth: 8-bit
[2026-06-18 09:02:50.477]: Info: Color range: JPEG
[2026-06-18 09:02:50.478]: Info: EGL: context priority set to HIGH
[2026-06-18 09:02:50.479]: Info: Streaming bitrate is 1000000
[2026-06-18 09:02:50.499]: Error: GL: /src/platform/linux/graphics.cpp:649: [00000501]
[2026-06-18 09:02:50.513]: Info: Creating encoder [av1_nvenc]
[2026-06-18 09:02:50.513]: Info: Color coding: SDR (Rec. 601)
[2026-06-18 09:02:50.513]: Info: Color depth: 8-bit
[2026-06-18 09:02:50.513]: Info: Color range: JPEG
[2026-06-18 09:02:50.514]: Info: EGL: context priority set to HIGH
[2026-06-18 09:02:50.515]: Info: Streaming bitrate is 1000000
[2026-06-18 09:02:50.536]: Error: GL: /src/platform/linux/graphics.cpp:649: [00000501]
[2026-06-18 09:02:50.551]: Info: Screencasting with KMS

Screenshot

Issues Fixed or Closed

Roadmap Issues

Type of Change

  • feat: New feature (non-breaking change which adds functionality)
  • fix: Bug fix (non-breaking change which fixes an issue)
  • docs: Documentation only changes
  • style: Changes that do not affect the meaning of the code (white-space, formatting, missing semicolons, etc.)
  • refactor: Code change that neither fixes a bug nor adds a feature
  • perf: Code change that improves performance
  • test: Adding missing tests or correcting existing tests
  • build: Changes that affect the build system or external dependencies
  • ci: Changes to CI configuration files and scripts
  • chore: Other changes that don't modify src or test files
  • revert: Reverts a previous commit
  • BREAKING CHANGE: Introduces a breaking change (can be combined with any type above)

Checklist

  • Code follows the style guidelines of this project
  • Code has been self-reviewed
  • Code has been commented, particularly in hard-to-understand areas
  • Code docstring/documentation-blocks for new or existing methods/components have been added or updated
  • Unit tests have been added or updated for any new or modified functionality

AI Usage

  • None: No AI tools were used in creating this PR
  • Light: AI provided minor assistance (formatting, simple suggestions)
  • Moderate: AI helped with code generation or debugging specific parts
  • Heavy: AI generated most or all of the code changes

@ReenigneArcher ReenigneArcher changed the title fix(linux/cuda-gl): fix gl:[00000501] error added in #4965 fix(linux/cuda-gl): gl:[00000501] error regression Jun 22, 2026
@ReenigneArcher ReenigneArcher force-pushed the hotfix/cuda-gl-yuv444 branch from eb94be7 to 458f91a Compare June 22, 2026 18:10
@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Bundle Report

Bundle size has no change ✅

@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Jun 22, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 17.84%. Comparing base (6c34c4f) to head (458f91a).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
src/platform/linux/graphics.cpp 0.00% 4 Missing ⚠️
src/platform/linux/cuda.cpp 0.00% 1 Missing ⚠️
src/platform/linux/vaapi.cpp 0.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5310      +/-   ##
==========================================
+ Coverage   16.15%   17.84%   +1.68%     
==========================================
  Files         111      111              
  Lines       23733    24589     +856     
  Branches    10515    10890     +375     
==========================================
+ Hits         3835     4387     +552     
- Misses      16744    17482     +738     
+ Partials     3154     2720     -434     
Flag Coverage Δ
Archlinux 11.19% <0.00%> (?)
FreeBSD-amd64 13.23% <0.00%> (?)
Homebrew-ubuntu-24.04 13.23% <0.00%> (?)
Linux-AppImage 12.11% <0.00%> (ø)
Windows-AMD64 14.91% <ø> (ø)
Windows-ARM64 13.19% <ø> (-0.01%) ⬇️
macOS-arm64 19.13% <ø> (ø)
macOS-x86_64 18.61% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/platform/linux/graphics.h 0.00% <ø> (ø)
src/platform/linux/cuda.cpp 1.67% <0.00%> (-0.01%) ⬇️
src/platform/linux/vaapi.cpp 2.84% <0.00%> (+0.11%) ⬆️
src/platform/linux/graphics.cpp 1.81% <0.00%> (+0.17%) ⬆️

... and 49 files with indirect coverage changes


Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6c34c4f...458f91a. Read the comment docs.

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.

1 participant