Repository navigation
frontend: Tell the user which source types a scene collection is missing - #1883
Merged
Merged
Conversation
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
force-pushed
the
fix/1865-missing-source-notice
branch
from
October 23, 2026 04:20
5043e21 to
f5a8813
Compare
This was referenced Oct 23, 2026
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.
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.
This was referenced Oct 23, 2026
release: packaged Windows startup hangs with an empty profile (missing-camera check times out)
#2161
Closed
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 typeobs_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:<id>(N sources): its plugin isn't loaded.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_oncefails (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.