Open Bug 1413078 Opened 7 years ago Updated 2 years ago

getScreenshot error: Unix error 2 during operation open on file

Categories

(Firefox :: New Tab Page, defect, P3)

58 Branch
defect

Tracking

()

Tracking Status
firefox57 --- wontfix
firefox58 --- wontfix
firefox59 --- wontfix

People

(Reporter: wtds.trabalho, Unassigned)

References

Details

(Whiteboard: [thumbnails])

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0 Build ID: 20171024124937 Steps to reproduce: 1- Just open browser 2. See in the browser console many errors: getScreenshot error: Unix error 2 during operation open on file /home/wellington/.cache/.mozilla/firefox-trunk/v3uent20.23Set2017/thumbnails/d9e13e879d66f1241665c3b3ba6fbb67.png (Arquivo ou diretório não encontrado) getScreenshot error: Unix error 2 during operation open on file /home/wellington/.cache/.mozilla/firefox-trunk/v3uent20.23Set2017/thumbnails/aae1cf3cb358fab3f0685775655dc000.png (Arquivo ou diretório não encontrado) Screenshots.jsm:61 getScreenshotForURL resource://activity-stream/lib/Screenshots.jsm:61:7 throw view-source:resource://activity-stream/lib/Screenshots.jsm Actual results: errors from view-source:resource://activity-stream/lib/Screenshots.jsm like: getScreenshot error: Unix error 2 during operation open on file /home/wellington/.cache/.mozilla/firefox-trunk/v3uent20.23Set2017/thumbnails/d9e13e879d66f1241665c3b3ba6fbb67.png (Arquivo ou diretório não encontrado) Expected results: No errors. Thanks
Component: Untriaged → Activity Streams: Application Servers
I’ve managed to reproduce this bug when trying to open a profile created on a different machine. As seen from the errors the location of the cache is not in the Firefox profile.
Component: Activity Streams: Application Servers → Activity Streams: Newtab
Assignee: nobody → andrei.br92
Is it possible that "browser.pagethumbnails.capturing_disabled" is enabled and set to true? That's the only way I got it to reproduce. Also did you happen to move that profile? Or delete /home/wellington/.cache/.mozilla? As I assumed in my previous comment.
Flags: needinfo?(wtds.trabalho)
(In reply to Andrei Oprea [:andreio] from comment #2) > Is it possible that "browser.pagethumbnails.capturing_disabled" is enabled > and set to true? That's the only way I got it to reproduce. > Also did you happen to move that profile? Or delete > /home/wellington/.cache/.mozilla? As I assumed in my previous comment. Hi, I'm checked and "browser.pagethumbnails.capturing_disabled" is true. But I don't change this setting manually. About the profile I don't moved or changed the location, but alert on the console is frequently about profile permissions and access problem.
Flags: needinfo?(wtds.trabalho) → needinfo?(andrei.br92)
"browser.pagethumbnails.capturing_disabled" should not be used. It was most likely set by an addon. What you should do is right click the pref in about:config and select "Reset". After doing this you should no longer be seeing the errors.
Flags: needinfo?(andrei.br92)
Please re-open if the solution above did not fix it.
Status: UNCONFIRMED → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
Bug 1421902 is for FaviconFeed and might be triggering around the same time as this getScreenshot message during tests.
Status: RESOLVED → REOPENED
Iteration: --- → 1.26
Ever confirmed: true
Priority: -- → P2
Resolution: INVALID → ---
Whiteboard: [thumbnails]
The fix probably shouldn't just check the "capturing_disabled" pref but more of either avoiding the exception with smarter control flow or not being noisy for this exception.
Status: REOPENED → ASSIGNED
Depends on: 1184701
Iteration: 1.26 → 1.27
Iteration: 1.27 → 60.1 - Jan 29
Iteration: 60.1 - Jan 29 → ---
Priority: P2 → P3
Component: Activity Streams: Newtab → New Tab Page
Assignee: andrei.br92 → nobody
Status: ASSIGNED → NEW
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.