xbrowsersync / app

xBrowserSync browser extensions / mobile app
GNU General Public License v3.0
1.54k stars 101 forks source link

TypeError: Cannot read properties of undefined (reading 'splice') at Object.addNewInXBookmarks cause sync error #482

Open magicdawn opened 5 months ago

magicdawn commented 5 months ago

Describe the issue you are experiencing A clear and concise description of your issue: Sync Error: local data has been refreshed

  1. I make a change to my bookmark,
  2. the xBrowerSync icon run a sync (the icon indicates syncing
  3. show error

image

related https://github.com/xbrowsersync/app/issues/287

log

2024-06-20 07:50:09.408 [trace] Sync 1nv1qg0 (pull) queued
2024-06-20 07:50:09.424 [trace] Processing sync 1nv1qg0 (0 in queue)
2024-06-20 07:50:10.973 [trace] Local population completed in 0.121s
2024-06-20 07:50:10.993 [trace] Local sync data refreshed
2024-06-20 07:50:25.828 [trace] onMoved event detected
2024-06-20 07:50:25.897 [trace] onMoved event detected
2024-06-20 07:50:25.914 [trace] onMoved event detected
2024-06-20 07:50:26.862 [trace] Sync qyncu1 (push) queued
2024-06-20 07:50:26.894 [trace] Sync 57gx2s (push) queued
2024-06-20 07:50:26.920 [trace] Sync e7d4e5 (push) queued
2024-06-20 07:50:26.939 [trace] Processing sync qyncu1 (2 in queue)
2024-06-20 07:50:26.957 [trace] Sync qyncu1 failed
2024-06-20 07:50:26.971 [error] bookmarks.sync: [10111] XBookmarkNotFound   TypeError: Cannot read properties of undefined (reading 'splice') at Object.addNewInXBookmarks [as AddNewInXBookmarks] (chrome-extension://lcbjdhceifofjlpecfpeimnnphbcjgnc/js/background.min.js:2563:29) at chrome-extension://lcbjdhceifofjlpecfpeimnnphbcjgnc/js/background.min.js:3865:65 at chrome-extension://lcbjdhceifofjlpecfpeimnnphbcjgnc/js/background.min.js:140:44 at m.$digest (chrome-extension://lcbjdhceifofjlpecfpeimnnphbcjgnc/js/background.min.js:151:185) at chrome-extension://lcbjdhceifofjlpecfpeimnnphbcjgnc/js/background.min.js:154:326 at Tg.completeTask (chrome-extension://lcbjdhceifofjlpecfpeimnnphbcjgnc/js/background.min.js:166:15) at chrome-extension://lcbjdhceifofjlpecfpeimnnphbcjgnc/js/background.min.js:52:3
2024-06-20 07:50:26.986 [trace] {"container":"[xbs] Toolbar","indexPath":[12],"targetInfo":{"container":"[xbs] Toolbar","indexPath":[13,8],"bookmark":{privacy removed}},"syncChange":true}
2024-06-20 07:50:27.001 [trace] Sync 1y3vfa9 (pull) queued
2024-06-20 07:50:27.015 [trace] Processing sync 1y3vfa9 (0 in queue)
2024-06-20 07:50:29.091 [trace] Local population completed in 0.14s
2024-06-20 07:50:29.117 [trace] Local sync data refreshed

the log shows caused by this

2024-06-20 07:50:26.971 [error] bookmarks.sync: [10111] XBookmarkNotFound   TypeError: Cannot read properties of undefined (reading 'splice') at Object.addNewInXBookmarks [as AddNewInXBookmarks] (chrome-extension://lcbjdhceifofjlpecfpeimnnphbcjgnc/js/background.min.js:2563:29) at chrome-extension://lcbjdhceifofjlpecfpeimnnphbcjgnc/js/background.min.js:3865:65 at chrome-extension://lcbjdhceifofjlpecfpeimnnphbcjgnc/js/background.min.js:140:44 at m.$digest (chrome-extension://lcbjdhceifofjlpecfpeimnnphbcjgnc/js/background.min.js:151:185) at chrome-extension://lcbjdhceifofjlpecfpeimnnphbcjgnc/js/background.min.js:154:326 at Tg.completeTask (chrome-extension://lcbjdhceifofjlpecfpeimnnphbcjgnc/js/background.min.js:166:15) at chrome-extension://lcbjdhceifofjlpecfpeimnnphbcjgnc/js/background.min.js:52:3

How can the issue be reproduced? Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Screenshots If applicable, add screenshots to help explain your problem:

Desktop browser Please complete the following information for all affected desktop browsers:

Mobile device Please complete the following information for all affected mobile devices:

Application log Please include the logs from the affected clients:

Log entries ``` Download the Application log from the Settings panel and paste the contents here. ```