Skip to content

plugins/obs-websocket: bump for the parallel RequestBatch notify fix - #1996

Merged
zackees merged 2 commits into
masterfrom
fix/bump-obs-websocket-batch-notify
Oct 23, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/bump-obs-websocket-batch-notify

Conversation

@zackees

@zackees zackees commented Oct 23, 2026

Copy link
Copy Markdown
Member

Bumps plugins/obs-websocket from 0d663eefb to 99dd8468b (obs-rust/obs-websocket master), which brings in:

Testing: the existing Tier 2 test_ws_batch_order parallel cases are the regression test. The crash is a timing race, so there is no deterministic local RED; it reproduced intermittently in CI.

Opened by the coordinator at the maintainer's request.

… the lock

Bumps the submodule from 0d663eefb to 99dd8468b, which brings in:
- obs-rust/obs-websocket#18: list items without a name or value report empty strings (#1266)
- obs-rust/obs-websocket#19: GetStats CPU usage is measured per session
- 99dd8468b: a parallel RequestBatch notifies its waiter while holding the
  lock, so the waiter cannot return and free the shared batch state while
  the last task is still notifying (the intermittent test_ws_batch_order
  SIGSEGV on macOS Tier 2).
@zackees
zackees enabled auto-merge October 23, 2026 22:52
@zackees
zackees added this pull request to the merge queue Oct 23, 2026
Merged via the queue into master with commit c681ace Oct 23, 2026
30 checks passed
chriscoveries pushed a commit to chriscoveries/obsrust-fork that referenced this pull request Oct 23, 2026
)

* test: Tier 2 must run when sources a cmocka test compiles change (RED)

* ci: run Tier 2 when sources a cmocka test compiles change

Tier 2's cmocka tests build sources from plugins/, frontend/ and shared/
(test_ws_batch_order compiles plugins/obs-websocket's
RequestBatchHandler.cpp), but only libobs, test/cmocka, deps and the
linked crates selected the lane. A PR changing those sources, or bumping
a submodule such as obs-websocket (obs-rust#1996), skipped the tests that cover
them until master. Read the ${CMAKE_SOURCE_DIR}/... paths from the
cmocka build files and select Tier 2 for changes under them; top-level
include roots are ignored.
chriscoveries pushed a commit to chriscoveries/obsrust-fork that referenced this pull request Oct 24, 2026
…ust#2251)

obs-websocket's GetInputPropertiesListPropertyItems turns every item of
a list property into json. Utils::Obs::ArrayHelper::GetListPropertyItems
used to put the const char * from obs_property_list_item_name() and
obs_property_list_item_string() straight into the json value, and a
NULL pointer throws std::logic_error ("basic_string: construction from
null is not valid") on the websocket thread, so OBS aborted. libobs
keeps such items as they were added: the macOS Screen Capture source
puts a placeholder with a NULL value at the top of its display and
application lists (upstream obsproject/obs-studio#13905). The fork fix,
obs-rust/obs-websocket#18 (a port of obsproject/obs-websocket#1355),
reports those items with empty strings and came in with the submodule
bump in obs-rust#1996.

test_ws_list_property_items compiles the plugin's ArrayHelper against
libobs and builds list properties with a NULL value and a NULL name. It
needs no libobs startup and no display. With the submodule at 0d663ee,
the commit before the fix, both NULL cases fail (the helper throws);
at the current pin all 3 cases pass.

The fix gets its line in docs/features.md.

Fixes obs-rust#1266
chriscoveries pushed a commit to chriscoveries/obsrust-fork that referenced this pull request Oct 24, 2026
…#2250)

obs-websocket used to keep one os_cpu_usage_info_t for every client, and
os_cpu_usage_info_query() moves its last times forward on every call. A
client's GetStats reported the CPU usage since the last GetStats from
any client, not since its own, and the query ran without a lock while
requests run in parallel on the thread pool. The fork fix,
obs-rust/obs-websocket#19 (one locked state per session, a shared locked
one for requests without a session), came in with the submodule bump in
obs-rust#1996.

test_ws_cpu_usage sends GetStats through RequestHandler with two
sessions: it burns CPU, polls from session a, idles as long, then polls
from session b. b's interval covers the burn too, so it must report
about half of a's usage. With the submodule at a4df0f3, the commit
before the fix, b reports only the idle slice (0.000% against 6.094%)
and the case fails; at the current pin it reports 3.047%. A second case
sends GetStats from 8 threads at once, with and without a session.

The fix gets its line in docs/features.md.

Fixes obs-rust#1346
@zackees
zackees deleted the fix/bump-obs-websocket-batch-notify branch October 26, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant