Skip to content

bug: obs-websocket: SetSceneItemTransform refuses the transform GetSceneItemTransform returns (bounds 0) (upstream obsproject/obs-websocket#1299, obsproject/obs-studio#13124) #540

Closed
obs-rust/obs-websocket
#9

Description

@rdoupe

Upstream OBS bug, reported by timasich in obsproject/obs-websocket#1299 (OBS 31.0.3: SetSceneItemTransform fails even when sending back the unchanged transform from GetSceneItemTransform) and by SlackingSleeper in obsproject/obs-studio#13124 (OBS 32.0.2 on Ubuntu 24.04: GetSceneItemTransform returns boundsWidth/boundsHeight 0 for an item whose bounds were never set, and SetSceneItemTransform rejects that with "The field value of boundsWidth is below the minimum of 1.000000"). Still broken in this fork.

Location

Class

Request wrongly refused (no crash): nothing in the transform is applied.

How it is reached

Any obs-websocket client that reads a scene item's transform, changes a field (position, scale, rotation) and sends the whole object back, as client libraries' typed transform objects do (obs-websocket-dotnet in the first report). Only the read-only fields (width, height, sourceWidth, sourceHeight) have to be dropped; the bounds fields are documented as settable.

Reproduced in the current release

AppImage 33.0.0-beta6-799, headless over obs-websocket: CreateInput a 50x50 Color Source, GetSceneItemTransform returns boundsType OBS_BOUNDS_NONE with boundsWidth 0 and boundsHeight 0. Sending that transform back (read-only fields dropped) with positionX 100: status 402, "The field value of boundsWidth is below the minimum of 1.000000", position unchanged. Control: SetSceneItemTransform with only positionX works.

Proposed fix and failing test

Fix (in the obs-rust/obs-websocket fork, then a submodule update here): when the bounds are unused (OBS_BOUNDS_NONE, as given in the request or as the item has it), accept bounds of 0; bounds in use still need at least 1, as in the Edit Transform dialog.

RED test (cmocka, test_ws_transform_bounds). It builds the plugin's scene item requests from their sources against real libobs and calls SetSceneItemTransform on a real scene item:

  • the transform as the GetSceneItemTransform helper returns it, with a new position, is applied;
  • 0 bounds with OBS_BOUNDS_NONE given explicitly are accepted;
  • guard: 0 bounds with OBS_BOUNDS_SCALE_INNER are still refused (402);
  • guard: real bounds (100 x 80, OBS_BOUNDS_SCALE_INNER) are applied.

The first two fail today in both libobs lanes, every run.

Activity

  1. rdoupe commented on Oct 13, 2026

    @rdoupe
    CollaboratorAuthor

    Claiming: this issue.

    1. RED: test_ws_transform_bounds (4 cases) sends SetSceneItemTransform the transform GetSceneItemTransform returns for a new scene item (bounds 0 x 0, OBS_BOUNDS_NONE): it is refused with "below the minimum of 1". 2 of 4 fail today.
    2. GREEN: unused bounds (OBS_BOUNDS_NONE) may be 0; bounds in use still need at least 1 (obs-rust/obs-websocket fork), and the submodule here moves to it.
      PR today.
  2. added
    claimed
    on Oct 13, 2026
  3. zackees commented on Oct 13, 2026

    @zackees
    Member

    Claiming.

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

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions