Paused workers stay as zombies on page refresh
Categories
(DevTools :: Debugger, defect)
Tracking
(firefox-esr60 unaffected, firefox66 wontfix, firefox67 wontfix, firefox68 fixed)
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox66 | --- | wontfix |
firefox67 | --- | wontfix |
firefox68 | --- | fixed |
People
(Reporter: Harald, Assigned: bhackett1024)
References
Details
(Keywords: regression)
Attachments
(3 files)
What were you doing?
- Open Debugger on https://tuner.cloud/
- Open the worker file webpack:///pitchfinder-worker.js and set a breakpoint in the message handler
- Wait for the breakpoint to be hit (sing a song or tune your guitar)
- Refresh
What happened?
Worker list expands on each refresh.
(Bonus: Breakpoints panel stays empty as well, while reason shows Paused on Breakpoint
)
What should have happened?
Only latest worker gets shown, list gets cleared on page refresh.
Original source: https://github.com/digitarald/chromatic-tuner-web-app
Reporter | ||
Comment 1•6 years ago
|
||
Comment 2•6 years ago
|
||
I am able to reproduce it. Also note that line BP marker is missing in the BP gutter after refresh. It's visible in the recording, but not explicitly mentioned here.
Honza
Comment 3•6 years ago
|
||
When trying this test case I've also noticed bug 1537748
Honza
Comment 5•6 years ago
|
||
Are we just failing to resume the workers so they never get detached/destroyed?
Assignee | ||
Comment 6•6 years ago
|
||
Paused workers are not resumed when navigating, but I don't think that just telling them to resume is the right fix: they could pause at a breakpoint somewhere else (or an unpaused worker could pause at a breakpoint before it is destroyed) and will not finish shutting down.
The patch I'm about to post takes care of this by detaching from all worker threads when navigating. This unpauses the worker threads and should prevent them from pausing anywhere else, and keeps the threads from piling up when refreshing.
Assignee | ||
Comment 7•6 years ago
|
||
Comment 9•6 years ago
|
||
Backed out changeset 75634ae8f7c5 (bug 1537657) for causing debugger failures CLOSED TREE
Backout revision https://hg.mozilla.org/integration/autoland/rev/ed5dca04ca54811c2208c708b3c02e9d2cb10f4e
Failure log https://treeherder.mozilla.org/logviewer.html#?job_id=235583688&repo=autoland
Brian could you pleas take a look?
Updated•6 years ago
|
Comment 10•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Comment 11•6 years ago
|
||
bugherder |
Updated•6 years ago
|
Comment 12•6 years ago
|
||
Updated•6 years ago
|
Description
•