Skip to content

libobs: characterize and extract canvas mix clearing (Refs #5324) - #5335

Merged
zackees merged 2 commits into
masterfrom
test/5324-canvas-clear-mix
Nov 20, 2026
Merged

zackees merged 2 commits into
masterfrom
test/5324-canvas-clear-mix

Conversation

@zackees

@zackees zackees commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Pins the current obs_canvas_clear_mix list and ownership behavior, then moves the function verbatim into libobs/obs-canvas-clear-mix.c.h and the sorted S unity group before its Rust swap.

The C-source fixture uses real private layouts, darray operations and mutexes. Its recording teardown boundary verifies removal before free, the lock held during free, pointer clearing after unlock, one free, and unchanged canvas/source strong and weak references. Cases cover no mix (including no core and an unrelated list entry), one mix, removal at every position among several mixes, an unregistered mix, duplicate entries, and the existing NULL-canvas fault in an isolated Linux child. It starts no graphics or video thread. Downstream graphics/video teardown remains outside this source-only unit characterization.

RED: d78cfde1f567b32c1cc52d51dd1fc90e333b9781 fails the real CMake target build because the extracted include is missing. GREEN: 529d4fe42822f2c9377e1708e28eac59846f4878 adds the unchanged C body and the reviewed fixture fixes. The canonical test graph and tests.d pointer follow the sibling canvas extraction; no new link-support files are needed. The source and registration hunks merge cleanly with the fetched #5295 branch.

Validation:

  • Focused CMake/CTest OFF and ON: all six cmocka cases pass; C-reference and hybrid libobs have identical 1,769-symbol export sets.
  • Whole-fixture GCC and Clang compiles pass with conversion warnings as errors; managed Windows MSVC-mode /W4 /WX compile passes.
  • Windows links pass for hybrid libobs, every configured Rust consumer (59), and the new fixture. Windows and macOS runtime execution was not run locally.
  • Full ./lint passes (476.2 s); clud-review is clean. The entire native_build:: module passes within the GREEN host run (9,263 passed; the sole timeout is the unchanged obs-util pipe test).
  • Complete client-test evidence is limited by the unchanged pipe_parity::process::dead_pipe_write_survives_concurrent_spawns timeout observed on RED and GREEN. Ordinary PR CI remains required. The broad optional Linux legacy-consumer build was stopped at 1,849/3,408 steps on the pre-ci/build: share native link support across Rust-static consumers #5246 base; its focused OFF/ON replacement passes.

Refs #5324. Separate Rust swap: #5326. Rust tiers 1/3 and protocol tier 4 do not apply to this C-only prerequisite. This behavior-neutral extraction needs no features-ledger entry.

Ci-Attestation: {"at":1795143766,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["869cc329a4d9053ba424088d01b05b6bb695bcad"],"secs":283,"stamp":"22c595787778803b4d58f48b85e114a2","tree":"f18b8f2ef90de3ca18f571de56a3b032747ab1cd","v":1,"via":"run"}
Ci-Attestation: {"at":1795143766,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["869cc329a4d9053ba424088d01b05b6bb695bcad"],"secs":283,"stamp":"ed64e2d405c2d0ed5e8a283d86a39a39","tree":"f18b8f2ef90de3ca18f571de56a3b032747ab1cd","v":1,"via":"run"}
Ci-Attestation: {"at":1795143766,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["869cc329a4d9053ba424088d01b05b6bb695bcad"],"secs":283,"stamp":"1ccbf5d8a5f7b14de2fc5ba7d60e8ead","tree":"f18b8f2ef90de3ca18f571de56a3b032747ab1cd","v":1,"via":"run"}
Ci-Attestation: {"at":1795143766,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["869cc329a4d9053ba424088d01b05b6bb695bcad"],"secs":283,"stamp":"0405a1449e9c402664c8d1c74c6c1db6","tree":"f18b8f2ef90de3ca18f571de56a3b032747ab1cd","v":1,"via":"run"}
Ci-Attestation: {"at":1795143475,"gate":"general/all/client-lint","host":"linux-x86_64","key":"cbe559d1105a462b2fab1f11cec8a86699b4ba70b8e0cd90c963503904cf54e7","lane":"client-lint","parents":["869cc329a4d9053ba424088d01b05b6bb695bcad"],"secs":42,"stamp":"92b968317b3e18ee9f1c29cfe351691a","tree":"f18b8f2ef90de3ca18f571de56a3b032747ab1cd","v":1,"via":"run"}
Ci-Attestation: {"at":1795143766,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["869cc329a4d9053ba424088d01b05b6bb695bcad"],"secs":283,"stamp":"d5920762ddc5aa2583351b42544ec12e","tree":"f18b8f2ef90de3ca18f571de56a3b032747ab1cd","v":1,"via":"run"}
Ci-Attestation: {"at":1795143477,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"cbe559d1105a462b2fab1f11cec8a86699b4ba70b8e0cd90c963503904cf54e7","lane":"client-lint","parents":["869cc329a4d9053ba424088d01b05b6bb695bcad"],"secs":42,"stamp":"d1598c996cccc9c2c5b93234e6094b38","tree":"f18b8f2ef90de3ca18f571de56a3b032747ab1cd","v":1,"via":"run"}
Ci-Attestation: {"at":1795143477,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"cbe559d1105a462b2fab1f11cec8a86699b4ba70b8e0cd90c963503904cf54e7","lane":"client-lint","parents":["869cc329a4d9053ba424088d01b05b6bb695bcad"],"secs":42,"stamp":"3580a2ff038c665d2b34fdc46526e6a8","tree":"f18b8f2ef90de3ca18f571de56a3b032747ab1cd","v":1,"via":"run"}
Ci-Attestation: {"at":1795143476,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"cbe559d1105a462b2fab1f11cec8a86699b4ba70b8e0cd90c963503904cf54e7","lane":"client-lint","parents":["869cc329a4d9053ba424088d01b05b6bb695bcad"],"secs":42,"stamp":"61560bcc3aa463c256222a47d076ce1c","tree":"f18b8f2ef90de3ca18f571de56a3b032747ab1cd","v":1,"via":"run"}
Ci-Attestation: {"at":1795143476,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"cbe559d1105a462b2fab1f11cec8a86699b4ba70b8e0cd90c963503904cf54e7","lane":"client-lint","parents":["869cc329a4d9053ba424088d01b05b6bb695bcad"],"secs":42,"stamp":"32355ab2c62bddf1eee52b43caad7af4","tree":"f18b8f2ef90de3ca18f571de56a3b032747ab1cd","v":1,"via":"run"}
Ci-Attestation: {"at":1795143475,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"cbe559d1105a462b2fab1f11cec8a86699b4ba70b8e0cd90c963503904cf54e7","lane":"client-lint","parents":["869cc329a4d9053ba424088d01b05b6bb695bcad"],"secs":42,"stamp":"63432d23eeb52fe77ca4cbeef678266a","tree":"f18b8f2ef90de3ca18f571de56a3b032747ab1cd","v":1,"via":"run"}
Ci-Attestation: {"at":1795143476,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"cbe559d1105a462b2fab1f11cec8a86699b4ba70b8e0cd90c963503904cf54e7","lane":"client-lint","parents":["869cc329a4d9053ba424088d01b05b6bb695bcad"],"secs":42,"stamp":"f622febbabfa79bd96fb0608dbad23c3","tree":"f18b8f2ef90de3ca18f571de56a3b032747ab1cd","v":1,"via":"run"}
Ci-Attestation: {"at":1795143476,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"cbe559d1105a462b2fab1f11cec8a86699b4ba70b8e0cd90c963503904cf54e7","lane":"client-lint","parents":["869cc329a4d9053ba424088d01b05b6bb695bcad"],"secs":42,"stamp":"7063049e21ba685d582d95eeeefb3ea8","tree":"f18b8f2ef90de3ca18f571de56a3b032747ab1cd","v":1,"via":"run"}
Ci-Attestation: {"at":1795143477,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"cbe559d1105a462b2fab1f11cec8a86699b4ba70b8e0cd90c963503904cf54e7","lane":"client-lint","parents":["869cc329a4d9053ba424088d01b05b6bb695bcad"],"secs":42,"stamp":"30a0bf70b2c441df7123fe4f189cecd1","tree":"f18b8f2ef90de3ca18f571de56a3b032747ab1cd","v":1,"via":"run"}
Ci-Attestation: {"at":1795143476,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"cbe559d1105a462b2fab1f11cec8a86699b4ba70b8e0cd90c963503904cf54e7","lane":"client-lint","parents":["869cc329a4d9053ba424088d01b05b6bb695bcad"],"secs":42,"stamp":"e159a8db23bc91d0c9c149f84ed927b5","tree":"f18b8f2ef90de3ca18f571de56a3b032747ab1cd","v":1,"via":"run"}
Ci-Attestation: {"at":1795143476,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"cbe559d1105a462b2fab1f11cec8a86699b4ba70b8e0cd90c963503904cf54e7","lane":"client-lint","parents":["869cc329a4d9053ba424088d01b05b6bb695bcad"],"secs":42,"stamp":"305c7c717721de3431b2c064bc336ce7","tree":"f18b8f2ef90de3ca18f571de56a3b032747ab1cd","v":1,"via":"run"}
Ci-Attestation: {"at":1795143475,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"cbe559d1105a462b2fab1f11cec8a86699b4ba70b8e0cd90c963503904cf54e7","lane":"client-lint","parents":["869cc329a4d9053ba424088d01b05b6bb695bcad"],"secs":42,"stamp":"806df248daeeea9904025b11e00a10fd","tree":"f18b8f2ef90de3ca18f571de56a3b032747ab1cd","v":1,"via":"run"}
Ci-Attestation: {"at":1795143475,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"cbe559d1105a462b2fab1f11cec8a86699b4ba70b8e0cd90c963503904cf54e7","lane":"client-lint","parents":["869cc329a4d9053ba424088d01b05b6bb695bcad"],"secs":42,"stamp":"9773ca5ee0f001abc673385da9caaced","tree":"f18b8f2ef90de3ca18f571de56a3b032747ab1cd","v":1,"via":"run"}
@zackees
zackees marked this pull request as draft November 20, 2026 03:08
@zackees zackees added the pool-active Pool worker owns this PR; automated rebases must skip it label Nov 20, 2026
Ci-Attestation: {"at":1795146597,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["d78cfde1f567b32c1cc52d51dd1fc90e333b9781"],"secs":559,"stamp":"66fc44df2def2ec9b5014efcd4dacf88","tree":"ab35871bf3b5c8715c61745538d5324e6872cf40","v":1,"via":"run"}
Ci-Attestation: {"at":1795146597,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["d78cfde1f567b32c1cc52d51dd1fc90e333b9781"],"secs":559,"stamp":"3063c245efce6f6a9f991081436ee44a","tree":"ab35871bf3b5c8715c61745538d5324e6872cf40","v":1,"via":"run"}
Ci-Attestation: {"at":1795146597,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["d78cfde1f567b32c1cc52d51dd1fc90e333b9781"],"secs":559,"stamp":"da760456955818b97f30e8d2be31e0ff","tree":"ab35871bf3b5c8715c61745538d5324e6872cf40","v":1,"via":"run"}
Ci-Attestation: {"at":1795146597,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["d78cfde1f567b32c1cc52d51dd1fc90e333b9781"],"secs":559,"stamp":"b4da15c2040b6b1d74a2c1867fb99359","tree":"ab35871bf3b5c8715c61745538d5324e6872cf40","v":1,"via":"run"}
Ci-Attestation: {"at":1795146034,"gate":"general/all/client-lint","host":"linux-x86_64","key":"f01ba8e83abab56028239dae769649d2dfa3cc559a5133d44c615cb5afb5d526","lane":"client-lint","parents":["d78cfde1f567b32c1cc52d51dd1fc90e333b9781"],"secs":36,"stamp":"feae2f55fb6666d66b03fa613aa7fd2b","tree":"ab35871bf3b5c8715c61745538d5324e6872cf40","v":1,"via":"run"}
Ci-Attestation: {"at":1795146597,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["d78cfde1f567b32c1cc52d51dd1fc90e333b9781"],"secs":559,"stamp":"6fead04a18f07763138a2ca912b04010","tree":"ab35871bf3b5c8715c61745538d5324e6872cf40","v":1,"via":"run"}
Ci-Attestation: {"at":1795146036,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"f01ba8e83abab56028239dae769649d2dfa3cc559a5133d44c615cb5afb5d526","lane":"client-lint","parents":["d78cfde1f567b32c1cc52d51dd1fc90e333b9781"],"secs":36,"stamp":"7b0f3a020d5a7bf8ab5fcc30f3f36e6a","tree":"ab35871bf3b5c8715c61745538d5324e6872cf40","v":1,"via":"run"}
Ci-Attestation: {"at":1795146036,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"f01ba8e83abab56028239dae769649d2dfa3cc559a5133d44c615cb5afb5d526","lane":"client-lint","parents":["d78cfde1f567b32c1cc52d51dd1fc90e333b9781"],"secs":36,"stamp":"5e2b0aea40ecd145ba76d92a2de9c797","tree":"ab35871bf3b5c8715c61745538d5324e6872cf40","v":1,"via":"run"}
Ci-Attestation: {"at":1795146035,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"f01ba8e83abab56028239dae769649d2dfa3cc559a5133d44c615cb5afb5d526","lane":"client-lint","parents":["d78cfde1f567b32c1cc52d51dd1fc90e333b9781"],"secs":36,"stamp":"935e539e296ad6fec5856083c54901ae","tree":"ab35871bf3b5c8715c61745538d5324e6872cf40","v":1,"via":"run"}
Ci-Attestation: {"at":1795146035,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"f01ba8e83abab56028239dae769649d2dfa3cc559a5133d44c615cb5afb5d526","lane":"client-lint","parents":["d78cfde1f567b32c1cc52d51dd1fc90e333b9781"],"secs":36,"stamp":"0a05f6fc242c811305f43e7f2c47b512","tree":"ab35871bf3b5c8715c61745538d5324e6872cf40","v":1,"via":"run"}
Ci-Attestation: {"at":1795146034,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"f01ba8e83abab56028239dae769649d2dfa3cc559a5133d44c615cb5afb5d526","lane":"client-lint","parents":["d78cfde1f567b32c1cc52d51dd1fc90e333b9781"],"secs":36,"stamp":"cb4b82959c7c208f6542fff0c6e0bdb1","tree":"ab35871bf3b5c8715c61745538d5324e6872cf40","v":1,"via":"run"}
Ci-Attestation: {"at":1795146035,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"f01ba8e83abab56028239dae769649d2dfa3cc559a5133d44c615cb5afb5d526","lane":"client-lint","parents":["d78cfde1f567b32c1cc52d51dd1fc90e333b9781"],"secs":36,"stamp":"a269465355e4ba14e8c9735932aaba11","tree":"ab35871bf3b5c8715c61745538d5324e6872cf40","v":1,"via":"run"}
Ci-Attestation: {"at":1795146035,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"f01ba8e83abab56028239dae769649d2dfa3cc559a5133d44c615cb5afb5d526","lane":"client-lint","parents":["d78cfde1f567b32c1cc52d51dd1fc90e333b9781"],"secs":36,"stamp":"c7d2ec5c88ca7054ebb79373c66fa214","tree":"ab35871bf3b5c8715c61745538d5324e6872cf40","v":1,"via":"run"}
Ci-Attestation: {"at":1795146035,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"f01ba8e83abab56028239dae769649d2dfa3cc559a5133d44c615cb5afb5d526","lane":"client-lint","parents":["d78cfde1f567b32c1cc52d51dd1fc90e333b9781"],"secs":36,"stamp":"34cab53cbe5c26411bdfbb3c3453e41d","tree":"ab35871bf3b5c8715c61745538d5324e6872cf40","v":1,"via":"run"}
Ci-Attestation: {"at":1795146035,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"f01ba8e83abab56028239dae769649d2dfa3cc559a5133d44c615cb5afb5d526","lane":"client-lint","parents":["d78cfde1f567b32c1cc52d51dd1fc90e333b9781"],"secs":36,"stamp":"b3cb808d5030d62853ad2230970210e7","tree":"ab35871bf3b5c8715c61745538d5324e6872cf40","v":1,"via":"run"}
Ci-Attestation: {"at":1795146035,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"f01ba8e83abab56028239dae769649d2dfa3cc559a5133d44c615cb5afb5d526","lane":"client-lint","parents":["d78cfde1f567b32c1cc52d51dd1fc90e333b9781"],"secs":36,"stamp":"51e1660461bcaf31240b7e8638b879dc","tree":"ab35871bf3b5c8715c61745538d5324e6872cf40","v":1,"via":"run"}
Ci-Attestation: {"at":1795146034,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"f01ba8e83abab56028239dae769649d2dfa3cc559a5133d44c615cb5afb5d526","lane":"client-lint","parents":["d78cfde1f567b32c1cc52d51dd1fc90e333b9781"],"secs":36,"stamp":"3cbe2fe8569e07c447f7d1032bf5a4a5","tree":"ab35871bf3b5c8715c61745538d5324e6872cf40","v":1,"via":"run"}
Ci-Attestation: {"at":1795146034,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"f01ba8e83abab56028239dae769649d2dfa3cc559a5133d44c615cb5afb5d526","lane":"client-lint","parents":["d78cfde1f567b32c1cc52d51dd1fc90e333b9781"],"secs":36,"stamp":"b8bdafc3c2356075f72a6e36a034d273","tree":"ab35871bf3b5c8715c61745538d5324e6872cf40","v":1,"via":"run"}
@zackees zackees changed the title test: characterize canvas mix clearing before extraction (Refs #5324) libobs: characterize and extract canvas mix clearing (Refs #5324) Nov 20, 2026
@zackees
zackees marked this pull request as ready for review November 20, 2026 04:03
@zackees
zackees enabled auto-merge November 20, 2026 04:03
@zackees zackees removed the pool-active Pool worker owns this PR; automated rebases must skip it label Nov 20, 2026
@zackees
zackees added this pull request to the merge queue Nov 20, 2026
Merged via the queue into master with commit 7590b00 Nov 20, 2026
45 checks passed
@zackees
zackees deleted the test/5324-canvas-clear-mix branch November 20, 2026 04:58
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In review to Done in obs-rust Multiview Nov 20, 2026
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