As soon I try to see my sync qr code, brave crashes

After reinstalling brave and pasting the old brave appdata in new brave appdata I have been facing problems with sync. Earlier it used not showe nothing, not the sync code neither the qr code but now in sync code it shows single word and when I try to view the qr code it crashes. Pls suggest what should I do?

Thanks for writing in. Can you provide a crash ID? What OS and Brave version are you using? Thanks in advance.

Try updating to the new version @ brave://settings/help

@AdityaRSingh, can you please go to brave://crashes and

  • if you have automatic crash reporting is enabled (Settings --> Privacy/Security --> Automatically send diagnostic reports), please respond back here with the crash report ID
  • If Automatically send diagnostic reports is not enabled, ensure you click Send on these crash reports listed on the page, then reply here with the crash report ID

Thank you.

Hey Steeven, Here’s everything you asked for :slight_smile:
OS : Windows 11 Pro
Crash ID : c8630000-2312-8508-0000-000000000000
Yes automatic reports are enabled.
My brave version is latest.
Hope it helps.

Thanks for the report @AdityaRSingh .

Crash happened at this line:

CHECK_EQ(pure_words_with_status.status, WordsValidationStatus::kValid);

It means the wrong sync code arrived there, so the crash was done intentionally just to prevent any further mess. Normally, this shouldn’t happen.

I believe the sync code somehow is stored as a broken data in the profile.

The way how to fix it is possible only if you have that sync code written somewhere or you have any other device which is in chain:

  1. Open brave://sync-internals/ on your browser
  2. press Disable Sync(Clear Data)
  3. Open brave://settings/braveSync/setup
  4. Connect to the chain with the correct code words

Unfortunately, I dont have any other devices in that sync chain.
Is there a way I can use the old appdata to retrive it?

@AdityaRSingh sorry for delay, let me check.

I tried to make a copy of the profile, then re-installed browser and copied profile back - Sync didn’t lost the code words.
Did you do anything except re-installing the browser with OS or Windows user profile?

Also, if you have a copy of your profile, you may try to launch the browser and point it to use your copy instead of default, from the command line, like
"C:\Program Files\BraveSoftware\Brave-Browser\Application\brave.exe" --user-data-dir="C:\BAK-StableProfile\Brave-Browser\User Data"
where C:\BAK-StableProfile\Brave-Browser is my backed up copy.
Basically it is the same as just put profile into the default place, but maybe it will help.

I updated to windows 11 and in that process I changed the name of my computer.
After that I reinstalled brave and pasted the old brave data into the new brave data.
Does it matter?
Also my user name changed from Aditya Raj Singh to adity, dont know why that happened.

Can we have a AnyDesk session to figure this out?

I updated to windows 11 and in that process I changed the name of my computer.
After that I reinstalled brave and pasted the old brave data into the new brave data.
Does it matter?

Never tested, but I think this can have effect.
All depends on OSCrypt::EncryptString on Windows.

BTW, did you change the Windows user’s password during that procedure? I have this question because I know that Windows file encryption depends on the password.
OSCrypt::EncryptString uses

which has a remark

Typically, only a user with logon credentials that match those of the user who encrypted 
the data can decrypt the data. In addition, decryption usually can only be done on the 
computer where the data was encrypted. However, a user with a roaming profile 
can decrypt the data from another computer on the network

So I have a strong feeling that if you will do a workaround of

  1. Put the old name of computer
  2. rename user to the old name
  3. set the old password

you ll be able to see the passphrase . You can save it and then revert computer name/user/password to your values.
I really hope this will help. Please let me know about result, if you’ll do it.

Can we have a AnyDesk session to figure this out?

Right now I don’t know how I can help with such session, all info is here.

1 Like

In this procedure , renaming the user is a big mistake. You cannot rename the user easily as windows is continiously using the directory for ongoing process. The only way is to use cmd and then registry editor to accomplish it. But it went horribly wrong and my whole user profile was rendered invalid by the windows leading me to a completely new installation of OS.
Hence the delay in reply.
I have decided to live it now and started a new sync chain.
But thanks for being responsive to my thread Alex.

1 Like