Repository navigation
Fix crash when disabling browser sign-in - #562
Conversation
Disable browser sign-in before profile creation to prevent a consistency check crash in CEF.
|
Please explain why this is crashing, the circumstances that lead to that, and why this is the appropriate fix. |
|
@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. |
|
Confirmed with at least one user they had these environment variables set which was triggering this
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
left a comment
There was a problem hiding this comment.
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.
|
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. |

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=falseand all was fine, this PR accomplishes the same.Types of changes
Checklist: