You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
GetSceneItemTransform() reports the item's bounds as libobs stores them: 0 x 0 for a new item, whose boundsType is OBS_BOUNDS_NONE (bounds unused).
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 boundsTypeOBS_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.
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.
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.
Activity
rdoupe commentedon Oct 13, 2026
Claiming: this issue.
test_ws_transform_bounds(4 cases) sendsSetSceneItemTransformthe transformGetSceneItemTransformreturns 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.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.
zackees commentedon Oct 13, 2026
Claiming.
test/cmocka: SetSceneItemTransform refuses the transform GetSceneItem…
obs-websocket: accept 0 bounds while boundsType is OBS_BOUNDS_NONE (G…