Bug: Intermittent TV browser/components/places/tests/browser/interactions/browser_interactions_view_time.js | Uncaught exception - Should have saved to the database - timed out after 50 tries.
Status: RESOLVED
Priority: P5
Resolution: WORKSFORME
Created: 2021-06-10 13:41:07+00:00
Resolved: 2021-06-14 06:30:09+00:00

**Filed by:** malexandru [at] mozilla.com
**Parsed log:** https://treeherder.mozilla.org/logviewer?job_id=342356071&repo=autoland
**Full log:** https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/ZPQCdzLsRmeUb4tV9M_sEA/runs/0/artifacts/public/logs/live_backing.log
**Reftest URL:** https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/tools/reftest/reftest-analyzer.xhtml#logurl=https://firefox-ci-tc.services.mozilla.com/api/queue/v1/task/ZPQCdzLsRmeUb4tV9M_sEA/runs/0/artifacts/public/logs/live_backing.log&only_show_unexpected=1

---
```
[task 2021-06-10T09:24:17.682Z] 09:24:17     INFO - TEST-START | browser/components/places/tests/browser/interactions/browser_interactions_view_time.js
[task 2021-06-10T09:24:17.735Z] 09:24:17     INFO - GECKO(1538) | console.debug: InteractionsManager: "Tab switch notified"
[task 2021-06-10T09:24:17.737Z] 09:24:17     INFO - GECKO(1538) | console.debug: InteractionsManager: "No update due to user is idle"
[task 2021-06-10T09:24:18.029Z] 09:24:18     INFO - GECKO(1538) | console.debug: InteractionsManager: "New interaction" ({isActive:true, url:"https://example.com/"})
[task 2021-06-10T09:24:18.157Z] 09:24:18     INFO - GECKO(1538) | console.debug: InteractionsManager: "End of interaction"
[task 2021-06-10T09:24:18.158Z] 09:24:18     INFO - GECKO(1538) | console.debug: InteractionsManager: "No update due to user is idle"
[task 2021-06-10T09:24:18.198Z] 09:24:18     INFO - GECKO(1538) | console.debug: InteractionsManager: "New interaction" ({isActive:true, url:"https://example.com/browser"})
[task 2021-06-10T09:24:23.279Z] 09:24:23     INFO - TEST-INFO | started process screentopng
[task 2021-06-10T09:24:23.831Z] 09:24:23     INFO - TEST-INFO | screentopng: exit 0
[task 2021-06-10T09:24:23.832Z] 09:24:23     INFO - Buffered messages logged at 09:24:17
[task 2021-06-10T09:24:23.832Z] 09:24:23     INFO - Entering test bound setup
[task 2021-06-10T09:24:23.833Z] 09:24:23     INFO - Leaving test bound setup
[task 2021-06-10T09:24:23.834Z] 09:24:23     INFO - Entering test bound test_interactions_simple_load_and_navigate_away
[task 2021-06-10T09:24:23.834Z] 09:24:23     INFO - Buffered messages finished
[task 2021-06-10T09:24:23.834Z] 09:24:23     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/interactions/browser_interactions_view_time.js | Uncaught exception - Should have saved to the database - timed out after 50 tries.
[task 2021-06-10T09:24:23.834Z] 09:24:23     INFO - Leaving test bound test_interactions_simple_load_and_navigate_away
[task 2021-06-10T09:24:23.834Z] 09:24:23     INFO - Entering test bound test_interactions_close_tab
[task 2021-06-10T09:24:23.834Z] 09:24:23     INFO - GECKO(1538) | console.debug: InteractionsManager: "Tab switch notified"
[task 2021-06-10T09:24:23.834Z] 09:24:23     INFO - GECKO(1538) | console.debug: InteractionsManager: "No update due to user is idle"
[task 2021-06-10T09:24:23.835Z] 09:24:23     INFO - GECKO(1538) | console.debug: InteractionsManager: "New interaction" ({isActive:true, url:"https://example.com/"})
[task 2021-06-10T09:24:23.835Z] 09:24:23     INFO - GECKO(1538) | console.debug: InteractionsManager: "Tab switch notified"
[task 2021-06-10T09:24:23.836Z] 09:24:23     INFO - GECKO(1538) | console.debug: InteractionsManager: "No update due to user is idle"
[task 2021-06-10T09:24:28.704Z] 09:24:28     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-06-10T09:24:28.705Z] 09:24:28     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/interactions/browser_interactions_view_time.js | Uncaught exception - Should have saved to the database - timed out after 50 tries.
[task 2021-06-10T09:24:28.706Z] 09:24:28     INFO - Leaving test bound test_interactions_close_tab
[task 2021-06-10T09:24:28.706Z] 09:24:28     INFO - Entering test bound test_interactions_background_tab
[task 2021-06-10T09:24:28.727Z] 09:24:28     INFO - GECKO(1538) | console.debug: InteractionsManager: "Tab switch notified"
[task 2021-06-10T09:24:28.728Z] 09:24:28     INFO - GECKO(1538) | console.debug: InteractionsManager: "No update due to user is idle"
[task 2021-06-10T09:24:28.845Z] 09:24:28     INFO - GECKO(1538) | console.debug: InteractionsManager: "New interaction" ({isActive:true, url:"https://example.com/"})
[task 2021-06-10T09:24:29.109Z] 09:24:29     INFO - GECKO(1538) | console.debug: InteractionsManager: "New interaction" ({isActive:false, url:"https://example.com/browser"})
[task 2021-06-10T09:24:29.146Z] 09:24:29     INFO - TEST-PASS | browser/components/places/tests/browser/interactions/browser_interactions_view_time.js | Should not have recorded any interactions. - 0 == 0 - 
[task 2021-06-10T09:24:29.170Z] 09:24:29     INFO - GECKO(1538) | console.debug: InteractionsManager: "Tab switch notified"
[task 2021-06-10T09:24:29.170Z] 09:24:29     INFO - GECKO(1538) | console.debug: InteractionsManager: "No update due to user is idle"
[task 2021-06-10T09:24:34.255Z] 09:24:34     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-06-10T09:24:34.256Z] 09:24:34     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/interactions/browser_interactions_view_time.js | Uncaught exception - Should have saved to the database - timed out after 50 tries.
[task 2021-06-10T09:24:34.256Z] 09:24:34     INFO - Leaving test bound test_interactions_background_tab
[task 2021-06-10T09:24:34.257Z] 09:24:34     INFO - Entering test bound test_interactions_switch_tabs
[task 2021-06-10T09:24:34.275Z] 09:24:34     INFO - GECKO(1538) | console.debug: InteractionsManager: "Tab switch notified"
[task 2021-06-10T09:24:34.275Z] 09:24:34     INFO - GECKO(1538) | console.debug: InteractionsManager: "No update due to user is idle"
[task 2021-06-10T09:24:34.376Z] 09:24:34     INFO - GECKO(1538) | console.debug: InteractionsManager: "New interaction" ({isActive:true, url:"https://example.com/"})
[task 2021-06-10T09:24:34.654Z] 09:24:34     INFO - GECKO(1538) | console.debug: InteractionsManager: "New interaction" ({isActive:false, url:"https://example.com/browser"})
[task 2021-06-10T09:24:34.656Z] 09:24:34     INFO - Switch to second tab
[task 2021-06-10T09:24:34.696Z] 09:24:34     INFO - GECKO(1538) | console.debug: InteractionsManager: "Tab switch notified"
[task 2021-06-10T09:24:34.697Z] 09:24:34     INFO - GECKO(1538) | console.debug: InteractionsManager: "No update due to user is idle"
[task 2021-06-10T09:24:39.754Z] 09:24:39     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-06-10T09:24:39.756Z] 09:24:39     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/interactions/browser_interactions_view_time.js | Uncaught exception - Should have saved to the database - timed out after 50 tries.
[task 2021-06-10T09:24:39.756Z] 09:24:39     INFO - Leaving test bound test_interactions_switch_tabs
[task 2021-06-10T09:24:39.757Z] 09:24:39     INFO - Entering test bound test_interactions_switch_windows
[task 2021-06-10T09:24:39.784Z] 09:24:39     INFO - GECKO(1538) | console.debug: InteractionsManager: "Tab switch notified"
[task 2021-06-10T09:24:39.785Z] 09:24:39     INFO - GECKO(1538) | console.debug: InteractionsManager: "No update due to user is idle"
[task 2021-06-10T09:24:39.902Z] 09:24:39     INFO - GECKO(1538) | console.debug: InteractionsManager: "New interaction" ({isActive:true, url:"https://example.com/"})
[task 2021-06-10T09:24:40.242Z] 09:24:40     INFO - GECKO(1538) | console.debug: InteractionsManager: "Deactivate window"
[task 2021-06-10T09:24:40.243Z] 09:24:40     INFO - GECKO(1538) | console.debug: InteractionsManager: "No update due to user is idle"
[task 2021-06-10T09:24:40.250Z] 09:24:40     INFO - GECKO(1538) | console.debug: InteractionsManager: "Activate window"
[task 2021-06-10T09:24:42.307Z] 09:24:42     INFO - GECKO(1538) | console.debug: InteractionsManager: "New interaction" ({isActive:true, url:"https://example.com/browser"})
[task 2021-06-10T09:24:47.354Z] 09:24:47     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-06-10T09:24:47.355Z] 09:24:47     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/interactions/browser_interactions_view_time.js | Uncaught exception - Should have saved to the database - timed out after 50 tries.
[task 2021-06-10T09:24:47.356Z] 09:24:47     INFO - Leaving test bound test_interactions_switch_windows
[task 2021-06-10T09:24:47.358Z] 09:24:47     INFO - Entering test bound test_interactions_loading_in_unfocused_windows
[task 2021-06-10T09:24:47.536Z] 09:24:47     INFO - GECKO(1538) | console.debug: InteractionsManager: "Deactivate window"
[task 2021-06-10T09:24:47.536Z] 09:24:47     INFO - GECKO(1538) | console.debug: InteractionsManager: "No update due to user is idle"
[task 2021-06-10T09:24:47.551Z] 09:24:47     INFO - GECKO(1538) | console.debug: InteractionsManager: "Activate window"
[task 2021-06-10T09:24:49.560Z] 09:24:49     INFO - GECKO(1538) | console.debug: InteractionsManager: "New interaction" ({isActive:true, url:"https://example.com/"})
[task 2021-06-10T09:24:49.657Z] 09:24:49     INFO - GECKO(1538) | console.debug: InteractionsManager: "End of interaction"
[task 2021-06-10T09:24:49.657Z] 09:24:49     INFO - GECKO(1538) | console.debug: InteractionsManager: "No update due to user is idle"
[task 2021-06-10T09:24:49.692Z] 09:24:49     INFO - GECKO(1538) | console.debug: InteractionsManager: "New interaction" ({isActive:true, url:"https://example.com/browser"})
[task 2021-06-10T09:24:54.717Z] 09:24:54     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-06-10T09:24:54.717Z] 09:24:54     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/interactions/browser_interactions_view_time.js | Uncaught exception - Should have saved to the database - timed out after 50 tries.
[task 2021-06-10T09:24:54.717Z] 09:24:54     INFO - Leaving test bound test_interactions_loading_in_unfocused_windows
[task 2021-06-10T09:24:54.717Z] 09:24:54     INFO - Entering test bound test_interactions_private_browsing
[task 2021-06-10T09:24:54.736Z] 09:24:54     INFO - GECKO(1538) | console.debug: InteractionsManager: "Tab switch notified"
[task 2021-06-10T09:24:54.736Z] 09:24:54     INFO - GECKO(1538) | console.debug: InteractionsManager: "No update due to no active window"
[task 2021-06-10T09:24:54.846Z] 09:24:54     INFO - GECKO(1538) | console.debug: InteractionsManager: "New interaction" ({isActive:true, url:"https://example.com/"})
[task 2021-06-10T09:24:55.207Z] 09:24:55     INFO - GECKO(1538) | console.debug: InteractionsManager: "Deactivate window"
[task 2021-06-10T09:24:55.207Z] 09:24:55     INFO - GECKO(1538) | console.debug: InteractionsManager: "No update due to user is idle"
[task 2021-06-10T09:25:02.382Z] 09:25:02     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-06-10T09:25:02.382Z] 09:25:02     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/interactions/browser_interactions_view_time.js | Uncaught exception - Should have saved to the database - timed out after 50 tries.
[task 2021-06-10T09:25:02.382Z] 09:25:02     INFO - Leaving test bound test_interactions_private_browsing
[task 2021-06-10T09:25:02.382Z] 09:25:02     INFO - Entering test bound test_interactions_idle
[task 2021-06-10T09:25:02.713Z] 09:25:02     INFO - GECKO(1538) | console.debug: InteractionsManager: "idle"
[task 2021-06-10T09:25:02.713Z] 09:25:02     INFO - GECKO(1538) | console.debug: InteractionsManager: "No update due to no active window"
[task 2021-06-10T09:25:07.743Z] 09:25:07     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-06-10T09:25:07.743Z] 09:25:07     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/interactions/browser_interactions_view_time.js | Uncaught exception - Should have saved to the database - timed out after 50 tries.
[task 2021-06-10T09:25:07.743Z] 09:25:07     INFO - Leaving test bound test_interactions_idle
[task 2021-06-10T09:25:07.744Z] 09:25:07     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-06-10T09:25:07.745Z] 09:25:07     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/interactions/browser_interactions_view_time.js | This test exceeded the timeout threshold. It should be rewritten or split up. If that's not possible, use requestLongerTimeout(N), but only as a last resort. - 
[task 2021-06-10T09:25:07.745Z] 09:25:07     INFO - GECKO(1538) | MEMORY STAT | vsize 3617MB | residentFast 775MB | heapAllocated 488MB
[task 2021-06-10T09:25:07.745Z] 09:25:07     INFO - TEST-OK | browser/components/places/tests/browser/interactions/browser_interactions_view_time.js | took 50050ms
[task 2021-06-10T09:25:07.746Z] 09:25:07     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-06-10T09:25:07.746Z] 09:25:07     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/interactions/browser_interactions_view_time.js | Found an unexpected tab at the end of test run: https://example.com/ - 
[task 2021-06-10T09:25:07.746Z] 09:25:07     INFO - GECKO(1538) | console.debug: InteractionsManager: "Tab switch notified"
[task 2021-06-10T09:25:07.747Z] 09:25:07     INFO - GECKO(1538) | console.debug: InteractionsManager: "No update due to no active window"
[task 2021-06-10T09:25:07.759Z] 09:25:07     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-06-10T09:25:07.759Z] 09:25:07     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/interactions/browser_interactions_view_time.js | Found an unexpected tab at the end of test run: https://example.com/ - 
[task 2021-06-10T09:25:07.770Z] 09:25:07     INFO - GECKO(1538) | console.debug: InteractionsManager: "Tab switch notified"
[task 2021-06-10T09:25:07.771Z] 09:25:07     INFO - GECKO(1538) | console.debug: InteractionsManager: "No update due to no active window"
[task 2021-06-10T09:25:07.773Z] 09:25:07     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-06-10T09:25:07.773Z] 09:25:07     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/interactions/browser_interactions_view_time.js | Found an unexpected tab at the end of test run: https://example.com/browser - 
[task 2021-06-10T09:25:07.777Z] 09:25:07     INFO - GECKO(1538) | console.debug: InteractionsManager: "Tab switch notified"
[task 2021-06-10T09:25:07.777Z] 09:25:07     INFO - GECKO(1538) | console.debug: InteractionsManager: "No update due to no active window"
[task 2021-06-10T09:25:07.785Z] 09:25:07     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-06-10T09:25:07.785Z] 09:25:07     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/interactions/browser_interactions_view_time.js | Found an unexpected tab at the end of test run: https://example.com/ - 
[task 2021-06-10T09:25:07.787Z] 09:25:07     INFO - GECKO(1538) | console.debug: InteractionsManager: "Tab switch notified"
[task 2021-06-10T09:25:07.787Z] 09:25:07     INFO - GECKO(1538) | console.debug: InteractionsManager: "No update due to no active window"
[task 2021-06-10T09:25:07.799Z] 09:25:07     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-06-10T09:25:07.799Z] 09:25:07     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/interactions/browser_interactions_view_time.js | Found an unexpected tab at the end of test run: https://example.com/browser - 
[task 2021-06-10T09:25:07.799Z] 09:25:07     INFO - GECKO(1538) | console.debug: InteractionsManager: "Tab switch notified"
[task 2021-06-10T09:25:07.799Z] 09:25:07     INFO - GECKO(1538) | console.debug: InteractionsManager: "No update due to no active window"
[task 2021-06-10T09:25:07.822Z] 09:25:07     INFO - GECKO(1538) | console.debug: InteractionsManager: "Tab switch notified"
[task 2021-06-10T09:25:07.822Z] 09:25:07     INFO - GECKO(1538) | console.debug: InteractionsManager: "No update due to no active window"
[task 2021-06-10T09:25:07.839Z] 09:25:07     INFO - checking window state
[task 2021-06-10T09:25:07.840Z] 09:25:07     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-06-10T09:25:07.840Z] 09:25:07     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/interactions/browser_interactions_view_time.js | Found an unexpected browser window at the end of test run - 
[task 2021-06-10T09:25:07.840Z] 09:25:07     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-06-10T09:25:07.841Z] 09:25:07     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/interactions/browser_interactions_view_time.js | Found an unexpected browser window at the end of test run - 
[task 2021-06-10T09:25:07.841Z] 09:25:07     INFO - Not taking screenshot here: see the one that was previously logged
[task 2021-06-10T09:25:07.842Z] 09:25:07     INFO - TEST-UNEXPECTED-FAIL | browser/components/places/tests/browser/interactions/browser_interactions_view_time.js | Found an unexpected browser window at the end of test run - 
[task 2021-06-10T09:25:07.842Z] 09:25:07     INFO - GECKO(1538) | must wait for focus
[task 2021-06-10T09:25:07.909Z] 09:25:07     INFO - GECKO(1538) | console.debug: InteractionsManager: "Activate window"
[task 2021-06-10T09:25:08.206Z] 09:25:08     INFO - GECKO(1538) | Completed ShutdownLeaks collections in process 1538
[task 2021-06-10T09:25:08.207Z] 09:25:08     INFO - TEST-START | Shutdown
```