Skip to content
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

Fix desktop profiles which are crashing because of sync object id duplication #8358

Closed
AlexeyBarabash opened this issue Feb 21, 2020 · 6 comments · Fixed by brave/brave-core#4816, brave/brave-core#4940 or brave/brave-core#5139

Comments

@AlexeyBarabash
Copy link
Contributor

Description

Related to #8325

Steps to Reproduce

  1. Take browser version which does not have fix of Sync fix bookmarks object id duplication brave-core#4710
  2. Go through STR of Duplicate sync object id of bookmarks #8325
  3. Take the newest version and launch on that profile

Actual result:

Browser crashes

Expected result:

Browser should not crash

Reproduces how often:

Easily

@AlexeyBarabash
Copy link
Contributor Author

Tested on Nightly installer 1.8.2 and the profile I created with duplicated bookmarks before brave/brave-core#4710 fix. I could run browser without the crash.

@bsclifton
Copy link
Member

Added missing milestone to both this issue and the PR that closed it 👍

@fmarier
Copy link
Member

fmarier commented Mar 11, 2020

I tested this with my cursed profile and got a crash as soon as I enabled Sync. Here are the two crash IDs I got on the console:

  • 68e8c1340e85e1c4
  • 5695c488f069731d
Brave	1.8.3 Chromium: 80.0.3987.132 (Official Build) nightly (64-bit)
Revision	fcea73228632975e052eb90fcf6cd1752d3b42b4-refs/branch-heads/3987@{#974}
OS	Linux

The exact steps I followed were:

  1. Update brave-browser-nightly.
  2. Start using brave-browser-nightly --user-data-dir=/home/francois/BraveTemp.
  3. Go into brave://flags and enable "Brave Sync".
  4. Click "Relaunch".
  5. Go in to brave://sync and click on the toggle to enable syncing of Bookmarks.

@fmarier fmarier reopened this Mar 11, 2020
@AlexeyBarabash AlexeyBarabash removed this from the 1.7.x - Beta milestone Mar 11, 2020
@fmarier
Copy link
Member

fmarier commented Mar 12, 2020

Here's my Bookmarks file which reproduces the crash every time:

{
   "checksum": "9e4424460f25605e390d843c12cd458d",
   "roots": {
      "bookmark_bar": {
         "children": [ {
            "date_added": "13228434827067422",
            "guid": "27ff03a7-5059-4027-811a-4d957fe9f99c",
            "id": "1142",
            "meta_info": {
               "object_id": "132, 253, 161, 194, 6, 242, 230, 175, 199, 140, 98, 79, 67, 224, 235, 109",
               "order": "1.0.1.1.1.48.17.17.1.1.2.13.7.7.1.3.7.3.5.14.7.11.5.1.4.4.5.2.4.15.21.5.2.1.41.0.1",
               "originator_cache_guid": "DN9zzqXH8hpFBZX8jnqE2A==",
               "originator_client_item_id": "963ea23b-796b-4ab7-ba8b-2da08f89c39a",
               "parent_object_id": "175, 162, 9, 69, 152, 241, 30, 1, 1, 54, 199, 130, 135, 245, 231, 210",
               "position_in_parent": "9223372036844506714",
               "sync_timestamp": "1583961227067.509033"
            },
            "name": "Seared Albacore Tuna Recipe - YouTube",
            "type": "url",
            "url": "https://www.youtube.com/watch?v=sv3f7hZWIag&__s=zcraatsjbtesssn2kiyk"
         }, {
            "date_added": "0",
            "guid": "86eb7708-6ebc-472e-a242-c2543d9de769",
            "id": "1062",
            "meta_info": {
               "object_id": "81, 241, 29, 222, 16, 67, 121, 169, 186, 35, 107, 160, 55, 103, 235, 150",
               "order": "1.0.1.1.1.48.17.17.1.1.2.13.7.7.1.3.7.3.5.14.7.11.5.1.4.4.5.2.4.15.21.5.2.1.41.0.3",
               "originator_cache_guid": "DN9zzqXH8hpFBZX8jnqE2A==",
               "originator_client_item_id": "963ea23b-796b-4ab7-ba8b-2da08f89c39a",
               "parent_object_id": "175, 162, 9, 69, 152, 241, 30, 1, 1, 54, 199, 130, 135, 245, 231, 210",
               "position_in_parent": "9223372036758780229",
               "sync_timestamp": "1571717780003.000000",
               "version": "2"
            },
            "name": "Seared Albacore Tuna Recipe - YouTube",
            "sync_transaction_version": "3",
            "type": "url",
            "url": "https://www.youtube.com/watch?v=sv3f7hZWIag&__s=zcraatsjbtesssn2kiyk"
         }, {
            "date_added": "0",
            "guid": "a042c7da-50e8-46a0-868f-9e82304f2f37",
            "id": "1060",
            "meta_info": {
               "object_id": "81, 241, 29, 222, 16, 67, 121, 169, 186, 35, 107, 160, 55, 103, 235, 150",
               "order": "1.0.1.1.1.48.17.17.1.1.2.13.7.7.1.3.7.3.5.14.7.11.5.1.4.4.5.2.4.15.21.5.2.1.41.1",
               "originator_cache_guid": "DN9zzqXH8hpFBZX8jnqE2A==",
               "originator_client_item_id": "963ea23b-796b-4ab7-ba8b-2da08f89c39a",
               "parent_object_id": "175, 162, 9, 69, 152, 241, 30, 1, 1, 54, 199, 130, 135, 245, 231, 210",
               "position_in_parent": "9223372036844506714",
               "sync_timestamp": "1572212355279.000000",
               "version": "2"
            },
            "name": "Seared Albacore Tuna Recipe - YouTube",
            "sync_transaction_version": "7",
            "type": "url",
            "url": "https://www.youtube.com/watch?v=sv3f7hZWIag&__s=zcraatsjbtesssn2kiyk"
         } ],
         "date_added": "13198965811090893",
         "date_modified": "13228520759621761",
         "guid": "00000000-0000-4000-A000-000000000002",
         "id": "1",
         "meta_info": {
            "order": "1.1.1"
         },
         "name": "Favoris",
         "sync_transaction_version": "3",
         "type": "folder"
      },
      "other": {
         "children": [  ],
         "date_added": "13198965811090899",
         "date_modified": "13228434827066320",
         "guid": "00000000-0000-4000-A000-000000000003",
         "id": "2",
         "meta_info": {
            "order": "1.1.2"
         },
         "name": "Other bookmarks",
         "sync_transaction_version": "3",
         "type": "folder"
      },
      "sync_transaction_version": "75",
      "synced": {
         "children": [  ],
         "date_added": "13198965811090900",
         "date_modified": "0",
         "guid": "00000000-0000-4000-A000-000000000004",
         "id": "3",
         "name": "Mobile bookmarks",
         "sync_transaction_version": "3",
         "type": "folder"
      }
   },
   "version": 1
}

@AlexeyBarabash
Copy link
Contributor Author

After merging brave/brave-core#4940 , we found the fix does not work for 2 of 3 of @fmarier devices, so re-opening

@btlechowski
Copy link

btlechowski commented Apr 13, 2020

Verification passed on

Brave 1.7.92 Chromium: 80.0.3987.163 (Official Build) (64-bit)
Revision e7fbe071abe9328cdce4ffedac9822435fbd3656-refs/branch-heads/3987@{#1037}
OS Ubuntu 18.04 LTS

Verified test plan from brave/brave-core#5139

Steps used

  1. Install 1.3.118
  2. Go to about:flags#brave-sync and enable sync
  3. Create a sync chain
  4. Go to brave://bookmarks/
  5. Add a bookmark
  6. Exit browser
  7. Copy content of Fix desktop profiles which are crashing because of sync object id duplication #8358 (comment) to Bookmarks file
  8. Upgrade to 1.7.92

Reproduced the crash after upgrade to 1.7.90
Verified no crash after upgrade to 1.7.92

Test case - disabled sync

  1. Install 1.3.118
  2. Go to about:flags#brave-sync and enable sync
  3. Create a sync chain
  4. Go to brave://bookmarks/
  5. Add a bookmark
  6. Exit browser
  7. Copy content of Fix desktop profiles which are crashing because of sync object id duplication #8358 (comment) to Bookmarks file
  8. Upgrade to 1.9.15
  9. Run brave with flag --disable-sync

Verified no crash after upgrade to 1.7.92

Verification passed on

Brave 1.7.92 Chromium: 80.0.3987.163 (Official Build) (64-bit)
Revision e7fbe071abe9328cdce4ffedac9822435fbd3656-refs/branch-heads/3987@{#1037}
OS Windows 10 OS Version 1803 (Build 17134.1006)

Steps used

  1. Install 1.3.118
  2. Go to about:flags#brave-sync and enable sync
  3. Create a sync chain
  4. Go to brave://bookmarks/
  5. Add a bookmark
  6. Exit browser
  7. Copy content of Fix desktop profiles which are crashing because of sync object id duplication #8358 (comment) to Bookmarks file
  8. Upgrade to 1.7.90
    Reproduced the crash after upgrade to 1.7.90
  9. Upgrade to 1.7.92
    Verified no crash after upgrade to 1.7.92
  • Verified that bookmarks can be added/edited/deleted after upgrade to 1.7.92

Verified passed with

Brave 1.7.92 Chromium: 80.0.3987.163 (Official Build) (64-bit)
Revision e7fbe071abe9328cdce4ffedac9822435fbd3656-refs/branch-heads/3987@{#1037}
OS macOS Version 10.14.6 (Build 18G3020)

Verified test plan from brave/brave-core#5139

Steps used

  1. Install 1.3.118
  2. Go to about:flags#brave-sync and enable sync
  3. Create a sync chain
  4. Go to brave://bookmarks/
  5. Add a bookmark
  6. Exit browser
  7. Copy content of Fix desktop profiles which are crashing because of sync object id duplication #8358 (comment) to Bookmarks file
  8. Upgrade to 1.7.92

Reproduced the crash after upgrade to 1.7.90
Verified no crash after upgrade to 1.7.92 - Note, I did have to force quit my first launch of 1.7.92 for this case.

Test case - disabled sync

  1. Install 1.3.118
  2. Go to about:flags#brave-sync and enable sync
  3. Create a sync chain
  4. Go to brave://bookmarks/
  5. Add a bookmark
  6. Exit browser
  7. Copy content of Fix desktop profiles which are crashing because of sync object id duplication #8358 (comment) to Bookmarks file
  8. Upgrade to 1.9.15
  9. Run brave with flag --disable-sync

Verified no crash after upgrade to 1.7.92


Verification PASSED on macOS 10.15.3 x64 using the following build:

Brave | 1.7.92 Chromium: 80.0.3987.163 (Official Build) (64-bit)
-- | --
Revision | e7fbe071abe9328cdce4ffedac9822435fbd3656-refs/branch-heads/3987@{#1037}
OS | macOS Version 10.15.3 (Build 19D76)

Verified test plan from brave/brave-core#5139

Test Case #1

  1. Install 1.3.118
  2. Go to about:flags#brave-sync and enable sync
  3. Create a sync chain
  4. Go to brave://bookmarks/
  5. Add a bookmark
  6. Exit browser
  7. Copy content of Fix desktop profiles which are crashing because of sync object id duplication #8358 (comment) to Bookmarks file
  8. Upgrade to 1.7.92
  • Reproduced the crash after upgrade to 1.7.90
  • Verified no crash after upgrade to 1.7.92

Test Case #2 - using --disable-sync

  1. Install 1.3.118
  2. Go to about:flags#brave-sync and enable sync
  3. Create a sync chain
  4. Go to brave://bookmarks/
  5. Add a bookmark
  6. Exit browser
  7. Copy content of Fix desktop profiles which are crashing because of sync object id duplication #8358 (comment) to Bookmarks file
  8. Upgrade to 1.9.15
  9. Run brave with flag --disable-sync
  • Verified no crash after upgrade to 1.7.92

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment