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
Crash during forced devices poll while syncing #35554
Comments
fixes brave/brave-browser#35554 This PR basically reverts #17077
This fixes crash at BraveSyncerDevicePoll fixes brave/brave-browser#35554
This fixes crash at BraveSyncerDevicePoll fixes brave/brave-browser#35554
#21746) This fixes crash at BraveSyncerDevicePoll fixes brave/brave-browser#35554
Changing the following to |
The above requires |
Verification PASSED on
Bookmarks were retrieved from https://github.com/brave/brave-core/files/10678936/import_20k.zip via brave/brave-core#17077 (comment).
STR/Cases:
Once the above was completed,
|
Example |
Example |
Example |
---|---|---|
Device #1
(Win 10 x64)
Example |
Example |
Example |
Example |
---|---|---|---|
- once both
Device #1
&Device #2
listed both devices viabrave://settings/braveSync
, addedDevice #3
- scanned QR code from
Device #1
- scanned QR code from
- once scanned,
Device #3
appeared on bothDevice #1
&Device #2
took almost ~5min
Device #3
(Samsung Galaxy running Android 12)
Example |
Example |
Example |
---|---|---|
Verified with below version on various OSes/devices:
Bookmarks were retrieved from https://github.com/brave/brave-core/files/10678936/import_20k.zip via brave/brave-core#17077 (comment).
STR/Cases:
Once the above was completed,
|
Example |
Example |
Example |
---|---|---|
Device #1
(Win 10 x64)
Example |
Example |
Example |
---|---|---|
- once both
Device #1
&Device #2
listed both devices viabrave://settings/braveSync
, addedDevice #3
- scanned QR code from
Device #1
- scanned QR code from
- once scanned,
Device #3
appeared on bothDevice #1
&Device #2
within ~1min - bookmarks sync took a little longer, but did appear
Device #3
(Pixel 3 XL running Android 12)
Example |
Example |
Example |
Device 1 | Device 2 |
---|---|---|---|---|
Verification PASSED on
Bookmarks were retrieved from https://github.com/brave/brave-core/files/10678936/import_20k.zip via brave/brave-core#17077 (comment).
STR/Cases:
Once the above was completed,
|
Example |
Example |
Example |
---|---|---|
Device #1
(Win 11 x64)
Example |
Example |
Example |
---|---|---|
- once both
Device #1
&Device #2
listed both devices viabrave://settings/braveSync
, addedDevice #3
- scanned QR code from
Device #1
- scanned QR code from
- once scanned,
Device #3
appeared on bothDevice #1
&Device #2
within ~3min
Device #3
(Pixel 6 running Android 14)
Example |
Example |
Example |
---|---|---|
There is a crash from user, id is
61320200-802f-5e0b-0000-000000000000
.Reported by @Brave-Matt
Stack is
There are ~4200 similar crashes contaning
ModelTypeWorker::CollectPendingInvalidations
orBraveSyncerDevicePoll
calls at the stack.The exact line of code where it happens is:
We don't use invalidation at all, I don't know how that line is even reached.
I wasn't able to reproduce it.
The code which is involved is from PR
brave/brave-core#17077
Issue it solved was #27931, after device creates the sync chain, it starts send the data and doesn't do pull, so it doesn't get updates about other devices at the chain. That PR added forced poll for for device type if commit takes too long.
Crash is worse than the delayed refresh of the synced device list, so the PR must be reverted, issue re-opened; it may be relaneded with some checks for
pending_invalidation
or other way to have forced device polling.Also checked what if we poll devices on each commit - crash didn't happen.
And I tried to reproduce the crash with
Use Google services for push messaging
option from brave://settings/privacy - crash didn't happen.The text was updated successfully, but these errors were encountered: