Skip to content

create browser source on main thread #1561

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: staging
Choose a base branch
from

Conversation

sandboxcoder
Copy link
Contributor

Description

  • create 1st browser_source on main thread to satisfy requirement CEFInitialize() must be called on main thread (obs-browser plugin -> CEF)
  • Related PR to obs-browser here

Motivation and Context

resolves crash on obs31 branch. On obs-30.2 branch, I see some CEF crashes on sentry. The documentation (cef_types.h) clearly states CefInitialize should only be called on main thread. xcode has a warning about unpredictable results

How Has This Been Tested?

Tested in SLOBS backend, Desktop (slobs-30.2). also tested on slobs-31.1 (resolves a startup crash)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)

Checklist:

  • The code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

* create 1st browser_source on main thread to satisfy requirement
CEFInitialize() must be called on main thread (obs-browser plugin -> CEF)
@sandboxcoder sandboxcoder marked this pull request as ready for review August 12, 2025 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant