Skip to content

Fix crash when disabling browser sign-in - #562

Merged
Warchamp7 merged 1 commit into
obsproject:masterfrom
prgmitchell:fixBrowserSigninCrash
Nov 17, 2026
Merged

Warchamp7 merged 1 commit into
obsproject:masterfrom
prgmitchell:fixBrowserSigninCrash

Conversation

@prgmitchell

Copy link
Copy Markdown
Member

Description

Disable browser sign-in before profile creation to prevent a consistency check crash in CEF.

https://github.com/chromium/chromium/blob/150.0.7871.252/chrome/browser/signin/account_consistency_mode_manager.cc#L208-L212

Motivation and Context

Fixes obsproject/obs-studio#14155

How Has This Been Tested?

Had someone having this crash launch OBS with --allow-browser-signin=false and all was fine, this PR accomplishes the same.

Types of changes

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

Checklist:

  • I have read the contributing document.
  • My code has been run through clang-format.
  • My code follows the project's style guidelines
  • My code is not on the master branch.
  • My code has been tested.
  • All commit messages are properly formatted and commits squashed where appropriate.
  • I have included updates to all appropriate documentation.

Disable browser sign-in before profile creation to prevent
a consistency check crash in CEF.
@Warchamp7
Warchamp7 requested a review from WizardCM November 12, 2026 16:51
@Warchamp7

Copy link
Copy Markdown
Member

Please explain why this is crashing, the circumstances that lead to that, and why this is the appropriate fix.

@prgmitchell

Copy link
Copy Markdown
Member Author

@Warchamp7 it is crashing because browser sign-in is enabled during initialization and then OBS sets it to disabled afterwards. I don't know what enabled sign-in on the systems of those having this crash, whether it is being set in the browser profile by a plugin or environment variable or something else, but this fix is appropriate because it disables sign-in before the profile is initialized and eliminates the possibility for the consistency check to fail/crash.

@prgmitchell

prgmitchell commented Nov 12, 2026 •

Copy link
Copy Markdown
Member Author

Confirmed with at least one user they had these environment variables set which was triggering this

image

EDIT: I found this https://groups.google.com/a/chromium.org/g/chromium-dev/c/cTPJG7KnBpI/m/qb8QCYBVBAAJ where setting those values as "no" is recommended to fix this error. Maybe some of the other users having this crash have done the same in the past?

@WizardCM WizardCM left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am unable to reproduce the crash, but based on the code linked, this fix looks correct.

I am disappointed the flag isn't listed here because it seems to be specialised to that one file, which seems silly.

@prgmitchell

Copy link
Copy Markdown
Member Author

If you are interested in trying to repro still, I added the two environment variables/values I screenshotted in my previous comment, added a browser source, closed OBS, deleted my profile, launched OBS again and was able to.

@WizardCM WizardCM added the kind/bug Categorizes issue or PR as related to a bug. label Nov 13, 2026
@Warchamp7
Warchamp7 merged commit 9025de5 into obsproject:master Nov 17, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from Ready For Merge to Merged in Current Release Tracker (33.0) Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Categorizes issue or PR as related to a bug.

Projects

Status: Merged

Development

Successfully merging this pull request may close these issues.

OBS 33.0.1 crashes after upgrade from OBS 32 (Unhandled exception: 80000003, libcef.dll)

3 participants