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)

57 Branch
defect

Tracking

()

RESOLVED FIXED
Firefox 61
Iteration:
61.2 - Apr 9
Tracking Status
firefox58 --- wontfix
firefox59 --- wontfix
firefox60 --- wontfix
firefox61 --- fixed

People

(Reporter: rico.masseran, Assigned: ursula)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [thumbnails][AS61MVP])

Attachments

(1 file)

Attached image tab_dead.png
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.
Component: Untriaged → WebExtensions: General
Product: Firefox → Toolkit
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
We should only bookmark a maximum of 9 bookmarks on any mass bookmarking event
Priority: -- → P2
I would assume tspurway ment "should only screenshot a max of 9…"
yes. screenshot.
Iteration: --- → 60.1 - Jan 29
Iteration: 60.1 - Jan 29 → 60.2 - Feb 12
Whiteboard: [AS60MVP]
Status: UNCONFIRMED → NEW
Ever confirmed: true
Iteration: 60.2 - Feb 12 → 60.3 - Feb 26
Assignee: nobody → usarracini
Priority: P2 → P1
Whiteboard: [AS60MVP] → [thumbnails][AS60MVP]
Iteration: 60.3 - Feb 26 → 60.4 - Mar 12
Iteration: 60.4 - Mar 12 → ---
Priority: P1 → P3
Blocks: 1437659
Iteration: --- → 61.1 - Mar 26
Whiteboard: [thumbnails][AS60MVP] → [thumbnails][AS61MVP]
Status: NEW → ASSIGNED
Priority: P3 → P2
Iteration: 61.1 - Mar 26 → ---
Iteration: --- → 61.2 - Apr 9
Blocks: 1445085
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
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Blocks: 1449792
Component: Activity Streams: Newtab → New Tab Page
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: