[GH-ISSUE #200] Index out of bounds while trying to sync from/to NC 14 w/ bookmarks App 0.14 #191

Closed
opened 2026-02-25 22:36:25 +03:00 by kerem · 26 comments
Owner

Originally created by @tkurbad on GitHub (Nov 24, 2018).
Original GitHub issue: https://github.com/floccusaddon/floccus/issues/200

Software versions

  • Browser: Chromium 69.0.3497.81 (Gentoo Linux)
  • Nextcloud: 14.0.3.0
  • Nextcloud Bookmarks app: 0.14.2
  • Floccus: 3.1.7

Steps to reproduce

  1. Nextcloud Bookmarks are populated with around 2200 bookmarks from another computer
  2. Trying to merge local and NC bookmarks using the "reset cache" option. There is, however, a large common subset of local and NC bookmarks, since browsers have been synchronized before using the infamous xmarks.

Expected outcome

Sync should progress to the end. Additional server bookmarks should appear locally in browser, additional local bookmarks should be stored on server.

Actual outcome

Sync fails after a while with the error message "Index out of bounds" (sometimes printed several times).

Not checking "reset cache" doesn't make a difference. (Only sync takes longer and there are at least 20 "Index out of bounds" errors shown at once in the end).

Originally created by @tkurbad on GitHub (Nov 24, 2018). Original GitHub issue: https://github.com/floccusaddon/floccus/issues/200 <!-- Hello there! Thank you for providing feedback! Please answer the below questions to allow for as smooth a process of tackling the issue as possible :) (Note: Everything surrounded by arrows, like this text for example, will not be visible.) --> ### Software versions <!-- Please provide the versions of the following software products in your set up --> * Browser: Chromium 69.0.3497.81 (Gentoo Linux) * Nextcloud: 14.0.3.0 * Nextcloud Bookmarks app: 0.14.2 * Floccus: 3.1.7 ### Steps to reproduce <!-- What did you do? Be as specific as possible --> 1. Nextcloud Bookmarks are populated with around 2200 bookmarks from another computer 2. Trying to merge local and NC bookmarks using the "reset cache" option. There is, however, a large common subset of local and NC bookmarks, since browsers have been synchronized before using the infamous xmarks. ### Expected outcome <!-- What did you think was going to happen or what do you think should have happened? --> Sync should progress to the end. Additional server bookmarks should appear locally in browser, additional local bookmarks should be stored on server. ### Actual outcome <!-- What actually happened after you did the above steps? --> Sync fails after a while with the error message "Index out of bounds" (sometimes printed several times). Not checking "reset cache" doesn't make a difference. (Only sync takes longer and there are at least 20 "Index out of bounds" errors shown at once in the end). <!-- Thanks! Now, hit Submit and wait for a reply :) -->
kerem closed this issue 2026-02-25 22:36:25 +03:00
Author
Owner

@tkurbad commented on GitHub (Nov 24, 2018):

Debug log: https://gist.github.com/tkurbad/0eb1763328e67a9924ec1a44964b8ebe

It seems to always fail in the same place.

<!-- gh-comment-id:441383472 --> @tkurbad commented on GitHub (Nov 24, 2018): Debug log: https://gist.github.com/tkurbad/0eb1763328e67a9924ec1a44964b8ebe It seems to always fail in the same place.
Author
Owner

@marcelklehr commented on GitHub (Nov 24, 2018):

Thank you for the detailed report. The error may present due to a recent change I made to increase performance. I've just released a bugfix release. Could you try it again once you've received the update?

<!-- gh-comment-id:441397161 --> @marcelklehr commented on GitHub (Nov 24, 2018): Thank you for the detailed report. The error may present due to a recent change I made to increase performance. I've just released a bugfix release. Could you try it again once you've received the update?
Author
Owner

@tkurbad commented on GitHub (Nov 25, 2018):

Thank you for the fast response.

The error just appeared again. However, sync automatically restarted, so I'll give it a (few) runs more and will update my findings...

<!-- gh-comment-id:441424794 --> @tkurbad commented on GitHub (Nov 25, 2018): Thank you for the fast response. The error just appeared again. However, sync automatically restarted, so I'll give it a (few) runs more and will update my findings...
Author
Owner

@tkurbad commented on GitHub (Nov 25, 2018):

Okay, I now got "Index out of bounds" and "QUOTA_BYTES quota exceeded" (at the same time). :-(

EDIT: Syncing starts anew after each "Index out of bounds" and then fails at another place with the same error.

<!-- gh-comment-id:441424849 --> @tkurbad commented on GitHub (Nov 25, 2018): Okay, I now got "Index out of bounds" and "QUOTA_BYTES quota exceeded" (at the same time). :-( EDIT: Syncing starts anew after each "Index out of bounds" and then fails at another place with the same error.
Author
Owner

@marcelklehr commented on GitHub (Nov 25, 2018):

The quota bytes error is probably due to the log being too full :/

You can

  • Go to chrome://extensions
  • enable Developer mode
  • click on dist/html/background.html button in floccus' entry next to "Inspect views: "
  • go to the console tab
  • enter chrome.storage.local.set({'log': []}) and hit enter

this should clear the debuug log.

We are nonetheless closer to identifying the problem, because the sync no longer runs in parallel, so it's much easier to read the debug output -- if you would do the honors of providing the logs one more time :)

<!-- gh-comment-id:441436713 --> @marcelklehr commented on GitHub (Nov 25, 2018): The quota bytes error is probably due to the log being too full :/ You can * Go to `chrome://extensions` * enable `Developer mode` * click on `dist/html/background.html` button in floccus' entry next to "Inspect views: " * go to the `console` tab * enter `chrome.storage.local.set({'log': []})` and hit enter this should clear the debuug log. We are nonetheless closer to identifying the problem, because the sync no longer runs in parallel, so it's much easier to read the debug output -- if you would do the honors of providing the logs one more time :)
Author
Owner

@tkurbad commented on GitHub (Nov 25, 2018):

Hmm, clearing the log didn't prevent the quota message from reappearing.

New debug.log: https://gist.github.com/tkurbad/2fc61f0fbcdcc461657127aa73c2b07d

<!-- gh-comment-id:441448278 --> @tkurbad commented on GitHub (Nov 25, 2018): Hmm, clearing the log didn't prevent the quota message from reappearing. New debug.log: https://gist.github.com/tkurbad/2fc61f0fbcdcc461657127aa73c2b07d
Author
Owner

@marcelklehr commented on GitHub (Nov 25, 2018):

Thanks so much. I was able to isolate, reproduce and fix the bug. Just released a new version.

<!-- gh-comment-id:441471735 --> @marcelklehr commented on GitHub (Nov 25, 2018): Thanks so much. I was able to isolate, reproduce and fix the bug. Just released a new version.
Author
Owner

@tkurbad commented on GitHub (Nov 25, 2018):

Sorry @marcelklehr, but I'm still getting the "Index out of bounds" error. Debug log again? ;-)

<!-- gh-comment-id:441474260 --> @tkurbad commented on GitHub (Nov 25, 2018): Sorry @marcelklehr, but I'm still getting the "Index out of bounds" error. Debug log again? ;-)
Author
Owner

@tkurbad commented on GitHub (Nov 25, 2018):

New debug.log: https://gist.github.com/tkurbad/554cc5edf927ccfb6d35bb2a64627501

<!-- gh-comment-id:441474533 --> @tkurbad commented on GitHub (Nov 25, 2018): New debug.log: https://gist.github.com/tkurbad/554cc5edf927ccfb6d35bb2a64627501
Author
Owner

@marcelklehr commented on GitHub (Nov 25, 2018):

Wow, your bookmarks are a goldmine for finding bugs! :)
This one is the same error but a different cause. Should be fixed now, as well.

<!-- gh-comment-id:441480255 --> @marcelklehr commented on GitHub (Nov 25, 2018): Wow, your bookmarks are a goldmine for finding bugs! :) This one is the same error but a different cause. Should be fixed now, as well.
Author
Owner

@tkurbad commented on GitHub (Nov 26, 2018):

And once again: https://gist.github.com/tkurbad/aad2e4b6be6bebbd01b31388b1c750dc

This time, however, I got a folder and contents locally that previously only existed on the NC server. So, we are making visible progress! ;-)

<!-- gh-comment-id:441495097 --> @tkurbad commented on GitHub (Nov 26, 2018): And once again: https://gist.github.com/tkurbad/aad2e4b6be6bebbd01b31388b1c750dc This time, however, I got a folder and contents locally that previously only existed on the NC server. So, we are making visible progress! ;-)
Author
Owner

@marcelklehr commented on GitHub (Nov 26, 2018):

This is amazing 🙀 I've never fixed so many bugs from one report before :D

<!-- gh-comment-id:441617881 --> @marcelklehr commented on GitHub (Nov 26, 2018): This is amazing :scream_cat: I've never fixed so many bugs from one report before :D
Author
Owner

@marcelklehr commented on GitHub (Nov 26, 2018):

Bugfix release is out. :)

<!-- gh-comment-id:441619204 --> @marcelklehr commented on GitHub (Nov 26, 2018): Bugfix release is out. :)
Author
Owner

@tkurbad commented on GitHub (Nov 26, 2018):

Keep'em bugfixes comin'! ;-)

New debug.log (still "Index out of bounds"): https://gist.github.com/tkurbad/bbf67a4a89a701a7ccd87455b3737456

<!-- gh-comment-id:441627896 --> @tkurbad commented on GitHub (Nov 26, 2018): Keep'em bugfixes comin'! ;-) New debug.log (still "Index out of bounds"): https://gist.github.com/tkurbad/bbf67a4a89a701a7ccd87455b3737456
Author
Owner

@marcelklehr commented on GitHub (Nov 26, 2018):

mmh. I think this log was cut off. Possibly by chrome's quota. Can you clear the logs again and capture a new log?

<!-- gh-comment-id:441719435 --> @marcelklehr commented on GitHub (Nov 26, 2018): mmh. I think this log was cut off. Possibly by chrome's quota. Can you clear the logs again and capture a new log?
Author
Owner

@tkurbad commented on GitHub (Nov 26, 2018):

mmh. I think this log was cut off. Possibly by chrome's quota. Can you clear the logs again and capture a new log?

Actually, it seems to be a problem with gist. Log is now in this OC-share: https://owncloud.iwm-tuebingen.de/s/n8povKTwgGLqYTy

<!-- gh-comment-id:441730008 --> @tkurbad commented on GitHub (Nov 26, 2018): > mmh. I think this log was cut off. Possibly by chrome's quota. Can you clear the logs again and capture a new log? Actually, it seems to be a problem with gist. Log is now in this OC-share: https://owncloud.iwm-tuebingen.de/s/n8povKTwgGLqYTy
Author
Owner

@marcelklehr commented on GitHub (Nov 26, 2018):

Fix is out... ;D

<!-- gh-comment-id:441742950 --> @marcelklehr commented on GitHub (Nov 26, 2018): Fix is out... ;D
Author
Owner

@tkurbad commented on GitHub (Nov 26, 2018):

Thanks! I'm afk at the moment. Will check tomorrow morning.

<!-- gh-comment-id:441788314 --> @tkurbad commented on GitHub (Nov 26, 2018): Thanks! I'm afk at the moment. Will check tomorrow morning.
Author
Owner

@tkurbad commented on GitHub (Nov 27, 2018):

Next round! :-)

debug.log again in the owncloud share.

<!-- gh-comment-id:441988261 --> @tkurbad commented on GitHub (Nov 27, 2018): Next round! :-) debug.log again in the owncloud share.
Author
Owner

@tkurbad commented on GitHub (Nov 29, 2018):

@marcelklehr Are you still with me? ;-)

<!-- gh-comment-id:442769816 --> @tkurbad commented on GitHub (Nov 29, 2018): @marcelklehr Are you still with me? ;-)
Author
Owner

@marcelklehr commented on GitHub (Nov 29, 2018):

Yes! I'm with you. I've been tending to other issues as well, though, so I haven't published another bugfix release yet, but this is your fix: github.com/marcelklehr/floccus@f2ec29edb6 :D

<!-- gh-comment-id:442819081 --> @marcelklehr commented on GitHub (Nov 29, 2018): Yes! I'm with you. I've been tending to other issues as well, though, so I haven't published another bugfix release yet, but this is your fix: https://github.com/marcelklehr/floccus/commit/f2ec29edb618e45c79ffa7c819a68857400851ca :D
Author
Owner

@marcelklehr commented on GitHub (Nov 30, 2018):

v3.1.14 has been released, your turn @tkurbad :D

<!-- gh-comment-id:443254481 --> @marcelklehr commented on GitHub (Nov 30, 2018): v3.1.14 has been released, your turn @tkurbad :D
Author
Owner

@tkurbad commented on GitHub (Nov 30, 2018):

Cool! "Successfully ended sync process for account ..."

Thanks so much for your time and efforts. I'll try and merge with the bookmarks of my other computer on Monday and report back.

This can be closed for now, I suppose...

<!-- gh-comment-id:443358243 --> @tkurbad commented on GitHub (Nov 30, 2018): Cool! "Successfully ended sync process for account ..." Thanks so much for your time and efforts. I'll try and merge with the bookmarks of my other computer on Monday and report back. This can be closed for now, I suppose...
Author
Owner

@marcelklehr commented on GitHub (Nov 30, 2018):

ooph. 🎉

You're welcome :D

<!-- gh-comment-id:443367979 --> @marcelklehr commented on GitHub (Nov 30, 2018): ooph. :tada: You're welcome :D
Author
Owner

@onny commented on GitHub (Dec 22, 2018):

Hey @marcelklehr thank you for this nice extension! I'm getting the same error in brave 0.57.18 and nextcloud 15.0.0 with bookmarks app 0.14.3, see the log here:
https://onny.project-insanity.org/files/floccus-3.2.0-2018-12-22%20(1).log

<!-- gh-comment-id:449564606 --> @onny commented on GitHub (Dec 22, 2018): Hey @marcelklehr thank you for this nice extension! I'm getting the same error in `brave 0.57.18` and `nextcloud 15.0.0` with `bookmarks app 0.14.3`, see the log here: https://onny.project-insanity.org/files/floccus-3.2.0-2018-12-22%20(1).log
Author
Owner

@github-actions[bot] commented on GitHub (Mar 21, 2023):

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

<!-- gh-comment-id:1477570242 --> @github-actions[bot] commented on GitHub (Mar 21, 2023): This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/floccus#191
No description provided.