Closed Bug 1580839 Opened 5 years ago Closed 5 years ago

Investigate error `Unknown thread front: UnknownThread`

Categories

(DevTools :: Debugger, task, P1)

task

Tracking

(firefox72 fixed)

RESOLVED FIXED
Firefox 72
Tracking Status
firefox72 --- fixed

People

(Reporter: jlast, Assigned: bhackett1024)

References

(Blocks 1 open bug)

Details

(Whiteboard: dt-fission-m1)

Attachments

(1 file)

It is possible to trigger exception in the debugger for unknown threads. This is usually a symptom of reloading really quickly. I believe it is harmless because redux actions would have failed anyways with a context error, but it might be worth looking into having the errors occur sooner or have the messages be more clear.

JavaScript error: resource://devtools/client/debugger/src/client/firefox/commands.js, line 82: Error: Unknown thread front: UnknownThread
Priority: -- → P3
Whiteboard: dt-fission-reserve

I see this error when opening the devtools with a watch expression in place. The error happens because the watch expression is evaluated when the expressions panel is mounted, at which point we may not have connected with the target tab's main thread yet. The evaluation fails, and the watch expression values stays as (unavailable) instead of the value presently on the page. It seems more appropriate to evaluate the expressions after connecting with the target thread (similar to what we do when pausing/resuming), which allows the expression to consistently update with the correct value as the debugger loads. There are certainly other reasons this error could show up, but other instances probably also indicate real problems with the debugger.

Assignee: nobody → bhackett1024
Status: NEW → ASSIGNED
Priority: P3 → P1
Whiteboard: dt-fission-reserve → dt-fission
Pushed by bhackett@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/10eb7fee625f Evaluate debugger expressions after connecting with the target, r=jlast.
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 72
Whiteboard: dt-fission → dt-fission dt-fission-m1
Whiteboard: dt-fission dt-fission-m1 → dt-fission-m1
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: