Skip to content

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

Merged
ReenigneArcher merged 1 commit into
LizardByte:masterfrom
Sheynar:hotfix/cuda-gl-yuv444
Jun 24, 2026
Merged

fix(linux/cuda-gl): gl:[00000501] error regression#5310
ReenigneArcher merged 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 ✅

@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 18.01%. Comparing base (2c59b2e) to head (6357614).
✅ 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   18.03%   18.01%   -0.03%     
==========================================
  Files         111      111              
  Lines       24613    24613              
  Branches    10895    10897       +2     
==========================================
- Hits         4440     4435       -5     
+ Misses      15823    14932     -891     
- Partials     4350     5246     +896     
Flag Coverage Δ
Archlinux 11.50% <0.00%> (ø)
FreeBSD-amd64 13.32% <0.00%> (+<0.01%) ⬆️
Homebrew-ubuntu-24.04 13.53% <0.00%> (ø)
Linux-AppImage 12.41% <0.00%> (ø)
Windows-AMD64 15.27% <ø> (ø)
Windows-ARM64 13.28% <ø> (-0.03%) ⬇️
macOS-arm64 19.27% <ø> (ø)
macOS-x86_64 18.74% <ø> (-0.01%) ⬇️

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%> (ø)
src/platform/linux/vaapi.cpp 2.84% <0.00%> (ø)
src/platform/linux/graphics.cpp 1.81% <0.00%> (ø)

... and 30 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 2c59b2e...6357614. Read the comment docs.

@ReenigneArcher ReenigneArcher force-pushed the hotfix/cuda-gl-yuv444 branch from 458f91a to 6357614 Compare June 24, 2026 15:52
@ReenigneArcher ReenigneArcher merged commit 338afe6 into LizardByte:master Jun 24, 2026
70 of 71 checks passed
@sonarqubecloud

Copy link
Copy Markdown

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.

2 participants