Skip to content

feat: GPU status dialog quotes the log lines that explain the state #944

Closed

Description

@zackees

Context

#846 asked the dialog to quote the log lines that explain a yellow or red state, such as Unable to open DRM render node., Loading up OpenGL on adapter ... and libEGL warnings. Today it lists generic causes only (rust/obs-gpu-status/src/report.rs).

Proposal

The frontend keeps the startup log lines that match a short list of patterns (graphics init, adapter, DRM render node, EGL or DRI errors) and passes them to the report. The dialog shows them under From the log:.

Acceptance criteria

  • RED: a Tier 1 test asserts that Report includes the provided log lines in logLines and in the dialog text; it fails on stubs.
  • GREEN, plus a Tier 4 assertion: under forced llvmpipe, gpuAcceleration.logLines contains the Loading up OpenGL on adapter Mesa llvmpipe line.

Decisions

  • Pattern matching happens in Rust (testable). The frontend only captures lines; it does not classify them.
  • At most 10 lines, each truncated to 300 characters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions