Repository navigation
frontend: Quote the graphics log lines in the GPU status dialog (#944) - #963
Merged
Merged
Conversation
zackees
enabled auto-merge
October 16, 2026 01:52
zackees
force-pushed
the
feat/944-gpu-log-lines
branch
from
October 16, 2026 02:21
e383bba to
1d46931
Compare
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Oct 16, 2026
Member
Author
|
Rebased on master after #960 (frame window + 3-argument report). Review fixes added:
Each fix has a test that failed first. |
zackees
force-pushed
the
feat/944-gpu-log-lines
branch
from
October 16, 2026 06:03
1d46931 to
299b943
Compare
zackees
enabled auto-merge
October 16, 2026 06:03
("Unable to open DRM render node.", the adapter line, EGL errors).
Refs #944
LogCapture keeps up to 10 OBS log lines about the adapter, DRM render nodes, EGL/GLX and video init. The frontend's log handler offers each line through obs_gpu_status_log_line(); the report carries them as logLines and the dialog shows them under "From the log:". The Tier 4 GPU check requires the adapter line. Fixes #944
Review findings: the light's own startup warning (causes mention EGL and the DRM render node) was captured back; a bare "egl" substring matched names like 'Negligible'; the first 10 matches won, so a late failure was dropped; and every line was matched inside the lock, debug lines too. Now the light's own lines are skipped, EGL/GLX match as words or API call names, the last 10 lines are kept, filtering happens before the lock, and do_log only offers lines it logs (info and above). Refs #944
zackees
force-pushed
the
feat/944-gpu-log-lines
branch
from
October 16, 2026 06:04
299b943 to
a6e01ca
Compare
Member
Author
|
Correction: the head here is a6e01ca, which another session had already rebased with the same three commits. My push of an equivalent rebase was correctly refused, so nothing of mine landed on this branch. Checked locally on an equivalent rebase:
|
This was referenced Oct 16, 2026
This was referenced Oct 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #944 (part of #939).
#846 asked the dialog to quote the log lines that explain a yellow or red state. Until now it only listed generic causes.
Change
LogCapture(Rust, Tier 1): keeps up to 10 deduplicated OBS log lines, each at most 300 characters, matchingloading up opengl,loading up direct3d,drm render node,egl,glx,failed to initialize videoorgraphics module(case-insensitive).obs_gpu_status_log_line(line). The frontend'sdo_log()offers every formatted line, and the report carries them aslogLines.en-US.ini.logLinesto containLoading up OpenGL on adapter ….RED → GREEN
Add failing tests for quoting graphics log lines): 3 tests fail ontodo!().obs-gpu-statustests pass, plus a C-ABI test showing a loggedUnable to open DRM render node.reacheslogLines. Clippy and the platform-ifdef ratchet pass, andGpuStatus.cppcompiles cleanly with-Wall.This overlaps #960 (#943) in
ffi/mod.rsandGpuStatus.cpp. Whichever merges second gets rebased.