Bug: Intermittent TEST-UNEXPECTED-TIMEOUT | browser/components/downloads/test/browser/browser_pdfjs_preview.js | application timed out after 370 seconds with no output
Status: RESOLVED
Priority: P5
Resolution: INCOMPLETE
Created: 2020-12-02 20:45:44+00:00
Resolved: 2021-05-11 17:06:04+00:00

**Filed by:** btara [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=323346720&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/VtvDzUvLQ5e5LgWrL-r9mw/runs/0/artifacts/public/logs/live_backing.log

---
```
[task 2020-12-02T20:02:36.695Z] 20:02:36     INFO - TEST-START | browser/components/downloads/test/browser/browser_pdfjs_preview.js
[task 2020-12-02T20:08:50.595Z] 20:08:50     INFO - Buffered messages logged at 20:02:36
[task 2020-12-02T20:08:50.596Z] 20:08:50     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_pdfjs_preview.js | A valid string reason is expected - 
[task 2020-12-02T20:08:50.596Z] 20:08:50     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_pdfjs_preview.js | Reason cannot be empty - 
[task 2020-12-02T20:08:50.596Z] 20:08:50     INFO - Skipping test:Private download in about:downloads, opens in new private window
[task 2020-12-02T20:08:50.597Z] 20:08:50     INFO - Entering test bound Download panel, default click behavior
[task 2020-12-02T20:08:50.597Z] 20:08:50     INFO - Test case: Download panel, default click behavior
[task 2020-12-02T20:08:50.599Z] 20:08:50     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_pdfjs_preview.js | At the start of the test, there should be 0 downloads - 
[task 2020-12-02T20:08:50.599Z] 20:08:50     INFO - Created download directory: /tmp/testsavedir
[task 2020-12-02T20:08:50.600Z] 20:08:50     INFO - Adding download objects
[task 2020-12-02T20:08:50.600Z] 20:08:50     INFO - addPDFDownload with itemData: {
[task 2020-12-02T20:08:50.601Z] 20:08:50     INFO -   "targetFilename": "downloaded.pdf"
[task 2020-12-02T20:08:50.601Z] 20:08:50     INFO - }
[task 2020-12-02T20:08:50.601Z] 20:08:50     INFO - Creating saved download file at:/tmp/testsavedir/downloaded.pdf
[task 2020-12-02T20:08:50.603Z] 20:08:50     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_pdfjs_preview.js | Created /tmp/testsavedir/downloaded.pdf - 
[task 2020-12-02T20:08:50.604Z] 20:08:50     INFO - Created file at:/tmp/testsavedir/downloaded.pdf
[task 2020-12-02T20:08:50.605Z] 20:08:50     INFO - Got download pathname:/tmp/testsavedir/downloaded.pdf
[task 2020-12-02T20:08:50.605Z] 20:08:50     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_pdfjs_preview.js | Added download is not private as expected - 
[task 2020-12-02T20:08:50.605Z] 20:08:50     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_pdfjs_preview.js | Public list has expected 1 downloads - 
[task 2020-12-02T20:08:50.605Z] 20:08:50     INFO - pdfFileURI:file:///tmp/testsavedir/downloaded.pdf
[task 2020-12-02T20:08:50.606Z] 20:08:50     INFO - Buffered messages logged at 20:02:37
[task 2020-12-02T20:08:50.606Z] 20:08:50     INFO - previewHappened will wait for tab with URI:file:///tmp/testsavedir/downloaded.pdf
[task 2020-12-02T20:08:50.607Z] 20:08:50     INFO - Opening download panel
[task 2020-12-02T20:08:50.608Z] 20:08:50     INFO - /Opening download panel
[task 2020-12-02T20:08:50.608Z] 20:08:50     INFO - trigger the contextmenu
[task 2020-12-02T20:08:50.609Z] 20:08:50     INFO - context menu should be open, verify its menu items
[task 2020-12-02T20:08:50.610Z] 20:08:50     INFO - verifyContextMenu with expected: {
[task 2020-12-02T20:08:50.610Z] 20:08:50     INFO -   "useSystemMenuItemDisabled": false,
[task 2020-12-02T20:08:50.610Z] 20:08:50     INFO -   "alwaysMenuItemDisabled": false,
[task 2020-12-02T20:08:50.610Z] 20:08:50     INFO -   "downloadCount": 1,
[task 2020-12-02T20:08:50.610Z] 20:08:50     INFO -   "newWindow": false,
[task 2020-12-02T20:08:50.610Z] 20:08:50     INFO -   "opensTab": true,
[task 2020-12-02T20:08:50.611Z] 20:08:50     INFO -   "tabSelected": true
[task 2020-12-02T20:08:50.611Z] 20:08:50     INFO - }
[task 2020-12-02T20:08:50.611Z] 20:08:50     INFO - Waiting for the context menu to show up
[task 2020-12-02T20:08:50.611Z] 20:08:50     INFO - Checking visibility of the system viewer menu items
[task 2020-12-02T20:08:50.611Z] 20:08:50     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_pdfjs_preview.js | The 'Use system viewer' menu item was visible - 
[task 2020-12-02T20:08:50.612Z] 20:08:50     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_pdfjs_preview.js | The 'Use system viewer' menu item was visible - 
[task 2020-12-02T20:08:50.612Z] 20:08:50     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_pdfjs_preview.js | The 'Always...' menu item not checked - 
[task 2020-12-02T20:08:50.612Z] 20:08:50     INFO - Executing user events
[task 2020-12-02T20:08:50.612Z] 20:08:50     INFO - Waiting for previewHappened
[task 2020-12-02T20:08:50.612Z] 20:08:50     INFO - Buffered messages logged at 20:02:39
[task 2020-12-02T20:08:50.613Z] 20:08:50     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_pdfjs_preview.js | Got preview tab - 
[task 2020-12-02T20:08:50.613Z] 20:08:50     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_pdfjs_preview.js | The preview tab was selected - 
[task 2020-12-02T20:08:50.613Z] 20:08:50     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_pdfjs_preview.js | previewTab has the expected currentURI - 
[task 2020-12-02T20:08:50.613Z] 20:08:50     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_pdfjs_preview.js | The preview tab was not private as expected - 
[task 2020-12-02T20:08:50.613Z] 20:08:50     INFO - cleaning up
[task 2020-12-02T20:08:50.613Z] 20:08:50     INFO - Test opened a new UI window? false
[task 2020-12-02T20:08:50.613Z] 20:08:50     INFO - Waiting for lastPBContextExitedPromise
[task 2020-12-02T20:08:50.613Z] 20:08:50     INFO - Leaving test bound Download panel, default click behavior
[task 2020-12-02T20:08:50.613Z] 20:08:50     INFO - Entering test bound Download panel, system viewer menu items prefd off
[task 2020-12-02T20:08:50.613Z] 20:08:50     INFO - Test case: Download panel, system viewer menu items prefd off
[task 2020-12-02T20:08:50.613Z] 20:08:50     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_pdfjs_preview.js | At the start of the test, there should be 0 downloads - 
[task 2020-12-02T20:08:50.613Z] 20:08:50     INFO - Created download directory: /tmp/testsavedir
[task 2020-12-02T20:08:50.613Z] 20:08:50     INFO - Adding download objects
[task 2020-12-02T20:08:50.613Z] 20:08:50     INFO - addPDFDownload with itemData: {
[task 2020-12-02T20:08:50.613Z] 20:08:50     INFO -   "targetFilename": "downloaded.pdf"
[task 2020-12-02T20:08:50.613Z] 20:08:50     INFO - }
[task 2020-12-02T20:08:50.613Z] 20:08:50     INFO - Creating saved download file at:/tmp/testsavedir/downloaded.pdf
[task 2020-12-02T20:08:50.613Z] 20:08:50     INFO - File at /tmp/testsavedir/downloaded.pdf already exists
[task 2020-12-02T20:08:50.613Z] 20:08:50     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_pdfjs_preview.js | Created /tmp/testsavedir/downloaded.pdf - 
[task 2020-12-02T20:08:50.613Z] 20:08:50     INFO - Created file at:/tmp/testsavedir/downloaded.pdf
[task 2020-12-02T20:08:50.613Z] 20:08:50     INFO - Got download pathname:/tmp/testsavedir/downloaded.pdf
[task 2020-12-02T20:08:50.613Z] 20:08:50     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_pdfjs_preview.js | Added download is not private as expected - 
[task 2020-12-02T20:08:50.613Z] 20:08:50     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_pdfjs_preview.js | Public list has expected 1 downloads - 
[task 2020-12-02T20:08:50.613Z] 20:08:50     INFO - pdfFileURI:file:///tmp/testsavedir/downloaded.pdf
[task 2020-12-02T20:08:50.613Z] 20:08:50     INFO - Buffered messages logged at 20:02:40
[task 2020-12-02T20:08:50.613Z] 20:08:50     INFO - previewHappened will wait for tab with URI:file:///tmp/testsavedir/downloaded.pdf
[task 2020-12-02T20:08:50.613Z] 20:08:50     INFO - Opening download panel
[task 2020-12-02T20:08:50.614Z] 20:08:50     INFO - /Opening download panel
[task 2020-12-02T20:08:50.614Z] 20:08:50     INFO - trigger the contextmenu
[task 2020-12-02T20:08:50.614Z] 20:08:50     INFO - context menu should be open, verify its menu items
[task 2020-12-02T20:08:50.614Z] 20:08:50     INFO - verifyContextMenu with expected: {
[task 2020-12-02T20:08:50.614Z] 20:08:50     INFO -   "useSystemMenuItemDisabled": true,
[task 2020-12-02T20:08:50.614Z] 20:08:50     INFO -   "alwaysMenuItemDisabled": true,
[task 2020-12-02T20:08:50.614Z] 20:08:50     INFO -   "downloadCount": 1,
[task 2020-12-02T20:08:50.615Z] 20:08:50     INFO -   "newWindow": false,
[task 2020-12-02T20:08:50.615Z] 20:08:50     INFO -   "opensTab": true,
[task 2020-12-02T20:08:50.615Z] 20:08:50     INFO -   "tabSelected": true
[task 2020-12-02T20:08:50.615Z] 20:08:50     INFO - }
[task 2020-12-02T20:08:50.615Z] 20:08:50     INFO - Waiting for the context menu to show up
[task 2020-12-02T20:08:50.616Z] 20:08:50     INFO - Checking visibility of the system viewer menu items
[task 2020-12-02T20:08:50.616Z] 20:08:50     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_pdfjs_preview.js | The 'Use system viewer' menu item was hidden - 
[task 2020-12-02T20:08:50.616Z] 20:08:50     INFO - TEST-PASS | browser/components/downloads/test/browser/browser_pdfjs_preview.js | The 'Use system viewer' menu item was hidden - 
[task 2020-12-02T20:08:50.616Z] 20:08:50     INFO - Executing user events
[task 2020-12-02T20:08:50.616Z] 20:08:50     INFO - Buffered messages finished
[task 2020-12-02T20:08:50.616Z] 20:08:50    ERROR - TEST-UNEXPECTED-TIMEOUT | browser/components/downloads/test/browser/browser_pdfjs_preview.js | application timed out after 370 seconds with no output
[task 2020-12-02T20:08:50.616Z] 20:08:50    ERROR - Force-terminating active process(es).
[task 2020-12-02T20:08:50.616Z] 20:08:50     INFO - Determining child pids from psutil...
[task 2020-12-02T20:08:50.616Z] 20:08:50     INFO - [2061, 2090, 2125, 2267, 2173, 1958, 1979, 2004]
[task 2020-12-02T20:08:50.619Z] 20:08:50     INFO - ==> process 1910 launched child process 1925
[task 2020-12-02T20:08:50.619Z] 20:08:50     INFO - ==> process 1910 launched child process 1979
[task 2020-12-02T20:08:50.619Z] 20:08:50     INFO - ==> process 1910 launched child process 2004
[task 2020-12-02T20:08:50.619Z] 20:08:50     INFO - ==> process 1910 launched child process 2061
[task 2020-12-02T20:08:50.620Z] 20:08:50     INFO - ==> process 1910 launched child process 2090
[task 2020-12-02T20:08:50.620Z] 20:08:50     INFO - ==> process 1910 launched child process 2125
[task 2020-12-02T20:08:50.620Z] 20:08:50     INFO - ==> process 1910 launched child process 2173
[task 2020-12-02T20:08:50.620Z] 20:08:50     INFO - ==> process 1910 launched child process 2236
[task 2020-12-02T20:08:50.621Z] 20:08:50     INFO - Found child pids: set([1979, 1925, 1958, 2090, 2061, 2125, 2004, 2267, 2236, 2173])
[task 2020-12-02T20:08:50.621Z] 20:08:50     INFO - Failed to get child procs
[task 2020-12-02T20:08:50.621Z] 20:08:50     INFO - Killing process: 1979
[task 2020-12-02T20:08:50.621Z] 20:08:50     INFO - TEST-INFO | started process screentopng
[task 2020-12-02T20:08:50.858Z] 20:08:50     INFO - TEST-INFO | screentopng: exit 0```