Closed
Bug 1421682
Opened 7 years ago
Closed 7 years ago
Activity Streams exhausts file descriptors capturing screenshots when large numbers of bookmarks are added at once
Categories
(Firefox :: New Tab Page, defect, P2)
Tracking
()
People
(Reporter: rico.masseran, Assigned: ursula)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [thumbnails][AS61MVP])
Attachments
(1 file)
178.94 KB,
image/png
|
Details |
User Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/57.0
Build ID: 20171113102034
Steps to reproduce:
In my extension Sync Tab Groups, I am saving lots of tabs as bookmarks at once.
* Firefox 57
* Fedora 26
https://github.com/Morikko/sync-tab-groups/blob/master/background/storage/bookmarkstorage.js
My code do (once each 30s at most):
- find the root folder or create it
- clean previous save if has
- save each groups of tabs in a subfolder
Actual results:
Not at each backup, but sometimes those errors are visible in the console:
[[This error many times]]
Error: Could not establish connection. Receiving end does not exist. undefined
Un arbre non équilibré a été écrit en utilisant « document.write() » provoquant une nouvelle analyse de données provenant du réseau. Pour plus d’informations, consultez https://developer.mozilla.org/en/Optimizing_Your_Pages_for_Speculative_Parsing home.htm:32
Error: Could not establish connection. Receiving end does not exist. undefined
getScreenshot error: Unix error 24 during operation open on file /home/eric/.cache/mozilla/firefox/i6xygatd.default/thumbnails/a7dcc5d79743851d4f92d54db1f15ad9.png (Too many open files) Screenshots.jsm:61
getScreenshotForURL resource://activity-stream/lib/Screenshots.jsm:61:7
throw self-hosted:1207:9
StorageManager.Bookmark.saveGroups failed: Error: no item found for the given GUID bookmarkstorage.js:81:5
StorageManager.Bookmark.saveGroups moz-extension://64b6e8a9-f585-49ff-b5e0-343e07d43870/background/bookmarkstorage.js:81:5
getScreenshot error: Error: page-thumbnail:error Screenshots.jsm:61
getScreenshotForURL resource://activity-stream/lib/Screenshots.jsm:61:7
throw self-hosted:1207:9
update.locale file doesn't exist in either the application or GRE directories UpdateUtils.jsm:125
getLocale resource://gre/modules/UpdateUtils.jsm:125:5
throw self-hosted:1207:9
On top of that, when it happens Firefox is no more usable. All tabs content are like in the attached file: a wheel is turning and it is impossible to have any content. Same for new tabs.
I have to restart Firefox.
Expected results:
Bookmarks are saved correctly or an error is raised but that doesn't break Firefox.
Additional details:
https://github.com/Morikko/sync-tab-groups/issues/14#issuecomment-345548703
An user had the problems and also saw lots of errors in Screenshots.jsm
https://github.com/Morikko/sync-tab-groups/issues/20
Another user with this problem on ArchLinux.
Updated•7 years ago
|
Component: Untriaged → WebExtensions: General
Product: Firefox → Toolkit
Updated•7 years ago
|
Component: WebExtensions: General → Activity Streams: Newtab
Product: Toolkit → Firefox
Summary: When saving bookmarks, I got "getScreenshot error: Unix error 24 during operation open on file" that breaks Firefox → Activity Streams exhausts file descriptors capturing screenshots when large numbers of bookmarks are added at once
Comment 1•7 years ago
|
||
We should only bookmark a maximum of 9 bookmarks on any mass bookmarking event
Comment 2•7 years ago
|
||
I would assume tspurway ment "should only screenshot a max of 9…"
Comment 3•7 years ago
|
||
yes. screenshot.
Updated•7 years ago
|
Iteration: --- → 60.1 - Jan 29
Updated•7 years ago
|
Iteration: 60.1 - Jan 29 → 60.2 - Feb 12
Updated•7 years ago
|
status-firefox60:
--- → affected
Updated•7 years ago
|
Whiteboard: [AS60MVP]
Updated•7 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Updated•7 years ago
|
Iteration: 60.2 - Feb 12 → 60.3 - Feb 26
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → usarracini
Priority: P2 → P1
Updated•7 years ago
|
Whiteboard: [AS60MVP] → [thumbnails][AS60MVP]
Updated•7 years ago
|
Iteration: 60.3 - Feb 26 → 60.4 - Mar 12
Updated•7 years ago
|
Updated•7 years ago
|
Iteration: --- → 61.1 - Mar 26
Updated•7 years ago
|
Whiteboard: [thumbnails][AS60MVP] → [thumbnails][AS61MVP]
Updated•7 years ago
|
Status: NEW → ASSIGNED
Priority: P3 → P2
Updated•7 years ago
|
Iteration: 61.1 - Mar 26 → ---
Updated•7 years ago
|
Iteration: --- → 61.2 - Apr 9
Comment 4•7 years ago
|
||
Commits pushed to master at https://github.com/mozilla/activity-stream
https://github.com/mozilla/activity-stream/commit/e1b76607316711ff9cca859183171ce1a7900b9a
Fix Bug 1421682 - Activity Streams exhausts file descriptors capturing screenshots when large numbers of bookmarks are added at once
https://github.com/mozilla/activity-stream/commit/9610270efc10bf4158f9e1d88d96db7f7baacfe6
Merge pull request #4059 from sarracini/bug_1421682
Fix Bug 1421682 - Activity Streams exhausts file descriptors capturing screenshots when large numbers of bookmarks are added at once
Updated•7 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Comment 5•7 years ago
|
||
status-firefox61:
--- → fixed
Target Milestone: --- → Firefox 61
Updated•5 years ago
|
Component: Activity Streams: Newtab → New Tab Page
You need to log in
before you can comment on or make changes to this bug.
Description
•