Skip to content

frontend: Tell the user which source types a scene collection is missing - #1883

Merged
zackees merged 2 commits into
masterfrom
fix/1865-missing-source-notice
Oct 23, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/1865-missing-source-notice

Conversation

@zackees

@zackees zackees commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Refs #1865 (item 3, part of #1866). Shipping obs-browser in the AppImage (items 1-2) stays blocked on #1864 and #1092.

What changes. After OBSBasic::LoadData() loads a scene collection, it enumerates the sources (obs_enum_all_sources). Any type obs_source_get_display_name(id) doesn't know (libobs keeps such sources after "Source ID '%s' not found") goes into one Missing Source Types warning:

Each type also gets a warning line in the log. The sources and their settings are untouched, so they show again in a build that has the plugin. Safe mode only logs, since it leaves plugins out on purpose.

Design. A Qt-free frontend/utility/missing-source-types (unique ids in first-seen order with counts, bounded at 16 ids, plus a hint per id) in its own unity group (BUILD.md), so a C test builds it alone.

RED 282776e: stubs; test_lists_each_missing_type_once fails (0 != 2).
GREEN 5043e21: all four cases pass (dedupe and counts, registered/NULL/empty ignored, bounded list and id, hints).

CI cost. One cmocka executable, no libobs, microseconds, in the existing Tier 2 lane; the frontend change goes through the existing Qt lane. No new lane.

Not run in the app yet, hence Refs: I checked the cases through a scratch harness, since ./unittest's Tier 2 lane doesn't link libobs on this host for an unrelated reason. CI's Qt lane compiles the frontend.

Tiers: new frontend C, no Rust or C original (Tier 1/3 don't apply); Tier 2 is test_missing_source_types.

@zackees
zackees marked this pull request as ready for review October 23, 2026 04:16
…tub)

missing-source-types.c.h collects the source types of a loaded scene
collection that no loaded module provides, with a hint per type, in its
own unity group. The functions are stubs, so test_missing_source_types
fails.

Refs #1865
…is missing

After LoadData() loads the sources it enumerates them, and any type
obs_source_get_display_name() does not know goes into a Missing Source
Types warning: browser sources (not in this build yet, with the Window
Capture workaround), VLC, or the plugin type, with a source count and a
log line each. Safe mode only logs. test_missing_source_types passes.

Refs #1865
@zackees
zackees force-pushed the fix/1865-missing-source-notice branch from 5043e21 to f5a8813 Compare October 23, 2026 04:20
@zackees
zackees added this pull request to the merge queue Oct 23, 2026
Merged via the queue into master with commit 0deb926 Oct 23, 2026
31 checks passed
@zackees
zackees deleted the fix/1865-missing-source-notice branch October 23, 2026 04:37
zackees added a commit that referenced this pull request Oct 23, 2026
…st graph (#1883)

#1883 added a cmocka target to test-graph.json without updating the
partition count (141 core targets, expected 140). RED on origin/master
f948723 via ci/local_gate.py --test-diff.
chriscoveries pushed a commit to chriscoveries/obsrust-fork that referenced this pull request Oct 23, 2026
* ci: RED test/cmocka changes must run the obs-build graph contract (obs-rust#1891)

* ci: run obs-build tests when test/cmocka changes (obs-rust#1891)

The native test graph contract in obs-build counts test/cmocka targets, but
rust_scope selected nothing for test/cmocka/, so obs-rust#1879 and obs-rust#1883 merged
graph additions that left master failing the contract.
zackees added a commit that referenced this pull request Oct 23, 2026
…uite

master's test-graph.json now holds 141 core tests (#1879 and #1883 each
added one) while the assertion still says 139.

Refs #1879
chriscoveries pushed a commit to chriscoveries/obsrust-fork that referenced this pull request Oct 23, 2026
…rust#1883 (obs-rust#1896)

native_test_graph_replaces_legacy_utility_definitions expects 139 core
tests, but master has 141: obs-rust#1879 (test_qsv_probe) and obs-rust#1883 each added
one, and PR CI did not run this obs-build test for test/cmocka-only
changes (obs-rust#1891, fixed by obs-rust#1892). Master and every merge group running
the Fast Gate test-diff lane fail with left: 141, right: 139.
chriscoveries pushed a commit to chriscoveries/obsrust-fork that referenced this pull request Oct 24, 2026
…tup (obs-rust#2161) (obs-rust#2166)

* test(frontend): the Missing Source Types warning must not block startup (RED, obs-rust#2161)

* frontend: open the Missing Source Types warning without blocking startup (obs-rust#2161)

obs-rust#1883 showed it with a modal exec() inside LoadData(), so a scene
collection with a missing source type kept the frontend from ever
becoming ready. Open it after the current event, as the Missing Files
dialog does.
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