mirror of
https://github.com/floccusaddon/floccus.git
synced 2026-04-25 14:16:12 +03:00
[GH-ISSUE #261] potential out-of-memory crash #250
Labels
No labels
browser-specific
bug
correctness issues
enhancement
feature: Google Drive
feature: Linkwarden
feature: git
feature: nextcloud-bookmarks
feature: tabs
feature: webdav
help wanted
native-app
priority: high
priority: low
priority: medium
pull-request
question
question
stale
upstream
waiting for more information
wontfix
🙁 Not following issue template
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/floccus#250
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SteveKeller on GitHub (Apr 9, 2019).
Original GitHub issue: https://github.com/floccusaddon/floccus/issues/261
Software versions
Steps to reproduce
Expected outcome
Lock file should be deleted after successful sync.
Actual outcome
Lock file still exists and has to be deleted manual, before new sync can success.
Debug log
fullURL :https://nextcloud.mydomain.com/remote.php/webdav/bookmarks.xbel:
Successfully ended sync process for account bookmarks@nextcloud.mydomain.com
Starting sync process for account bookmarks@nextcloud.mydomain.com
onSyncStart: begin
https://nextcloud.mydomain.com/remote.php/webdav/bookmarks.xbel.lock
https://nextcloud.mydomain.com/remote.php/webdav/bookmarks.xbel.lock
https://nextcloud.mydomain.com/remote.php/webdav/bookmarks.xbel.lock
https://nextcloud.mydomain.com/remote.php/webdav/bookmarks.xbel.lock
https://nextcloud.mydomain.com/remote.php/webdav/bookmarks.xbel.lock
https://nextcloud.mydomain.com/remote.php/webdav/bookmarks.xbel.lock
Syncing failed with Lock Error: Unable to clear lock file, consider deleting bookmarks.xbel.lock
onSyncFail
I have tested my credentials (basic auth) manual -> ok (HTTP DELETE request of lock file)
When sync fails the floccus plugin crashes.
This error only occurs sometimes. After closing the browser and reopen it works again.
Thanks for your input and help!
@marcelklehr commented on GitHub (Apr 9, 2019):
Is this always the case, when sync fails? Is there any error message?
At first glance, my diagnosis would be: The crashes (although undesired) explain the lock file not being deleted, but you describe the lock file being present despite a successful sync run... :/
@SteveKeller commented on GitHub (Apr 10, 2019):
Yes, it always the case when sync fails. -> it crashes
Only the error message in the log file as provided.
I have checked your diagnosis and it correct. After sync fails and the crash occurs, than the lock file still exists.
But when I delete the lock file manual and reload floccus and trigger syncing , it crashes immediatly again with the same error messages. It doesn't make any difference if the lock file exists or not.
So as you have guessed the real problem is the crash and not the deletion of the lock file.
@marcelklehr commented on GitHub (Apr 10, 2019):
So, when you delete the lock file manually, sync fails nonetheless with the error "Unable to clear lock file" and it crashes?
@SteveKeller commented on GitHub (Apr 10, 2019):
Yes, exactly.
@marcelklehr commented on GitHub (Apr 12, 2019):
Unfortunately I cannot replicate this. To get further debug information please do the following:
Firefox
about:debuggingdebugbutton next to floccus entrysync nowfor the account of your choice.Chrome
chrome://extensionsDeveloper modedist/html/background.htmlbutton in floccus' entry next to "Inspect views: "sync nowfor the account of your choice@SteveKeller commented on GitHub (Apr 14, 2019):
Great guide to debug, thanks!
It turned out that floccus crashs because of a potential out-of-memory crash in chromium.
The exact location which cause the problem is in
dist/js/node_modules/conservative-normalize-url/index.js Line: 208
The parsing of one special url did not work because it's to long and this cause out-of-memory.
So I have investigated in the special url.
While parsing it the url looks like this:
'################################..........#######/login?type=samlsso_notification.do?client_id=..........'-> way to many hash signs!
I think something went wrong while syncing/converting from browser to nextcloud file.
Real problem url looks like:
https://my.domain.com/#/login?type=samlsso_notification.do?client_id=.....-> hashes went crazy
Another indication for out-of-memory is the file size of bookmarks.xbel!
I have about 700 bookmarks and my .xbel file size was about 64MB
-> probably due to the special url.
My Solution:
@marcelklehr commented on GitHub (Apr 14, 2019):
Ah, yes. There was a bug that caused hash-signs to double on every sync recently. This is fixed now, so it shouldn't come up again.
@SteveKeller commented on GitHub (Apr 14, 2019):
Great to hear that!
Will the next release contain this bugfix?
@marcelklehr commented on GitHub (Apr 14, 2019):
This was fixed with v3.2.15 which was released 8 days ago :)
Edit: I'm not sure why you hit the bug after this.
@SteveKeller commented on GitHub (Apr 14, 2019):
Okey, interessing. I don't know either.
Anyway, now it works as expected :)
@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.