floccusaddon / floccus

:cloud: Sync your bookmarks privately across browsers and devices
https://floccus.org
Mozilla Public License 2.0
5.56k stars 235 forks source link

CPU is maxed out on preliminary sync via Nextcloud Bookmarks #1162

Open sunjam opened 2 years ago

sunjam commented 2 years ago

Which version of floccus are you using?

4.13.1

Sync method

{"label"=>"Nextcloud Bookmarks"}

Which browser are you using? In case you are using the Android App, specify the Android version please.

Firefox 100.00 (64-bit)

Which version of Nextcloud Bookmarks are you using? (if relevant)

hosted (unsure)

Which version of Nextcloud? (if relevant)

22.2.7

What kind of WebDAV server are you using? (if relevant)

No response

Describe the Bug

CPU usage is freezing the computer on preliminary sync. image

Floccus is unresponsive. image

Expected Behavior

Preliminary Sync will not cause computer to freeze. image

To Reproduce

Begin syncing from Floccus in Firefox.

i5 cpu 8gb ram SSD disk

Debug log provided

marcelklehr commented 2 years ago

Off-topic: You have 3000 duplicates? Something doesn't seem to be right.

sunjam commented 2 years ago

Seems so. They have accumulated over time.

On Sat, May 21, 2022, 10:30 AM Marcel Klehr @.***> wrote:

Off-topic: You have 3000 duplicates?

— Reply to this email directly, view it on GitHub https://github.com/floccusaddon/floccus/issues/1162#issuecomment-1133697386, or unsubscribe https://github.com/notifications/unsubscribe-auth/AANUKZUE4GG6IM7VUQCR4XLVLEMTBANCNFSM5VZNCHRA . You are receiving this because you authored the thread.Message ID: @.***>

exstntlmsnthrp commented 2 years ago

I noticed I have a similar situation. I have ~5000 bookmarks but it says I have ~14000 duplicates. When I select all to delete, it lists the number at ~2700. After I delete them from Nextcloud, nothing will sync from the computer browser or phone.

Nextcloud version: 24.0.2 Nextcloud bookmarks: current (don't remember version number) Android: LineageOS 19.1 (Android 12) Floccus app Android: 4.16.0

Laptop: Intel i7, 32gb ram OS: Arch linux Browser: Firefox v.101.0.1 Floccus extension: current Browser 2: Brave v. 1.40.107-1 Floccus extension: current

marcelklehr commented 2 months ago

Does this still happen in the latest version for you @sunjam ?

sunjam commented 1 month ago

Tested on firefox on MacOS for preliminary sync, which completed in mere seconds. No issues with the sync, but I know I have duplicates.

edit: Tested on firefox 129.0.1 on Ubuntu 22.04.3 LTS and again ran into maxed out CPU and almost 4gb of ram used. Had to disable Floccus since sync was seizing up the machine when logging into my existing account.

Importing my bookmarks from backup file to avoid the online sync is working.