Skip to content

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

Merged
zackees merged 2 commits into
masterfrom
fix/2161-missing-types-modal
Oct 24, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/2161-missing-types-modal

Conversation

@zackees

@zackees zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member

Fixes #2161.

Cause (the issue's diagnosis was off)

The zip still contains vcruntime140.dll: the release run's zip ok, and all four packaged launches (fresh, migrate-default, migrate-custom, existing) passed. The imports vcruntime140.dll errors come from the step's deliberate mutation (delete the runtime from a copy of the zip, require the check to reject it), which worked.

What failed is the next deliberate mutation: remove win-dshow.dll, start the package with the saved profile, and expect capture plugins are missing ... dshow_input. Instead GetInputKindList timed out: the frontend never became ready.

#1883 (0deb926) added a Missing Source Types warning shown with OBSMessageBox::warning(), a modal exec(), from inside LoadData(). With a source type missing, the main thread sits in that dialog before OBS finishes loading, so obs-websocket never leaves NotReady. Upstream's Missing Files dialog, shown from the same place, is deferred with QTimer::singleShot(0, ...) and opened with show().

The last release run that executed this check passed on 582a4c3, before #1883; the runs between skipped it.

Fix

ShowMissingSourceTypes() still logs every missing type and still stays quiet in safe mode. It now opens the same warning (title, text, OK button) after the current event, non-modal, deleted on close.

Tests

  • RED 0ec88e9: ci/test_missing_source_types_dialog.py (no nested modal loop; opens after loading and frees itself; logging and safe mode kept): 2 failures, 1 error. End-to-end RED: release run 40097160881, Launch packaged Windows x64/arm64.
  • GREEN: the check passes; ./lint passes. The real proof is the packaged launch with win-dshow.dll removed, which runs in the release workflow; I'll dispatch it on this branch.

…tup (#2161)

#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.
@zackees

zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member Author

End-to-end check: release workflow dispatched on this branch with verify_only=true (publishes nothing): https://github.com/obs-rust/obs-studio/actions/runs/40102085080. Launch packaged Windows x64/arm64 must pass, including the win-dshow.dll-removed mutation.

@zackees
zackees added this pull request to the merge queue Oct 24, 2026
@zackees

zackees commented Oct 24, 2026

Copy link
Copy Markdown
Member Author

Release verify_only run 40102085080 on this branch: Launch packaged Windows x64 🧪 and arm64 🧪 both passed, including the win-dshow.dll-removed mutation (the step throws unless the startup check reports capture plugins are missing ... dshow_input). Before the fix the same step timed out (run 40097160881).

Merged via the queue into master with commit 51fefd9 Oct 24, 2026
78 of 81 checks passed
@zackees
zackees deleted the fix/2161-missing-types-modal branch October 26, 2026 15:43
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.

release: packaged Windows startup hangs with an empty profile (missing-camera check times out)

1 participant