Skip to content

bug: obs-websocket: Missing ImageFormat declaration breaks full native builds #659

Closed

Description

@zackees

Location

plugins/obs-websocket/src/requesthandler/RequestHandler_Sources.cpp:231 at the pinned fork commit 3e4655369342dabeaf8e9ed4c12a9708baceab98:

QString("data:%1;base64,").arg(Utils::ImageFormat::MimeType(imageFormat).c_str())

The translation unit includes RequestHandler.h but never includes utils/ImageFormat.h, which declares this namespace/function.

Class

Build regression (missing declaration), introduced by #652 / obs-rust/obs-websocket#6.

How it is reached

Build the full frontend with obs-websocket enabled. Actual Windows x64 build fails with C3083/C2039/C3861 at this line; macOS arm64 fails with no member named ImageFormat in namespace Utils.

Evidence from the candidate build of #658:

This also blocks native package validation for #635/#629/#630. The standalone test_ws_image_mime compiles the helper, so it does not exercise this failing caller translation unit.

Proposed fix and failing test

Include the declaration directly in RequestHandler_Sources.cpp in the fork, merge that scoped PR, and update the parent submodule pin. The current failed full build is RED; rerun the same full native compilation and packaged saved-profile launch after the pin update for GREEN. Preserve the MIME helper tests and protocol behavior.

Activity

  1. added
    bug
    on Oct 14, 2026
  2. zackees commented on Oct 14, 2026

    @zackees
    MemberAuthor

    Claiming: repair the missing ImageFormat declaration blocking #635 release validation. 1. Use the actual failed Windows/macOS caller builds as RED. 2. Add the direct include in a scoped fork PR and preserve helper tests. 3. Update the parent pin in a linked PR, run full native frontend builds and saved-profile launch, and merge only after validation. First PR expected within this session.

  3. added
    claimed
    on Oct 14, 2026
  4. zackees commented on Oct 14, 2026

    @zackees
    MemberAuthor

    Progress / collision coordination: the fork fix is already in draft obs-rust/obs-websocket#10 at 175a666420cfcdb47ee79ccf2ca9bf64172f940f. Its linked parent integration is committed locally on fix/659-websocket-compile at cf59698c0; mandatory lint and all 191 OFF/ON C tests pass (1766 identical exports), with the attestation still running. The ARM64 release candidate is stacked on this same pin and will run the full nonpublishing native package workflow. Please avoid a duplicate parent PR; the claimed integration is ready to push once stamped. Fork PR #10 stays draft until actual full caller compilation GREEN is available; the standalone helper tests do not establish that.

  5. zackees commented on Oct 14, 2026

    @zackees
    MemberAuthor

    Precision on the local CTest result: each OFF/ON lane reports 0 failures out of 191, with 15 environment-dependent PipeWire/Pulse/VLC tests skipped. The 1766-symbol parity check passed. These skips are disclosed in the PR description and are not native frontend or hardware capture proof. Actual full frontend builds and packaged runtime validation remain required.

  6. zackees commented on Oct 14, 2026

    @zackees
    MemberAuthor

    Releasing my separate #659 claim and consolidating on the earlier parent PR #660, whose full native builds are already running. My duplicate #661 is closed with its mandatory gate and review evidence carried over. Partial branch: https://github.com/obs-rust/obs-studio/tree/fix/659-websocket-compile (same source as #660). The fork merge alone is not native GREEN; #659 remains unresolved until full caller compilation passes. I will track #660 and the #629 packaged-runtime run as part of #635.

  7. removed
    claimed
    on Oct 14, 2026
  8. zackees commented on Oct 14, 2026

    @zackees
    MemberAuthor

    Fixed by #660 (merged): the websocket submodule now includes ImageFormat.h, and full native builds pass again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions